ReactOS  0.4.13-dev-73-gcfe54aa
wksta_new.c File Reference
#include "netapi32.h"
#include "wkssvc_c.h"
Include dependency graph for wksta_new.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (netapi32)
 
void __RPC_FAR *__RPC_USER midl_user_allocate (SIZE_T len)
 
void __RPC_USER midl_user_free (void __RPC_FAR *ptr)
 
handle_t __RPC_USER WKSSVC_IDENTIFY_HANDLE_bind (WKSSVC_IDENTIFY_HANDLE pszSystemName)
 
void __RPC_USER WKSSVC_IDENTIFY_HANDLE_unbind (WKSSVC_IDENTIFY_HANDLE pszSystemName, handle_t hBinding)
 
handle_t __RPC_USER WKSSVC_IMPERSONATE_HANDLE_bind (WKSSVC_IMPERSONATE_HANDLE pszSystemName)
 
void __RPC_USER WKSSVC_IMPERSONATE_HANDLE_unbind (WKSSVC_IMPERSONATE_HANDLE pszSystemName, handle_t hBinding)
 
NET_API_STATUS WINAPI NetAddAlternateComputerName (_In_opt_ LPCWSTR Server, _In_ LPCWSTR AlternateName, _In_opt_ LPCWSTR DomainAccount, _In_opt_ LPCWSTR DomainAccountPassword, _In_ ULONG Reserved)
 
NET_API_STATUS WINAPI NetEnumerateComputerNames (_In_opt_ LPCWSTR Server, _In_ NET_COMPUTER_NAME_TYPE NameType, _In_ ULONG Reserved, _Out_ PDWORD EntryCount, _Out_ LPWSTR **ComputerNames)
 
NET_API_STATUS WINAPI NetGetJoinableOUs (_In_ LPCWSTR lpServer, _In_ LPCWSTR lpDomain, _In_ LPCWSTR lpAccount, _In_ LPCWSTR lpPassword, _Out_ DWORD *OUCount, _Out_ LPWSTR **OUs)
 
NET_API_STATUS WINAPI NetJoinDomain (_In_ LPCWSTR lpServer, _In_ LPCWSTR lpDomain, _In_ LPCWSTR lpAccountOU, _In_ LPCWSTR lpAccount, _In_ LPCWSTR lpPassword, _In_ DWORD fJoinOptions)
 
NET_API_STATUS WINAPI NetRemoveAlternateComputerName (_In_opt_ LPCWSTR Server, _In_ LPCWSTR AlternateName, _In_opt_ LPCWSTR DomainAccount, _In_opt_ LPCWSTR DomainAccountPassword, _In_ ULONG Reserved)
 
NET_API_STATUS WINAPI NetRenameMachineInDomain (_In_ LPCWSTR lpServer, _In_ LPCWSTR lpNewMachineName, _In_ LPCWSTR lpAccount, _In_ LPCWSTR lpPassword, _In_ DWORD fRenameOptions)
 
NET_API_STATUS WINAPI NetSetPrimaryComputerName (_In_opt_ LPCWSTR Server, _In_ LPCWSTR PrimaryName, _In_opt_ LPCWSTR DomainAccount, _In_opt_ LPCWSTR DomainAccountPassword, _In_ ULONG Reserved)
 
NET_API_STATUS WINAPI NetUnjoinDomain (_In_ LPCWSTR lpServer, _In_ LPCWSTR lpAccount, _In_ LPCWSTR lpPassword, _In_ DWORD fUnjoinOptions)
 
NET_API_STATUS WINAPI NetUseAdd (_In_ LMSTR UncServerName, _In_ DWORD Level, _In_ LPBYTE Buf, _Out_ LPDWORD ParmError)
 
NET_API_STATUS WINAPI NetUseDel (_In_ LMSTR UncServerName, _In_ LMSTR UseName, _In_ DWORD ForceCond)
 
NET_API_STATUS WINAPI NetUseEnum (_In_ LMSTR UncServerName, _In_ DWORD Level, _Out_ LPBYTE *BufPtr, _In_ DWORD PreferedMaximumSize, _Out_ LPDWORD EntriesRead, _Out_ LPDWORD TotalEntries, _Inout_ LPDWORD ResumeHandle)
 
NET_API_STATUS WINAPI NetUseGetInfo (_In_ LMSTR UncServerName, _In_ LMSTR UseName, _In_ DWORD Level, _Out_ LPBYTE *BufPtr)
 
NET_API_STATUS WINAPI NetValidateName (_In_ LPCWSTR lpServer, _In_ LPCWSTR lpName, _In_ LPCWSTR lpAccount, _In_ LPCWSTR lpPassword, _In_ NETSETUP_NAME_TYPE NameType)
 
