Release gdi lock before calling DeleteDC.
[wine] / include / ntsecapi.h
1 #ifndef __WINE_NTSECAPI_H
2 #define __WINE_NTSECAPI_H
3
4 #include "winnt.h"
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif /* defined(__cplusplus) */
9
10 typedef UNICODE_STRING LSA_UNICODE_STRING, *PLSA_UNICODE_STRING;
11 typedef STRING LSA_STRING, *PLSA_STRING;
12 typedef OBJECT_ATTRIBUTES LSA_OBJECT_ATTRIBUTES, *PLSA_OBJECT_ATTRIBUTES;
13
14 typedef PVOID LSA_HANDLE, *PLSA_HANDLE;
15
16 NTSTATUS WINAPI LsaOpenPolicy(PLSA_UNICODE_STRING,PLSA_OBJECT_ATTRIBUTES,ACCESS_MASK,PLSA_HANDLE);
17
18 typedef enum 
19 {
20         PolicyAuditLogInformation = 1,
21         PolicyAuditEventsInformation,
22         PolicyPrimaryDomainInformation,
23         PolicyPdAccountInformation,
24         PolicyAccountDomainInformation,
25         PolicyLsaServerRoleInformation,
26         PolicyReplicaSourceInformation,
27         PolicyDefaultQuotaInformation,
28         PolicyModificationInformation,
29         PolicyAuditFullSetInformation,
30         PolicyAuditFullQueryInformation,
31         PolicyDnsDomainInformation
32 } POLICY_INFORMATION_CLASS, *PPOLICY_INFORMATION_CLASS;
33
34 typedef ULONG POLICY_AUDIT_EVENT_OPTIONS, *PPOLICY_AUDIT_EVENT_OPTIONS;
35
36 typedef struct
37 {
38         BOOLEAN AuditingMode;
39         PPOLICY_AUDIT_EVENT_OPTIONS EventAuditingOptions;
40         ULONG MaximumAuditEventCount;
41 } POLICY_AUDIT_EVENTS_INFO, *PPOLICY_AUDIT_EVENTS_INFO;
42
43 typedef struct
44 {
45     LSA_UNICODE_STRING Name;
46     PSID Sid;
47 } POLICY_PRIMARY_DOMAIN_INFO, *PPOLICY_PRIMARY_DOMAIN_INFO;
48
49
50 NTSTATUS WINAPI LsaQueryInformationPolicy(LSA_HANDLE,POLICY_INFORMATION_CLASS,PVOID*);
51
52 NTSTATUS WINAPI LsaFreeMemory(PVOID);
53 NTSTATUS WINAPI LsaClose(IN LSA_HANDLE ObjectHandle);
54
55 #ifdef __cplusplus
56 } /* extern "C" */
57 #endif /* defined(__cplusplus) */
58
59 #endif /* !defined(__WINE_NTSECAPI_H) */