1 #ifndef _SECEXT_H 2 #define _SECEXT_H 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 #ifndef RC_INVOKED 9 #if (_WIN32_WINNT >= 0x0500) 10 11 typedef enum 12 { 13 NameUnknown = 0, 14 NameFullyQualifiedDN = 1, 15 NameSamCompatible = 2, 16 NameDisplay = 3, 17 NameUniqueId = 6, 18 NameCanonical = 7, 19 NameUserPrincipal = 8, 20 NameCanonicalEx = 9, 21 NameServicePrincipal = 10, 22 NameDnsDomain = 12 23 } EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT; 24 25 BOOLEAN WINAPI GetComputerObjectNameA(EXTENDED_NAME_FORMAT,LPSTR,PULONG); 26 BOOLEAN WINAPI GetComputerObjectNameW(EXTENDED_NAME_FORMAT,LPWSTR,PULONG); 27 BOOLEAN WINAPI GetUserNameExA(EXTENDED_NAME_FORMAT,LPSTR,PULONG); 28 BOOLEAN WINAPI GetUserNameExW(EXTENDED_NAME_FORMAT,LPWSTR,PULONG); 29 BOOLEAN WINAPI TranslateNameA(LPCSTR,EXTENDED_NAME_FORMAT,EXTENDED_NAME_FORMAT,LPSTR,PULONG); 30 BOOLEAN WINAPI TranslateNameW(LPCWSTR,EXTENDED_NAME_FORMAT,EXTENDED_NAME_FORMAT,LPWSTR,PULONG); 31 32 #ifdef UNICODE 33 #define GetComputerObjectName GetComputerObjectNameW 34 #define GetUserNameEx GetUserNameExW 35 #define TranslateName TranslateNameW 36 #else 37 #define GetComputerObjectName GetComputerObjectNameA 38 #define GetUserNameEx GetUserNameExA 39 #define TranslateName TranslateNameA 40 #endif 41 42 #endif /* ! RC_INVOKED */ 43 #endif /* _WIN32_WINNT >= 0x0500 */ 44 45 #ifdef __cplusplus 46 } // extern "C" 47 #endif 48 49 #endif /* ! _SECEXT_H */ 50