ReactOS 0.4.15-dev-5672-gf73ac17
secext.h
Go to the documentation of this file.
1#ifndef _SECEXT_H
2#define _SECEXT_H
3
4#ifndef RC_INVOKED
5#if (_WIN32_WINNT >= 0x0500)
6typedef enum
7{
8 NameUnknown = 0,
9 NameFullyQualifiedDN = 1,
10 NameSamCompatible = 2,
11 NameDisplay = 3,
12 NameUniqueId = 6,
13 NameCanonical = 7,
14 NameUserPrincipal = 8,
15 NameCanonicalEx = 9,
16 NameServicePrincipal = 10,
17 NameDnsDomain = 12
18} EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT;
19
22BOOLEAN WINAPI GetUserNameExA(EXTENDED_NAME_FORMAT,LPSTR,PULONG);
23BOOLEAN WINAPI GetUserNameExW(EXTENDED_NAME_FORMAT,LPWSTR,PULONG);
24BOOLEAN WINAPI TranslateNameA(LPCSTR,EXTENDED_NAME_FORMAT,EXTENDED_NAME_FORMAT,LPSTR,PULONG);
25BOOLEAN WINAPI TranslateNameW(LPCWSTR,EXTENDED_NAME_FORMAT,EXTENDED_NAME_FORMAT,LPWSTR,PULONG);
26
27#ifdef UNICODE
28#define GetComputerObjectName GetComputerObjectNameW
29#define GetUserNameEx GetUserNameExW
30#define TranslateName TranslateNameW
31#else
32#define GetComputerObjectName GetComputerObjectNameA
33#define GetUserNameEx GetUserNameExA
34#define TranslateName TranslateNameA
35#endif
36
37
38#endif /* ! RC_INVOKED */
39#endif /* _WIN32_WINNT >= 0x0500 */
40#endif /* ! _SECEXT_H */
unsigned char BOOLEAN
BOOLEAN WINAPI TranslateNameA(LPCSTR lpAccountName, EXTENDED_NAME_FORMAT AccountNameFormat, EXTENDED_NAME_FORMAT DesiredNameFormat, LPSTR lpTranslatedName, PULONG nSize)
Definition: sspi.c:1133
BOOLEAN WINAPI GetComputerObjectNameA(EXTENDED_NAME_FORMAT NameFormat, LPSTR lpNameBuffer, PULONG nSize)
Definition: sspi.c:899
BOOLEAN WINAPI TranslateNameW(LPCWSTR lpAccountName, EXTENDED_NAME_FORMAT AccountNameFormat, EXTENDED_NAME_FORMAT DesiredNameFormat, LPWSTR lpTranslatedName, PULONG nSize)
Definition: sspi.c:1143
BOOLEAN WINAPI GetComputerObjectNameW(EXTENDED_NAME_FORMAT NameFormat, LPWSTR lpNameBuffer, PULONG nSize)
Definition: sspi.c:928
BOOLEAN WINAPI GetUserNameExA(EXTENDED_NAME_FORMAT NameFormat, LPSTR lpNameBuffer, PULONG nSize)
Definition: sspi.c:1044
BOOLEAN WINAPI GetUserNameExW(EXTENDED_NAME_FORMAT NameFormat, LPWSTR lpNameBuffer, PULONG nSize)
Definition: sspi.c:1079
uint32_t * PULONG
Definition: typedefs.h:59
#define WINAPI
Definition: msvc.h:6
const char * LPCSTR
Definition: xmlstorage.h:183
char * LPSTR
Definition: xmlstorage.h:182
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185