20 #ifndef WINPR_DSPARSE_H
21 #define WINPR_DSPARSE_H
23 #if defined(_WIN32) && !defined(_UWP)
25 #include <winpr/windows.h>
26 #include <winpr/rpc.h>
32 #include <winpr/crt.h>
33 #include <winpr/winpr.h>
34 #include <winpr/wtypes.h>
35 #include <winpr/error.h>
39 DS_NAME_NO_FLAGS = 0x0,
40 DS_NAME_FLAG_SYNTACTICAL_ONLY = 0x1,
41 DS_NAME_FLAG_EVAL_AT_DC = 0x2,
42 DS_NAME_FLAG_GCVERIFY = 0x4,
43 DS_NAME_FLAG_TRUST_REFERRAL = 0x8
49 DS_FQDN_1779_NAME = 1,
50 DS_NT4_ACCOUNT_NAME = 2,
52 DS_UNIQUE_ID_NAME = 6,
53 DS_CANONICAL_NAME = 7,
54 DS_USER_PRINCIPAL_NAME = 8,
55 DS_CANONICAL_NAME_EX = 9,
56 DS_SERVICE_PRINCIPAL_NAME = 10,
57 DS_SID_OR_SID_HISTORY_NAME = 11,
58 DS_DNS_DOMAIN_NAME = 12
64 DS_NAME_ERROR_RESOLVING = 1,
65 DS_NAME_ERROR_NOT_FOUND = 2,
66 DS_NAME_ERROR_NOT_UNIQUE = 3,
67 DS_NAME_ERROR_NO_MAPPING = 4,
68 DS_NAME_ERROR_DOMAIN_ONLY = 5,
69 DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING = 6,
70 DS_NAME_ERROR_TRUST_REFERRAL = 7
102 #define DsMakeSpn DsMakeSpnW
104 #define DsMakeSpn DsMakeSpnA
107 WINPR_API DWORD DsMakeSpnW(LPCWSTR ServiceClass, LPCWSTR ServiceName, LPCWSTR InstanceName,
108 USHORT InstancePort, LPCWSTR Referrer, DWORD* pcSpnLength,
111 WINPR_API DWORD DsMakeSpnA(LPCSTR ServiceClass, LPCSTR ServiceName, LPCSTR InstanceName,
112 USHORT InstancePort, LPCSTR Referrer, DWORD* pcSpnLength,
120 #define DsMakeSpn DsMakeSpnW
122 #define DsMakeSpn DsMakeSpnA