newlib/winsup/w32api/include/sddl.h
Corinna Vinschen 3a3992087e * include/sddl.h (ConvertStringSidToSidA): Define.
(ConvertStringSidToSidW): Define.
	(ConvertStringSidToSid): Define.
2008-04-11 11:36:41 +00:00

35 lines
788 B
C
Executable File

#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);
WINADVAPI BOOL WINAPI ConvertStringSidToSidA(LPSTR StringSid, PSID *Sid);
WINADVAPI BOOL WINAPI ConvertStringSidToSidW(LPWSTR StringSid, PSID *Sid);
#endif
#ifdef UNICODE
#define ConvertSidToStringSid ConvertSidToStringSidW
#define ConvertStringSidToSid ConvertStringSidToSidW
#else
#define ConvertSidToStringSid ConvertSidToStringSidA
#define ConvertStringSidToSid ConvertStringSidToSidA
#endif
#ifdef __cplusplus
}
#endif
#endif /* _SDDL_H */