ReactOS  0.4.15-dev-509-g96a357b
rpcserver.c File Reference
#include "precomp.h"
Include dependency graph for rpcserver.c:

Go to the source code of this file.

Functions

DWORD WINAPI LrpcThreadProc (LPVOID lpParameter)
 
void __RPC_FAR *__RPC_USER midl_user_allocate (SIZE_T len)
 
void __RPC_USER midl_user_free (void __RPC_FAR *ptr)
 
void __RPC_USER WINSPOOL_GDI_HANDLE_rundown (WINSPOOL_GDI_HANDLE hGdiHandle)
 
void __RPC_USER WINSPOOL_PRINTER_HANDLE_rundown (WINSPOOL_PRINTER_HANDLE hPrinter)
 

Function Documentation

◆ LrpcThreadProc()

DWORD WINAPI LrpcThreadProc ( LPVOID  lpParameter)

Definition at line 11 of file rpcserver.c.

12 {
14 
15  Status = RpcServerUseProtseqEpW(L"ncalrpc", 20, L"spoolss", NULL);
16  if (Status != RPC_S_OK)
17  {
18  ERR("RpcServerUseProtseqEpW failed with status %ld!\n", Status);
19  return 0;
20  }
21 
22  Status = RpcServerRegisterIf(winspool_v1_0_s_ifspec, NULL, NULL);
23  if (Status != RPC_S_OK)
24  {
25  ERR("RpcServerRegisterIf failed with status %ld!\n", Status);
26  return 0;
27  }
28 
30  if (Status != RPC_S_OK)
31  {
32  ERR("RpcServerListen() failed with status %ld!\n", Status);
33  }
34 
35  return 0;
36 }
long RPC_STATUS
Definition: rpc.h:52
RPC_STATUS WINAPI RpcServerListen(UINT MinimumCallThreads, UINT MaxCalls, UINT DontWait)
Definition: rpc_server.c:1520
#define RPC_C_LISTEN_MAX_CALLS_DEFAULT
Definition: rpcdce.h:122
smooth NULL
Definition: ftsmooth.c:416
RPC_STATUS WINAPI RpcServerRegisterIf(RPC_IF_HANDLE IfSpec, UUID *MgrTypeUuid, RPC_MGR_EPV *MgrEpv)
Definition: rpc_server.c:1116
static const WCHAR L[]
Definition: oid.c:1250
Status
Definition: gdiplustypes.h:24
RPC_STATUS WINAPI RpcServerUseProtseqEpW(RPC_WSTR Protseq, UINT MaxCalls, RPC_WSTR Endpoint, LPVOID SecurityDescriptor)
Definition: rpc_server.c:927
#define ERR(fmt,...)
Definition: debug.h:110
#define RPC_S_OK
Definition: rpcnterr.h:22

Referenced by _ServiceMain().

◆ midl_user_allocate()

void __RPC_FAR* __RPC_USER midl_user_allocate ( SIZE_T  len)

Definition at line 39 of file rpcserver.c.

40 {
42 }
#define GetProcessHeap()
Definition: compat.h:404
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 45 of file rpcserver.c.

46 {
48 }
static PVOID ptr
Definition: dispmode.c:27
#define GetProcessHeap()
Definition: compat.h:404
#define HeapFree(x, y, z)
Definition: compat.h:403

◆ WINSPOOL_GDI_HANDLE_rundown()

void __RPC_USER WINSPOOL_GDI_HANDLE_rundown ( WINSPOOL_GDI_HANDLE  hGdiHandle)

Definition at line 51 of file rpcserver.c.

52 {
53 }

◆ WINSPOOL_PRINTER_HANDLE_rundown()

void __RPC_USER WINSPOOL_PRINTER_HANDLE_rundown ( WINSPOOL_PRINTER_HANDLE  hPrinter)

Definition at line 56 of file rpcserver.c.

57 {
58 }