ReactOS 0.4.16-dev-297-gc569aee
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
44void __RPC_USER
46{
48}
49
50void __RPC_USER
52{
53}
54
55void __RPC_USER
57{
58}
#define ERR(fmt,...)
Definition: precomp.h:57
#define NULL
Definition: types.h:112
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define HeapFree(x, y, z)
Definition: compat.h:735
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
unsigned long DWORD
Definition: ntddk_ex.h:95
Status
Definition: gdiplustypes.h:25
GLenum GLsizei len
Definition: glext.h:6722
static PVOID ptr
Definition: dispmode.c:27
#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
#define midl_user_free
Definition: rpc.h:45
#define __RPC_FAR
Definition: rpc.h:56
long RPC_STATUS
Definition: rpc.h:52
#define __RPC_USER
Definition: rpc.h:65
#define midl_user_allocate
Definition: rpc.h:44
ULONG_PTR SIZE_T
Definition: typedefs.h:80
void __RPC_USER WINSPOOL_PRINTER_HANDLE_rundown(WINSPOOL_PRINTER_HANDLE hPrinter)
Definition: rpcserver.c:56
void __RPC_USER WINSPOOL_GDI_HANDLE_rundown(WINSPOOL_GDI_HANDLE hGdiHandle)
Definition: rpcserver.c:51
DWORD WINAPI LrpcThreadProc(LPVOID lpParameter)
Definition: rpcserver.c:11
#define WINAPI
Definition: msvc.h:6