source: trunk/DirectShowSpy/BdaHooks/BdaHooks_p.c @ 171

Last change on this file since 171 was 144, checked in by roman, 11 years ago
  • hooking and tracing device enumerator calls
  • minor updates
File size: 11.0 KB
Line 
1
2
3/* this ALWAYS GENERATED file contains the proxy stub code */
4
5
6 /* File created by MIDL compiler version 7.00.0500 */
7/* at Sat Nov 17 01:35:26 2012
8 */
9/* Compiler settings for .\BdaHooks.idl:
10    Oicf, W1, Zp8, env=Win32 (32b run)
11    protocol : dce , ms_ext, c_ext, robust
12    error checks: 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_AMD64)
20
21
22#pragma warning( disable: 4049 )  /* more than 64k source lines */
23#if _MSC_VER >= 1200
24#pragma warning(push)
25#endif
26
27#pragma warning( disable: 4211 )  /* redefine extern to static */
28#pragma warning( disable: 4232 )  /* dllimport identity*/
29#pragma warning( disable: 4024 )  /* array to pointer mapping*/
30#pragma warning( disable: 4152 )  /* function/data pointer conversion in expression */
31#pragma warning( disable: 4100 ) /* unreferenced arguments in x86 call */
32
33#pragma optimize("", off )
34
35#define USE_STUBLESS_PROXY
36
37
38/* verify that the <rpcproxy.h> version is high enough to compile this file*/
39#ifndef __REDQ_RPCPROXY_H_VERSION__
40#define __REQUIRED_RPCPROXY_H_VERSION__ 475
41#endif
42
43
44#include "rpcproxy.h"
45#ifndef __RPCPROXY_H_VERSION__
46#error this stub requires an updated version of <rpcproxy.h>
47#endif // __RPCPROXY_H_VERSION__
48
49
50#include "BdaHooks_i.h"
51
52#define TYPE_FORMAT_STRING_SIZE   3                                 
53#define PROC_FORMAT_STRING_SIZE   1                                 
54#define EXPR_FORMAT_STRING_SIZE   1                                 
55#define TRANSMIT_AS_TABLE_SIZE    0           
56#define WIRE_MARSHAL_TABLE_SIZE   0           
57
58typedef struct _BdaHooks_MIDL_TYPE_FORMAT_STRING
59    {
60    short          Pad;
61    unsigned char  Format[ TYPE_FORMAT_STRING_SIZE ];
62    } BdaHooks_MIDL_TYPE_FORMAT_STRING;
63
64typedef struct _BdaHooks_MIDL_PROC_FORMAT_STRING
65    {
66    short          Pad;
67    unsigned char  Format[ PROC_FORMAT_STRING_SIZE ];
68    } BdaHooks_MIDL_PROC_FORMAT_STRING;
69
70typedef struct _BdaHooks_MIDL_EXPR_FORMAT_STRING
71    {
72    long          Pad;
73    unsigned char  Format[ EXPR_FORMAT_STRING_SIZE ];
74    } BdaHooks_MIDL_EXPR_FORMAT_STRING;
75
76
77static RPC_SYNTAX_IDENTIFIER  _RpcTransferSyntax = 
78{{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}};
79
80
81extern const BdaHooks_MIDL_TYPE_FORMAT_STRING BdaHooks__MIDL_TypeFormatString;
82extern const BdaHooks_MIDL_PROC_FORMAT_STRING BdaHooks__MIDL_ProcFormatString;
83extern const BdaHooks_MIDL_EXPR_FORMAT_STRING BdaHooks__MIDL_ExprFormatString;
84
85
86extern const MIDL_STUB_DESC Object_StubDesc;
87
88
89extern const MIDL_SERVER_INFO IAddRemoveHook_ServerInfo;
90extern const MIDL_STUBLESS_PROXY_INFO IAddRemoveHook_ProxyInfo;
91
92
93extern const MIDL_STUB_DESC Object_StubDesc;
94
95
96extern const MIDL_SERVER_INFO IConnectHook_ServerInfo;
97extern const MIDL_STUBLESS_PROXY_INFO IConnectHook_ProxyInfo;
98
99
100extern const MIDL_STUB_DESC Object_StubDesc;
101
102
103extern const MIDL_SERVER_INFO IStateControlHook_ServerInfo;
104extern const MIDL_STUBLESS_PROXY_INFO IStateControlHook_ProxyInfo;
105
106
107
108#if !defined(__RPC_WIN32__)
109#error  Invalid build platform for this stub.
110#endif
111
112#if !(TARGET_IS_NT50_OR_LATER)
113#error You need a Windows 2000 or later to run this stub because it uses these features:
114#error   /robust command line switch.
115#error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
116#error This app will fail with the RPC_X_WRONG_STUB_VERSION error.
117#endif
118
119
120static const BdaHooks_MIDL_PROC_FORMAT_STRING BdaHooks__MIDL_ProcFormatString =
121    {
122        0,
123        {
124
125                        0x0
126        }
127    };
128
129static const BdaHooks_MIDL_TYPE_FORMAT_STRING BdaHooks__MIDL_TypeFormatString =
130    {
131        0,
132        {
133                        NdrFcShort( 0x0 ),      /* 0 */
134
135                        0x0
136        }
137    };
138
139
140/* Object interface: IUnknown, ver. 0.0,
141   GUID={0x00000000,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
142
143
144/* Object interface: IDispatch, ver. 0.0,
145   GUID={0x00020400,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
146
147
148/* Object interface: IAddRemoveHook, ver. 0.0,
149   GUID={0xC241D3AA,0xD1CC,0x45CF,{0x9D,0x65,0x38,0xEC,0x9A,0x19,0x66,0x19}} */
150
151#pragma code_seg(".orpc")
152static const unsigned short IAddRemoveHook_FormatStringOffsetTable[] =
153    {
154    (unsigned short) -1,
155    (unsigned short) -1,
156    (unsigned short) -1,
157    (unsigned short) -1,
158    0
159    };
160
161static const MIDL_STUBLESS_PROXY_INFO IAddRemoveHook_ProxyInfo =
162    {
163    &Object_StubDesc,
164    BdaHooks__MIDL_ProcFormatString.Format,
165    &IAddRemoveHook_FormatStringOffsetTable[-3],
166    0,
167    0,
168    0
169    };
170
171
172static const MIDL_SERVER_INFO IAddRemoveHook_ServerInfo = 
173    {
174    &Object_StubDesc,
175    0,
176    BdaHooks__MIDL_ProcFormatString.Format,
177    &IAddRemoveHook_FormatStringOffsetTable[-3],
178    0,
179    0,
180    0,
181    0};
182CINTERFACE_PROXY_VTABLE(7) _IAddRemoveHookProxyVtbl = 
183{
184    0,
185    &IID_IAddRemoveHook,
186    IUnknown_QueryInterface_Proxy,
187    IUnknown_AddRef_Proxy,
188    IUnknown_Release_Proxy ,
189    0 /* (void *) (INT_PTR) -1 /* IDispatch::GetTypeInfoCount */ ,
190    0 /* (void *) (INT_PTR) -1 /* IDispatch::GetTypeInfo */ ,
191    0 /* (void *) (INT_PTR) -1 /* IDispatch::GetIDsOfNames */ ,
192    0 /* IDispatch_Invoke_Proxy */
193};
194
195
196static const PRPC_STUB_FUNCTION IAddRemoveHook_table[] =
197{
198    STUB_FORWARDING_FUNCTION,
199    STUB_FORWARDING_FUNCTION,
200    STUB_FORWARDING_FUNCTION,
201    STUB_FORWARDING_FUNCTION
202};
203
204CInterfaceStubVtbl _IAddRemoveHookStubVtbl =
205{
206    &IID_IAddRemoveHook,
207    &IAddRemoveHook_ServerInfo,
208    7,
209    &IAddRemoveHook_table[-3],
210    CStdStubBuffer_DELEGATING_METHODS
211};
212
213
214/* Object interface: IConnectHook, ver. 0.0,
215   GUID={0xFABCEED1,0x2E77,0x491C,{0x8D,0x00,0xA0,0x18,0xB5,0xA8,0xC8,0x56}} */
216
217#pragma code_seg(".orpc")
218static const unsigned short IConnectHook_FormatStringOffsetTable[] =
219    {
220    (unsigned short) -1,
221    (unsigned short) -1,
222    (unsigned short) -1,
223    (unsigned short) -1,
224    0
225    };
226
227static const MIDL_STUBLESS_PROXY_INFO IConnectHook_ProxyInfo =
228    {
229    &Object_StubDesc,
230    BdaHooks__MIDL_ProcFormatString.Format,
231    &IConnectHook_FormatStringOffsetTable[-3],
232    0,
233    0,
234    0
235    };
236
237
238static const MIDL_SERVER_INFO IConnectHook_ServerInfo = 
239    {
240    &Object_StubDesc,
241    0,
242    BdaHooks__MIDL_ProcFormatString.Format,
243    &IConnectHook_FormatStringOffsetTable[-3],
244    0,
245    0,
246    0,
247    0};
248CINTERFACE_PROXY_VTABLE(7) _IConnectHookProxyVtbl = 
249{
250    0,
251    &IID_IConnectHook,
252    IUnknown_QueryInterface_Proxy,
253    IUnknown_AddRef_Proxy,
254    IUnknown_Release_Proxy ,
255    0 /* (void *) (INT_PTR) -1 /* IDispatch::GetTypeInfoCount */ ,
256    0 /* (void *) (INT_PTR) -1 /* IDispatch::GetTypeInfo */ ,
257    0 /* (void *) (INT_PTR) -1 /* IDispatch::GetIDsOfNames */ ,
258    0 /* IDispatch_Invoke_Proxy */
259};
260
261
262static const PRPC_STUB_FUNCTION IConnectHook_table[] =
263{
264    STUB_FORWARDING_FUNCTION,
265    STUB_FORWARDING_FUNCTION,
266    STUB_FORWARDING_FUNCTION,
267    STUB_FORWARDING_FUNCTION
268};
269
270CInterfaceStubVtbl _IConnectHookStubVtbl =
271{
272    &IID_IConnectHook,
273    &IConnectHook_ServerInfo,
274    7,
275    &IConnectHook_table[-3],
276    CStdStubBuffer_DELEGATING_METHODS
277};
278
279
280/* Object interface: IStateControlHook, ver. 0.0,
281   GUID={0x77C8D900,0x78F5,0x404C,{0x9B,0xC5,0xE3,0x1C,0xC0,0x56,0x83,0xF6}} */
282
283#pragma code_seg(".orpc")
284static const unsigned short IStateControlHook_FormatStringOffsetTable[] =
285    {
286    (unsigned short) -1,
287    (unsigned short) -1,
288    (unsigned short) -1,
289    (unsigned short) -1,
290    0
291    };
292
293static const MIDL_STUBLESS_PROXY_INFO IStateControlHook_ProxyInfo =
294    {
295    &Object_StubDesc,
296    BdaHooks__MIDL_ProcFormatString.Format,
297    &IStateControlHook_FormatStringOffsetTable[-3],
298    0,
299    0,
300    0
301    };
302
303
304static const MIDL_SERVER_INFO IStateControlHook_ServerInfo = 
305    {
306    &Object_StubDesc,
307    0,
308    BdaHooks__MIDL_ProcFormatString.Format,
309    &IStateControlHook_FormatStringOffsetTable[-3],
310    0,
311    0,
312    0,
313    0};
314CINTERFACE_PROXY_VTABLE(7) _IStateControlHookProxyVtbl = 
315{
316    0,
317    &IID_IStateControlHook,
318    IUnknown_QueryInterface_Proxy,
319    IUnknown_AddRef_Proxy,
320    IUnknown_Release_Proxy ,
321    0 /* (void *) (INT_PTR) -1 /* IDispatch::GetTypeInfoCount */ ,
322    0 /* (void *) (INT_PTR) -1 /* IDispatch::GetTypeInfo */ ,
323    0 /* (void *) (INT_PTR) -1 /* IDispatch::GetIDsOfNames */ ,
324    0 /* IDispatch_Invoke_Proxy */
325};
326
327
328static const PRPC_STUB_FUNCTION IStateControlHook_table[] =
329{
330    STUB_FORWARDING_FUNCTION,
331    STUB_FORWARDING_FUNCTION,
332    STUB_FORWARDING_FUNCTION,
333    STUB_FORWARDING_FUNCTION
334};
335
336CInterfaceStubVtbl _IStateControlHookStubVtbl =
337{
338    &IID_IStateControlHook,
339    &IStateControlHook_ServerInfo,
340    7,
341    &IStateControlHook_table[-3],
342    CStdStubBuffer_DELEGATING_METHODS
343};
344
345static const MIDL_STUB_DESC Object_StubDesc = 
346    {
347    0,
348    NdrOleAllocate,
349    NdrOleFree,
350    0,
351    0,
352    0,
353    0,
354    0,
355    BdaHooks__MIDL_TypeFormatString.Format,
356    0, /* -error bounds_check flag */
357    0x50002, /* Ndr library version */
358    0,
359    0x70001f4, /* MIDL Version 7.0.500 */
360    0,
361    0,
362    0,  /* notify & notify_flag routine table */
363    0x1, /* MIDL flag */
364    0, /* cs routines */
365    0,   /* proxy/server info */
366    0
367    };
368
369const CInterfaceProxyVtbl * _BdaHooks_ProxyVtblList[] = 
370{
371    ( CInterfaceProxyVtbl *) &_IStateControlHookProxyVtbl,
372    ( CInterfaceProxyVtbl *) &_IAddRemoveHookProxyVtbl,
373    ( CInterfaceProxyVtbl *) &_IConnectHookProxyVtbl,
374    0
375};
376
377const CInterfaceStubVtbl * _BdaHooks_StubVtblList[] = 
378{
379    ( CInterfaceStubVtbl *) &_IStateControlHookStubVtbl,
380    ( CInterfaceStubVtbl *) &_IAddRemoveHookStubVtbl,
381    ( CInterfaceStubVtbl *) &_IConnectHookStubVtbl,
382    0
383};
384
385PCInterfaceName const _BdaHooks_InterfaceNamesList[] = 
386{
387    "IStateControlHook",
388    "IAddRemoveHook",
389    "IConnectHook",
390    0
391};
392
393const IID *  _BdaHooks_BaseIIDList[] = 
394{
395    &IID_IDispatch,
396    &IID_IDispatch,
397    &IID_IDispatch,
398    0
399};
400
401
402#define _BdaHooks_CHECK_IID(n)  IID_GENERIC_CHECK_IID( _BdaHooks, pIID, n)
403
404int __stdcall _BdaHooks_IID_Lookup( const IID * pIID, int * pIndex )
405{
406    IID_BS_LOOKUP_SETUP
407
408    IID_BS_LOOKUP_INITIAL_TEST( _BdaHooks, 3, 2 )
409    IID_BS_LOOKUP_NEXT_TEST( _BdaHooks, 1 )
410    IID_BS_LOOKUP_RETURN_RESULT( _BdaHooks, 3, *pIndex )
411   
412}
413
414const ExtendedProxyFileInfo BdaHooks_ProxyFileInfo = 
415{
416    (PCInterfaceProxyVtblList *) & _BdaHooks_ProxyVtblList,
417    (PCInterfaceStubVtblList *) & _BdaHooks_StubVtblList,
418    (const PCInterfaceName * ) & _BdaHooks_InterfaceNamesList,
419    (const IID ** ) & _BdaHooks_BaseIIDList,
420    & _BdaHooks_IID_Lookup, 
421    3,
422    2,
423    0, /* table of [async_uuid] interfaces */
424    0, /* Filler1 */
425    0, /* Filler2 */
426    0  /* Filler3 */
427};
428#pragma optimize("", on )
429#if _MSC_VER >= 1200
430#pragma warning(pop)
431#endif
432
433
434#endif /* !defined(_M_IA64) && !defined(_M_AMD64)*/
435
Note: See TracBrowser for help on using the repository browser.