ReactOS  0.4.14-dev-297-g23e575c
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)
6 typedef 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 
20 BOOLEAN WINAPI GetComputerObjectNameA(EXTENDED_NAME_FORMAT,LPSTR,PULONG);
21 BOOLEAN WINAPI GetComputerObjectNameW(EXTENDED_NAME_FORMAT,LPWSTR,PULONG);
22 BOOLEAN WINAPI GetUserNameExA(EXTENDED_NAME_FORMAT,LPSTR,PULONG);
23 BOOLEAN WINAPI GetUserNameExW(EXTENDED_NAME_FORMAT,LPWSTR,PULONG);
24 BOOLEAN WINAPI TranslateNameA(LPCSTR,EXTENDED_NAME_FORMAT,EXTENDED_NAME_FORMAT,LPSTR,PULONG);
25 BOOLEAN 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 */
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
BOOLEAN WINAPI TranslateNameW(LPCWSTR lpAccountName, EXTENDED_NAME_FORMAT AccountNameFormat, EXTENDED_NAME_FORMAT DesiredNameFormat, LPWSTR lpTranslatedName, PULONG nSize)
Definition: sspi.c:1143
BOOLEAN WINAPI GetUserNameExA(EXTENDED_NAME_FORMAT NameFormat, LPSTR lpNameBuffer, PULONG nSize)
Definition: sspi.c:1044
char * LPSTR
Definition: xmlstorage.h:182
unsigned char BOOLEAN
const char * LPCSTR
Definition: xmlstorage.h:183
#define WINAPI
Definition: msvc.h:8
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
unsigned int * PULONG
Definition: retypes.h:1
BOOLEAN WINAPI GetComputerObjectNameW(EXTENDED_NAME_FORMAT NameFormat, LPWSTR lpNameBuffer, PULONG nSize)
Definition: sspi.c:928
BOOLEAN WINAPI GetUserNameExW(EXTENDED_NAME_FORMAT NameFormat, LPWSTR lpNameBuffer, PULONG nSize)
Definition: sspi.c:1079
WCHAR * LPWSTR
Definition: xmlstorage.h:184