Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / include / secext.h
blob15457e0474346b2f8959f9f030bc5f2fcb47e265
1 #ifndef _SECEXT_H
2 #define _SECEXT_H
4 #if __GNUC__ >= 3
5 #pragma GCC system_header
6 #endif
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
12 #ifndef RC_INVOKED
13 #if (_WIN32_WINNT >= 0x0500)
14 typedef enum
16 NameUnknown = 0,
17 NameFullyQualifiedDN = 1,
18 NameSamCompatible = 2,
19 NameDisplay = 3,
20 NameUniqueId = 6,
21 NameCanonical = 7,
22 NameUserPrincipal = 8,
23 NameCanonicalEx = 9,
24 NameServicePrincipal = 10,
25 NameDnsDomain = 12
26 } EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT;
28 BOOLEAN WINAPI GetComputerObjectNameA(EXTENDED_NAME_FORMAT,LPSTR,PULONG);
29 BOOLEAN WINAPI GetComputerObjectNameW(EXTENDED_NAME_FORMAT,LPWSTR,PULONG);
30 BOOLEAN WINAPI GetUserNameExA(EXTENDED_NAME_FORMAT,LPSTR,PULONG);
31 BOOLEAN WINAPI GetUserNameExW(EXTENDED_NAME_FORMAT,LPWSTR,PULONG);
32 BOOLEAN WINAPI TranslateNameA(LPCSTR,EXTENDED_NAME_FORMAT,EXTENDED_NAME_FORMAT,LPSTR,PULONG);
33 BOOLEAN WINAPI TranslateNameW(LPCWSTR,EXTENDED_NAME_FORMAT,EXTENDED_NAME_FORMAT,LPWSTR,PULONG);
35 #ifdef UNICODE
36 #define GetComputerObjectName GetComputerObjectNameW
37 #define GetUserNameEx GetUserNameExW
38 #define TranslateName TranslateNameW
39 #else
40 #define GetComputerObjectName GetComputerObjectNameA
41 #define GetUserNameEx GetUserNameExA
42 #define TranslateName TranslateNameA
43 #endif
45 #endif /* ! RC_INVOKED */
46 #endif /* _WIN32_WINNT >= 0x0500 */
48 #ifdef __cplusplus
50 #endif
52 #endif /* ! _SECEXT_H */