[1046] | 1 | #ifndef _SECEXT_H
|
---|
| 2 | #define _SECEXT_H
|
---|
| 3 |
|
---|
| 4 | #if __GNUC__ >= 3
|
---|
| 5 | #pragma GCC system_header
|
---|
| 6 | #endif
|
---|
| 7 |
|
---|
| 8 | #ifdef __cplusplus
|
---|
| 9 | extern "C" {
|
---|
| 10 | #endif
|
---|
| 11 |
|
---|
| 12 | #ifndef RC_INVOKED
|
---|
| 13 | #if (_WIN32_WINNT >= 0x0500)
|
---|
| 14 | typedef enum
|
---|
| 15 | {
|
---|
| 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;
|
---|
| 27 |
|
---|
| 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);
|
---|
| 34 |
|
---|
| 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
|
---|
| 44 |
|
---|
| 45 | #endif /* ! RC_INVOKED */
|
---|
| 46 | #endif /* _WIN32_WINNT >= 0x0500 */
|
---|
| 47 |
|
---|
| 48 | #ifdef __cplusplus
|
---|
| 49 | }
|
---|
| 50 | #endif
|
---|
| 51 |
|
---|
| 52 | #endif /* ! _SECEXT_H */
|
---|