ReactOS 0.4.15-dev-5666-gc548b97
ctx_s.c
Go to the documentation of this file.
1
2#pragma warning( disable: 4049 ) /* more than 64k source lines */
3
4/* this ALWAYS GENERATED file contains the RPC server stubs */
5
6
7 /* File created by MIDL compiler version 5.03.0280 */
8/* at Fri Mar 24 18:32:16 2006
9 */
10/* Compiler settings for ctx.idl:
11 Os (OptLev=s), W1, Zp8, env=Win32 (32b run), ms_ext, c_ext
12 error checks: allocation ref bounds_check enum stub_data
13 VC __declspec() decoration level:
14 __declspec(uuid()), __declspec(selectany), __declspec(novtable)
15 DECLSPEC_UUID(), MIDL_INTERFACE()
16*/
17//@@MIDL_FILE_HEADING( )
18
19#if !defined(_M_IA64) && !defined(_M_AXP64)
20#include <string.h>
21#include "ctx.h"
22
23#define TYPE_FORMAT_STRING_SIZE 23
24#define PROC_FORMAT_STRING_SIZE 21
25#define TRANSMIT_AS_TABLE_SIZE 0
26#define WIRE_MARSHAL_TABLE_SIZE 0
27
28typedef struct _MIDL_TYPE_FORMAT_STRING
29 {
30 short Pad;
31 unsigned char Format[ TYPE_FORMAT_STRING_SIZE ];
33
34typedef struct _MIDL_PROC_FORMAT_STRING
35 {
36 short Pad;
37 unsigned char Format[ PROC_FORMAT_STRING_SIZE ];
39
42
43/* Standard interface: hello, ver. 1.0,
44 GUID={0x7a98c250,0x6808,0x11cf,{0xb7,0x3b,0x00,0xaa,0x00,0xb6,0x77,0xa7}} */
45
46
48
50 {
52 {{0x7a98c250,0x6808,0x11cf,{0xb7,0x3b,0x00,0xaa,0x00,0xb6,0x77,0xa7}},{1,0}},
53 {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
55 0,
56 0,
57 0,
58 0,
59 0
60 };
62
64
65void __RPC_STUB
67 PRPC_MESSAGE _pRpcMessage )
68{
69 long Value;
70 MIDL_STUB_MESSAGE _StubMsg;
71 NDR_SCONTEXT pphContext;
72 RPC_STATUS _Status;
73
74 ((void)(_Status));
76 _pRpcMessage,
77 &_StubMsg,
79
80 ( PCTXTYPE __RPC_FAR * )pphContext = 0;
82 {
84 {
85 if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
87
88 Value = *(( long __RPC_FAR * )_StubMsg.Buffer)++;
89
90 if(_StubMsg.Buffer > _StubMsg.BufferEnd)
91 {
93 }
94 }
96 {
98 }
100 pphContext = NDRSContextUnmarshall( (char *)0, _pRpcMessage->DataRepresentation );
101
102
104
105 _StubMsg.BufferLength = 20U;
106 _pRpcMessage->BufferLength = _StubMsg.BufferLength;
107
108 _Status = I_RpcGetBuffer( _pRpcMessage );
109 if ( _Status )
110 RpcRaiseException( _Status );
111
112 _StubMsg.Buffer = (unsigned char __RPC_FAR *) _pRpcMessage->Buffer;
113
115 ( PMIDL_STUB_MESSAGE )&_StubMsg,
116 ( NDR_SCONTEXT )pphContext,
118
119 }
121 {
122 }
124 _pRpcMessage->BufferLength =
125 (unsigned int)(_StubMsg.Buffer - (unsigned char __RPC_FAR *)_pRpcMessage->Buffer);
126
127}
128
129void __RPC_STUB
131 PRPC_MESSAGE _pRpcMessage )
132{
133 MIDL_STUB_MESSAGE _StubMsg;
134 NDR_SCONTEXT phContext;
135 RPC_STATUS _Status;
136
137 ((void)(_Status));
139 _pRpcMessage,
140 &_StubMsg,
142
144 {
146 {
147 if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
149
150 phContext = NdrServerContextUnmarshall(( PMIDL_STUB_MESSAGE )&_StubMsg);
151
152 if(_StubMsg.Buffer > _StubMsg.BufferEnd)
153 {
155 }
156 }
158 {
160 }
162
163 CtxHello(( PCTXTYPE )*NDRSContextValue(phContext));
164
165 }
167 {
168 }
170 _pRpcMessage->BufferLength =
171 (unsigned int)(_StubMsg.Buffer - (unsigned char __RPC_FAR *)_pRpcMessage->Buffer);
172
173}
174
175void __RPC_STUB
177 PRPC_MESSAGE _pRpcMessage )
178{
179 MIDL_STUB_MESSAGE _StubMsg;
180 NDR_SCONTEXT pphContext;
181 RPC_STATUS _Status;
182
183 ((void)(_Status));
185 _pRpcMessage,
186 &_StubMsg,
188
189 ( PCTXTYPE __RPC_FAR * )pphContext = 0;
191 {
193 {
194 if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
196
197 pphContext = NdrServerContextUnmarshall(( PMIDL_STUB_MESSAGE )&_StubMsg);
198
199 if(_StubMsg.Buffer > _StubMsg.BufferEnd)
200 {
202 }
203 }
205 {
207 }
209
211
212 _StubMsg.BufferLength = 20U;
213 _pRpcMessage->BufferLength = _StubMsg.BufferLength;
214
215 _Status = I_RpcGetBuffer( _pRpcMessage );
216 if ( _Status )
217 RpcRaiseException( _Status );
218
219 _StubMsg.Buffer = (unsigned char __RPC_FAR *) _pRpcMessage->Buffer;
220
222 ( PMIDL_STUB_MESSAGE )&_StubMsg,
223 ( NDR_SCONTEXT )pphContext,
225
226 }
228 {
229 }
231 _pRpcMessage->BufferLength =
232 (unsigned int)(_StubMsg.Buffer - (unsigned char __RPC_FAR *)_pRpcMessage->Buffer);
233
234}
235
236
238 {
242 0,
243 0,
244 0,
245 0,
246 0,
248 1, /* -error bounds_check flag */
249 0x10001, /* Ndr library version */
250 0,
251 0x5030118, /* MIDL Version 5.3.280 */
252 0,
253 0,
254 0, /* notify & notify_flag routine table */
255 0x1, /* MIDL flag */
256 0, /* Reserved3 */
257 0, /* Reserved4 */
258 0 /* Reserved5 */
259 };
260
262 {
266 0
267 };
269 {
270 3,
272 };
273
274#if !defined(__RPC_WIN32__)
275#error Invalid build platform for this stub.
276#endif
277
279 {
280 0,
281 {
282
283 0x51, /* FC_OUT_PARAM */
284#ifndef _ALPHA_
285 0x1, /* x86, MIPS & PPC stack size = 1 */
286#else
287 0x2, /* Alpha stack size = 2 */
288#endif
289/* 2 */ NdrFcShort( 0x2 ), /* Type Offset=2 */
290/* 4 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
291 0x8, /* FC_LONG */
292/* 6 */ 0x5b, /* FC_END */
293 0x5c, /* FC_PAD */
294/* 8 */
295 0x4d, /* FC_IN_PARAM */
296#ifndef _ALPHA_
297 0x1, /* x86, MIPS & PPC stack size = 1 */
298#else
299 0x2, /* Alpha stack size = 2 */
300#endif
301/* 10 */ NdrFcShort( 0xa ), /* Type Offset=10 */
302/* 12 */ 0x5b, /* FC_END */
303 0x5c, /* FC_PAD */
304/* 14 */
305 0x50, /* FC_IN_OUT_PARAM */
306#ifndef _ALPHA_
307 0x1, /* x86, MIPS & PPC stack size = 1 */
308#else
309 0x2, /* Alpha stack size = 2 */
310#endif
311/* 16 */ NdrFcShort( 0xe ), /* Type Offset=14 */
312/* 18 */ 0x5b, /* FC_END */
313 0x5c, /* FC_PAD */
314
315 0x0
316 }
317 };
318
320 {
321 0,
322 {
323 NdrFcShort( 0x0 ), /* 0 */
324/* 2 */
325 0x11, 0x0, /* FC_RP */
326/* 4 */ NdrFcShort( 0x2 ), /* Offset= 2 (6) */
327/* 6 */ 0x30, /* FC_BIND_CONTEXT */
328 0xa0, /* Ctxt flags: via ptr, out, */
329/* 8 */ 0x0, /* 0 */
330 0x0, /* 0 */
331/* 10 */ 0x30, /* FC_BIND_CONTEXT */
332 0x41, /* Ctxt flags: in, can't be null */
333/* 12 */ 0x0, /* 0 */
334 0x0, /* 0 */
335/* 14 */
336 0x11, 0x0, /* FC_RP */
337/* 16 */ NdrFcShort( 0x2 ), /* Offset= 2 (18) */
338/* 18 */ 0x30, /* FC_BIND_CONTEXT */
339 0xe1, /* Ctxt flags: via ptr, in, out, can't be null */
340/* 20 */ 0x0, /* 0 */
341 0x0, /* 0 */
342
343 0x0
344 }
345 };
346
347
348#endif /* !defined(_M_IA64) && !defined(_M_AXP64)*/
349
void CtxOpen(PCTXTYPE __RPC_FAR *pphContext, long Value)
Definition: ctx_c.c:76
void __RPC_USER PCTXTYPE_rundown(PCTXTYPE)
Definition: server.c:62
void CtxClose(PCTXTYPE __RPC_FAR *pphContext)
Definition: ctx_c.c:179
void CtxHello(PCTXTYPE phContext)
Definition: ctx_c.c:130
CTXTYPE __RPC_FAR * PCTXTYPE
Definition: ctx.h:48
static RPC_DISPATCH_FUNCTION hello_table[]
Definition: ctx_s.c:261
void __RPC_STUB hello_CtxClose(PRPC_MESSAGE _pRpcMessage)
Definition: ctx_s.c:176
const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString
Definition: ctx_s.c:278
const MIDL_STUB_DESC hello_StubDesc
Definition: ctx_s.c:237
void __RPC_STUB hello_CtxHello(PRPC_MESSAGE _pRpcMessage)
Definition: ctx_s.c:130
RPC_DISPATCH_TABLE hello_v1_0_DispatchTable
Definition: ctx_s.c:268
RPC_IF_HANDLE hello_v1_0_s_ifspec
Definition: ctx_s.c:61
const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString
Definition: ctx_s.c:319
struct _MIDL_PROC_FORMAT_STRING MIDL_PROC_FORMAT_STRING
static const RPC_SERVER_INTERFACE hello___RpcServerInterface
Definition: ctx_s.c:49
void __RPC_STUB hello_CtxOpen(PRPC_MESSAGE _pRpcMessage)
Definition: ctx_s.c:66
struct _MIDL_TYPE_FORMAT_STRING MIDL_TYPE_FORMAT_STRING
void WINAPI NdrServerContextMarshall(PMIDL_STUB_MESSAGE pStubMsg, NDR_SCONTEXT ContextHandle, NDR_RUNDOWN RundownRoutine)
NDR_SCONTEXT WINAPI NdrServerContextUnmarshall(PMIDL_STUB_MESSAGE pStubMsg)
void WINAPI NdrConvert(PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
void *__RPC_USER MIDL_user_allocate(SIZE_T size)
Definition: irotp.c:371
void __RPC_USER MIDL_user_free(void *p)
Definition: irotp.c:376
#define PROC_FORMAT_STRING_SIZE
Definition: client.c:7
#define TYPE_FORMAT_STRING_SIZE
Definition: client.c:6
unsigned char *WINAPI NdrServerInitializeNew(PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc)
NDR_SCONTEXT WINAPI NDRSContextUnmarshall(void *pBuff, ULONG DataRepresentation)
RPC_STATUS WINAPI I_RpcGetBuffer(PRPC_MESSAGE pMsg)
Definition: rpc_message.c:1638
void * RPC_IF_HANDLE
Definition: rpcdce.h:49
void(__RPC_STUB * RPC_DISPATCH_FUNCTION)(PRPC_MESSAGE Message)
Definition: rpcdcep.h:82
struct _RPC_SERVER_INTERFACE RPC_SERVER_INTERFACE
#define NDR_LOCAL_DATA_REPRESENTATION
Definition: rpcndr.h:107
struct _NDR_SCONTEXT * NDR_SCONTEXT
const unsigned char * PFORMAT_STRING
Definition: rpcndr.h:176
void(__RPC_USER * NDR_RUNDOWN)(void *context)
Definition: rpcndr.h:153
#define NDRSContextValue(hContext)
Definition: rpcndr.h:150
#define NdrFcShort(s)
Definition: rpcndr.h:134
#define RPC_BAD_STUB_DATA_EXCEPTION_FILTER
Definition: rpcndr.h:138
void DECLSPEC_NORETURN WINAPI RpcRaiseException(RPC_STATUS exception)
Definition: rpcrt4_main.c:188
#define RpcEndFinally
Definition: rpc.h:131
#define RpcTryFinally
Definition: rpc.h:129
#define RpcEndExcept
Definition: rpc.h:128
#define __RPC_FAR
Definition: rpc.h:56
#define RpcTryExcept
Definition: rpc.h:126
#define __RPC_STUB
Definition: rpc.h:66
#define RpcFinally
Definition: rpc.h:130
#define RpcExcept(expr)
Definition: rpc.h:127
long RPC_STATUS
Definition: rpc.h:52
unsigned char Format[PROC_FORMAT_STRING_SIZE]
Definition: client.c:20
unsigned char * Buffer
Definition: rpcndr.h:203
ULONG BufferLength
Definition: rpcndr.h:207
unsigned char * BufferEnd
Definition: rpcndr.h:205
unsigned char Format[TYPE_FORMAT_STRING_SIZE]
Definition: client.c:14
unsigned int BufferLength
Definition: rpcdcep.h:41
void * Buffer
Definition: rpcdcep.h:40
ULONG DataRepresentation
Definition: rpcdcep.h:39
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413
#define RPC_X_BAD_STUB_DATA
Definition: winerror.h:1090