ReactOS 0.4.16-dev-329-g9223134
ctx_c.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 client 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#if defined( _ALPHA_ )
22#include <stdarg.h>
23#endif
24
25#include "ctx.h"
26
27#define TYPE_FORMAT_STRING_SIZE 23
28#define PROC_FORMAT_STRING_SIZE 21
29#define TRANSMIT_AS_TABLE_SIZE 0
30#define WIRE_MARSHAL_TABLE_SIZE 0
31
32typedef struct _MIDL_TYPE_FORMAT_STRING
33 {
34 short Pad;
35 unsigned char Format[ TYPE_FORMAT_STRING_SIZE ];
37
38typedef struct _MIDL_PROC_FORMAT_STRING
39 {
40 short Pad;
41 unsigned char Format[ PROC_FORMAT_STRING_SIZE ];
43
44
47
48#define GENERIC_BINDING_TABLE_SIZE 0
49
50
51/* Standard interface: hello, ver. 1.0,
52 GUID={0x7a98c250,0x6808,0x11cf,{0xb7,0x3b,0x00,0xaa,0x00,0xb6,0x77,0xa7}} */
53
55
56
58 {
60 {{0x7a98c250,0x6808,0x11cf,{0xb7,0x3b,0x00,0xaa,0x00,0xb6,0x77,0xa7}},{1,0}},
61 {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
62 0,
63 0,
64 0,
65 0,
66 0,
67 0
68 };
70
72
74
75
77 /* [out] */ PCTXTYPE __RPC_FAR *pphContext,
78 /* [in] */ long Value)
79{
80
81 RPC_BINDING_HANDLE _Handle = 0;
82
83 RPC_MESSAGE _RpcMessage;
84
85 MIDL_STUB_MESSAGE _StubMsg;
86
87 if(!pphContext)
88 {
90 }
92 {
94 ( PRPC_MESSAGE )&_RpcMessage,
95 ( PMIDL_STUB_MESSAGE )&_StubMsg,
97 0);
98
99
100 _Handle = hBinding;
101
102
103 _StubMsg.BufferLength = 4U;
104 NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle );
105
106 *(( long __RPC_FAR * )_StubMsg.Buffer)++ = Value;
107
108 NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer );
109
110 if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
112
113 *pphContext = (void *)0;
115 ( PMIDL_STUB_MESSAGE )&_StubMsg,
116 ( NDR_CCONTEXT __RPC_FAR * )pphContext,
117 _Handle);
118
119 }
121 {
122 NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg );
123
124 }
126
127}
128
129
131 /* [in] */ PCTXTYPE phContext)
132{
133
134 RPC_BINDING_HANDLE _Handle = 0;
135
136 RPC_MESSAGE _RpcMessage;
137
138 MIDL_STUB_MESSAGE _StubMsg;
139
141 {
143 ( PRPC_MESSAGE )&_RpcMessage,
144 ( PMIDL_STUB_MESSAGE )&_StubMsg,
146 1);
147
148
149 if(phContext != 0)
150 {
151 _Handle = NDRCContextBinding(( NDR_CCONTEXT )phContext);;
152
153 }
154 else
155 {
157 }
158
159 _StubMsg.BufferLength = 20U;
160 NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle );
161
163 ( PMIDL_STUB_MESSAGE )&_StubMsg,
164 ( NDR_CCONTEXT )phContext,
165 1);
166 NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer );
167
168 }
170 {
171 NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg );
172
173 }
175
176}
177
178
180 /* [out][in] */ PCTXTYPE __RPC_FAR *pphContext)
181{
182
183 RPC_BINDING_HANDLE _Handle = 0;
184
185 RPC_MESSAGE _RpcMessage;
186
187 MIDL_STUB_MESSAGE _StubMsg;
188
189 if(!pphContext)
190 {
192 }
194 {
196 ( PRPC_MESSAGE )&_RpcMessage,
197 ( PMIDL_STUB_MESSAGE )&_StubMsg,
199 2);
200
201
202 if(*pphContext != 0)
203 {
204 _Handle = NDRCContextBinding(( NDR_CCONTEXT )*pphContext);;
205
206 }
207
208 _StubMsg.BufferLength = 20U;
209 NdrGetBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg, _StubMsg.BufferLength, _Handle );
210
212 ( PMIDL_STUB_MESSAGE )&_StubMsg,
213 ( NDR_CCONTEXT )*pphContext,
214 0);
215 NdrSendReceive( (PMIDL_STUB_MESSAGE) &_StubMsg, (unsigned char __RPC_FAR *) _StubMsg.Buffer );
216
217 if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
219
221 ( PMIDL_STUB_MESSAGE )&_StubMsg,
222 ( NDR_CCONTEXT __RPC_FAR * )pphContext,
223 _Handle);
224
225 }
227 {
228 NdrFreeBuffer( (PMIDL_STUB_MESSAGE) &_StubMsg );
229
230 }
232
233}
234
235
237 {
241 &hBinding,
242 0,
243 0,
244 0,
245 0,
247 1, /* -error bounds_check flag */
248 0x10001, /* Ndr library version */
249 0,
250 0x5030118, /* MIDL Version 5.3.280 */
251 0,
252 0,
253 0, /* notify & notify_flag routine table */
254 0x1, /* MIDL flag */
255 0, /* Reserved3 */
256 0, /* Reserved4 */
257 0 /* Reserved5 */
258 };
259
260#if !defined(__RPC_WIN32__)
261#error Invalid build platform for this stub.
262#endif
263
265 {
266 0,
267 {
268
269 0x51, /* FC_OUT_PARAM */
270#ifndef _ALPHA_
271 0x1, /* x86, MIPS & PPC stack size = 1 */
272#else
273 0x2, /* Alpha stack size = 2 */
274#endif
275/* 2 */ NdrFcShort( 0x2 ), /* Type Offset=2 */
276/* 4 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
277 0x8, /* FC_LONG */
278/* 6 */ 0x5b, /* FC_END */
279 0x5c, /* FC_PAD */
280/* 8 */
281 0x4d, /* FC_IN_PARAM */
282#ifndef _ALPHA_
283 0x1, /* x86, MIPS & PPC stack size = 1 */
284#else
285 0x2, /* Alpha stack size = 2 */
286#endif
287/* 10 */ NdrFcShort( 0xa ), /* Type Offset=10 */
288/* 12 */ 0x5b, /* FC_END */
289 0x5c, /* FC_PAD */
290/* 14 */
291 0x50, /* FC_IN_OUT_PARAM */
292#ifndef _ALPHA_
293 0x1, /* x86, MIPS & PPC stack size = 1 */
294#else
295 0x2, /* Alpha stack size = 2 */
296#endif
297/* 16 */ NdrFcShort( 0xe ), /* Type Offset=14 */
298/* 18 */ 0x5b, /* FC_END */
299 0x5c, /* FC_PAD */
300
301 0x0
302 }
303 };
304
306 {
307 0,
308 {
309 NdrFcShort( 0x0 ), /* 0 */
310/* 2 */
311 0x11, 0x0, /* FC_RP */
312/* 4 */ NdrFcShort( 0x2 ), /* Offset= 2 (6) */
313/* 6 */ 0x30, /* FC_BIND_CONTEXT */
314 0xa0, /* Ctxt flags: via ptr, out, */
315/* 8 */ 0x0, /* 0 */
316 0x0, /* 0 */
317/* 10 */ 0x30, /* FC_BIND_CONTEXT */
318 0x41, /* Ctxt flags: in, can't be null */
319/* 12 */ 0x0, /* 0 */
320 0x0, /* 0 */
321/* 14 */
322 0x11, 0x0, /* FC_RP */
323/* 16 */ NdrFcShort( 0x2 ), /* Offset= 2 (18) */
324/* 18 */ 0x30, /* FC_BIND_CONTEXT */
325 0xe1, /* Ctxt flags: via ptr, in, out, can't be null */
326/* 20 */ 0x0, /* 0 */
327 0x0, /* 0 */
328
329 0x0
330 }
331 };
332
333
334#endif /* !defined(_M_IA64) && !defined(_M_AXP64)*/
335
CTXTYPE __RPC_FAR * PCTXTYPE
Definition: ctx.h:48
const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString
Definition: ctx_c.c:305
void CtxOpen(PCTXTYPE __RPC_FAR *pphContext, long Value)
Definition: ctx_c.c:76
const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString
Definition: ctx_c.c:264
RPC_IF_HANDLE hello_v1_0_c_ifspec
Definition: ctx_c.c:69
const MIDL_STUB_DESC hello_StubDesc
Definition: ctx_c.c:236
void CtxClose(PCTXTYPE __RPC_FAR *pphContext)
Definition: ctx_c.c:179
RPC_BINDING_HANDLE hello__MIDL_AutoBindHandle
Definition: ctx_c.c:73
static const RPC_CLIENT_INTERFACE hello___RpcClientInterface
Definition: ctx_c.c:57
handle_t hBinding
Definition: ctx_c.c:54
void CtxHello(PCTXTYPE phContext)
Definition: ctx_c.c:130
struct _MIDL_PROC_FORMAT_STRING MIDL_PROC_FORMAT_STRING
struct _MIDL_TYPE_FORMAT_STRING MIDL_TYPE_FORMAT_STRING
void WINAPI NdrClientContextMarshall(PMIDL_STUB_MESSAGE pStubMsg, NDR_CCONTEXT ContextHandle, int fCheck)
void WINAPI NdrClientContextUnmarshall(PMIDL_STUB_MESSAGE pStubMsg, NDR_CCONTEXT *pContextHandle, RPC_BINDING_HANDLE BindHandle)
void WINAPI NdrConvert(PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat)
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
void WINAPI NdrClientInitializeNew(PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc, unsigned int ProcNum)
void WINAPI NdrFreeBuffer(PMIDL_STUB_MESSAGE pStubMsg)
unsigned char *WINAPI NdrGetBuffer(PMIDL_STUB_MESSAGE stubmsg, ULONG buflen, RPC_BINDING_HANDLE handle)
unsigned char *WINAPI NdrSendReceive(PMIDL_STUB_MESSAGE stubmsg, unsigned char *buffer)
RPC_BINDING_HANDLE WINAPI NDRCContextBinding(NDR_CCONTEXT CContext)
void * RPC_IF_HANDLE
Definition: rpcdce.h:49
struct _RPC_CLIENT_INTERFACE RPC_CLIENT_INTERFACE
#define NDR_LOCAL_DATA_REPRESENTATION
Definition: rpcndr.h:107
const unsigned char * PFORMAT_STRING
Definition: rpcndr.h:176
#define NdrFcShort(s)
Definition: rpcndr.h:134
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 __RPC_FAR
Definition: rpc.h:56
#define RpcFinally
Definition: rpc.h:130
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 Format[TYPE_FORMAT_STRING_SIZE]
Definition: client.c:14
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_SS_IN_NULL_CONTEXT
Definition: winerror.h:1083
#define RPC_X_NULL_REF_POINTER
Definition: winerror.h:1087