ReactOS  0.4.14-dev-41-g31d7680
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 
28 typedef struct _MIDL_TYPE_FORMAT_STRING
29  {
30  short Pad;
31  unsigned char Format[ TYPE_FORMAT_STRING_SIZE ];
33 
34 typedef 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  {
51  sizeof(RPC_SERVER_INTERFACE),
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 
63 extern const MIDL_STUB_DESC hello_StubDesc;
64 
65 void __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 
103  CtxOpen(( PCTXTYPE __RPC_FAR * )NDRSContextValue(pphContext),Value);
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  }
120  RpcFinally
121  {
122  }
124  _pRpcMessage->BufferLength =
125  (unsigned int)(_StubMsg.Buffer - (unsigned char __RPC_FAR *)_pRpcMessage->Buffer);
126 
127 }
128 
129 void __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,
141  &hello_StubDesc);
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  }
166  RpcFinally
167  {
168  }
170  _pRpcMessage->BufferLength =
171  (unsigned int)(_StubMsg.Buffer - (unsigned char __RPC_FAR *)_pRpcMessage->Buffer);
172 
173 }
174 
175 void __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,
187  &hello_StubDesc);
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 
210  CtxClose(( PCTXTYPE __RPC_FAR * )NDRSContextValue(pphContext));
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  }
227  RpcFinally
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 
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2343
#define RpcEndExcept
Definition: rpc.h:128
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:49
GLint x0
Definition: linetemp.h:95
#define NDRSContextValue(hContext)
Definition: rpcndr.h:150
#define PROC_FORMAT_STRING_SIZE
Definition: ctx_s.c:24
void WINAPI NdrServerContextMarshall(PMIDL_STUB_MESSAGE pStubMsg, NDR_SCONTEXT ContextHandle, NDR_RUNDOWN RundownRoutine)
void(__RPC_STUB * RPC_DISPATCH_FUNCTION)(PRPC_MESSAGE Message)
Definition: rpcdcep.h:82
unsigned char Format[TYPE_FORMAT_STRING_SIZE]
Definition: client.c:14
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3706
void DECLSPEC_NORETURN WINAPI RpcRaiseException(RPC_STATUS exception)
Definition: rpcrt4_main.c:189
#define U(x)
Definition: wordpad.c:44
unsigned char *WINAPI NdrServerInitializeNew(PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc)
unsigned char * Buffer
Definition: rpcndr.h:203
RPC_STATUS WINAPI I_RpcGetBuffer(PRPC_MESSAGE pMsg)
Definition: rpc_message.c:1638
#define NdrFcShort(s)
Definition: rpcndr.h:134
static const RPC_SERVER_INTERFACE hello___RpcServerInterface
Definition: ctx_s.c:49
void __RPC_STUB hello_CtxClose(PRPC_MESSAGE _pRpcMessage)
Definition: ctx_s.c:176
CTXTYPE __RPC_FAR * PCTXTYPE
Definition: ctx.h:48
void WINAPI NdrConvert(PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat)
#define RpcFinally
Definition: rpc.h:130
NDR_SCONTEXT WINAPI NdrServerContextUnmarshall(PMIDL_STUB_MESSAGE pStubMsg)
#define RpcTryFinally
Definition: rpc.h:129
void __RPC_STUB hello_CtxHello(PRPC_MESSAGE _pRpcMessage)
Definition: ctx_s.c:130
unsigned int BufferLength
Definition: rpcdcep.h:41
long RPC_STATUS
Definition: rpc.h:52
void * Buffer
Definition: rpcdcep.h:40
void * RPC_IF_HANDLE
Definition: rpcdce.h:49
#define RpcEndFinally
Definition: rpc.h:131
#define RpcTryExcept
Definition: rpc.h:126
#define __RPC_FAR
Definition: rpc.h:56
#define __RPC_STUB
Definition: rpc.h:66
void CtxHello(PCTXTYPE phContext)
Definition: ctx_c.c:130
struct tagNDR_SCONTEXT * NDR_SCONTEXT
NDR_SCONTEXT WINAPI NDRSContextUnmarshall(void *pBuff, ULONG DataRepresentation)
void __RPC_USER PCTXTYPE_rundown(PCTXTYPE)
Definition: server.c:62
const unsigned char * PFORMAT_STRING
Definition: rpcndr.h:176
struct _RPC_SERVER_INTERFACE RPC_SERVER_INTERFACE
ULONG BufferLength
Definition: rpcndr.h:207
unsigned char * BufferEnd
Definition: rpcndr.h:205
void CtxClose(PCTXTYPE __RPC_FAR *pphContext)
Definition: ctx_c.c:179
const MIDL_STUB_DESC hello_StubDesc
Definition: ctx_s.c:237
const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString
Definition: ctx_s.c:319
#define TYPE_FORMAT_STRING_SIZE
Definition: ctx_s.c:23
struct _MIDL_TYPE_FORMAT_STRING MIDL_TYPE_FORMAT_STRING
RPC_IF_HANDLE hello_v1_0_s_ifspec
Definition: ctx_s.c:61
void CtxOpen(PCTXTYPE __RPC_FAR *pphContext, long Value)
Definition: ctx_c.c:76
#define NDR_LOCAL_DATA_REPRESENTATION
Definition: rpcndr.h:107
void(__RPC_USER * NDR_RUNDOWN)(void *context)
Definition: rpcndr.h:153
static RPC_DISPATCH_FUNCTION hello_table[]
Definition: ctx_s.c:261
struct _MIDL_PROC_FORMAT_STRING MIDL_PROC_FORMAT_STRING
RPC_DISPATCH_TABLE hello_v1_0_DispatchTable
Definition: ctx_s.c:268
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3706
void __RPC_STUB hello_CtxOpen(PRPC_MESSAGE _pRpcMessage)
Definition: ctx_s.c:66
#define RPC_X_BAD_STUB_DATA
Definition: winerror.h:1090
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
ULONG DataRepresentation
Definition: rpcdcep.h:39
unsigned char Format[PROC_FORMAT_STRING_SIZE]
Definition: client.c:20
const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString
Definition: ctx_s.c:278
#define RpcExcept(expr)
Definition: rpc.h:127
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31
#define RPC_BAD_STUB_DATA_EXCEPTION_FILTER
Definition: rpcndr.h:138