NET_API_STATUS WINAPI NetWkstaSetInfo (_In_ LPWSTR servername, _In_ DWORD level, _In_ LPBYTE buffer, _Out_ LPDWORD parm_err)
 
NET_API_STATUS WINAPI NetWkstaTransportAdd (_In_opt_ LPWSTR servername, _In_ DWORD level, _In_ LPBYTE buf, _Out_ LPDWORD parm_err)
 
NET_API_STATUS WINAPI NetWkstaTransportDel (_In_opt_ LPWSTR servername, _In_ LPWSTR transportname, _In_ DWORD ucond)
 
NET_API_STATUS WINAPI NetWkstaUserSetInfo (LPWSTR reserved, _In_ DWORD level, _In_ LPBYTE buf, _Out_ LPDWORD parm_err)
 

Function Documentation

◆ midl_user_allocate()

void __RPC_FAR* __RPC_USER midl_user_allocate ( SIZE_T  len)

Definition at line 19 of file wksta_new.c.

20 {
22 }
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
GLenum GLsizei len
Definition: glext.h:6722
#define HEAP_ZERO_MEMORY
Definition: compat.h:123

◆ midl_user_free()

void __RPC_USER midl_user_free ( void __RPC_FAR ptr)

Definition at line 25 of file wksta_new.c.

26 {
28 }
static PVOID ptr
Definition: dispmode.c:27
#define GetProcessHeap()
Definition: compat.h:395
#define HeapFree(x, y, z)
Definition: compat.h:394

◆ NetAddAlternateComputerName()

NET_API_STATUS WINAPI NetAddAlternateComputerName ( _In_opt_ LPCWSTR  Server,
_In_ LPCWSTR  AlternateName,
_In_opt_ LPCWSTR  DomainAccount,
_In_opt_ LPCWSTR  DomainAccountPassword,
_In_ ULONG  Reserved 
)

Definition at line 143 of file wksta_new.c.

149 {
150  PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword;
153 
154  TRACE("NetAddAlternateComputerName(%s %s %s %s 0x%lx)\n",
155  debugstr_w(Server), debugstr_w(AlternateName), debugstr_w(DomainAccount),
156  debugstr_w(DomainAccountPassword), Reserved);
157 
158  /* FIXME */
160  EncryptedPassword = NULL;
161 
163  {
165  (PWSTR)Server,
166  (PWSTR)AlternateName,
167  (PWSTR)DomainAccount,
168  EncryptedPassword,
169  Reserved);
170  }
172  {
174  }
175  RpcEndExcept;
176 
177  return status;
178 }
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
unsigned long __stdcall NetrAddAlternateComputerName(handle_t RpcBindingHandle, wchar_t *ServerName, wchar_t *AlternateName, wchar_t *DomainAccount, PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword, unsigned long Reserved)
Definition: rpcserver.c:470
_In_ ULONG _Out_ HANDLE * BindingHandle
Definition: tdikrnl.h:1146
static void Server(int port)
Definition: srltest.c:69
#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
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
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

◆ NetEnumerateComputerNames()

NET_API_STATUS WINAPI NetEnumerateComputerNames ( _In_opt_ LPCWSTR  Server,
_In_ NET_COMPUTER_NAME_TYPE  NameType,
_In_ ULONG  Reserved,
_Out_ PDWORD  EntryCount,
_Out_ LPWSTR **  ComputerNames 
)

Definition at line 183 of file wksta_new.c.

