ReactOS  0.4.15-dev-1374-g8d3e80e
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 
18 DWORD
19 WINAPI
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 */
105 __stdcall
107  BROWSER_IDENTIFY_HANDLE ServerName)
108 {
110  return 0;
111 }
112 
113 
114 /* Function 4 */
116 __stdcall
118  BROWSER_IDENTIFY_HANDLE ServerName,
119  LPSTR String)
120 {
122  return 0;
123 }
124 
125 
126 /* Function 5 */
128 __stdcall
130  BROWSER_IDENTIFY_HANDLE ServerName,
131  LPBROWSER_STATISTICS *Statistics)
132 {
134  return 0;
135 }
136 
137 
138 /* Function 6 */
140 __stdcall
142  BROWSER_IDENTIFY_HANDLE ServerName)
143 {
145  return 0;
146 }
147 
148 
149 /* Function 7 - Not used on wire */
151 __stdcall
153  BROWSER_IDENTIFY_HANDLE ServerName)
154 {
156  return 0;
157 }
158 
159 
160 /* Function 8 */
162 __stdcall
164  BROWSER_IDENTIFY_HANDLE ServerName,
165  DWORD Level,
166  LPBROWSER_STATISTICS_STRUCT StatisticsStruct)
167 {
169  return 0;
170 }
171 
172 
173 /* Function 9 */
175 __stdcall
177  BROWSER_IDENTIFY_HANDLE ServerName,
178  LPWSTR DomainName,
179  LPWSTR EmulatedComputerName,
180  DWORD Role)
181 {
183  return 0;
184 }
185 
186 
187 /* Function 10 */
189 __stdcall
191  BROWSER_IDENTIFY_HANDLE ServerName,
192  PBROWSER_EMULATED_DOMAIN_CONTAINER EmulatedDomains)
193 {
195  return 0;
196 }
197 
198 
199 /* Function 11 (BrowserrServerEnumEx) */
201 __stdcall
203 {
205  return 0;
206 }
207 
208 /* EOF */
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
WINE_DEFAULT_DEBUG_CHANNEL(browser)
NET_API_STATUS __stdcall I_BrowserrQueryStatistics(BROWSER_IDENTIFY_HANDLE ServerName, LPBROWSER_STATISTICS *Statistics)
Definition: rpcserver.c:129
NET_API_STATUS __stdcall I_BrowserrResetNetlogonState(BROWSER_IDENTIFY_HANDLE ServerName)
Definition: rpcserver.c:106
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:55
char * LPSTR
Definition: xmlstorage.h:182
wchar_t * BROWSER_IDENTIFY_HANDLE
Definition: browser.idl:7
long RPC_STATUS
Definition: rpc.h:52
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2430
#define FALSE
Definition: types.h:117
NET_API_STATUS __stdcall I_BrowserrQueryEmulatedDomains(BROWSER_IDENTIFY_HANDLE ServerName, PBROWSER_EMULATED_DOMAIN_CONTAINER EmulatedDomains)
Definition: rpcserver.c:190
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
#define __RPC_FAR
Definition: rpc.h:56
NET_API_STATUS __stdcall BrowserOpnum11NotUsedOnWire(void)
Definition: rpcserver.c:202
#define __RPC_USER
Definition: rpc.h:65
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
Status
Definition: gdiplustypes.h:24
NET_API_STATUS __stdcall BrowserOpnum1NotUsedOnWire(VOID)
Definition: rpcserver.c:83
#define GetProcessHeap()
Definition: compat.h:595
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
#define __stdcall
Definition: typedefs.h:25
NET_API_STATUS __stdcall I_BrowserrResetStatistics(BROWSER_IDENTIFY_HANDLE ServerName)
Definition: rpcserver.c:141
static const WCHAR L[]
Definition: oid.c:1250
LPVOID lpParameter
Definition: kernel32.h:241
GLenum GLsizei len
Definition: glext.h:6722
NET_API_STATUS __stdcall NetrBrowserStatisticsClear(BROWSER_IDENTIFY_HANDLE ServerName)
Definition: rpcserver.c:152
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:80
DWORD WINAPI RpcThreadRoutine(LPVOID lpParameter)
Definition: rpcserver.c:20
NET_API_STATUS __stdcall I_BrowserrQueryOtherDomains(BROWSER_IDENTIFY_HANDLE ServerName, LPSERVER_ENUM_STRUCT EnumStruct, LPDWORD TotalEntries)
Definition: rpcserver.c:93
NET_API_STATUS __stdcall I_BrowserrSetNetlogonState(BROWSER_IDENTIFY_HANDLE ServerName, LPWSTR DomainName, LPWSTR EmulatedComputerName, DWORD Role)
Definition: rpcserver.c:176
#define NULL
Definition: types.h:112
NET_API_STATUS __stdcall I_BrowserrDebugTrace(BROWSER_IDENTIFY_HANDLE ServerName, LPSTR String)
Definition: rpcserver.c:117
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
void __RPC_FAR *__RPC_USER midl_user_allocate(SIZE_T len)
Definition: rpcserver.c:49
uint32_t * LPDWORD
Definition: typedefs.h:59
#define UNIMPLEMENTED
Definition: debug.h:115
NET_API_STATUS __stdcall NetrBrowserStatisticsGet(BROWSER_IDENTIFY_HANDLE ServerName, DWORD Level, LPBROWSER_STATISTICS_STRUCT StatisticsStruct)
Definition: rpcserver.c:163
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define HeapFree(x, y, z)
Definition: compat.h:594
#define RPC_S_OK
Definition: rpcnterr.h:22