2 #pragma warning( disable: 4049 ) /* more than 64k source lines */
4 /* this ALWAYS GENERATED file contains the RPC server stubs */
7 /* File created by MIDL compiler version 5.03.0280 */
8 /* at Fri Mar 24 18:32:16 2006
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()
17 //@@MIDL_FILE_HEADING( )
19 #if !defined(_M_IA64) && !defined(_M_AXP64)
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
28 typedef struct _MIDL_TYPE_FORMAT_STRING
31 unsigned char Format
[ TYPE_FORMAT_STRING_SIZE
];
32 } MIDL_TYPE_FORMAT_STRING
;
34 typedef struct _MIDL_PROC_FORMAT_STRING
37 unsigned char Format
[ PROC_FORMAT_STRING_SIZE
];
38 } MIDL_PROC_FORMAT_STRING
;
40 extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString
;
41 extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString
;
43 /* Standard interface: hello, ver. 1.0,
44 GUID={0x7a98c250,0x6808,0x11cf,{0xb7,0x3b,0x00,0xaa,0x00,0xb6,0x77,0xa7}} */
47 extern RPC_DISPATCH_TABLE hello_v1_0_DispatchTable
;
49 static const RPC_SERVER_INTERFACE hello___RpcServerInterface
=
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}},
54 &hello_v1_0_DispatchTable
,
61 RPC_IF_HANDLE hello_v1_0_s_ifspec
= (RPC_IF_HANDLE
)& hello___RpcServerInterface
;
63 extern const MIDL_STUB_DESC hello_StubDesc
;
67 PRPC_MESSAGE _pRpcMessage
)
70 MIDL_STUB_MESSAGE _StubMsg
;
71 NDR_SCONTEXT pphContext
;
75 NdrServerInitializeNew(
80 ( PCTXTYPE __RPC_FAR
* )pphContext
= 0;
85 if ( (_pRpcMessage
->DataRepresentation
& 0X0000FFFFUL
) != NDR_LOCAL_DATA_REPRESENTATION
)
86 NdrConvert( (PMIDL_STUB_MESSAGE
) &_StubMsg
, (PFORMAT_STRING
) &__MIDL_ProcFormatString
.Format
[0] );
88 Value
= *(( long __RPC_FAR
* )_StubMsg
.Buffer
)++;
90 if(_StubMsg
.Buffer
> _StubMsg
.BufferEnd
)
92 RpcRaiseException(RPC_X_BAD_STUB_DATA
);
95 RpcExcept( RPC_BAD_STUB_DATA_EXCEPTION_FILTER
)
97 RpcRaiseException(RPC_X_BAD_STUB_DATA
);
100 pphContext
= NDRSContextUnmarshall( (char *)0, _pRpcMessage
->DataRepresentation
);
103 CtxOpen(( PCTXTYPE __RPC_FAR
* )NDRSContextValue(pphContext
),Value
);
105 _StubMsg
.BufferLength
= 20U;
106 _pRpcMessage
->BufferLength
= _StubMsg
.BufferLength
;
108 _Status
= I_RpcGetBuffer( _pRpcMessage
);
110 RpcRaiseException( _Status
);
112 _StubMsg
.Buffer
= (unsigned char __RPC_FAR
*) _pRpcMessage
->Buffer
;
114 NdrServerContextMarshall(
115 ( PMIDL_STUB_MESSAGE
)&_StubMsg
,
116 ( NDR_SCONTEXT
)pphContext
,
117 ( NDR_RUNDOWN
)PCTXTYPE_rundown
);
124 _pRpcMessage
->BufferLength
=
125 (unsigned int)(_StubMsg
.Buffer
- (unsigned char __RPC_FAR
*)_pRpcMessage
->Buffer
);
131 PRPC_MESSAGE _pRpcMessage
)
133 MIDL_STUB_MESSAGE _StubMsg
;
134 NDR_SCONTEXT phContext
;
138 NdrServerInitializeNew(
147 if ( (_pRpcMessage
->DataRepresentation
& 0X0000FFFFUL
) != NDR_LOCAL_DATA_REPRESENTATION
)
148 NdrConvert( (PMIDL_STUB_MESSAGE
) &_StubMsg
, (PFORMAT_STRING
) &__MIDL_ProcFormatString
.Format
[8] );
150 phContext
= NdrServerContextUnmarshall(( PMIDL_STUB_MESSAGE
)&_StubMsg
);
152 if(_StubMsg
.Buffer
> _StubMsg
.BufferEnd
)
154 RpcRaiseException(RPC_X_BAD_STUB_DATA
);
157 RpcExcept( RPC_BAD_STUB_DATA_EXCEPTION_FILTER
)
159 RpcRaiseException(RPC_X_BAD_STUB_DATA
);
163 CtxHello(( PCTXTYPE
)*NDRSContextValue(phContext
));
170 _pRpcMessage
->BufferLength
=
171 (unsigned int)(_StubMsg
.Buffer
- (unsigned char __RPC_FAR
*)_pRpcMessage
->Buffer
);
177 PRPC_MESSAGE _pRpcMessage
)
179 MIDL_STUB_MESSAGE _StubMsg
;
180 NDR_SCONTEXT pphContext
;
184 NdrServerInitializeNew(
189 ( PCTXTYPE __RPC_FAR
* )pphContext
= 0;
194 if ( (_pRpcMessage
->DataRepresentation
& 0X0000FFFFUL
) != NDR_LOCAL_DATA_REPRESENTATION
)
195 NdrConvert( (PMIDL_STUB_MESSAGE
) &_StubMsg
, (PFORMAT_STRING
) &__MIDL_ProcFormatString
.Format
[14] );
197 pphContext
= NdrServerContextUnmarshall(( PMIDL_STUB_MESSAGE
)&_StubMsg
);
199 if(_StubMsg
.Buffer
> _StubMsg
.BufferEnd
)
201 RpcRaiseException(RPC_X_BAD_STUB_DATA
);
204 RpcExcept( RPC_BAD_STUB_DATA_EXCEPTION_FILTER
)
206 RpcRaiseException(RPC_X_BAD_STUB_DATA
);
210 CtxClose(( PCTXTYPE __RPC_FAR
* )NDRSContextValue(pphContext
));
212 _StubMsg
.BufferLength
= 20U;
213 _pRpcMessage
->BufferLength
= _StubMsg
.BufferLength
;
215 _Status
= I_RpcGetBuffer( _pRpcMessage
);
217 RpcRaiseException( _Status
);
219 _StubMsg
.Buffer
= (unsigned char __RPC_FAR
*) _pRpcMessage
->Buffer
;
221 NdrServerContextMarshall(
222 ( PMIDL_STUB_MESSAGE
)&_StubMsg
,
223 ( NDR_SCONTEXT
)pphContext
,
224 ( NDR_RUNDOWN
)PCTXTYPE_rundown
);
231 _pRpcMessage
->BufferLength
=
232 (unsigned int)(_StubMsg
.Buffer
- (unsigned char __RPC_FAR
*)_pRpcMessage
->Buffer
);
237 static const MIDL_STUB_DESC hello_StubDesc
=
239 (void __RPC_FAR
*)& hello___RpcServerInterface
,
247 __MIDL_TypeFormatString
.Format
,
248 1, /* -error bounds_check flag */
249 0x10001, /* Ndr library version */
251 0x5030118, /* MIDL Version 5.3.280 */
254 0, /* notify & notify_flag routine table */
261 static RPC_DISPATCH_FUNCTION hello_table
[] =
268 RPC_DISPATCH_TABLE hello_v1_0_DispatchTable
=
274 #if !defined(__RPC_WIN32__)
275 #error Invalid build platform for this stub.
278 static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString
=
283 0x51, /* FC_OUT_PARAM */
285 0x1, /* x86, MIPS & PPC stack size = 1 */
287 0x2, /* Alpha stack size = 2 */
289 /* 2 */ NdrFcShort( 0x2 ), /* Type Offset=2 */
290 /* 4 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
292 /* 6 */ 0x5b, /* FC_END */
295 0x4d, /* FC_IN_PARAM */
297 0x1, /* x86, MIPS & PPC stack size = 1 */
299 0x2, /* Alpha stack size = 2 */
301 /* 10 */ NdrFcShort( 0xa ), /* Type Offset=10 */
302 /* 12 */ 0x5b, /* FC_END */
305 0x50, /* FC_IN_OUT_PARAM */
307 0x1, /* x86, MIPS & PPC stack size = 1 */
309 0x2, /* Alpha stack size = 2 */
311 /* 16 */ NdrFcShort( 0xe ), /* Type Offset=14 */
312 /* 18 */ 0x5b, /* FC_END */
319 static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString
=
323 NdrFcShort( 0x0 ), /* 0 */
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, */
331 /* 10 */ 0x30, /* FC_BIND_CONTEXT */
332 0x41, /* Ctxt flags: in, can't be null */
333 /* 12 */ 0x0, /* 0 */
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 */
348 #endif /* !defined(_M_IA64) && !defined(_M_AXP64)*/