189 {
190  PNET_COMPUTER_NAME_ARRAY ComputerNameArray = NULL;
191  ULONG BufferSize, i;
192  PWSTR *NameBuffer = NULL, Ptr;
194 
195  TRACE("NetEnumerateComputerNames(%s %lu %lu %p %p)\n",
196  debugstr_w(Server), NameType, Reserved, EntryCount, ComputerNames);
197 
199  {
201  NameType,
202  Reserved,
203  &ComputerNameArray);
204  if (status == NERR_Success)
205  {
206  *EntryCount = ComputerNameArray->EntryCount;
207 
208  BufferSize = 0;
209  for (i = 0; i < ComputerNameArray->EntryCount; i++)
210  {
211  BufferSize += ComputerNameArray->ComputerNames[i].Length + sizeof(WCHAR) + sizeof(PWSTR);
212  }
213 
214  status = NetApiBufferAllocate(BufferSize, (PVOID*)&NameBuffer);
215  if (status == NERR_Success)
216  {
217  ZeroMemory(NameBuffer, BufferSize);
218 
219  Ptr = (PWSTR)((ULONG_PTR)NameBuffer + ComputerNameArray->EntryCount * sizeof(PWSTR));
220  for (i = 0; i < ComputerNameArray->EntryCount; i++)
221  {
222  NameBuffer[i] = Ptr;
223  CopyMemory(Ptr,
224  ComputerNameArray->ComputerNames[i].Buffer,
225  ComputerNameArray->ComputerNames[i].Length);
226  Ptr = (PWSTR)((ULONG_PTR)Ptr + ComputerNameArray->ComputerNames[i].Length + sizeof(WCHAR));
227  }
228 
229  *ComputerNames = NameBuffer;
230  }
231  }
232  }
234  {
236  }
237  RpcEndExcept;
238 
239  return status;
240 }
NET_API_STATUS WINAPI NetApiBufferAllocate(DWORD ByteCount, LPVOID *Buffer)
Definition: apibuf.c:28
#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
static void Server(int port)
Definition: srltest.c:69
#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
unsigned long EntryCount
Definition: wkssvc.idl:344
#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
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
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
PUNICODE_STRING ComputerNames
Definition: wkssvc.idl:345
unsigned int ULONG
Definition: retypes.h:1
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 NameType
Definition: acpixf.h:642
static SERVICE_STATUS status
Definition: service.c:31
#define RpcExcept(expr)
Definition: rpc.h:127
unsigned long __stdcall NetrEnumerateComputerNames(WKSSVC_IMPERSONATE_HANDLE ServerName, NET_COMPUTER_NAME_TYPE NameType, unsigned long Reserved, PNET_COMPUTER_NAME_ARRAY *ComputerNames)
Definition: rpcserver.c:518
LONG WINAPI I_RpcMapWin32Status(RPC_STATUS status)
Definition: rpcrt4_main.c:741
Definition: ps.c:97

◆ NetGetJoinableOUs()

NET_API_STATUS WINAPI NetGetJoinableOUs ( _In_ LPCWSTR  lpServer,
_In_ LPCWSTR  lpDomain,
_In_ LPCWSTR  lpAccount,
_In_ LPCWSTR  lpPassword,
_Out_ DWORD OUCount,
_Out_ LPWSTR **  OUs 
)

Definition at line 278 of file wksta_new.c.

285 {
286  PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword;
289 
290  TRACE("NetGetJoinableOUs(%s %s %s %s %p %p)\n",
291  debugstr_w(lpServer), debugstr_w(lpDomain), debugstr_w(lpAccount),
292  debugstr_w(lpPassword), OUCount, OUs);
293 
294  /* FIXME */
296  EncryptedPassword = NULL;
297 
299  {
301  (PWSTR)lpServer,
302  (PWSTR)lpDomain,
303  (PWSTR)lpAccount,
304  EncryptedPassword,
305  OUCount,
306  OUs);
307  }
309  {
311  }
312  RpcEndExcept;
313 
314  return status;
315 }
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
_In_ ULONG _Out_ HANDLE * BindingHandle
Definition: tdikrnl.h:1146
unsigned long __stdcall NetrGetJoinableOUs2(handle_t RpcBindingHandle, wchar_t *ServerName, wchar_t *DomainNameParam, wchar_t *AccountName, PJOINPR_ENCRYPTED_USER_PASSWORD Password, unsigned long *OUCount, wchar_t ***OUs)
Definition: rpcserver.c:453
#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

◆ NetJoinDomain()

NET_API_STATUS WINAPI NetJoinDomain ( _In_ LPCWSTR  lpServer,
_In_ LPCWSTR  lpDomain,
_In_ LPCWSTR  lpAccountOU,
_In_ LPCWSTR  lpAccount,
_In_ LPCWSTR  lpPassword,
_In_ DWORD  fJoinOptions 
)

Definition at line 320 of file wksta_new.c.

327 {
328  PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword;
331 
332  TRACE("NetJoinDomain(%s %s %s %s 0x%lx)\n",
333  debugstr_w(lpServer), debugstr_w(lpDomain), debugstr_w(lpAccountOU),
334  debugstr_w(lpAccount), debugstr_w(lpPassword), fJoinOptions);
335 
336  /* FIXME */
338  EncryptedPassword = NULL;
339 
341  {
343  (PWSTR)lpServer,
344  (PWSTR)lpDomain,
345  (PWSTR)lpAccountOU,
346  (PWSTR)lpAccount,
347  EncryptedPassword,
348  fJoinOptions);
349  }
351  {
353  }
354  RpcEndExcept;
355 
356  return status;
357 }
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
_In_ ULONG _Out_ HANDLE * BindingHandle
Definition: tdikrnl.h:1146
#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
unsigned long __stdcall NetrJoinDomain2(handle_t RpcBindingHandle, wchar_t *ServerName, wchar_t *DomainNameParam, wchar_t *MachineAccountOU, wchar_t *AccountName, PJOINPR_ENCRYPTED_USER_PASSWORD Password, unsigned long Options)
Definition: rpcserver.c:389
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

