2016-02-18 16:19:36 +03:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
* Client Session Info
|
|
|
|
*
|
|
|
|
* Copyright 2016 David FORT <contact@hardening-consulting.com>
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
2017-06-06 15:01:41 +03:00
|
|
|
#ifndef FREERDP_SESSION_H
|
|
|
|
#define FREERDP_SESSION_H
|
2016-02-18 16:19:36 +03:00
|
|
|
|
|
|
|
#include <winpr/wtypes.h>
|
|
|
|
|
|
|
|
/* Logon Information Types */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define INFO_TYPE_LOGON 0x00000000
|
|
|
|
#define INFO_TYPE_LOGON_LONG 0x00000001
|
|
|
|
#define INFO_TYPE_LOGON_PLAIN_NOTIFY 0x00000002
|
|
|
|
#define INFO_TYPE_LOGON_EXTENDED_INF 0x00000003
|
2016-02-18 16:19:36 +03:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
struct rdp_logon_info
|
|
|
|
{
|
2016-02-18 16:19:36 +03:00
|
|
|
UINT32 sessionId;
|
2019-11-06 17:24:51 +03:00
|
|
|
char* username;
|
|
|
|
char* domain;
|
2016-02-18 16:19:36 +03:00
|
|
|
};
|
|
|
|
typedef struct rdp_logon_info logon_info;
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
struct rdp_logon_info_ex
|
|
|
|
{
|
2016-02-18 16:19:36 +03:00
|
|
|
BOOL haveCookie;
|
|
|
|
UINT32 LogonId;
|
|
|
|
BYTE ArcRandomBits[16];
|
|
|
|
|
|
|
|
BOOL haveErrorInfo;
|
|
|
|
UINT32 ErrorNotificationType;
|
|
|
|
UINT32 ErrorNotificationData;
|
|
|
|
};
|
|
|
|
typedef struct rdp_logon_info_ex logon_info_ex;
|
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#endif /* FREERDP_SESSION_H */
|