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 */ 41