#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#ifndef __REACTOS__
40 case DLL_WINE_PREATTACH:
42#endif
43
46 break;
47 }
49}
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
#define DLL_PROCESS_ATTACH
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
◆ DsBindA()
Definition at line 54 of file ntdsapi.c.
55 {
58}
#define ERROR_CALL_NOT_IMPLEMENTED
◆ DsBindW()
◆ DsClientMakeSpnForTargetServerW()
Definition at line 211 of file ntdsapi.c.
212{
215
217
219
222 {
225 }
227
233
235}
#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 176 of file ntdsapi.c.
180{
181 FIXME(
"(%d,%s,%s,%d,%d,%p,%p,%p,%p): stub!\n", ServType,
183 nInstanceNames, pInstanceNames, pInstancePorts, pSpn, pszSpn);
184
186}
◆ DsMakeSpnA()
◆ DsMakeSpnW()
Definition at line 72 of file ntdsapi.c.
75{
79
83
84 if (!svc_class || !svc_name)
86
87 new_spn_length =
lstrlenW(svc_class) + 1 + 1 ;
88 if (inst_name)
89 new_spn_length +=
lstrlenW(inst_name);
90 else
91 new_spn_length +=
lstrlenW(svc_name);
92 if (inst_port)
93 {
95 new_spn_length += 1 ;
96 do
97 {
99 new_spn_length++;
101 }
102 if (inst_name)
103 new_spn_length += 1 +
lstrlenW(svc_name);
104
105 if (*spn_length < new_spn_length)
106 {
107 *spn_length = new_spn_length;
109 }
110 *spn_length = new_spn_length;
111
118 if (inst_name)
119 {
124 }
125 else
126 {
131 }
132
133 if (inst_port)
134 {
135 static const WCHAR percentU[] = {
'%',
'u',0};
140 }
141
142 if (inst_name)
143 {
150 }
151
153
155}
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 |
| ) |
|