#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "winuser.h"
#include "ntdsapi.h"
#include "wine/debug.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (ntdsapi) |
|
BOOL WINAPI | DllMain (HINSTANCE hinst, DWORD reason, LPVOID reserved) |
|
DWORD WINAPI | DsBindA (LPCSTR controller, LPCSTR domain, HANDLE *handle) |
|
DWORD WINAPI | DsBindW (LPCWSTR controller, LPCWSTR domain, HANDLE *handle) |
|
DWORD WINAPI | DsMakeSpnW (LPCWSTR svc_class, LPCWSTR svc_name, LPCWSTR inst_name, USHORT inst_port, LPCWSTR ref, DWORD *spn_length, LPWSTR spn) |
|
DWORD WINAPI | DsMakeSpnA (LPCSTR svc_class, LPCSTR svc_name, LPCSTR inst_name, USHORT inst_port, LPCSTR ref, DWORD *spn_length, LPSTR spn) |
|
DWORD WINAPI | DsGetSpnA (DS_SPN_NAME_TYPE ServType, LPCSTR Servlass, LPCSTR ServName, USHORT InstPort, USHORT nInstanceNames, LPCSTR *pInstanceNames, const USHORT *pInstancePorts, DWORD *pSpn, LPSTR **pszSpn) |
|
DWORD WINAPI | DsServerRegisterSpnA (DS_SPN_WRITE_OP operation, LPCSTR ServiceClass, LPCSTR UserObjectDN) |
|
DWORD WINAPI | DsServerRegisterSpnW (DS_SPN_WRITE_OP operation, LPCWSTR ServiceClass, LPCWSTR UserObjectDN) |
|
DWORD WINAPI | DsClientMakeSpnForTargetServerW (LPCWSTR class, LPCWSTR name, DWORD *buflen, LPWSTR buf) |
|
DWORD WINAPI | DsCrackNamesA (HANDLE handle, DS_NAME_FLAGS flags, DS_NAME_FORMAT offered, DS_NAME_FORMAT desired, DWORD num, const CHAR **names, PDS_NAME_RESULTA *result) |
|
DWORD WINAPI | DsCrackNamesW (HANDLE handle, DS_NAME_FLAGS flags, DS_NAME_FORMAT offered, DS_NAME_FORMAT desired, DWORD num, const WCHAR **names, PDS_NAME_RESULTW *result) |
|
◆ DllMain()
Definition at line 33 of file ntdsapi.c.
34{
36
38 {
39 case DLL_WINE_PREATTACH:
41
44 break;
45 }
47}
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
#define DLL_PROCESS_ATTACH
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
◆ DsBindA()
Definition at line 52 of file ntdsapi.c.
53 {
56}
#define ERROR_CALL_NOT_IMPLEMENTED
◆ DsBindW()
◆ DsClientMakeSpnForTargetServerW()
Definition at line 209 of file ntdsapi.c.
210{
213
215
217
220 {
223 }
225
231
233}
#define ERROR_INVALID_PARAMETER
GLenum GLuint GLenum GLsizei const GLchar * buf
#define memcpy(s1, s2, n)
#define ERROR_BUFFER_OVERFLOW
Referenced by test_DsClientMakeSpnForTargetServer().
◆ DsCrackNamesA()
◆ DsCrackNamesW()
◆ DsGetSpnA()
Definition at line 174 of file ntdsapi.c.
178{
179 FIXME(
"(%d,%s,%s,%d,%d,%p,%p,%p,%p): stub!\n", ServType,
181 nInstanceNames, pInstanceNames, pInstancePorts, pSpn, pszSpn);
182
184}
◆ DsMakeSpnA()
◆ DsMakeSpnW()
Definition at line 70 of file ntdsapi.c.
73{
77
81
82 if (!svc_class || !svc_name)
84
85 new_spn_length =
lstrlenW(svc_class) + 1 + 1 ;
86 if (inst_name)
87 new_spn_length +=
lstrlenW(inst_name);
88 else
89 new_spn_length +=
lstrlenW(svc_name);
90 if (inst_port)
91 {
93 new_spn_length += 1 ;
94 do
95 {
97 new_spn_length++;
99 }
100 if (inst_name)
101 new_spn_length += 1 +
lstrlenW(svc_name);
102
103 if (*spn_length < new_spn_length)
104 {
105 *spn_length = new_spn_length;
107 }
108 *spn_length = new_spn_length;
109
116 if (inst_name)
117 {
122 }
123 else
124 {
129 }
130
131 if (inst_port)
132 {
133 static const WCHAR percentU[] = {
'%',
'u',0};
138 }
139
140 if (inst_name)
141 {
148 }
149
151
153}
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)
Referenced by test_DsMakeSpn().
◆ DsServerRegisterSpnA()
◆ DsServerRegisterSpnW()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
ntdsapi |
| ) |
|