Last change
on this file since 1047 was 1046, checked in by alloc, 8 years ago |
Daodan: Added Windows MinGW and build batch file
|
File size:
788 bytes
|
Rev | Line | |
---|
[1046] | 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 */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.