2006-03-05 08:49:45 +01: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 13:36:41 +02:00
|
|
|
WINADVAPI BOOL WINAPI ConvertStringSidToSidA(LPSTR StringSid, PSID *Sid);
|
|
|
|
WINADVAPI BOOL WINAPI ConvertStringSidToSidW(LPWSTR StringSid, PSID *Sid);
|
2006-03-05 08:49:45 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef UNICODE
|
|
|
|
#define ConvertSidToStringSid ConvertSidToStringSidW
|
2008-04-11 13:36:41 +02:00
|
|
|
#define ConvertStringSidToSid ConvertStringSidToSidW
|
2006-03-05 08:49:45 +01:00
|
|
|
#else
|
|
|
|
#define ConvertSidToStringSid ConvertSidToStringSidA
|
2008-04-11 13:36:41 +02:00
|
|
|
#define ConvertStringSidToSid ConvertStringSidToSidA
|
2006-03-05 08:49:45 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _SDDL_H */
|