summaryrefslogtreecommitdiffstats
path: root/include/freerdp/session.h
blob: 12b8032105991e019d9e22a3ba6f48060879f8d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
 * 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.
 */
#ifndef FREERDP_SESSION_H
#define FREERDP_SESSION_H

#include <winpr/wtypes.h>

/* Logon Information Types */
#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

#ifdef __cplusplus
extern "C"
{
#endif

	struct rdp_logon_info
	{
		UINT32 sessionId;
		char* username;
		char* domain;
	};
	typedef struct rdp_logon_info logon_info;

	struct rdp_logon_info_ex
	{
		BOOL haveCookie;
		UINT32 LogonId;
		BYTE ArcRandomBits[16];

		BOOL haveErrorInfo;
		UINT32 ErrorNotificationType;
		UINT32 ErrorNotificationData;
	};
	typedef struct rdp_logon_info_ex logon_info_ex;

#ifdef __cplusplus
}
#endif

#endif /* FREERDP_SESSION_H */