ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/MinGW/include/sddl.h
Revision: 1046
Committed: Mon Aug 29 13:19:38 2016 UTC (9 years, 1 month ago) by alloc
Content type: text/x-chdr
File size: 788 byte(s)
Log Message:
Daodan: Added Windows MinGW and build batch file

File Contents

# Content
1 #ifndef _SDDL_H
2 #define _SDDL_H
3 #if __GNUC__ >= 3
4 #pragma GCC system_header
5 #endif
6
7 #ifndef WINADVAPI
8 #define WINADVAPI
9 #endif
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 #if (WINVER >= 0x0500)
16 WINADVAPI BOOL WINAPI ConvertSidToStringSidA(PSID Sid, LPSTR* StringSid);
17 WINADVAPI BOOL WINAPI ConvertSidToStringSidW(PSID Sid, LPWSTR* StringSid);
18 WINADVAPI BOOL WINAPI ConvertStringSidToSidA(LPSTR StringSid, PSID *Sid);
19 WINADVAPI BOOL WINAPI ConvertStringSidToSidW(LPWSTR StringSid, PSID *Sid);
20 #endif
21
22 #ifdef UNICODE
23 #define ConvertSidToStringSid ConvertSidToStringSidW
24 #define ConvertStringSidToSid ConvertStringSidToSidW
25 #else
26 #define ConvertSidToStringSid ConvertSidToStringSidA
27 #define ConvertStringSidToSid ConvertStringSidToSidA
28 #endif
29
30 #ifdef __cplusplus
31 }
32 #endif
33
34 #endif /* _SDDL_H */