Merge pull request #154 from csware/tortoisegitplink
[msysgit.git] / mingw / include / sddl.h
blob093c6dd655804f11f38e439a311aa4eb3455f83c
1 #ifndef _SDDL_H
2 #define _SDDL_H
3 #if __GNUC__ >= 3
4 #pragma GCC system_header
5 #endif
7 #ifndef WINADVAPI
8 #define WINADVAPI
9 #endif
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
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
22 #ifdef UNICODE
23 #define ConvertSidToStringSid ConvertSidToStringSidW
24 #define ConvertStringSidToSid ConvertStringSidToSidW
25 #else
26 #define ConvertSidToStringSid ConvertSidToStringSidA
27 #define ConvertStringSidToSid ConvertStringSidToSidA
28 #endif
30 #ifdef __cplusplus
32 #endif
34 #endif /* _SDDL_H */