Synchronize up to trunk's revision r57756.
[reactos.git] / include / psdk / ntlsa.h
1 /*
2 * ntlsa.h
3 *
4 * This file is part of the ReactOS PSDK package.
5 *
6 * Contributors:
7 * Created by Eric Kohl.
8 *
9 * THIS SOFTWARE IS NOT COPYRIGHTED
10 *
11 * This source code is offered for use in the public domain. You may
12 * use, modify or distribute it freely.
13 *
14 * This code is distributed in the hope that it will be useful but
15 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
16 * DISCLAIMED. This includes but is not limited to warranties of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 *
19 */
20
21 #ifndef _NTLSA_
22 #define _NTLSA_
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 #define ACCOUNT_VIEW 1
29 #define ACCOUNT_ADJUST_PRIVILEGES 2
30 #define ACCOUNT_ADJUST_QUOTAS 4
31 #define ACCOUNT_ADJUST_SYSTEM_ACCESS 8
32
33 #define ACCOUNT_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | 15)
34 #define ACCOUNT_READ (STANDARD_RIGHTS_READ | 1)
35 #define ACCOUNT_WRITE (STANDARD_RIGHTS_WRITE | 14)
36 #define ACCOUNT_EXECUTE (STANDARD_RIGHTS_EXECUTE)
37
38 #define SECRET_SET_VALUE 1
39 #define SECRET_QUERY_VALUE 2
40
41 #define SECRET_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | 3)
42 #define SECRET_READ (STANDARD_RIGHTS_READ | 2)
43 #define SECRET_WRITE (STANDARD_RIGHTS_WRITE | 1)
44 #define SECRET_EXECUTE (STANDARD_RIGHTS_EXECUTE)
45
46
47 /* System Access Flags */
48 #define SECURITY_ACCESS_INTERACTIVE_LOGON 0x00000001
49 #define SECURITY_ACCESS_NETWORK_LOGON 0x00000002
50 #define SECURITY_ACCESS_BATCH_LOGON 0x00000004
51 #define SECURITY_ACCESS_SERVICE_LOGON 0x00000010
52 #define SECURITY_ACCESS_PROXY_LOGON 0x00000020
53 #define SECURITY_ACCESS_DENY_INTERACTIVE_LOGON 0x00000040
54 #define SECURITY_ACCESS_DENY_NETWORK_LOGON 0x00000080
55 #define SECURITY_ACCESS_DENY_BATCH_LOGON 0x00000100
56 #define SECURITY_ACCESS_DENY_SERVICE_LOGON 0x00000200
57 #define SECURITY_ACCESS_REMOTE_INTERACTIVE_LOGON 0x00000400
58 #define SECURITY_ACCESS_DENY_REMOTE_INTERACTIVE_LOGON 0x00000800
59
60
61 #ifdef __cplusplus
62 }
63 #endif
64
65
66 #endif /* _NTLSA_ */