ReactOS 0.4.16-dev-297-gc569aee
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}
#define ERR(fmt,...)
Definition: precomp.h:57
#define NULL
Definition: types.h:112
Status
Definition: gdiplustypes.h:25
#define L(x)
Definition: ntvdm.h:50
RPC_STATUS WINAPI RpcServerListen(UINT MinimumCallThreads, UINT MaxCalls, UINT DontWait)
Definition: rpc_server.c:1520
RPC_STATUS WINAPI RpcServerRegisterIf(RPC_IF_HANDLE IfSpec, UUID *MgrTypeUuid, RPC_MGR_EPV *MgrEpv)
Definition: rpc_server.c:1116
RPC_STATUS WINAPI RpcServerUseProtseqEpW(RPC_WSTR Protseq, UINT MaxCalls, RPC_WSTR Endpoint, LPVOID SecurityDescriptor)
Definition: rpc_server.c:927
#define RPC_C_LISTEN_MAX_CALLS_DEFAULT
Definition: rpcdce.h:122
#define RPC_S_OK
Definition: rpcnterr.h:22
long RPC_STATUS
Definition: rpc.h:52

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:736
#define HeapAlloc
Definition: compat.h:733
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
GLenum GLsizei len
Definition: glext.h:6722

◆ midl_user_free()

void __RPC_USER midl_user_free ( void __RPC_FAR ptr)

Definition at line 45 of file rpcserver.c.

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

◆ 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}