◆ NetRemoveAlternateComputerName()

NET_API_STATUS WINAPI NetRemoveAlternateComputerName ( _In_opt_ LPCWSTR  Server,
_In_ LPCWSTR  AlternateName,
_In_opt_ LPCWSTR  DomainAccount,
_In_opt_ LPCWSTR  DomainAccountPassword,
_In_ ULONG  Reserved 
)

Definition at line 362 of file wksta_new.c.

368 {
369  PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword;
372 
373  TRACE("NetRemoveAlternateComputerName(%s %s %s %s 0x%lx)\n",
374  debugstr_w(Server), debugstr_w(AlternateName), debugstr_w(DomainAccount),
375  debugstr_w(DomainAccountPassword), Reserved);
376 
377  /* FIXME */
379  EncryptedPassword = NULL;
380 
382  {
384  (PWSTR)Server,
385  (PWSTR)AlternateName,
386  (PWSTR)DomainAccount,
387  EncryptedPassword,
388  Reserved);
389  }
391  {
393  }
394  RpcEndExcept;
395 
396  return status;
397 }
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
_In_ ULONG _Out_ HANDLE * BindingHandle
Definition: tdikrnl.h:1146
static void Server(int port)
Definition: srltest.c:69
#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
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
unsigned long __stdcall NetrRemoveAlternateComputerName(handle_t RpcBindingHandle, wchar_t *ServerName, wchar_t *AlternateName, wchar_t *DomainAccount, PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword, unsigned long Reserved)
Definition: rpcserver.c:486
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

◆ NetRenameMachineInDomain()

NET_API_STATUS WINAPI NetRenameMachineInDomain ( _In_ LPCWSTR  lpServer,
_In_ LPCWSTR  lpNewMachineName,
_In_ LPCWSTR  lpAccount,
_In_ LPCWSTR  lpPassword,
_In_ DWORD  fRenameOptions 
)

Definition at line 402 of file wksta_new.c.

408 {
409  PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword;
412 
413  TRACE("NetRenameMachineInDomain(%s %s %s %s 0x%lx)\n",
414  debugstr_w(lpServer), debugstr_w(lpNewMachineName), debugstr_w(lpAccount),
415  debugstr_w(lpPassword), fRenameOptions);
416 
417  /* FIXME */
419  EncryptedPassword = NULL;
420 
422  {
424  (PWSTR)lpServer,
425  (PWSTR)lpNewMachineName,
426  (PWSTR)lpAccount,
427  EncryptedPassword,
428  fRenameOptions);
429  }
431  {
433  }
434  RpcEndExcept;
435 
436  return status;
437 }
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
_In_ ULONG _Out_ HANDLE * BindingHandle
Definition: tdikrnl.h:1146
#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
unsigned long __stdcall NetrRenameMachineInDomain2(handle_t RpcBindingHandle, wchar_t *ServerName, wchar_t *MachineName, wchar_t *AccountName, PJOINPR_ENCRYPTED_USER_PASSWORD Password, unsigned long Options)
Definition: rpcserver.c:421
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

◆ NetSetPrimaryComputerName()

NET_API_STATUS WINAPI NetSetPrimaryComputerName ( _In_opt_ LPCWSTR  Server,
_In_ LPCWSTR  PrimaryName,
_In_opt_ LPCWSTR  DomainAccount,
_In_opt_ LPCWSTR  DomainAccountPassword,
_In_ ULONG  Reserved 
)

Definition at line 442 of file wksta_new.c.

448 {
449  PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword;
452 
453  TRACE("NetSetPrimaryComputerName(%s %s %s %s %lu)\n",
454  debugstr_w(Server), debugstr_w(PrimaryName), debugstr_w(DomainAccount),
455  debugstr_w(DomainAccountPassword), Reserved);
456 
457  /* FIXME */
459  EncryptedPassword = NULL;
460 
462  {
464  (PWSTR)Server,
465  (PWSTR)PrimaryName,
466  (PWSTR)DomainAccount,
467  EncryptedPassword,
468  Reserved);
469  }
471  {
473  }
474  RpcEndExcept;
475 
476  return status;
477 }
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
_In_ ULONG _Out_ HANDLE * BindingHandle
Definition: tdikrnl.h:1146
static void Server(int port)
Definition: srltest.c:69
#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
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
unsigned long __stdcall NetrSetPrimaryComputerName(handle_t RpcBindingHandle, wchar_t *ServerName, wchar_t *PrimaryName, wchar_t *DomainAccount, PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword, unsigned long Reserved)
Definition: rpcserver.c:502
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

