ReactOS  0.4.15-dev-499-g1f31905
rpcserver.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Print Spooler Service
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: RPC Server Thread
5  * COPYRIGHT: Copyright 2015 Colin Finck (colin@reactos.org)
6  */
7 
8 #include "precomp.h"
9 
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 }
37 
40 {
42 }
43 
44 void __RPC_USER
46 {
48 }
49 
50 void __RPC_USER
52 {
53 }
54 
55 void __RPC_USER
57 {
58 }
void __RPC_USER WINSPOOL_GDI_HANDLE_rundown(WINSPOOL_GDI_HANDLE hGdiHandle)
Definition: rpcserver.c:51
long RPC_STATUS
Definition: rpc.h:52
void __RPC_USER midl_user_free(void __RPC_FAR *ptr)
Definition: rpcserver.c:55
RPC_STATUS WINAPI RpcServerListen(UINT MinimumCallThreads, UINT MaxCalls, UINT DontWait)
Definition: rpc_server.c:1520
static PVOID ptr
Definition: dispmode.c:27
#define RPC_C_LISTEN_MAX_CALLS_DEFAULT
Definition: rpcdce.h:122
smooth NULL
Definition: ftsmooth.c:416
#define __RPC_FAR
Definition: rpc.h:56
#define __RPC_USER
Definition: rpc.h:65
#define GetProcessHeap()
Definition: compat.h:404
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
RPC_STATUS WINAPI RpcServerRegisterIf(RPC_IF_HANDLE IfSpec, UUID *MgrTypeUuid, RPC_MGR_EPV *MgrEpv)
Definition: rpc_server.c:1116
void __RPC_USER WINSPOOL_PRINTER_HANDLE_rundown(WINSPOOL_PRINTER_HANDLE hPrinter)
Definition: rpcserver.c:56
static const WCHAR L[]
Definition: oid.c:1250
LPVOID lpParameter
Definition: kernel32.h:241
GLenum GLsizei len
Definition: glext.h:6722
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
ULONG_PTR SIZE_T
Definition: typedefs.h:79
#define HEAP_ZERO_MEMORY
Definition: compat.h:123
void __RPC_FAR *__RPC_USER midl_user_allocate(SIZE_T len)
Definition: rpcserver.c:49
DWORD WINAPI LrpcThreadProc(LPVOID lpParameter)
Definition: rpcserver.c:11
#define HeapFree(x, y, z)
Definition: compat.h:403
#define RPC_S_OK
Definition: rpcnterr.h:22