DEADSOFTWARE

new -> BlackBox
[bbcp.git] / BlackBox / _Windows_GUI / Com / Interfaces / Lookup / Lookup_p.c
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
6 */
7 //@@MIDL_FILE_HEADING( )
9 #include "rpcproxy.h"
10 #include "Lookup.h"
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)
27 {
29 HRESULT _RetVal;
31 RPC_MESSAGE _RpcMessage;
33 MIDL_STUB_MESSAGE _StubMsg;
35 *lplpNumber = 0;
36 RpcTryExcept
37 {
38 RpcTryFinally
39 {
40 NdrProxyInitialize(
41 ( void __RPC_FAR * )This,
42 ( PRPC_MESSAGE )&_RpcMessage,
43 ( PMIDL_STUB_MESSAGE )&_StubMsg,
44 ( PMIDL_STUB_DESC )&Object_StubDesc,
45 3);
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],
68 (unsigned char)0 );
70 _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
71 _RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
73 }
74 RpcFinally
75 {
76 NdrProxyFreeBuffer(This, &_StubMsg);
78 }
79 RpcEndFinally
81 }
82 RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
83 {
84 NdrClearOutParameters(
85 ( PMIDL_STUB_MESSAGE )&_StubMsg,
86 ( PFORMAT_STRING )&__MIDLFormatString.Format[4],
87 ( void __RPC_FAR * )lplpNumber);
88 _RetVal = NdrProxyErrorHandler(GetExceptionCode());
89 }
90 RpcEndExcept
91 return _RetVal;
92 }
94 void __RPC_STUB ILookup_LookupByName_Stub(
95 IRpcStubBuffer *This,
96 IRpcChannelBuffer *_pRpcChannelBuffer,
97 PRPC_MESSAGE _pRpcMessage,
98 DWORD *_pdwStubPhase)
99 {
100 WCHAR __RPC_FAR *_M4;
101 HRESULT _RetVal;
102 MIDL_STUB_MESSAGE _StubMsg;
103 LPTSTR lpName;
104 WCHAR __RPC_FAR *__RPC_FAR *lplpNumber;
106 NdrStubInitialize(
107 _pRpcMessage,
108 &_StubMsg,
109 &Object_StubDesc,
110 _pRpcChannelBuffer);
111 lpName = 0;
112 lplpNumber = 0;
113 RpcTryFinally
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],
121 (unsigned char)0 );
123 lplpNumber = &_M4;
124 _M4 = 0;
126 *_pdwStubPhase = STUB_CALL_SERVER;
127 _RetVal = (((ILookup *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> LookupByName(
128 (ILookup *) ((CStdStubBuffer *)This)->pvServerObject,
129 lpName,
130 lplpNumber);
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;
150 RpcFinally
152 NdrPointerFree( &_StubMsg,
153 (unsigned char __RPC_FAR *)lplpNumber,
154 &__MIDLFormatString.Format[4] );
157 RpcEndFinally
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)
170 HRESULT _RetVal;
172 RPC_MESSAGE _RpcMessage;
174 MIDL_STUB_MESSAGE _StubMsg;
176 *lplpName = 0;
177 RpcTryExcept
179 RpcTryFinally
181 NdrProxyInitialize(
182 ( void __RPC_FAR * )This,
183 ( PRPC_MESSAGE )&_RpcMessage,
184 ( PMIDL_STUB_MESSAGE )&_StubMsg,
185 ( PMIDL_STUB_DESC )&Object_StubDesc,
186 4);
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],
209 (unsigned char)0 );
211 _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
212 _RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
215 RpcFinally
217 NdrProxyFreeBuffer(This, &_StubMsg);
220 RpcEndFinally
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());
231 RpcEndExcept
232 return _RetVal;
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;
242 HRESULT _RetVal;
243 MIDL_STUB_MESSAGE _StubMsg;
244 LPSTR lpNumber;
245 WCHAR __RPC_FAR *__RPC_FAR *lplpName;
247 NdrStubInitialize(
248 _pRpcMessage,
249 &_StubMsg,
250 &Object_StubDesc,
251 _pRpcChannelBuffer);
252 lpNumber = 0;
253 lplpName = 0;
254 RpcTryFinally
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],
262 (unsigned char)0 );
264 lplpName = &_M9;
265 _M9 = 0;
267 *_pdwStubPhase = STUB_CALL_SERVER;
268 _RetVal = (((ILookup *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> LookupByNumber(
269 (ILookup *) ((CStdStubBuffer *)This)->pvServerObject,
270 lpNumber,
271 lplpName);
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;
291 RpcFinally
293 NdrPointerFree( &_StubMsg,
294 (unsigned char __RPC_FAR *)lplpName,
295 &__MIDLFormatString.Format[4] );
298 RpcEndFinally
299 _pRpcMessage->BufferLength =
300 (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
305 static const MIDL_STUB_DESC Object_StubDesc =
307 0,
308 NdrOleAllocate,
309 NdrOleFree,
310 0,
311 0,
312 0,
313 0,
314 0,
315 __MIDLFormatString.Format,
316 0, /* -error bounds_check flag */
317 0x10001, /* Ndr library version */
318 0,
319 0x2000066, /* MIDL Version 2.0.102 */
321 };
323 const CInterfaceProxyVtbl _ILookupProxyVtbl =
325 &IID_ILookup,
326 IUnknown_QueryInterface_Proxy,
327 IUnknown_AddRef_Proxy,
328 IUnknown_Release_Proxy ,
329 ILookup_LookupByName_Proxy ,
330 ILookup_LookupByNumber_Proxy
331 };
334 static const PRPC_STUB_FUNCTION ILookup_table[] =
336 ILookup_LookupByName_Stub,
337 ILookup_LookupByNumber_Stub
338 };
340 const CInterfaceStubVtbl _ILookupStubVtbl =
342 &IID_ILookup,
343 0,
344 5,
345 &ILookup_table[-3],
346 CStdStubBuffer_METHODS
347 };
349 #pragma data_seg(".rdata")
351 #if !defined(__RPC_WIN32__)
352 #error Invalid build platform for this stub.
353 #endif
355 static const MIDL_FORMAT_STRING __MIDLProcFormatString =
357 0,
360 0x4d, /* FC_IN_PARAM */
361 #ifndef _ALPHA_
362 0x1, /* x86, MIPS & PPC Stack size = 1 */
363 #else
364 0x2, /* Alpha Stack size = 2 */
365 #endif
366 /* 2 */ NdrFcShort( 0x0 ), /* Type Offset=0 */
367 /* 4 */
368 0x51, /* FC_OUT_PARAM */
369 #ifndef _ALPHA_
370 0x1, /* x86, MIPS & PPC Stack size = 1 */
371 #else
372 0x2, /* Alpha Stack size = 2 */
373 #endif
374 /* 6 */ NdrFcShort( 0x4 ), /* Type Offset=4 */
375 /* 8 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
376 0x8, /* FC_LONG */
377 /* 10 */
378 0x4d, /* FC_IN_PARAM */
379 #ifndef _ALPHA_
380 0x1, /* x86, MIPS & PPC Stack size = 1 */
381 #else
382 0x2, /* Alpha Stack size = 2 */
383 #endif
384 /* 12 */ NdrFcShort( 0xc ), /* Type Offset=12 */
385 /* 14 */
386 0x51, /* FC_OUT_PARAM */
387 #ifndef _ALPHA_
388 0x1, /* x86, MIPS & PPC Stack size = 1 */
389 #else
390 0x2, /* Alpha Stack size = 2 */
391 #endif
392 /* 16 */ NdrFcShort( 0x4 ), /* Type Offset=4 */
393 /* 18 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
394 0x8, /* FC_LONG */
396 0x0
398 };
400 static const MIDL_FORMAT_STRING __MIDLFormatString =
402 0,
404 0x11, 0x8, /* FC_RP [simple_pointer] */
405 /* 2 */
406 0x25, /* FC_C_WSTRING */
407 0x5c, /* FC_PAD */
408 /* 4 */
409 0x11, 0x14, /* FC_RP [alloced_on_stack] */
410 /* 6 */ NdrFcShort( 0x2 ), /* Offset= 2 (8) */
411 /* 8 */
412 0x13, 0x8, /* FC_OP [simple_pointer] */
413 /* 10 */
414 0x25, /* FC_C_WSTRING */
415 0x5c, /* FC_PAD */
416 /* 12 */
417 0x11, 0x8, /* FC_RP [simple_pointer] */
418 /* 14 */
419 0x22, /* FC_C_CSTRING */
420 0x5c, /* FC_PAD */
422 0x0
424 };
426 const CInterfaceProxyVtbl * _Lookup_ProxyVtblList[] =
428 ( CInterfaceProxyVtbl *) &_ILookupProxyVtbl,
430 };
432 const CInterfaceStubVtbl * _Lookup_StubVtblList[] =
434 ( CInterfaceStubVtbl *) &_ILookupStubVtbl,
436 };
438 PCInterfaceName const _Lookup_InterfaceNamesList[] =
440 "ILookup",
442 };
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))
452 *pIndex = 0;
453 return 1;
456 return 0;
459 const ExtendedProxyFileInfo Lookup_ProxyFileInfo =
461 (PCInterfaceProxyVtblList *) & _Lookup_ProxyVtblList,
462 (PCInterfaceStubVtblList *) & _Lookup_StubVtblList,
463 (const PCInterfaceName * ) & _Lookup_InterfaceNamesList,
464 0, // no delegation
465 & _Lookup_IID_Lookup,
466 1,
468 };