◆ NetUnjoinDomain()

NET_API_STATUS WINAPI NetUnjoinDomain ( _In_ LPCWSTR  lpServer,
_In_ LPCWSTR  lpAccount,
_In_ LPCWSTR  lpPassword,
_In_ DWORD  fUnjoinOptions 
)

Definition at line 482 of file wksta_new.c.

487 {
488  PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword;
491 
492  TRACE("NetUnjoinDomain(%s %s %s %s 0x%lx)\n",
493  debugstr_w(lpServer), debugstr_w(lpAccount),
494  debugstr_w(lpPassword), fUnjoinOptions);
495 
496  /* FIXME */
498  EncryptedPassword = NULL;
499 
501  {
503  (PWSTR)lpServer,
504  (PWSTR)lpAccount,
505  EncryptedPassword,
506  fUnjoinOptions);
507  }
509  {
511  }
512  RpcEndExcept;
513 
514  return status;
515 }
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
_In_ ULONG _Out_ HANDLE * BindingHandle
Definition: tdikrnl.h:1146
#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
unsigned long __stdcall NetrUnjoinDomain2(handle_t RpcBindingHandle, wchar_t *ServerName, wchar_t *AccountName, PJOINPR_ENCRYPTED_USER_PASSWORD Password, unsigned long Options)
Definition: rpcserver.c:406
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

◆ NetUseAdd()

NET_API_STATUS WINAPI NetUseAdd ( _In_ LMSTR  UncServerName,
_In_ DWORD  Level,
_In_ LPBYTE  Buf,
_Out_ LPDWORD  ParmError 
)

Definition at line 520 of file wksta_new.c.

525 {
527 
528  TRACE("NetUseAdd(%s %d %p %p)\n", debugstr_w(UncServerName),
529  Level, Buf, ParmError);
530 
532  {
533  status = NetrUseAdd(UncServerName,
534  Level,
535  (LPUSE_INFO)Buf,
536  ParmError);
537  }
539  {
541  }
542  RpcEndExcept;
543 
544  return status;
545 }
#define RpcEndExcept
Definition: rpc.h:128
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:55
unsigned long __stdcall NetrUseAdd(WKSSVC_IMPERSONATE_HANDLE ServerName, unsigned long Level, LPUSE_INFO InfoStruct, unsigned long *ErrorParameter)
Definition: rpcserver.c:197
#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

◆ NetUseDel()

NET_API_STATUS WINAPI NetUseDel ( _In_ LMSTR  UncServerName,
_In_ LMSTR  UseName,
_In_ DWORD  ForceCond 
)

Definition at line 550 of file wksta_new.c.

554 {
556 
557  TRACE("NetUseDel(%s %s %d)\n", debugstr_w(UncServerName),
558  debugstr_w(UseName), ForceCond);
559 
561  {
562  status = NetrUseDel(UncServerName,
563  UseName,
564  ForceCond);
565  }
567  {
569  }
570  RpcEndExcept;
571 
572  return status;
573 }
#define RpcEndExcept
Definition: rpc.h:128
unsigned long __stdcall NetrUseDel(WKSSVC_IMPERSONATE_HANDLE ServerName, wchar_t *UseName, unsigned long ForceLevel)
Definition: rpcserver.c:225
#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

◆ NetUseEnum()

NET_API_STATUS WINAPI NetUseEnum ( _In_ LMSTR  UncServerName,
_In_ DWORD  Level,
_Out_ LPBYTE BufPtr,
_In_ DWORD  PreferedMaximumSize,
_Out_ LPDWORD  EntriesRead,
_Out_ LPDWORD  TotalEntries,
_Inout_ LPDWORD  ResumeHandle 
)

Definition at line 578 of file wksta_new.c.

