source: Daodan/MinGW/include/secext.h@ 1111

Last change on this file since 1111 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 1.3 KB
Line 
1#ifndef _SECEXT_H
2#define _SECEXT_H
3
4#if __GNUC__ >= 3
5#pragma GCC system_header
6#endif
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#ifndef RC_INVOKED
13#if (_WIN32_WINNT >= 0x0500)
14typedef 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
28BOOLEAN WINAPI GetComputerObjectNameA(EXTENDED_NAME_FORMAT,LPSTR,PULONG);
29BOOLEAN WINAPI GetComputerObjectNameW(EXTENDED_NAME_FORMAT,LPWSTR,PULONG);
30BOOLEAN WINAPI GetUserNameExA(EXTENDED_NAME_FORMAT,LPSTR,PULONG);
31BOOLEAN WINAPI GetUserNameExW(EXTENDED_NAME_FORMAT,LPWSTR,PULONG);
32BOOLEAN WINAPI TranslateNameA(LPCSTR,EXTENDED_NAME_FORMAT,EXTENDED_NAME_FORMAT,LPSTR,PULONG);
33BOOLEAN 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 */
Note: See TracBrowser for help on using the repository browser.