session.h (1366B)
1/** 2 * FreeRDP: A Remote Desktop Protocol Implementation 3 * Client Session Info 4 * 5 * Copyright 2016 David FORT <contact@hardening-consulting.com> 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19#ifndef FREERDP_SESSION_H 20#define FREERDP_SESSION_H 21 22#include <winpr/wtypes.h> 23 24/* Logon Information Types */ 25#define INFO_TYPE_LOGON 0x00000000 26#define INFO_TYPE_LOGON_LONG 0x00000001 27#define INFO_TYPE_LOGON_PLAIN_NOTIFY 0x00000002 28#define INFO_TYPE_LOGON_EXTENDED_INF 0x00000003 29 30struct rdp_logon_info 31{ 32 UINT32 sessionId; 33 char* username; 34 char* domain; 35}; 36typedef struct rdp_logon_info logon_info; 37 38struct rdp_logon_info_ex 39{ 40 BOOL haveCookie; 41 UINT32 LogonId; 42 BYTE ArcRandomBits[16]; 43 44 BOOL haveErrorInfo; 45 UINT32 ErrorNotificationType; 46 UINT32 ErrorNotificationData; 47}; 48typedef struct rdp_logon_info_ex logon_info_ex; 49 50#endif /* FREERDP_SESSION_H */