586 {
587  USE_ENUM_STRUCT UseEnumInfo;
588  USE_INFO_0_CONTAINER Container0;
589  USE_INFO_1_CONTAINER Container1;
590  USE_INFO_2_CONTAINER Container2;
592 
593  TRACE("NetUseEnum(%s, %d, %p, %d, %p, %p, %p)\n", debugstr_w(UncServerName),
594  Level, BufPtr, PreferedMaximumSize, EntriesRead, TotalEntries, ResumeHandle);
595 
596  UseEnumInfo.Level = Level;
597  switch (Level)
598  {
599  case 0:
600  UseEnumInfo.UseInfo.Level0 = &Container0;
601  Container0.EntriesRead = 0;
602  Container0.Buffer = NULL;
603  break;
604 
605  case 1:
606  UseEnumInfo.UseInfo.Level1 = &Container1;
607  Container1.EntriesRead = 0;
608  Container1.Buffer = NULL;
609  break;
610 
611  case 2:
612  UseEnumInfo.UseInfo.Level2 = &Container2;
613  Container2.EntriesRead = 0;
614  Container2.Buffer = NULL;
615  break;
616 
617  default:
619  }
620 
622  {
623  status = NetrUseEnum(UncServerName,
624  &UseEnumInfo,
625  PreferedMaximumSize,
626  TotalEntries,
627  ResumeHandle);
629  {
630  switch (Level)
631  {
632  case 0:
633  *BufPtr = (LPBYTE)UseEnumInfo.UseInfo.Level0->Buffer;
634  *EntriesRead = UseEnumInfo.UseInfo.Level0->EntriesRead;
635  break;
636 
637  case 1:
638  *BufPtr = (LPBYTE)UseEnumInfo.UseInfo.Level1->Buffer;
639  *EntriesRead = UseEnumInfo.UseInfo.Level1->EntriesRead;
640  break;
641 
642  case 2:
643  *BufPtr = (LPBYTE)UseEnumInfo.UseInfo.Level2->Buffer;
644  *EntriesRead = UseEnumInfo.UseInfo.Level2->EntriesRead;
645  break;
646  }
647  }
648  }
650  {
652  }
653  RpcEndExcept;
654 
655  return status;
656 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
union _USE_ENUM_STRUCT::_USE_ENUM_UNION UseInfo
#define RpcEndExcept
Definition: rpc.h:128
unsigned long EntriesRead
Definition: wkssvc.idl:252
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:55
#define NERR_Success
Definition: lmerr.h:5
LPUSE_INFO_0 Buffer
Definition: wkssvc.idl:253
unsigned char * LPBYTE
Definition: typedefs.h:52
#define debugstr_w
Definition: kernel32.h:32
LPUSE_INFO_1 Buffer
Definition: wkssvc.idl:259
#define RpcTryExcept
Definition: rpc.h:126
unsigned long EntriesRead
Definition: wkssvc.idl:264
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
unsigned long EntriesRead
Definition: wkssvc.idl:258
smooth NULL
Definition: ftsmooth.c:416
LPUSE_INFO_0_CONTAINER Level0
Definition: wkssvc.idl:273
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
unsigned long __stdcall NetrUseEnum(WKSSVC_IDENTIFY_HANDLE ServerName, LPUSE_ENUM_STRUCT InfoStruct, unsigned long PreferredMaximumLength, unsigned long *TotalEntries, unsigned long *ResumeHandle)
Definition: rpcserver.c:238
LPUSE_INFO_2 Buffer
Definition: wkssvc.idl:265
#define ERROR_MORE_DATA
Definition: dderror.h:13
LPUSE_INFO_1_CONTAINER Level1
Definition: wkssvc.idl:274
LPUSE_INFO_2_CONTAINER Level2
Definition: wkssvc.idl:275
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

◆ NetUseGetInfo()

NET_API_STATUS WINAPI NetUseGetInfo ( _In_ LMSTR  UncServerName,
_In_ LMSTR  UseName,
_In_ DWORD  Level,
_Out_ LPBYTE BufPtr 
)

Definition at line 661 of file wksta_new.c.

666 {
668 
669  TRACE("NetUseGetInfo(%s, %s, %d, %p)\n", debugstr_w(UncServerName),
670  debugstr_w(UseName), Level, BufPtr);
671 
672  *BufPtr = NULL;
673 
675  {
676  status = NetrUseGetInfo(UncServerName,
677  UseName,
678  Level,
679  (LPUSE_INFO)BufPtr);
680  }
682  {
684  }
685  RpcEndExcept;
686 
687  return status;
688 }
#define RpcEndExcept
Definition: rpc.h:128
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:55
#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
unsigned long __stdcall NetrUseGetInfo(WKSSVC_IMPERSONATE_HANDLE ServerName, wchar_t *UseName, unsigned long Level, LPUSE_INFO InfoStruct)
Definition: rpcserver.c:211
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

◆ NetValidateName()

NET_API_STATUS WINAPI NetValidateName ( _In_ LPCWSTR  lpServer,
_In_ LPCWSTR  lpName,
_In_ LPCWSTR  lpAccount,
_In_ LPCWSTR  lpPassword,
_In_ NETSETUP_NAME_TYPE  NameType 
)

Definition at line 693 of file wksta_new.c.

699 {
700  PJOINPR_ENCRYPTED_USER_PASSWORD EncryptedPassword;
703 
704  TRACE("NetValidateName(%s %s %s %s %u)\n",
705  debugstr_w(lpServer), debugstr_w(lpName), debugstr_w(lpAccount),
706  debugstr_w(lpPassword), NameType);
707 
708  /* FIXME */
710  EncryptedPassword = NULL;
711 
713  {
715  (PWSTR)lpServer,
716  (PWSTR)lpName,
717  (PWSTR)lpAccount,
718  EncryptedPassword,
719  NameType);
720  }
722  {
724  }
725  RpcEndExcept;
726 
727  return status;
728 }
#define RpcEndExcept
Definition: rpc.h:128
uint16_t * PWSTR
Definition: typedefs.h:54
_In_ LPCSTR lpName
Definition: winbase.h:2729
_In_ ULONG _Out_ HANDLE * BindingHandle
Definition: tdikrnl.h:1146
#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
unsigned long __stdcall NetrValidateName2(handle_t RpcBindingHandle, wchar_t *ServerName, wchar_t *NameToValidate, wchar_t *AccountName, PJOINPR_ENCRYPTED_USER_PASSWORD Password, NETSETUP_NAME_TYPE NameType)
Definition: rpcserver.c:437
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define RpcExceptionCode()
Definition: rpc.h:132
#define TRACE(s)
Definition: solgame.cpp:4
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 NameType
Definition: acpixf.h:642
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

