ReactOS  0.4.13-dev-92-gf251225
netlogon.c File Reference
#include "netapi32.h"
#include <winsock2.h>
#include <rpc.h>
#include <dsrole.h>
#include <dsgetdc.h>
#include "netlogon_c.h"
Include dependency graph for netlogon.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (netapi32)
 
DWORD WINAPI DsGetDcNameWithAccountA (_In_opt_ LPCSTR ComputerName, _In_opt_ LPCSTR AccountName, _In_ ULONG AccountControlBits, _In_ LPCSTR DomainName, _In_ GUID *DomainGuid, _In_ LPCSTR SiteName, _In_ ULONG Flags, _Out_ PDOMAIN_CONTROLLER_INFOA *DomainControllerInfo)
 
DWORD WINAPI DsGetDcNameWithAccountW (_In_ LPCWSTR ComputerName, _In_opt_ LPCWSTR AccountName, _In_ ULONG AccountControlBits, _In_ LPCWSTR DomainName, _In_ GUID *DomainGuid, _In_ LPCWSTR SiteName, _In_ ULONG Flags, _Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
 
handle_t __RPC_USER LOGONSRV_HANDLE_bind (LOGONSRV_HANDLE pszSystemName)
 
void __RPC_USER LOGONSRV_HANDLE_unbind (LOGONSRV_HANDLE pszSystemName, handle_t hBinding)
 
DWORD WINAPI DsAddressToSiteNamesA (_In_opt_ LPCSTR ComputerName, _In_ DWORD EntryCount, _In_ PSOCKET_ADDRESS SocketAddresses, _Out_ LPSTR **SiteNames)
 
DWORD WINAPI DsAddressToSiteNamesW (_In_opt_ LPCWSTR ComputerName, _In_ DWORD EntryCount, _In_ PSOCKET_ADDRESS SocketAddresses, _Out_ LPWSTR **SiteNames)
 
DWORD WINAPI DsAddressToSiteNamesExA (_In_opt_ LPCSTR ComputerName, _In_ DWORD EntryCount, _In_ PSOCKET_ADDRESS SocketAddresses, _Out_ LPSTR **SiteNames, _Out_ LPSTR **SubnetNames)
 
DWORD WINAPI DsAddressToSiteNamesExW (_In_opt_ LPCWSTR ComputerName, _In_ DWORD EntryCount, _In_ PSOCKET_ADDRESS SocketAddresses, _Out_ LPWSTR **SiteNames, _Out_ LPWSTR **SubnetNames)
 
DWORD WINAPI DsDeregisterDnsHostRecordsA (_In_opt_ LPSTR ServerName, _In_opt_ LPSTR DnsDomainName, _In_opt_ GUID *DomainGuid, _In_opt_ GUID *DsaGuid, _In_ LPSTR DnsHostName)
 
DWORD WINAPI DsDeregisterDnsHostRecordsW (_In_opt_ LPWSTR ServerName, _In_opt_ LPWSTR DnsDomainName, _In_opt_ GUID *DomainGuid, _In_opt_ GUID *DsaGuid, _In_ LPWSTR DnsHostName)
 
DWORD WINAPI DsEnumerateDomainTrustsA (_In_opt_ LPSTR ServerName, _In_ ULONG Flags, _Out_ PDS_DOMAIN_TRUSTSA *Domains, _Out_ PULONG DomainCount)
 
DWORD WINAPI DsEnumerateDomainTrustsW (_In_opt_ LPWSTR ServerName, _In_ ULONG Flags, _Out_ PDS_DOMAIN_TRUSTSW *Domains, _Out_ PULONG DomainCount)
 
DWORD WINAPI DsGetDcNameA (_In_opt_ LPCSTR ComputerName, _In_ LPCSTR DomainName, _In_ GUID *DomainGuid, _In_ LPCSTR SiteName, _In_ ULONG Flags, _Out_ PDOMAIN_CONTROLLER_INFOA *DomainControllerInfo)
 
DWORD WINAPI DsGetDcNameW (_In_opt_ LPCWSTR ComputerName, _In_ LPCWSTR DomainName, _In_ GUID *DomainGuid, _In_ LPCWSTR SiteName, _In_ ULONG Flags, _Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
 
DWORD WINAPI DsGetDcNameWithAccountW (_In_opt_ LPCWSTR ComputerName, _In_opt_ LPCWSTR AccountName, _In_ ULONG AccountControlBits, _In_ LPCWSTR DomainName, _In_ GUID *DomainGuid, _In_ LPCWSTR SiteName, _In_ ULONG Flags, _Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
 
DWORD WINAPI DsGetDcSiteCoverageA (_In_opt_ LPCSTR ServerName, _Out_ PULONG EntryCount, _Out_ LPSTR **SiteNames)
 
DWORD WINAPI DsGetDcSiteCoverageW (_In_opt_ LPCWSTR ServerName, _Out_ PULONG EntryCount, _Out_ LPWSTR **SiteNames)
 
DWORD WINAPI DsGetForestTrustInformationW (_In_opt_ LPCWSTR ServerName, _In_opt_ LPCWSTR TrustedDomainName, _In_ DWORD Flags, _Out_ PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo)
 
DWORD WINAPI DsGetSiteNameA (_In_ LPCSTR ComputerName, _Out_ LPSTR *SiteName)
 
DWORD WINAPI DsGetSiteNameW (_In_ LPCWSTR ComputerName, _Out_ LPWSTR *SiteName)
 
DWORD WINAPI DsMergeForestTrustInformationW (_In_ LPCWSTR DomainName, _In_ PLSA_FOREST_TRUST_INFORMATION NewForestTrustInfo, _In_opt_ PLSA_FOREST_TRUST_INFORMATION OldForestTrustInfo, _Out_ PLSA_FOREST_TRUST_INFORMATION *ForestTrustInfo)
 
DWORD WINAPI DsValidateSubnetNameA (_In_ LPCSTR SubnetName)
 
DWORD WINAPI DsValidateSubnetNameW (_In_ LPCWSTR SubnetName)
 
NTSTATUS WINAPI NetEnumerateTrustedDomains (_In_ LPWSTR ServerName, _Out_ LPWSTR *DomainNames)
 
NET_API_STATUS WINAPI NetGetAnyDCName (_In_opt_ LPCWSTR ServerName, _In_opt_ LPCWSTR DomainName, _Out_ LPBYTE *BufPtr)
 
NET_API_STATUS WINAPI NetGetDCName (_In_ LPCWSTR servername, _In_ LPCWSTR domainname, _Out_ LPBYTE *bufptr)
 
NET_API_STATUS WINAPI NetLogonGetTimeServiceParentDomain (_In_ LPWSTR ServerName, _Out_ LPWSTR *DomainName, _Out_ LPBOOL PdcSameSite)
 
NTSTATUS WINAPI NetLogonSetServiceBits (_In_ LPWSTR ServerName, _In_ DWORD ServiceBitsOfInterest, _In_ DWORD ServiceBits)
 

Function Documentation

◆ DsAddressToSiteNamesA()

DWORD WINAPI DsAddressToSiteNamesA ( _In_opt_ LPCSTR  ComputerName,
_In_ DWORD  EntryCount,
_In_ PSOCKET_ADDRESS  SocketAddresses,
_Out_ LPSTR **  SiteNames 
)

Definition at line 109 of file netlogon.c.

114 {
115  FIXME("DsAddressToSiteNamesA(%s, %lu, %p, %p)\n",
116  debugstr_a(ComputerName), EntryCount, SocketAddresses, SiteNames);
118 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_a
Definition: kernel32.h:31
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ DsAddressToSiteNamesExA()

DWORD WINAPI DsAddressToSiteNamesExA ( _In_opt_ LPCSTR  ComputerName,
_In_ DWORD  EntryCount,
_In_ PSOCKET_ADDRESS  SocketAddresses,
_Out_ LPSTR **  SiteNames,
_Out_ LPSTR **  SubnetNames 
)

Definition at line 195 of file netlogon.c.

201 {
202  FIXME("DsAddressToSiteNamesExA(%s, %lu, %p, %p, %p)\n",
203  debugstr_a(ComputerName), EntryCount, SocketAddresses,
204  SiteNames, SubnetNames);
206 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_a
Definition: kernel32.h:31
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ DsAddressToSiteNamesExW()

DWORD WINAPI DsAddressToSiteNamesExW ( _In_opt_ LPCWSTR  ComputerName,
_In_ DWORD  EntryCount,
_In_ PSOCKET_ADDRESS  SocketAddresses,
_Out_ LPWSTR **  SiteNames,
_Out_ LPWSTR **  SubnetNames 
)

Definition at line 211 of file netlogon.c.

217 {
218  PNL_SITE_NAME_EX_ARRAY SiteNameArray = NULL;
219  PWSTR *SiteNamesBuffer = NULL, *SubnetNamesBuffer = NULL, Ptr;
220  ULONG SiteNameBufferSize, SubnetNameBufferSize, i;
222 
223  TRACE("DsAddressToSiteNamesExW(%s, %lu, %p, %p, %p)\n",
224  debugstr_w(ComputerName), EntryCount, SocketAddresses,
225  SiteNames, SubnetNames);
226 
227  if (EntryCount == 0)
229 
230  *SiteNames = NULL;
231  *SubnetNames = NULL;
232 
234  {
235  status = DsrAddressToSiteNamesExW((PWSTR)ComputerName,
236  EntryCount,
237  (PNL_SOCKET_ADDRESS)SocketAddresses,
238  &SiteNameArray);
239  if (status == NERR_Success)
240  {
241  if (SiteNameArray->EntryCount == 0)
242  {
244  }
245  else
246  {
247  SiteNameBufferSize = SiteNameArray->EntryCount * sizeof(PWSTR);
248  SubnetNameBufferSize = SiteNameArray->EntryCount * sizeof(PWSTR);
249  for (i = 0; i < SiteNameArray->EntryCount; i++)
250  {
251  SiteNameBufferSize += SiteNameArray->SiteNames[i].Length + sizeof(WCHAR);
252  SubnetNameBufferSize += SiteNameArray->SubnetNames[i].Length + sizeof(WCHAR);
253  }
254 
255  status = NetApiBufferAllocate(SiteNameBufferSize, (PVOID*)&SiteNamesBuffer);
256  if (status == NERR_Success)
257  {
258  ZeroMemory(SiteNamesBuffer, SiteNameBufferSize);
259 
260  Ptr = (PWSTR)((ULONG_PTR)SiteNamesBuffer + SiteNameArray->EntryCount * sizeof(PWSTR));
261  for (i = 0; i < SiteNameArray->EntryCount; i++)
262  {
263  SiteNamesBuffer[i] = Ptr;
264  CopyMemory(Ptr,
265  SiteNameArray->SiteNames[i].Buffer,
266  SiteNameArray->SiteNames[i].Length);
267 
268  Ptr = (PWSTR)((ULONG_PTR)Ptr + SiteNameArray->SiteNames[i].Length + sizeof(WCHAR));
269  }
270 
271  *SiteNames = SiteNamesBuffer;
272  }
273 
274  status = NetApiBufferAllocate(SubnetNameBufferSize, (PVOID*)&SubnetNamesBuffer);
275  if (status == NERR_Success)
276  {
277  ZeroMemory(SubnetNamesBuffer, SubnetNameBufferSize);
278 
279  Ptr = (PWSTR)((ULONG_PTR)SubnetNamesBuffer + SiteNameArray->EntryCount * sizeof(PWSTR));
280  for (i = 0; i < SiteNameArray->EntryCount; i++)
281  {
282  SubnetNamesBuffer[i] = Ptr;
283  CopyMemory(Ptr,
284  SiteNameArray->SubnetNames[i].Buffer,
285  SiteNameArray->SubnetNames[i].Length);
286 
287  Ptr = (PWSTR)((ULONG_PTR)Ptr + SiteNameArray->SubnetNames[i].Length + sizeof(WCHAR));
288  }
289 
290  *SubnetNames = SubnetNamesBuffer;
291  }
292  }
293 
294  MIDL_user_free(SiteNameArray);
295  }
296  }
298  {
300  }
301  RpcEndExcept;
302 
303  return status;
304 }
NET_API_STATUS WINAPI NetApiBufferAllocate(DWORD ByteCount, LPVOID *Buffer)
Definition: apibuf.c:28
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
Definition: fsrtlfuncs.h:898
#define ZeroMemory
Definition: winbase.h:1635
#define NERR_Success
Definition: lmerr.h:5
uint32_t ULONG_PTR
Definition: typedefs.h:63
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
PRPC_UNICODE_STRING SubnetNames
Definition: netlogon.idl:838
PRPC_UNICODE_STRING SiteNames
Definition: netlogon.idl:837
#define debugstr_w
Definition: kernel32.h:32
#define RpcTryExcept
Definition: rpc.h:126
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
smooth NULL
Definition: ftsmooth.c:416
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define CopyMemory
Definition: winbase.h:1633
unsigned short Length
Definition: msv1_0.h:53
unsigned int ULONG
Definition: retypes.h:1
void __RPC_USER MIDL_user_free(void *p)
Definition: irotp.c:376
static SERVICE_STATUS status
Definition: service.c:31
#define RpcExcept(expr)
Definition: rpc.h:127
wchar_t * Buffer
Definition: msv1_0.h:55
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:741
Definition: ps.c:97

◆ DsAddressToSiteNamesW()

DWORD WINAPI DsAddressToSiteNamesW ( _In_opt_ LPCWSTR  ComputerName,
_In_ DWORD  EntryCount,
_In_ PSOCKET_ADDRESS  SocketAddresses,
_Out_ LPWSTR **  SiteNames 
)

Definition at line 123 of file netlogon.c.

128 {
129  PNL_SITE_NAME_ARRAY SiteNameArray = NULL;
130  PWSTR *SiteNamesBuffer = NULL, Ptr;
131  ULONG BufferSize, i;
133 
134  TRACE("DsAddressToSiteNamesW(%s, %lu, %p, %p)\n",
135  debugstr_w(ComputerName), EntryCount, SocketAddresses, SiteNames);
136 
137  if (EntryCount == 0)
139 
140  *SiteNames = NULL;
141 
143  {
144  status = DsrAddressToSiteNamesW((PWSTR)ComputerName,
145  EntryCount,
146  (PNL_SOCKET_ADDRESS)SocketAddresses,
147  &SiteNameArray);
148  if (status == NERR_Success)
149  {
150  if (SiteNameArray->EntryCount == 0)
151  {
153  }
154  else
155  {
156  BufferSize = SiteNameArray->EntryCount * sizeof(PWSTR);
157  for (i = 0; i < SiteNameArray->EntryCount; i++)
158  BufferSize += SiteNameArray->SiteNames[i].Length + sizeof(WCHAR);
159 
160  status = NetApiBufferAllocate(BufferSize, (PVOID*)&SiteNamesBuffer);
161  if (status == NERR_Success)
162  {
163  ZeroMemory(SiteNamesBuffer, BufferSize);
164 
165  Ptr = (PWSTR)((ULONG_PTR)SiteNamesBuffer + SiteNameArray->EntryCount * sizeof(PWSTR));
166  for (i = 0; i < SiteNameArray->EntryCount; i++)
167  {
168  SiteNamesBuffer[i] = Ptr;
169  CopyMemory(Ptr,
170  SiteNameArray->SiteNames[i].Buffer,
171  SiteNameArray->SiteNames[i].Length);
172 
173  Ptr = (PWSTR)((ULONG_PTR)Ptr + SiteNameArray->SiteNames[i].Length + sizeof(WCHAR));
174  }
175 
176  *SiteNames = SiteNamesBuffer;
177  }
178  }
179 
180  MIDL_user_free(SiteNameArray);
181  }
182  }
184  {
186  }
187  RpcEndExcept;
188 
189  return status;
190 }
NET_API_STATUS WINAPI NetApiBufferAllocate(DWORD ByteCount, LPVOID *Buffer)
Definition: apibuf.c:28
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
Definition: fsrtlfuncs.h:898
#define ZeroMemory
Definition: winbase.h:1635
#define NERR_Success
Definition: lmerr.h:5
uint32_t ULONG_PTR
Definition: typedefs.h:63
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define debugstr_w
Definition: kernel32.h:32
#define RpcTryExcept
Definition: rpc.h:126
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
smooth NULL
Definition: ftsmooth.c:416
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define CopyMemory
Definition: winbase.h:1633
#define BufferSize
Definition: classpnp.h:419
unsigned short Length
Definition: msv1_0.h:53
unsigned int ULONG
Definition: retypes.h:1
PRPC_UNICODE_STRING SiteNames
Definition: netlogon.idl:811
void __RPC_USER MIDL_user_free(void *p)
Definition: irotp.c:376
static SERVICE_STATUS status
Definition: service.c:31
#define RpcExcept(expr)
Definition: rpc.h:127
wchar_t * Buffer
Definition: msv1_0.h:55
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:741
Definition: ps.c:97

◆ DsDeregisterDnsHostRecordsA()

DWORD WINAPI DsDeregisterDnsHostRecordsA ( _In_opt_ LPSTR  ServerName,
_In_opt_ LPSTR  DnsDomainName,
_In_opt_ GUID DomainGuid,
_In_opt_ GUID DsaGuid,
_In_ LPSTR  DnsHostName 
)

Definition at line 309 of file netlogon.c.

315 {
316  FIXME("DsDeregisterDnsHostRecordsA(%s, %s, %p, %p, %s)\n",
317  debugstr_a(ServerName), debugstr_a(DnsDomainName),
318  DomainGuid, DsaGuid, debugstr_a(DnsHostName));
320 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_a
Definition: kernel32.h:31
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ DsDeregisterDnsHostRecordsW()

DWORD WINAPI DsDeregisterDnsHostRecordsW ( _In_opt_ LPWSTR  ServerName,
_In_opt_ LPWSTR  DnsDomainName,
_In_opt_ GUID DomainGuid,
_In_opt_ GUID DsaGuid,
_In_ LPWSTR  DnsHostName 
)

Definition at line 325 of file netlogon.c.

331 {
333 
334  TRACE("DsDeregisterDnsHostRecordsW(%s, %s, %p, %p, %s)\n",
335  debugstr_w(ServerName), debugstr_w(DnsDomainName),
336  DomainGuid, DsaGuid, debugstr_w(DnsHostName));
337 
339  {
340  status = DsrDeregisterDnsHostRecords(ServerName,
341  DnsDomainName,
342  DomainGuid,
343  DsaGuid,
344  DnsHostName);
345  }
347  {
349  }
350  RpcEndExcept;
351 
352  return status;
353 }
#define RpcEndExcept
Definition: rpc.h:128
#define debugstr_w
Definition: kernel32.h:32
#define RpcTryExcept
Definition: rpc.h:126
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
static SERVICE_STATUS status
Definition: service.c:31
#define RpcExcept(expr)
Definition: rpc.h:127
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:741
Definition: ps.c:97

◆ DsEnumerateDomainTrustsA()

DWORD WINAPI DsEnumerateDomainTrustsA ( _In_opt_ LPSTR  ServerName,
_In_ ULONG  Flags,
_Out_ PDS_DOMAIN_TRUSTSA Domains,
_Out_ PULONG  DomainCount 
)

Definition at line 358 of file netlogon.c.

363 {
364  FIXME("DsEnumerateDomainTrustsA(%s, %x, %p, %p)\n",
365  debugstr_a(ServerName), Flags, Domains, DomainCount);
367 }
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_a
Definition: kernel32.h:31
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ DsEnumerateDomainTrustsW()

DWORD WINAPI DsEnumerateDomainTrustsW ( _In_opt_ LPWSTR  ServerName,
_In_ ULONG  Flags,
_Out_ PDS_DOMAIN_TRUSTSW Domains,
_Out_ PULONG  DomainCount 
)

Definition at line 372 of file netlogon.c.

377 {
378  FIXME("DsEnumerateDomainTrustsW(%s, %x, %p, %p)\n",
379  debugstr_w(ServerName), Flags, Domains, DomainCount);
381 }
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ DsGetDcNameA()

DWORD WINAPI DsGetDcNameA ( _In_opt_ LPCSTR  ComputerName,
_In_ LPCSTR  DomainName,
_In_ GUID DomainGuid,
_In_ LPCSTR  SiteName,
_In_ ULONG  Flags,
_Out_ PDOMAIN_CONTROLLER_INFOA DomainControllerInfo 
)

Definition at line 386 of file netlogon.c.

393 {
394  TRACE("DsGetDcNameA(%s, %s, %s, %s, %08lx, %p): stub\n",
395  debugstr_a(ComputerName), debugstr_a(DomainName), debugstr_guid(DomainGuid),
396  debugstr_a(SiteName), Flags, DomainControllerInfo);
397  return DsGetDcNameWithAccountA(ComputerName,
398  NULL,
399  0,
400  DomainName,
401  DomainGuid,
402  SiteName,
403  Flags,
404  DomainControllerInfo);
405 }
DWORD WINAPI DsGetDcNameWithAccountA(_In_opt_ LPCSTR ComputerName, _In_opt_ LPCSTR AccountName, _In_ ULONG AccountControlBits, _In_ LPCSTR DomainName, _In_ GUID *DomainGuid, _In_ LPCSTR SiteName, _In_ ULONG Flags, _Out_ PDOMAIN_CONTROLLER_INFOA *DomainControllerInfo)
Definition: netlogon.c:434
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4
#define debugstr_a
Definition: kernel32.h:31

◆ DsGetDcNameW()

DWORD WINAPI DsGetDcNameW ( _In_opt_ LPCWSTR  ComputerName,
_In_ LPCWSTR  DomainName,
_In_ GUID DomainGuid,
_In_ LPCWSTR  SiteName,
_In_ ULONG  Flags,
_Out_ PDOMAIN_CONTROLLER_INFOW DomainControllerInfo 
)

Definition at line 410 of file netlogon.c.

417 {
418  TRACE("DsGetDcNameW(%s, %s, %s, %s, %08lx, %p)\n",
419  debugstr_w(ComputerName), debugstr_w(DomainName), debugstr_guid(DomainGuid),
420  debugstr_w(SiteName), Flags, DomainControllerInfo);
421  return DsGetDcNameWithAccountW(ComputerName,
422  NULL,
423  0,
424  DomainName,
425  DomainGuid,
426  SiteName,
427  Flags,
428  DomainControllerInfo);
429 }
DWORD WINAPI DsGetDcNameWithAccountW(_In_ LPCWSTR ComputerName, _In_opt_ LPCWSTR AccountName, _In_ ULONG AccountControlBits, _In_ LPCWSTR DomainName, _In_ GUID *DomainGuid, _In_ LPCWSTR SiteName, _In_ ULONG Flags, _Out_ PDOMAIN_CONTROLLER_INFOW *DomainControllerInfo)
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
#define debugstr_w
Definition: kernel32.h:32
smooth NULL
Definition: ftsmooth.c:416
#define debugstr_guid
Definition: kernel32.h:35
#define TRACE(s)
Definition: solgame.cpp:4

◆ DsGetDcNameWithAccountA()

DWORD WINAPI DsGetDcNameWithAccountA ( _In_opt_ LPCSTR  ComputerName,
_In_opt_ LPCSTR  AccountName,
_In_ ULONG  AccountControlBits,
_In_ LPCSTR  DomainName,
_In_ GUID DomainGuid,
_In_ LPCSTR  SiteName,
_In_ ULONG  Flags,
_Out_ PDOMAIN_CONTROLLER_INFOA DomainControllerInfo 
)

Definition at line 434 of file netlogon.c.

443 {
444  FIXME("DsGetDcNameWithAccountA(%s, %s, %08lx, %s, %s, %s, %08lx, %p): stub\n",
445  debugstr_a(ComputerName), debugstr_a(AccountName), AccountControlBits,
446  debugstr_a(DomainName), debugstr_guid(DomainGuid),
447  debugstr_a(SiteName), Flags, DomainControllerInfo);
449 }
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_guid
Definition: kernel32.h:35
#define debugstr_a
Definition: kernel32.h:31
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

Referenced by DsGetDcNameA().

◆ DsGetDcNameWithAccountW() [1/2]

DWORD WINAPI DsGetDcNameWithAccountW ( _In_ LPCWSTR  ComputerName,
_In_opt_ LPCWSTR  AccountName,
_In_ ULONG  AccountControlBits,
_In_ LPCWSTR  DomainName,
_In_ GUID DomainGuid,
_In_ LPCWSTR  SiteName,
_In_ ULONG  Flags,
_Out_ PDOMAIN_CONTROLLER_INFOW DomainControllerInfo 
)

Referenced by DsGetDcNameW().

◆ DsGetDcNameWithAccountW() [2/2]

DWORD WINAPI DsGetDcNameWithAccountW ( _In_opt_ LPCWSTR  ComputerName,
_In_opt_ LPCWSTR  AccountName,
_In_ ULONG  AccountControlBits,
_In_ LPCWSTR  DomainName,
_In_ GUID DomainGuid,
_In_ LPCWSTR  SiteName,
_In_ ULONG  Flags,
_Out_ PDOMAIN_CONTROLLER_INFOW DomainControllerInfo 
)

Definition at line 454 of file netlogon.c.

463 {
465 
466  FIXME("DsGetDcNameWithAccountW(%s, %s, %08lx, %s, %s, %s, %08lx, %p): stub\n",
467  debugstr_w(ComputerName), debugstr_w(AccountName), AccountControlBits,
468  debugstr_w(DomainName), debugstr_guid(DomainGuid),
469  debugstr_w(SiteName), Flags, DomainControllerInfo);
470 
472  {
473  status = DsrGetDcNameEx2((PWSTR)ComputerName,
474  (PWSTR)AccountName,
475  AccountControlBits,
476  (PWSTR)DomainName,
477  DomainGuid,
478  (PWSTR)SiteName,
479  Flags,
480  DomainControllerInfo);
481  }
483  {
485  }
486  RpcEndExcept;
487 
488  return status;
489 }
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define RpcTryExcept
Definition: rpc.h:126
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
#define debugstr_guid
Definition: kernel32.h:35
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
static SERVICE_STATUS status
Definition: service.c:31
#define RpcExcept(expr)
Definition: rpc.h:127
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:741
Definition: ps.c:97

◆ DsGetDcSiteCoverageA()

DWORD WINAPI DsGetDcSiteCoverageA ( _In_opt_ LPCSTR  ServerName,
_Out_ PULONG  EntryCount,
_Out_ LPSTR **  SiteNames 
)

Definition at line 494 of file netlogon.c.

498 {
499  FIXME("DsGetDcSiteCoverageA(%s, %p, %p)\n",
500  debugstr_a(ServerName), EntryCount, SiteNames);
502 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_a
Definition: kernel32.h:31
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ DsGetDcSiteCoverageW()

DWORD WINAPI DsGetDcSiteCoverageW ( _In_opt_ LPCWSTR  ServerName,
_Out_ PULONG  EntryCount,
_Out_ LPWSTR **  SiteNames 
)

Definition at line 507 of file netlogon.c.

511 {
512  PNL_SITE_NAME_ARRAY SiteNameArray = NULL;
513  PWSTR *SiteNamesBuffer = NULL, Ptr;
514  ULONG BufferSize, i;
516 
517  TRACE("DsGetDcSiteCoverageW(%s, %p, %p)\n",
518  debugstr_w(ServerName), EntryCount, SiteNames);
519 
520  *EntryCount = 0;
521  *SiteNames = NULL;
522 
524  {
525  status = DsrGetDcSiteCoverageW((PWSTR)ServerName,
526  &SiteNameArray);
527  if (status == NERR_Success)
528  {
529  if (SiteNameArray->EntryCount == 0)
530  {
532  }
533  else
534  {
535  BufferSize = SiteNameArray->EntryCount * sizeof(PWSTR);
536  for (i = 0; i < SiteNameArray->EntryCount; i++)
537  BufferSize += SiteNameArray->SiteNames[i].Length + sizeof(WCHAR);
538 
539  status = NetApiBufferAllocate(BufferSize, (PVOID*)&SiteNamesBuffer);
540  if (status == NERR_Success)
541  {
542  ZeroMemory(SiteNamesBuffer, BufferSize);
543 
544  Ptr = (PWSTR)((ULONG_PTR)SiteNamesBuffer + SiteNameArray->EntryCount * sizeof(PWSTR));
545  for (i = 0; i < SiteNameArray->EntryCount; i++)
546  {
547  SiteNamesBuffer[i] = Ptr;
548  CopyMemory(Ptr,
549  SiteNameArray->SiteNames[i].Buffer,
550  SiteNameArray->SiteNames[i].Length);
551 
552  Ptr = (PWSTR)((ULONG_PTR)Ptr + SiteNameArray->SiteNames[i].Length + sizeof(WCHAR));
553  }
554 
555  *EntryCount = SiteNameArray->EntryCount;
556  *SiteNames = SiteNamesBuffer;
557  }
558  }
559 
560  MIDL_user_free(SiteNameArray);
561  }
562  }
564  {
566  }
567  RpcEndExcept;
568 
569  return status;
570 }
NET_API_STATUS WINAPI NetApiBufferAllocate(DWORD ByteCount, LPVOID *Buffer)
Definition: apibuf.c:28
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
Definition: fsrtlfuncs.h:898
#define ZeroMemory
Definition: winbase.h:1635
#define NERR_Success
Definition: lmerr.h:5
uint32_t ULONG_PTR
Definition: typedefs.h:63
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define debugstr_w
Definition: kernel32.h:32
#define RpcTryExcept
Definition: rpc.h:126
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
smooth NULL
Definition: ftsmooth.c:416
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define CopyMemory
Definition: winbase.h:1633
#define BufferSize
Definition: classpnp.h:419
unsigned short Length
Definition: msv1_0.h:53
unsigned int ULONG
Definition: retypes.h:1
PRPC_UNICODE_STRING SiteNames
Definition: netlogon.idl:811
void __RPC_USER MIDL_user_free(void *p)
Definition: irotp.c:376
static SERVICE_STATUS status
Definition: service.c:31
#define RpcExcept(expr)
Definition: rpc.h:127
wchar_t * Buffer
Definition: msv1_0.h:55
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:741
Definition: ps.c:97

◆ DsGetForestTrustInformationW()

DWORD WINAPI DsGetForestTrustInformationW ( _In_opt_ LPCWSTR  ServerName,
_In_opt_ LPCWSTR  TrustedDomainName,
_In_ DWORD  Flags,
_Out_ PLSA_FOREST_TRUST_INFORMATION ForestTrustInfo 
)

Definition at line 575 of file netlogon.c.

580 {
582 
583  TRACE("DsGetForestTrustInformationW(%s, %s, 0x%08lx, %p)\n",
584  debugstr_w(ServerName), debugstr_w(TrustedDomainName),
585  Flags, ForestTrustInfo);
586 
588  {
589  status = DsrGetForestTrustInformation((PWSTR)ServerName,
590  (PWSTR)TrustedDomainName,
591  Flags,
592  ForestTrustInfo);
593  }
595  {
597  }
598  RpcEndExcept;
599 
600  return status;
601 }
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
#define debugstr_w
Definition: kernel32.h:32
#define RpcTryExcept
Definition: rpc.h:126
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
static SERVICE_STATUS status
Definition: service.c:31
#define RpcExcept(expr)
Definition: rpc.h:127
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:741
Definition: ps.c:97

◆ DsGetSiteNameA()

DWORD WINAPI DsGetSiteNameA ( _In_ LPCSTR  ComputerName,
_Out_ LPSTR SiteName 
)

Definition at line 606 of file netlogon.c.

609 {
610  FIXME("DsGetSiteNameA(%s, %p)\n",
611  debugstr_a(ComputerName), SiteName);
613 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_a
Definition: kernel32.h:31
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ DsGetSiteNameW()

DWORD WINAPI DsGetSiteNameW ( _In_ LPCWSTR  ComputerName,
_Out_ LPWSTR SiteName 
)

Definition at line 618 of file netlogon.c.

621 {
623 
624  TRACE("DsGetSiteNameW(%s, %p)\n",
625  debugstr_w(ComputerName), SiteName);
626 
628  {
629  status = DsrGetSiteName((PWSTR)ComputerName,
630  SiteName);
631  }
633  {
635  }
636  RpcEndExcept;
637 
638  return status;
639 }
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
#define debugstr_w
Definition: kernel32.h:32
#define RpcTryExcept
Definition: rpc.h:126
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
static SERVICE_STATUS status
Definition: service.c:31
#define RpcExcept(expr)
Definition: rpc.h:127
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:741
Definition: ps.c:97

◆ DsMergeForestTrustInformationW()

DWORD WINAPI DsMergeForestTrustInformationW ( _In_ LPCWSTR  DomainName,
_In_ PLSA_FOREST_TRUST_INFORMATION  NewForestTrustInfo,
_In_opt_ PLSA_FOREST_TRUST_INFORMATION  OldForestTrustInfo,
_Out_ PLSA_FOREST_TRUST_INFORMATION ForestTrustInfo 
)

Definition at line 644 of file netlogon.c.

649 {
650  FIXME("DsMergeForestTrustInformationW(%s, %p, %p, %p)\n",
651  debugstr_w(DomainName), NewForestTrustInfo,
652  OldForestTrustInfo, ForestTrustInfo);
654 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ DsValidateSubnetNameA()

DWORD WINAPI DsValidateSubnetNameA ( _In_ LPCSTR  SubnetName)

Definition at line 659 of file netlogon.c.

661 {
662  FIXME("DsValidateSubnetNameA(%s)\n",
663  debugstr_a(SubnetName));
665 }
#define FIXME(fmt,...)
Definition: debug.h:110
#define debugstr_a
Definition: kernel32.h:31
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ DsValidateSubnetNameW()

DWORD WINAPI DsValidateSubnetNameW ( _In_ LPCWSTR  SubnetName)

Definition at line 670 of file netlogon.c.

672 {
673  FIXME("DsValidateSubnetNameW(%s)\n",
674  debugstr_w(SubnetName));
676 }
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92

◆ LOGONSRV_HANDLE_bind()

handle_t __RPC_USER LOGONSRV_HANDLE_bind ( LOGONSRV_HANDLE  pszSystemName)

Definition at line 48 of file netlogon.c.

50 {
52  LPWSTR pszStringBinding;
54 
55  TRACE("LOGONSRV_HANDLE_bind() called\n");
56 
58  L"ncacn_np",
59  pszSystemName,
60  L"\\pipe\\netlogon",
61  NULL,
62  &pszStringBinding);
63  if (status)
64  {
65  TRACE("RpcStringBindingCompose returned 0x%x\n", status);
66  return NULL;
67  }
68 
69  /* Set the binding handle that will be used to bind to the server. */
70  status = RpcBindingFromStringBindingW(pszStringBinding,
71  &hBinding);
72  if (status)
73  {
74  TRACE("RpcBindingFromStringBinding returned 0x%x\n", status);
75  }
76 
77  status = RpcStringFreeW(&pszStringBinding);
78  if (status)
79  {
80 // TRACE("RpcStringFree returned 0x%x\n", status);
81  }
82 
83  return hBinding;
84 }
RPC_STATUS WINAPI RpcBindingFromStringBindingW(RPC_WSTR StringBinding, RPC_BINDING_HANDLE *Binding)
Definition: rpc_binding.c:877
handle_t hBinding
Definition: ctx_c.c:54
RPC_STATUS WINAPI RpcStringFreeW(RPC_WSTR *String)
Definition: rpcrt4_main.c:177
RPC_STATUS WINAPI RpcStringBindingComposeW(RPC_WSTR ObjUuid, RPC_WSTR Protseq, RPC_WSTR NetworkAddr, RPC_WSTR Endpoint, RPC_WSTR Options, RPC_WSTR *StringBinding)
Definition: rpc_binding.c:511
long RPC_STATUS
Definition: rpc.h:52
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
static const WCHAR L[]
Definition: oid.c:1250
WCHAR * LPWSTR
Definition: xmlstorage.h:184
static SERVICE_STATUS status
Definition: service.c:31
Definition: ps.c:97

◆ LOGONSRV_HANDLE_unbind()

void __RPC_USER LOGONSRV_HANDLE_unbind ( LOGONSRV_HANDLE  pszSystemName,
handle_t  hBinding 
)

Definition at line 89 of file netlogon.c.

92 {
94 
95  TRACE("LOGONSRV_HANDLE_unbind() called\n");
96 
98  if (status)
99  {
100  TRACE("RpcBindingFree returned 0x%x\n", status);
101  }
102 }
RPC_STATUS WINAPI RpcBindingFree(RPC_BINDING_HANDLE *Binding)
Definition: rpc_binding.c:784
handle_t hBinding
Definition: ctx_c.c:54
long RPC_STATUS
Definition: rpc.h:52
#define TRACE(s)
Definition: solgame.cpp:4
static SERVICE_STATUS status
Definition: service.c:31
Definition: ps.c:97

◆ NetEnumerateTrustedDomains()

NTSTATUS WINAPI NetEnumerateTrustedDomains ( _In_ LPWSTR  ServerName,
_Out_ LPWSTR DomainNames 
)

Definition at line 681 of file netlogon.c.

684 {
685  DOMAIN_NAME_BUFFER DomainNameBuffer = {0, NULL};
686  NTSTATUS Status = 0;
687 
688  TRACE("NetEnumerateTrustedDomains(%s, %p)\n",
689  debugstr_w(ServerName), DomainNames);
690 
692  {
693  Status = NetrEnumerateTrustedDomains(ServerName,
694  &DomainNameBuffer);
695  if (NT_SUCCESS(Status))
696  {
697  *DomainNames = (LPWSTR)DomainNameBuffer.DomainNames;
698  }
699  }
701  {
703  } RpcEndExcept;
704 
705  return Status;
706 }
#define RpcEndExcept
Definition: rpc.h:128
LONG NTSTATUS
Definition: precomp.h:26
#define debugstr_w
Definition: kernel32.h:32
#define RpcTryExcept
Definition: rpc.h:126
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
smooth NULL
Definition: ftsmooth.c:416
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
Status
Definition: gdiplustypes.h:24
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define RpcExcept(expr)
Definition: rpc.h:127
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:741

◆ NetGetAnyDCName()

NET_API_STATUS WINAPI NetGetAnyDCName ( _In_opt_ LPCWSTR  ServerName,
_In_opt_ LPCWSTR  DomainName,
_Out_ LPBYTE BufPtr 
)

Definition at line 711 of file netlogon.c.

715 {
717 
718  TRACE("NetGetAnyDCName(%s, %s, %p)\n",
719  debugstr_w(ServerName), debugstr_w(DomainName), BufPtr);
720 
721  *BufPtr = NULL;
722 
724  {
725  status = NetrGetAnyDCName((PWSTR)ServerName,
726  (PWSTR)DomainName,
727  (PWSTR*)BufPtr);
728  }
730  {
732  }
733  RpcEndExcept;
734 
735  return status;
736 }
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
#define debugstr_w
Definition: kernel32.h:32
#define RpcTryExcept
Definition: rpc.h:126
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
smooth NULL
Definition: ftsmooth.c:416
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
static SERVICE_STATUS status
Definition: service.c:31
#define RpcExcept(expr)
Definition: rpc.h:127
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:741
Definition: ps.c:97

◆ NetGetDCName()

NET_API_STATUS WINAPI NetGetDCName ( _In_ LPCWSTR  servername,
_In_ LPCWSTR  domainname,
_Out_ LPBYTE bufptr 
)

Definition at line 741 of file netlogon.c.

745 {
746  FIXME("NetGetDCName(%s, %s, %p)\n",
747  debugstr_w(servername), debugstr_w(domainname), bufptr);
748 
749  return NERR_DCNotFound;
750 }
static unsigned int bufptr
Definition: tncon.cpp:77
#define debugstr_w
Definition: kernel32.h:32
#define FIXME(fmt,...)
Definition: debug.h:110
#define NERR_DCNotFound
Definition: lmerr.h:205

◆ NetLogonGetTimeServiceParentDomain()

NET_API_STATUS WINAPI NetLogonGetTimeServiceParentDomain ( _In_ LPWSTR  ServerName,
_Out_ LPWSTR DomainName,
_Out_ LPBOOL  PdcSameSite 
)

Definition at line 755 of file netlogon.c.

759 {
761 
762  TRACE("NetLogonGetTimeServiceParentDomain(%s, %p, %p)\n",
763  debugstr_w(ServerName), DomainName, PdcSameSite);
764 
766  {
767  Status = NetrLogonGetTimeServiceParentDomain(ServerName,
768  DomainName,
769  PdcSameSite);
770  }
772  {
774  }
775  RpcEndExcept;
776 
777  return Status;
778 }
#define RpcEndExcept
Definition: rpc.h:128
#define debugstr_w
Definition: kernel32.h:32
#define RpcTryExcept
Definition: rpc.h:126
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
Status
Definition: gdiplustypes.h:24
#define RpcExcept(expr)
Definition: rpc.h:127
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:741

◆ NetLogonSetServiceBits()

NTSTATUS WINAPI NetLogonSetServiceBits ( _In_ LPWSTR  ServerName,
_In_ DWORD  ServiceBitsOfInterest,
_In_ DWORD  ServiceBits 
)

Definition at line 783 of file netlogon.c.

787 {
789 
790  TRACE("NetLogonSetServiceBits(%s 0x%lx 0x%lx)\n",
791  debugstr_w(ServerName), ServiceBitsOfInterest, ServiceBits);
792 
794  {
795  Status = NetrLogonSetServiceBits(ServerName,
796  ServiceBitsOfInterest,
797  ServiceBits);
798  }
800  {
802  }
803  RpcEndExcept;
804 
805  return Status;
806 }
#define RpcEndExcept
Definition: rpc.h:128
LONG NTSTATUS
Definition: precomp.h:26
#define debugstr_w
Definition: kernel32.h:32
#define RpcTryExcept
Definition: rpc.h:126
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
Status
Definition: gdiplustypes.h:24
#define RpcExcept(expr)
Definition: rpc.h:127

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( netapi32  )