ReactOS 0.4.15-dev-8191-gbc6c731
rpcserver.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Browser Service
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: Browser service RPC server
5 * COPYRIGHT: Eric Kohl 2020 <eric.kohl@reactos.org>
6 */
7
8/* INCLUDES *****************************************************************/
9
10#include "precomp.h"
11
12//#include "lmerr.h"
13
15
16/* FUNCTIONS *****************************************************************/
17
21 LPVOID lpParameter)
22{
24
25 Status = RpcServerUseProtseqEpW(L"ncacn_np", 20, L"\\pipe\\browser", NULL);
26 if (Status != RPC_S_OK)
27 {
28 ERR("RpcServerUseProtseqEpW() failed (Status %lx)\n", Status);
29 return 0;
30 }
31
32 Status = RpcServerRegisterIf(browser_v0_0_s_ifspec, NULL, NULL);
33 if (Status != RPC_S_OK)
34 {
35 ERR("RpcServerRegisterIf() failed (Status %lx)\n", Status);
36 return 0;
37 }
38
40 if (Status != RPC_S_OK)
41 {
42 ERR("RpcServerListen() failed (Status %lx)\n", Status);
43 }
44
45 return 0;
46}
47
48
50{
52}
53
54
56{
58}
59
60
61/* Function 0 */
65 BROWSER_IDENTIFY_HANDLE ServerName,
66 LPWSTR Transport,
67 LPWSTR ClientName,
68 LPSERVER_ENUM_STRUCT EnumStruct,
69 DWORD PreferedMaximumLength,
70 LPDWORD TotalEntries,
71 DWORD ServerType,
72 LPWSTR Domain,
73 LPDWORD ResumeHandle)
74{
76 return 0;
77}
78
79
80/* Function 1 (BrowserrDebugCall) */
84{
86 return 0;
87}
88
89
90/* Function 2 */
94 BROWSER_IDENTIFY_HANDLE ServerName,
95 LPSERVER_ENUM_STRUCT EnumStruct,
96 LPDWORD TotalEntries)
97{
99 return 0;
100}
101
102
103/* Function 3 */
107 BROWSER_IDENTIFY_HANDLE ServerName)
108{
110 return 0;
111}
112
113
114/* Function 4 */
118 BROWSER_IDENTIFY_HANDLE ServerName,
120{
122 return 0;
123}
124
125
126/* Function 5 */
130 BROWSER_IDENTIFY_HANDLE ServerName,
131 LPBROWSER_STATISTICS *Statistics)
132{
134 return 0;
135}
136
137
138/* Function 6 */
142 BROWSER_IDENTIFY_HANDLE ServerName)
143{
145 return 0;
146}
147
148
149/* Function 7 - Not used on wire */
153 BROWSER_IDENTIFY_HANDLE ServerName)
154{
156 return 0;
157}
158
159
160/* Function 8 */
164 BROWSER_IDENTIFY_HANDLE ServerName,
165 DWORD Level,
166 LPBROWSER_STATISTICS_STRUCT StatisticsStruct)
167{
169 return 0;
170}
171
172
173/* Function 9 */
177 BROWSER_IDENTIFY_HANDLE ServerName,
178 LPWSTR DomainName,
179 LPWSTR EmulatedComputerName,
180 DWORD Role)
181{
183 return 0;
184}
185
186
187/* Function 10 */
191 BROWSER_IDENTIFY_HANDLE ServerName,
193{
195 return 0;
196}
197
198
199/* Function 11 (BrowserrServerEnumEx) */
203{
205 return 0;
206}
207
208/* EOF */
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
NET_API_STATUS __stdcall I_BrowserrQueryOtherDomains(BROWSER_IDENTIFY_HANDLE ServerName, LPSERVER_ENUM_STRUCT EnumStruct, LPDWORD TotalEntries)
Definition: rpcserver.c:93
NET_API_STATUS __stdcall BrowserOpnum1NotUsedOnWire(VOID)
Definition: rpcserver.c:83
NET_API_STATUS __stdcall I_BrowserrQueryEmulatedDomains(BROWSER_IDENTIFY_HANDLE ServerName, PBROWSER_EMULATED_DOMAIN_CONTAINER EmulatedDomains)
Definition: rpcserver.c:190
NET_API_STATUS __stdcall NetrBrowserStatisticsGet(BROWSER_IDENTIFY_HANDLE ServerName, DWORD Level, LPBROWSER_STATISTICS_STRUCT StatisticsStruct)
Definition: rpcserver.c:163
NET_API_STATUS __stdcall I_BrowserrServerEnum(BROWSER_IDENTIFY_HANDLE ServerName, LPWSTR Transport, LPWSTR ClientName, LPSERVER_ENUM_STRUCT EnumStruct, DWORD PreferedMaximumLength, LPDWORD TotalEntries, DWORD ServerType, LPWSTR Domain, LPDWORD ResumeHandle)
Definition: rpcserver.c:64
NET_API_STATUS __stdcall I_BrowserrQueryStatistics(BROWSER_IDENTIFY_HANDLE ServerName, LPBROWSER_STATISTICS *Statistics)
Definition: rpcserver.c:129
NET_API_STATUS __stdcall I_BrowserrSetNetlogonState(BROWSER_IDENTIFY_HANDLE ServerName, LPWSTR DomainName, LPWSTR EmulatedComputerName, DWORD Role)
Definition: rpcserver.c:176
NET_API_STATUS __stdcall I_BrowserrDebugTrace(BROWSER_IDENTIFY_HANDLE ServerName, LPSTR String)
Definition: rpcserver.c:117
DWORD WINAPI RpcThreadRoutine(LPVOID lpParameter)
Definition: rpcserver.c:20
NET_API_STATUS __stdcall I_BrowserrResetNetlogonState(BROWSER_IDENTIFY_HANDLE ServerName)
Definition: rpcserver.c:106
NET_API_STATUS __stdcall I_BrowserrResetStatistics(BROWSER_IDENTIFY_HANDLE ServerName)
Definition: rpcserver.c:141
NET_API_STATUS __stdcall BrowserOpnum11NotUsedOnWire(void)
Definition: rpcserver.c:202
NET_API_STATUS __stdcall NetrBrowserStatisticsClear(BROWSER_IDENTIFY_HANDLE ServerName)
Definition: rpcserver.c:152
#define UNIMPLEMENTED
Definition: debug.h:118
#define ERR(fmt,...)
Definition: debug.h:113
wchar_t * BROWSER_IDENTIFY_HANDLE
Definition: browser.idl:7
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#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
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#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
uint32_t * LPDWORD
Definition: typedefs.h:59
#define __stdcall
Definition: typedefs.h:25
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2433
#define WINAPI
Definition: msvc.h:6
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:56
char * LPSTR
Definition: xmlstorage.h:182
WCHAR * LPWSTR
Definition: xmlstorage.h:184