◆ NetWkstaSetInfo()

NET_API_STATUS WINAPI NetWkstaSetInfo ( _In_ LPWSTR  servername,
_In_ DWORD  level,
_In_ LPBYTE  buffer,
_Out_ LPDWORD  parm_err 
)

Definition at line 768 of file wksta_new.c.

773 {
775 
776  TRACE("NetWkstaSetInfo(%s, %d, %p, %p)\n",
777  debugstr_w(servername), level, buffer, parm_err);
778 
780  {
781  status = NetrWkstaSetInfo(servername,
782  level,
784  parm_err);
785  }
787  {
789  }
790  RpcEndExcept;
791 
792  return status;
793 }
GLint level
Definition: gl.h:1546
#define RpcEndExcept
Definition: rpc.h:128
unsigned long __stdcall NetrWkstaSetInfo(WKSSVC_IDENTIFY_HANDLE ServerName, unsigned long Level, LPWKSTA_INFO WkstaInfo, unsigned long *ErrorParameter)
Definition: rpcserver.c:97
GLuint buffer
Definition: glext.h:5915
#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

◆ NetWkstaTransportAdd()

NET_API_STATUS WINAPI NetWkstaTransportAdd ( _In_opt_ LPWSTR  servername,
_In_ DWORD  level,
_In_ LPBYTE  buf,
_Out_ LPDWORD  parm_err 
)

Definition at line 798 of file wksta_new.c.

803 {
805 
806  TRACE("NetWkstaTransportAdd(%s, %d, %p, %p)\n", debugstr_w(servername),
807  level, buf, parm_err);
808 
810  {
811  status = NetrWkstaTransportAdd(servername,
812  level,
814  parm_err);
815  }
817  {
819  }
820  RpcEndExcept;
821 
822  return status;
823 }
GLint level
Definition: gl.h:1546
#define RpcEndExcept
Definition: rpc.h:128
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#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
unsigned long __stdcall NetrWkstaTransportAdd(WKSSVC_IDENTIFY_HANDLE ServerName, unsigned long Level, LPWKSTA_TRANSPORT_INFO_0 TransportInfo, unsigned long *ErrorParameter)
Definition: rpcserver.c:170
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

◆ NetWkstaTransportDel()

NET_API_STATUS WINAPI NetWkstaTransportDel ( _In_opt_ LPWSTR  servername,
_In_ LPWSTR  transportname,
_In_ DWORD  ucond 
)

Definition at line 828 of file wksta_new.c.

832 {
834 
835  TRACE("NetWkstaTransportDel(%s, %s, %d)\n", debugstr_w(servername),
836  debugstr_w(transportname), ucond);
837 
839  {
840  status = NetrWkstaTransportDel(servername,
841  transportname,
842  ucond);
843  }
845  {
847  }
848  RpcEndExcept;
849 
850  return status;
851 }
#define RpcEndExcept
Definition: rpc.h:128
unsigned long __stdcall NetrWkstaTransportDel(WKSSVC_IDENTIFY_HANDLE ServerName, wchar_t *TransportName, unsigned long ForceLevel)
Definition: rpcserver.c:184
#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

◆ NetWkstaUserSetInfo()

NET_API_STATUS WINAPI NetWkstaUserSetInfo ( LPWSTR  reserved,
_In_ DWORD  level,
_In_ LPBYTE  buf,
_Out_ LPDWORD  parm_err 
)

