#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) |
| |
| 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) |
| |
◆ DsBindA()
Definition at line 33 of file ntdsapi.c.
34 {
37}
#define ERROR_CALL_NOT_IMPLEMENTED
◆ DsBindW()
◆ DsClientMakeSpnForTargetServerW()
Definition at line 189 of file ntdsapi.c.
190{
193
195
197
200 {
203 }
205
211
213}
#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 154 of file ntdsapi.c.
158{
159 FIXME(
"(%d,%s,%s,%d,%d,%p,%p,%p,%p): stub!\n", ServType,
161 nInstanceNames, pInstanceNames, pInstancePorts, pSpn, pszSpn);
162
164}
◆ DsMakeSpnA()
◆ DsMakeSpnW()
Definition at line 51 of file ntdsapi.c.
54{
58
62
63 if (!svc_class || !svc_name)
65
66 new_spn_length =
lstrlenW(svc_class) + 1 + 1 ;
67 if (inst_name)
68 new_spn_length +=
lstrlenW(inst_name);
69 else
70 new_spn_length +=
lstrlenW(svc_name);
71 if (inst_port)
72 {
74 new_spn_length += 1 ;
75 do
76 {
78 new_spn_length++;
80 }
81 if (inst_name)
82 new_spn_length += 1 +
lstrlenW(svc_name);
83
84 if (*spn_length < new_spn_length)
85 {
86 *spn_length = new_spn_length;
88 }
89 *spn_length = new_spn_length;
90
97 if (inst_name)
98 {
103 }
104 else
105 {
110 }
111
112 if (inst_port)
113 {
118 }
119
120 if (inst_name)
121 {
128 }
129
131
133}
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 |
| ) |
|