1 /* this ALWAYS GENERATED file contains the proxy stub code */
4 /* File created by MIDL compiler version 2.00.0102 */
5 /* at Wed Oct 30 17:25:28 1996
7 //@@MIDL_FILE_HEADING( )
13 extern const MIDL_FORMAT_STRING __MIDLFormatString
;
15 extern const MIDL_FORMAT_STRING __MIDLProcFormatString
;
18 extern const MIDL_STUB_DESC Object_StubDesc
;
21 #pragma code_seg(".orpc")
23 HRESULT __stdcall
ILookup_LookupByName_Proxy(
24 ILookup __RPC_FAR
* This
,
25 /* [in] */ LPTSTR lpName
,
26 /* [string][out] */ WCHAR __RPC_FAR
*__RPC_FAR
*lplpNumber
)
31 RPC_MESSAGE _RpcMessage
;
33 MIDL_STUB_MESSAGE _StubMsg
;
41 ( void __RPC_FAR
* )This
,
42 ( PRPC_MESSAGE
)&_RpcMessage
,
43 ( PMIDL_STUB_MESSAGE
)&_StubMsg
,
44 ( PMIDL_STUB_DESC
)&Object_StubDesc
,
50 _StubMsg
.BufferLength
= 12U;
51 NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE
) &_StubMsg
,
52 (unsigned char __RPC_FAR
*)lpName
,
53 (PFORMAT_STRING
) &__MIDLFormatString
.Format
[2] );
55 NdrProxyGetBuffer(This
, &_StubMsg
);
56 NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE
)& _StubMsg
,
57 (unsigned char __RPC_FAR
*)lpName
,
58 (PFORMAT_STRING
) &__MIDLFormatString
.Format
[2] );
60 NdrProxySendReceive(This
, &_StubMsg
);
62 if ( (_RpcMessage
.DataRepresentation
& 0X0000FFFFUL
) != NDR_LOCAL_DATA_REPRESENTATION
)
63 NdrConvert( (PMIDL_STUB_MESSAGE
) &_StubMsg
, (PFORMAT_STRING
) &__MIDLProcFormatString
.Format
[0] );
65 NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE
) &_StubMsg
,
66 (unsigned char __RPC_FAR
* __RPC_FAR
*)&lplpNumber
,
67 (PFORMAT_STRING
) &__MIDLFormatString
.Format
[4],
70 _StubMsg
.Buffer
= (unsigned char __RPC_FAR
*)(((long)_StubMsg
.Buffer
+ 3) & ~ 0x3);
71 _RetVal
= *(( HRESULT __RPC_FAR
* )_StubMsg
.Buffer
)++;
76 NdrProxyFreeBuffer(This
, &_StubMsg
);
82 RpcExcept(_StubMsg
.dwStubPhase
!= PROXY_SENDRECEIVE
)
84 NdrClearOutParameters(
85 ( PMIDL_STUB_MESSAGE
)&_StubMsg
,
86 ( PFORMAT_STRING
)&__MIDLFormatString
.Format
[4],
87 ( void __RPC_FAR
* )lplpNumber
);
88 _RetVal
= NdrProxyErrorHandler(GetExceptionCode());
94 void __RPC_STUB
ILookup_LookupByName_Stub(
96 IRpcChannelBuffer
*_pRpcChannelBuffer
,
97 PRPC_MESSAGE _pRpcMessage
,
100 WCHAR __RPC_FAR
*_M4
;
102 MIDL_STUB_MESSAGE _StubMsg
;
104 WCHAR __RPC_FAR
*__RPC_FAR
*lplpNumber
;
115 if ( (_pRpcMessage
->DataRepresentation
& 0X0000FFFFUL
) != NDR_LOCAL_DATA_REPRESENTATION
)
116 NdrConvert( (PMIDL_STUB_MESSAGE
) &_StubMsg
, (PFORMAT_STRING
) &__MIDLProcFormatString
.Format
[0] );
118 NdrConformantStringUnmarshall( (PMIDL_STUB_MESSAGE
) &_StubMsg
,
119 (unsigned char __RPC_FAR
* __RPC_FAR
*)&lpName
,
120 (PFORMAT_STRING
) &__MIDLFormatString
.Format
[2],
126 *_pdwStubPhase
= STUB_CALL_SERVER
;
127 _RetVal
= (((ILookup
*) ((CStdStubBuffer
*)This
)->pvServerObject
)->lpVtbl
) -> LookupByName(
128 (ILookup
*) ((CStdStubBuffer
*)This
)->pvServerObject
,
132 *_pdwStubPhase
= STUB_MARSHAL
;
134 _StubMsg
.BufferLength
= 16U + 10U;
135 NdrPointerBufferSize( (PMIDL_STUB_MESSAGE
) &_StubMsg
,
136 (unsigned char __RPC_FAR
*)lplpNumber
,
137 (PFORMAT_STRING
) &__MIDLFormatString
.Format
[4] );
139 _StubMsg
.BufferLength
+= 16;
141 NdrStubGetBuffer(This
, _pRpcChannelBuffer
, &_StubMsg
);
142 NdrPointerMarshall( (PMIDL_STUB_MESSAGE
)& _StubMsg
,
143 (unsigned char __RPC_FAR
*)lplpNumber
,
144 (PFORMAT_STRING
) &__MIDLFormatString
.Format
[4] );
146 _StubMsg
.Buffer
= (unsigned char __RPC_FAR
*)(((long)_StubMsg
.Buffer
+ 3) & ~ 0x3);
147 *(( HRESULT __RPC_FAR
* )_StubMsg
.Buffer
)++ = _RetVal
;
152 NdrPointerFree( &_StubMsg
,
153 (unsigned char __RPC_FAR
*)lplpNumber
,
154 &__MIDLFormatString
.Format
[4] );
158 _pRpcMessage
->BufferLength
=
159 (unsigned int)((long)_StubMsg
.Buffer
- (long)_pRpcMessage
->Buffer
);
164 HRESULT __stdcall
ILookup_LookupByNumber_Proxy(
165 ILookup __RPC_FAR
* This
,
166 /* [in] */ LPSTR lpNumber
,
167 /* [string][out] */ WCHAR __RPC_FAR
*__RPC_FAR
*lplpName
)
172 RPC_MESSAGE _RpcMessage
;
174 MIDL_STUB_MESSAGE _StubMsg
;
182 ( void __RPC_FAR
* )This
,
183 ( PRPC_MESSAGE
)&_RpcMessage
,
184 ( PMIDL_STUB_MESSAGE
)&_StubMsg
,
185 ( PMIDL_STUB_DESC
)&Object_StubDesc
,
191 _StubMsg
.BufferLength
= 12U;
192 NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE
) &_StubMsg
,
193 (unsigned char __RPC_FAR
*)lpNumber
,
194 (PFORMAT_STRING
) &__MIDLFormatString
.Format
[14] );
196 NdrProxyGetBuffer(This
, &_StubMsg
);
197 NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE
)& _StubMsg
,
198 (unsigned char __RPC_FAR
*)lpNumber
,
199 (PFORMAT_STRING
) &__MIDLFormatString
.Format
[14] );
201 NdrProxySendReceive(This
, &_StubMsg
);
203 if ( (_RpcMessage
.DataRepresentation
& 0X0000FFFFUL
) != NDR_LOCAL_DATA_REPRESENTATION
)
204 NdrConvert( (PMIDL_STUB_MESSAGE
) &_StubMsg
, (PFORMAT_STRING
) &__MIDLProcFormatString
.Format
[10] );
206 NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE
) &_StubMsg
,
207 (unsigned char __RPC_FAR
* __RPC_FAR
*)&lplpName
,
208 (PFORMAT_STRING
) &__MIDLFormatString
.Format
[4],
211 _StubMsg
.Buffer
= (unsigned char __RPC_FAR
*)(((long)_StubMsg
.Buffer
+ 3) & ~ 0x3);
212 _RetVal
= *(( HRESULT __RPC_FAR
* )_StubMsg
.Buffer
)++;
217 NdrProxyFreeBuffer(This
, &_StubMsg
);
223 RpcExcept(_StubMsg
.dwStubPhase
!= PROXY_SENDRECEIVE
)
225 NdrClearOutParameters(
226 ( PMIDL_STUB_MESSAGE
)&_StubMsg
,
227 ( PFORMAT_STRING
)&__MIDLFormatString
.Format
[4],
228 ( void __RPC_FAR
* )lplpName
);
229 _RetVal
= NdrProxyErrorHandler(GetExceptionCode());
235 void __RPC_STUB
ILookup_LookupByNumber_Stub(
236 IRpcStubBuffer
*This
,
237 IRpcChannelBuffer
*_pRpcChannelBuffer
,
238 PRPC_MESSAGE _pRpcMessage
,
239 DWORD
*_pdwStubPhase
)
241 WCHAR __RPC_FAR
*_M9
;
243 MIDL_STUB_MESSAGE _StubMsg
;
245 WCHAR __RPC_FAR
*__RPC_FAR
*lplpName
;
256 if ( (_pRpcMessage
->DataRepresentation
& 0X0000FFFFUL
) != NDR_LOCAL_DATA_REPRESENTATION
)
257 NdrConvert( (PMIDL_STUB_MESSAGE
) &_StubMsg
, (PFORMAT_STRING
) &__MIDLProcFormatString
.Format
[10] );
259 NdrConformantStringUnmarshall( (PMIDL_STUB_MESSAGE
) &_StubMsg
,
260 (unsigned char __RPC_FAR
* __RPC_FAR
*)&lpNumber
,
261 (PFORMAT_STRING
) &__MIDLFormatString
.Format
[14],
267 *_pdwStubPhase
= STUB_CALL_SERVER
;
268 _RetVal
= (((ILookup
*) ((CStdStubBuffer
*)This
)->pvServerObject
)->lpVtbl
) -> LookupByNumber(
269 (ILookup
*) ((CStdStubBuffer
*)This
)->pvServerObject
,
273 *_pdwStubPhase
= STUB_MARSHAL
;
275 _StubMsg
.BufferLength
= 16U + 10U;
276 NdrPointerBufferSize( (PMIDL_STUB_MESSAGE
) &_StubMsg
,
277 (unsigned char __RPC_FAR
*)lplpName
,
278 (PFORMAT_STRING
) &__MIDLFormatString
.Format
[4] );
280 _StubMsg
.BufferLength
+= 16;
282 NdrStubGetBuffer(This
, _pRpcChannelBuffer
, &_StubMsg
);
283 NdrPointerMarshall( (PMIDL_STUB_MESSAGE
)& _StubMsg
,
284 (unsigned char __RPC_FAR
*)lplpName
,
285 (PFORMAT_STRING
) &__MIDLFormatString
.Format
[4] );
287 _StubMsg
.Buffer
= (unsigned char __RPC_FAR
*)(((long)_StubMsg
.Buffer
+ 3) & ~ 0x3);
288 *(( HRESULT __RPC_FAR
* )_StubMsg
.Buffer
)++ = _RetVal
;
293 NdrPointerFree( &_StubMsg
,
294 (unsigned char __RPC_FAR
*)lplpName
,
295 &__MIDLFormatString
.Format
[4] );
299 _pRpcMessage
->BufferLength
=
300 (unsigned int)((long)_StubMsg
.Buffer
- (long)_pRpcMessage
->Buffer
);
305 static const MIDL_STUB_DESC Object_StubDesc
=
315 __MIDLFormatString
.Format
,
316 0, /* -error bounds_check flag */
317 0x10001, /* Ndr library version */
319 0x2000066, /* MIDL Version 2.0.102 */
323 const CInterfaceProxyVtbl _ILookupProxyVtbl
=
326 IUnknown_QueryInterface_Proxy
,
327 IUnknown_AddRef_Proxy
,
328 IUnknown_Release_Proxy
,
329 ILookup_LookupByName_Proxy
,
330 ILookup_LookupByNumber_Proxy
334 static const PRPC_STUB_FUNCTION ILookup_table
[] =
336 ILookup_LookupByName_Stub
,
337 ILookup_LookupByNumber_Stub
340 const CInterfaceStubVtbl _ILookupStubVtbl
=
346 CStdStubBuffer_METHODS
349 #pragma data_seg(".rdata")
351 #if !defined(__RPC_WIN32__)
352 #error Invalid build platform for this stub.
355 static const MIDL_FORMAT_STRING __MIDLProcFormatString
=
360 0x4d, /* FC_IN_PARAM */
362 0x1, /* x86, MIPS & PPC Stack size = 1 */
364 0x2, /* Alpha Stack size = 2 */
366 /* 2 */ NdrFcShort( 0x0 ), /* Type Offset=0 */
368 0x51, /* FC_OUT_PARAM */
370 0x1, /* x86, MIPS & PPC Stack size = 1 */
372 0x2, /* Alpha Stack size = 2 */
374 /* 6 */ NdrFcShort( 0x4 ), /* Type Offset=4 */
375 /* 8 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
378 0x4d, /* FC_IN_PARAM */
380 0x1, /* x86, MIPS & PPC Stack size = 1 */
382 0x2, /* Alpha Stack size = 2 */
384 /* 12 */ NdrFcShort( 0xc ), /* Type Offset=12 */
386 0x51, /* FC_OUT_PARAM */
388 0x1, /* x86, MIPS & PPC Stack size = 1 */
390 0x2, /* Alpha Stack size = 2 */
392 /* 16 */ NdrFcShort( 0x4 ), /* Type Offset=4 */
393 /* 18 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
400 static const MIDL_FORMAT_STRING __MIDLFormatString
=
404 0x11, 0x8, /* FC_RP [simple_pointer] */
406 0x25, /* FC_C_WSTRING */
409 0x11, 0x14, /* FC_RP [alloced_on_stack] */
410 /* 6 */ NdrFcShort( 0x2 ), /* Offset= 2 (8) */
412 0x13, 0x8, /* FC_OP [simple_pointer] */
414 0x25, /* FC_C_WSTRING */
417 0x11, 0x8, /* FC_RP [simple_pointer] */
419 0x22, /* FC_C_CSTRING */
426 const CInterfaceProxyVtbl
* _Lookup_ProxyVtblList
[] =
428 ( CInterfaceProxyVtbl
*) &_ILookupProxyVtbl
,
432 const CInterfaceStubVtbl
* _Lookup_StubVtblList
[] =
434 ( CInterfaceStubVtbl
*) &_ILookupStubVtbl
,
438 PCInterfaceName
const _Lookup_InterfaceNamesList
[] =
445 #define _Lookup_CHECK_IID(n) IID_GENERIC_CHECK_IID( _Lookup, pIID, n)
447 int __stdcall
_Lookup_IID_Lookup( const IID
* pIID
, int * pIndex
)
450 if(!_Lookup_CHECK_IID(0))
459 const ExtendedProxyFileInfo Lookup_ProxyFileInfo
=
461 (PCInterfaceProxyVtblList
*) & _Lookup_ProxyVtblList
,
462 (PCInterfaceStubVtblList
*) & _Lookup_StubVtblList
,
463 (const PCInterfaceName
* ) & _Lookup_InterfaceNamesList
,
465 & _Lookup_IID_Lookup
,