Definition at line 1021 of file wksta_new.c.

1026 {
1028 
1029  TRACE("NetWkstaSetInfo(%s, %d, %p, %p)\n",
1030  debugstr_w(reserved), level, buf, parm_err);
1031 
1032  if (reserved != NULL)
1033  return ERROR_INVALID_PARAMETER;
1034 
1035  RpcTryExcept
1036  {
1038  level,
1040  parm_err);
1041  }
1043  {
1045  }
1046  RpcEndExcept;
1047 
1048  return status;
1049 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
GLint level
Definition: gl.h:1546
#define RpcEndExcept
Definition: rpc.h:128
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define debugstr_w
Definition: kernel32.h:32
#define RpcTryExcept
Definition: rpc.h:126
r reserved
Definition: btrfs.c:2655
#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
unsigned long __stdcall NetrWkstaUserSetInfo(WKSSVC_IDENTIFY_HANDLE Unused, unsigned long Level, LPWKSTA_USER_INFO UserInfo, unsigned long *ErrorParameter)
Definition: rpcserver.c:141
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

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( netapi32  )

◆ WKSSVC_IDENTIFY_HANDLE_bind()

handle_t __RPC_USER WKSSVC_IDENTIFY_HANDLE_bind ( WKSSVC_IDENTIFY_HANDLE  pszSystemName)

Definition at line 32 of file wksta_new.c.

33 {
35  LPWSTR pszStringBinding;
37 
38  TRACE("WKSSVC_IDENTIFY_HANDLE_bind() called\n");
39 
41  L"ncacn_np",
42  pszSystemName,
43  L"\\pipe\\wkssvc",
44  NULL,
45  &pszStringBinding);
46  if (status)
47  {
48  TRACE("RpcStringBindingCompose returned 0x%x\n", status);
49  return NULL;
50  }
51 
52  /* Set the binding handle that will be used to bind to the server. */
53  status = RpcBindingFromStringBindingW(pszStringBinding,
54  &hBinding);
55  if (status)
56  {
57  TRACE("RpcBindingFromStringBinding returned 0x%x\n", status);
58  }
59 
60  status = RpcStringFreeW(&pszStringBinding);
61  if (status)
62  {
63 // TRACE("RpcStringFree returned 0x%x\n", status);
64  }
65 
66  return hBinding;
67 }
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

◆ WKSSVC_IDENTIFY_HANDLE_unbind()

void __RPC_USER WKSSVC_IDENTIFY_HANDLE_unbind ( WKSSVC_IDENTIFY_HANDLE  pszSystemName,
handle_t  hBinding 
)

Definition at line 71 of file wksta_new.c.

73 {
75 
76  TRACE("WKSSVC_IDENTIFY_HANDLE_unbind() called\n");
77 
79  if (status)
80  {
81  TRACE("RpcBindingFree returned 0x%x\n", status);
82  }
83 }
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

◆ WKSSVC_IMPERSONATE_HANDLE_bind()

handle_t __RPC_USER WKSSVC_IMPERSONATE_HANDLE_bind ( WKSSVC_IMPERSONATE_HANDLE  pszSystemName)

Definition at line 87 of file wksta_new.c.

88 {
90  LPWSTR pszStringBinding;
92 
93  TRACE("WKSSVC_IMPERSONATE_HANDLE_bind() called\n");
94 
96  L"ncacn_np",
97  pszSystemName,
98  L"\\pipe\\wkssvc",
99  NULL,
100  &pszStringBinding);
101  if (status)
102  {
103  TRACE("RpcStringBindingCompose returned 0x%x\n", status);
104  return NULL;
105  }
106 
107  /* Set the binding handle that will be used to bind to the server. */
108  status = RpcBindingFromStringBindingW(pszStringBinding,
109  &hBinding);
110  if (status)
111  {
112  TRACE("RpcBindingFromStringBinding returned 0x%x\n", status);
113  }
114 
115  status = RpcStringFreeW(&pszStringBinding);
116  if (status)
117  {
118 // TRACE("RpcStringFree returned 0x%x\n", status);
119  }
120 
121  return hBinding;
122 }
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

◆ WKSSVC_IMPERSONATE_HANDLE_unbind()

void __RPC_USER WKSSVC_IMPERSONATE_HANDLE_unbind ( WKSSVC_IMPERSONATE_HANDLE  pszSystemName,
handle_t  hBinding 
)

Definition at line 126 of file wksta_new.c.

128 {
130 
131  TRACE("WKSSVC_IMPERSONATE_HANDLE_unbind() called\n");
132 
134  if (status)
135  {
136  TRACE("RpcBindingFree returned 0x%x\n", status);
137  }
138 }
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