2006-03-05 15:49:45 +08:00
|
|
|
#ifndef _SDDL_H
|
|
|
|
#define _SDDL_H
|
|
|
|
#if __GNUC__ >= 3
|
|
|
|
#pragma GCC system_header
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef WINADVAPI
|
|
|
|
#define WINADVAPI
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if (WINVER >= 0x0500)
|
|
|
|
WINADVAPI BOOL WINAPI ConvertSidToStringSidA(PSID Sid, LPSTR* StringSid);
|
|
|
|
WINADVAPI BOOL WINAPI ConvertSidToStringSidW(PSID Sid, LPWSTR* StringSid);
|
2008-04-11 19:36:41 +08:00
|
|
|
WINADVAPI BOOL WINAPI ConvertStringSidToSidA(LPSTR StringSid, PSID *Sid);
|
|
|
|
WINADVAPI BOOL WINAPI ConvertStringSidToSidW(LPWSTR StringSid, PSID *Sid);
|
2006-03-05 15:49:45 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
#define ConvertSidToStringSid ConvertSidToStringSidW
|
2008-04-11 19:36:41 +08:00
|
|
|
#define ConvertStringSidToSid ConvertStringSidToSidW
|
2006-03-05 15:49:45 +08:00
|
|
|
#else
|
|
|
|
#define ConvertSidToStringSid ConvertSidToStringSidA
|
2008-04-11 19:36:41 +08:00
|
|
|
#define ConvertStringSidToSid ConvertStringSidToSidA
|
2006-03-05 15:49:45 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _SDDL_H */
|