FreeRDP
Loading...
Searching...
No Matches
session.h
1
19#ifndef FREERDP_SESSION_H
20#define FREERDP_SESSION_H
21
22#include <winpr/wtypes.h>
23#include <freerdp/api.h>
24
25#ifdef __cplusplus
26extern "C"
27{
28#endif
29
30 /* Logon Information Types */
31 typedef enum WINPR_C23_ENUM_TYPE(uint32_t)
32 {
33 INFO_TYPE_LOGON = 0x00000000,
34 INFO_TYPE_LOGON_LONG = 0x00000001,
35 INFO_TYPE_LOGON_PLAIN_NOTIFY = 0x00000002,
36 INFO_TYPE_LOGON_EXTENDED_INF = 0x00000003
37 } RDP_LOGON_INFO_TYPE;
38
40 {
41 UINT32 sessionId;
42 char* username;
43 char* domain;
44 };
45 typedef struct rdp_logon_info logon_info;
46
48 {
49 BOOL haveCookie;
50 UINT32 LogonId;
51 BYTE ArcRandomBits[16];
52
53 BOOL haveErrorInfo;
54 UINT32 ErrorNotificationType;
55 UINT32 ErrorNotificationData;
56 };
57 typedef struct rdp_logon_info_ex logon_info_ex;
58
65 WINPR_ATTR_NODISCARD
66 FREERDP_API const char* freerdp_session_logon_type_str(uint32_t type);
67
78 WINPR_ATTR_NODISCARD
79 FREERDP_API const char* freerdp_session_logon_type_data_str(uint32_t type, const void* data,
80 char* buffer, size_t length);
81
82#ifdef __cplusplus
83}
84#endif
85
86#endif /* FREERDP_SESSION_H */