Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5  */
      6 #ifndef __REQUIRED_RPCNDR_H_VERSION__
      7 #define __REQUIRED_RPCNDR_H_VERSION__ 475
      8 #endif
      9 
     10 #include "rpc.h"
     11 #include "rpcndr.h"
     12 
     13 #ifndef __RPCNDR_H_VERSION__
     14 #error This stub requires an updated version of <rpcndr.h>
     15 #endif
     16 
     17 #ifndef COM_NO_WINDOWS_H
     18 #include "windows.h"
     19 #include "ole2.h"
     20 #endif
     21 
     22 #ifndef __wbemprov_h__
     23 #define __wbemprov_h__
     24 
     25 #ifndef __IWbemPropertyProvider_FWD_DEFINED__
     26 #define __IWbemPropertyProvider_FWD_DEFINED__
     27 typedef struct IWbemPropertyProvider IWbemPropertyProvider;
     28 #endif
     29 
     30 #ifndef __IWbemUnboundObjectSink_FWD_DEFINED__
     31 #define __IWbemUnboundObjectSink_FWD_DEFINED__
     32 typedef struct IWbemUnboundObjectSink IWbemUnboundObjectSink;
     33 #endif
     34 
     35 #ifndef __IWbemEventProvider_FWD_DEFINED__
     36 #define __IWbemEventProvider_FWD_DEFINED__
     37 typedef struct IWbemEventProvider IWbemEventProvider;
     38 #endif
     39 
     40 #ifndef __IWbemEventProviderQuerySink_FWD_DEFINED__
     41 #define __IWbemEventProviderQuerySink_FWD_DEFINED__
     42 typedef struct IWbemEventProviderQuerySink IWbemEventProviderQuerySink;
     43 #endif
     44 
     45 #ifndef __IWbemEventProviderSecurity_FWD_DEFINED__
     46 #define __IWbemEventProviderSecurity_FWD_DEFINED__
     47 typedef struct IWbemEventProviderSecurity IWbemEventProviderSecurity;
     48 #endif
     49 
     50 #ifndef __IWbemEventConsumerProvider_FWD_DEFINED__
     51 #define __IWbemEventConsumerProvider_FWD_DEFINED__
     52 typedef struct IWbemEventConsumerProvider IWbemEventConsumerProvider;
     53 #endif
     54 
     55 #ifndef __IWbemProviderInitSink_FWD_DEFINED__
     56 #define __IWbemProviderInitSink_FWD_DEFINED__
     57 typedef struct IWbemProviderInitSink IWbemProviderInitSink;
     58 #endif
     59 
     60 #ifndef __IWbemProviderInit_FWD_DEFINED__
     61 #define __IWbemProviderInit_FWD_DEFINED__
     62 typedef struct IWbemProviderInit IWbemProviderInit;
     63 #endif
     64 
     65 #ifndef __IWbemHiPerfProvider_FWD_DEFINED__
     66 #define __IWbemHiPerfProvider_FWD_DEFINED__
     67 typedef struct IWbemHiPerfProvider IWbemHiPerfProvider;
     68 #endif
     69 
     70 #ifndef __IWbemDecoupledRegistrar_FWD_DEFINED__
     71 #define __IWbemDecoupledRegistrar_FWD_DEFINED__
     72 typedef struct IWbemDecoupledRegistrar IWbemDecoupledRegistrar;
     73 #endif
     74 
     75 #ifndef __WbemAdministrativeLocator_FWD_DEFINED__
     76 #define __WbemAdministrativeLocator_FWD_DEFINED__
     77 #ifdef __cplusplus
     78 typedef class WbemAdministrativeLocator WbemAdministrativeLocator;
     79 #else
     80 typedef struct WbemAdministrativeLocator WbemAdministrativeLocator;
     81 #endif
     82 #endif
     83 
     84 #ifndef __WbemAuthenticatedLocator_FWD_DEFINED__
     85 #define __WbemAuthenticatedLocator_FWD_DEFINED__
     86 #ifdef __cplusplus
     87 typedef class WbemAuthenticatedLocator WbemAuthenticatedLocator;
     88 #else
     89 typedef struct WbemAuthenticatedLocator WbemAuthenticatedLocator;
     90 #endif
     91 #endif
     92 
     93 #ifndef __WbemUnauthenticatedLocator_FWD_DEFINED__
     94 #define __WbemUnauthenticatedLocator_FWD_DEFINED__
     95 #ifdef __cplusplus
     96 typedef class WbemUnauthenticatedLocator WbemUnauthenticatedLocator;
     97 #else
     98 typedef struct WbemUnauthenticatedLocator WbemUnauthenticatedLocator;
     99 #endif
    100 #endif
    101 
    102 #ifndef __WbemDecoupledRegistrar_FWD_DEFINED__
    103 #define __WbemDecoupledRegistrar_FWD_DEFINED__
    104 #ifdef __cplusplus
    105 typedef class WbemDecoupledRegistrar WbemDecoupledRegistrar;
    106 #else
    107 typedef struct WbemDecoupledRegistrar WbemDecoupledRegistrar;
    108 #endif
    109 #endif
    110 
    111 #ifndef __WbemDecoupledBasicEventProvider_FWD_DEFINED__
    112 #define __WbemDecoupledBasicEventProvider_FWD_DEFINED__
    113 #ifdef __cplusplus
    114 typedef class WbemDecoupledBasicEventProvider WbemDecoupledBasicEventProvider;
    115 #else
    116 typedef struct WbemDecoupledBasicEventProvider WbemDecoupledBasicEventProvider;
    117 #endif
    118 #endif
    119 
    120 #ifndef __IWbemUnboundObjectSink_FWD_DEFINED__
    121 #define __IWbemUnboundObjectSink_FWD_DEFINED__
    122 typedef struct IWbemUnboundObjectSink IWbemUnboundObjectSink;
    123 #endif
    124 
    125 #ifndef __IWbemPropertyProvider_FWD_DEFINED__
    126 #define __IWbemPropertyProvider_FWD_DEFINED__
    127 typedef struct IWbemPropertyProvider IWbemPropertyProvider;
    128 #endif
    129 
    130 #ifndef __IWbemEventProvider_FWD_DEFINED__
    131 #define __IWbemEventProvider_FWD_DEFINED__
    132 typedef struct IWbemEventProvider IWbemEventProvider;
    133 #endif
    134 
    135 #ifndef __IWbemEventProviderQuerySink_FWD_DEFINED__
    136 #define __IWbemEventProviderQuerySink_FWD_DEFINED__
    137 typedef struct IWbemEventProviderQuerySink IWbemEventProviderQuerySink;
    138 #endif
    139 
    140 #ifndef __IWbemEventProviderSecurity_FWD_DEFINED__
    141 #define __IWbemEventProviderSecurity_FWD_DEFINED__
    142 typedef struct IWbemEventProviderSecurity IWbemEventProviderSecurity;
    143 #endif
    144 
    145 #ifndef __IWbemProviderIdentity_FWD_DEFINED__
    146 #define __IWbemProviderIdentity_FWD_DEFINED__
    147 typedef struct IWbemProviderIdentity IWbemProviderIdentity;
    148 #endif
    149 
    150 #ifndef __IWbemEventConsumerProvider_FWD_DEFINED__
    151 #define __IWbemEventConsumerProvider_FWD_DEFINED__
    152 typedef struct IWbemEventConsumerProvider IWbemEventConsumerProvider;
    153 #endif
    154 
    155 #ifndef __IWbemProviderInitSink_FWD_DEFINED__
    156 #define __IWbemProviderInitSink_FWD_DEFINED__
    157 typedef struct IWbemProviderInitSink IWbemProviderInitSink;
    158 #endif
    159 
    160 #ifndef __IWbemProviderInit_FWD_DEFINED__
    161 #define __IWbemProviderInit_FWD_DEFINED__
    162 typedef struct IWbemProviderInit IWbemProviderInit;
    163 #endif
    164 
    165 #ifndef __IWbemHiPerfProvider_FWD_DEFINED__
    166 #define __IWbemHiPerfProvider_FWD_DEFINED__
    167 typedef struct IWbemHiPerfProvider IWbemHiPerfProvider;
    168 #endif
    169 
    170 #ifndef __IWbemDecoupledRegistrar_FWD_DEFINED__
    171 #define __IWbemDecoupledRegistrar_FWD_DEFINED__
    172 typedef struct IWbemDecoupledRegistrar IWbemDecoupledRegistrar;
    173 #endif
    174 
    175 #ifndef __IWbemDecoupledBasicEventProvider_FWD_DEFINED__
    176 #define __IWbemDecoupledBasicEventProvider_FWD_DEFINED__
    177 typedef struct IWbemDecoupledBasicEventProvider IWbemDecoupledBasicEventProvider;
    178 #endif
    179 
    180 #ifndef __IWbemEventSink_FWD_DEFINED__
    181 #define __IWbemEventSink_FWD_DEFINED__
    182 typedef struct IWbemEventSink IWbemEventSink;
    183 #endif
    184 
    185 #include "objidl.h"
    186 #include "oleidl.h"
    187 #include "oaidl.h"
    188 #include "wbemcli.h"
    189 
    190 #ifdef __cplusplus
    191 extern "C" {
    192 #endif
    193 
    194 #ifndef __MIDL_user_allocate_free_DEFINED__
    195 #define __MIDL_user_allocate_free_DEFINED__
    196   void *__RPC_API MIDL_user_allocate(size_t);
    197   void __RPC_API MIDL_user_free(void *);
    198 #endif
    199 
    200   typedef VARIANT WBEM_VARIANT;
    201   typedef WCHAR *WBEM_WSTR;
    202   typedef const WCHAR *WBEM_CWSTR;
    203 
    204   typedef enum tag_WBEM_PROVIDER_REQUIREMENTS_TYPE {
    205     WBEM_REQUIREMENTS_START_POSTFILTER = 0,WBEM_REQUIREMENTS_STOP_POSTFILTER = 1,WBEM_REQUIREMENTS_RECHECK_SUBSCRIPTIONS = 2
    206   } WBEM_PROVIDER_REQUIREMENTS_TYPE;
    207 
    208   extern RPC_IF_HANDLE __MIDL_itf_wbemprov_0000_v0_0_c_ifspec;
    209   extern RPC_IF_HANDLE __MIDL_itf_wbemprov_0000_v0_0_s_ifspec;
    210 #ifndef __WbemProviders_v1_LIBRARY_DEFINED__
    211 #define __WbemProviders_v1_LIBRARY_DEFINED__
    212   EXTERN_C const IID LIBID_WbemProviders_v1;
    213 #ifndef __IWbemPropertyProvider_INTERFACE_DEFINED__
    214 #define __IWbemPropertyProvider_INTERFACE_DEFINED__
    215   EXTERN_C const IID IID_IWbemPropertyProvider;
    216 #if defined(__cplusplus) && !defined(CINTERFACE)
    217   struct IWbemPropertyProvider : public IUnknown {
    218   public:
    219     virtual HRESULT WINAPI GetProperty(__LONG32 lFlags,const BSTR strLocale,const BSTR strClassMapping,const BSTR strInstMapping,const BSTR strPropMapping,VARIANT *pvValue) = 0;
    220     virtual HRESULT WINAPI PutProperty(__LONG32 lFlags,const BSTR strLocale,const BSTR strClassMapping,const BSTR strInstMapping,const BSTR strPropMapping,const VARIANT *pvValue) = 0;
    221   };
    222 #else
    223   typedef struct IWbemPropertyProviderVtbl {
    224     BEGIN_INTERFACE
    225       HRESULT (WINAPI *QueryInterface)(IWbemPropertyProvider *This,REFIID riid,void **ppvObject);
    226       ULONG (WINAPI *AddRef)(IWbemPropertyProvider *This);
    227       ULONG (WINAPI *Release)(IWbemPropertyProvider *This);
    228       HRESULT (WINAPI *GetProperty)(IWbemPropertyProvider *This,__LONG32 lFlags,const BSTR strLocale,const BSTR strClassMapping,const BSTR strInstMapping,const BSTR strPropMapping,VARIANT *pvValue);
    229       HRESULT (WINAPI *PutProperty)(IWbemPropertyProvider *This,__LONG32 lFlags,const BSTR strLocale,const BSTR strClassMapping,const BSTR strInstMapping,const BSTR strPropMapping,const VARIANT *pvValue);
    230     END_INTERFACE
    231   } IWbemPropertyProviderVtbl;
    232   struct IWbemPropertyProvider {
    233     CONST_VTBL struct IWbemPropertyProviderVtbl *lpVtbl;
    234   };
    235 #ifdef COBJMACROS
    236 #define IWbemPropertyProvider_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
    237 #define IWbemPropertyProvider_AddRef(This) (This)->lpVtbl->AddRef(This)
    238 #define IWbemPropertyProvider_Release(This) (This)->lpVtbl->Release(This)
    239 #define IWbemPropertyProvider_GetProperty(This,lFlags,strLocale,strClassMapping,strInstMapping,strPropMapping,pvValue) (This)->lpVtbl->GetProperty(This,lFlags,strLocale,strClassMapping,strInstMapping,strPropMapping,pvValue)
    240 #define IWbemPropertyProvider_PutProperty(This,lFlags,strLocale,strClassMapping,strInstMapping,strPropMapping,pvValue) (This)->lpVtbl->PutProperty(This,lFlags,strLocale,strClassMapping,strInstMapping,strPropMapping,pvValue)
    241 #endif
    242 #endif
    243   HRESULT WINAPI IWbemPropertyProvider_GetProperty_Proxy(IWbemPropertyProvider *This,__LONG32 lFlags,const BSTR strLocale,const BSTR strClassMapping,const BSTR strInstMapping,const BSTR strPropMapping,VARIANT *pvValue);
    244   void __RPC_STUB IWbemPropertyProvider_GetProperty_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    245   HRESULT WINAPI IWbemPropertyProvider_PutProperty_Proxy(IWbemPropertyProvider *This,__LONG32 lFlags,const BSTR strLocale,const BSTR strClassMapping,const BSTR strInstMapping,const BSTR strPropMapping,const VARIANT *pvValue);
    246   void __RPC_STUB IWbemPropertyProvider_PutProperty_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    247 #endif
    248 
    249 #ifndef __IWbemUnboundObjectSink_INTERFACE_DEFINED__
    250 #define __IWbemUnboundObjectSink_INTERFACE_DEFINED__
    251   EXTERN_C const IID IID_IWbemUnboundObjectSink;
    252 #if defined(__cplusplus) && !defined(CINTERFACE)
    253   struct IWbemUnboundObjectSink : public IUnknown {
    254   public:
    255     virtual HRESULT WINAPI IndicateToConsumer(IWbemClassObject *pLogicalConsumer,__LONG32 lNumObjects,IWbemClassObject **apObjects) = 0;
    256   };
    257 #else
    258   typedef struct IWbemUnboundObjectSinkVtbl {
    259     BEGIN_INTERFACE
    260       HRESULT (WINAPI *QueryInterface)(IWbemUnboundObjectSink *This,REFIID riid,void **ppvObject);
    261       ULONG (WINAPI *AddRef)(IWbemUnboundObjectSink *This);
    262       ULONG (WINAPI *Release)(IWbemUnboundObjectSink *This);
    263       HRESULT (WINAPI *IndicateToConsumer)(IWbemUnboundObjectSink *This,IWbemClassObject *pLogicalConsumer,__LONG32 lNumObjects,IWbemClassObject **apObjects);
    264     END_INTERFACE
    265   } IWbemUnboundObjectSinkVtbl;
    266   struct IWbemUnboundObjectSink {
    267     CONST_VTBL struct IWbemUnboundObjectSinkVtbl *lpVtbl;
    268   };
    269 #ifdef COBJMACROS
    270 #define IWbemUnboundObjectSink_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
    271 #define IWbemUnboundObjectSink_AddRef(This) (This)->lpVtbl->AddRef(This)
    272 #define IWbemUnboundObjectSink_Release(This) (This)->lpVtbl->Release(This)
    273 #define IWbemUnboundObjectSink_IndicateToConsumer(This,pLogicalConsumer,lNumObjects,apObjects) (This)->lpVtbl->IndicateToConsumer(This,pLogicalConsumer,lNumObjects,apObjects)
    274 #endif
    275 #endif
    276   HRESULT WINAPI IWbemUnboundObjectSink_IndicateToConsumer_Proxy(IWbemUnboundObjectSink *This,IWbemClassObject *pLogicalConsumer,__LONG32 lNumObjects,IWbemClassObject **apObjects);
    277   void __RPC_STUB IWbemUnboundObjectSink_IndicateToConsumer_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    278 #endif
    279 
    280 #ifndef __IWbemEventProvider_INTERFACE_DEFINED__
    281 #define __IWbemEventProvider_INTERFACE_DEFINED__
    282   EXTERN_C const IID IID_IWbemEventProvider;
    283 #if defined(__cplusplus) && !defined(CINTERFACE)
    284   struct IWbemEventProvider : public IUnknown {
    285   public:
    286     virtual HRESULT WINAPI ProvideEvents(IWbemObjectSink *pSink,__LONG32 lFlags) = 0;
    287   };
    288 #else
    289   typedef struct IWbemEventProviderVtbl {
    290     BEGIN_INTERFACE
    291       HRESULT (WINAPI *QueryInterface)(IWbemEventProvider *This,REFIID riid,void **ppvObject);
    292       ULONG (WINAPI *AddRef)(IWbemEventProvider *This);
    293       ULONG (WINAPI *Release)(IWbemEventProvider *This);
    294       HRESULT (WINAPI *ProvideEvents)(IWbemEventProvider *This,IWbemObjectSink *pSink,__LONG32 lFlags);
    295     END_INTERFACE
    296   } IWbemEventProviderVtbl;
    297   struct IWbemEventProvider {
    298     CONST_VTBL struct IWbemEventProviderVtbl *lpVtbl;
    299   };
    300 #ifdef COBJMACROS
    301 #define IWbemEventProvider_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
    302 #define IWbemEventProvider_AddRef(This) (This)->lpVtbl->AddRef(This)
    303 #define IWbemEventProvider_Release(This) (This)->lpVtbl->Release(This)
    304 #define IWbemEventProvider_ProvideEvents(This,pSink,lFlags) (This)->lpVtbl->ProvideEvents(This,pSink,lFlags)
    305 #endif
    306 #endif
    307   HRESULT WINAPI IWbemEventProvider_ProvideEvents_Proxy(IWbemEventProvider *This,IWbemObjectSink *pSink,__LONG32 lFlags);
    308   void __RPC_STUB IWbemEventProvider_ProvideEvents_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    309 #endif
    310 
    311 #ifndef __IWbemEventProviderQuerySink_INTERFACE_DEFINED__
    312 #define __IWbemEventProviderQuerySink_INTERFACE_DEFINED__
    313   EXTERN_C const IID IID_IWbemEventProviderQuerySink;
    314 #if defined(__cplusplus) && !defined(CINTERFACE)
    315   struct IWbemEventProviderQuerySink : public IUnknown {
    316   public:
    317     virtual HRESULT WINAPI NewQuery(unsigned __LONG32 dwId,WBEM_WSTR wszQueryLanguage,WBEM_WSTR wszQuery) = 0;
    318     virtual HRESULT WINAPI CancelQuery(unsigned __LONG32 dwId) = 0;
    319   };
    320 #else
    321   typedef struct IWbemEventProviderQuerySinkVtbl {
    322     BEGIN_INTERFACE
    323       HRESULT (WINAPI *QueryInterface)(IWbemEventProviderQuerySink *This,REFIID riid,void **ppvObject);
    324       ULONG (WINAPI *AddRef)(IWbemEventProviderQuerySink *This);
    325       ULONG (WINAPI *Release)(IWbemEventProviderQuerySink *This);
    326       HRESULT (WINAPI *NewQuery)(IWbemEventProviderQuerySink *This,unsigned __LONG32 dwId,WBEM_WSTR wszQueryLanguage,WBEM_WSTR wszQuery);
    327       HRESULT (WINAPI *CancelQuery)(IWbemEventProviderQuerySink *This,unsigned __LONG32 dwId);
    328     END_INTERFACE
    329   } IWbemEventProviderQuerySinkVtbl;
    330   struct IWbemEventProviderQuerySink {
    331     CONST_VTBL struct IWbemEventProviderQuerySinkVtbl *lpVtbl;
    332   };
    333 #ifdef COBJMACROS
    334 #define IWbemEventProviderQuerySink_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
    335 #define IWbemEventProviderQuerySink_AddRef(This) (This)->lpVtbl->AddRef(This)
    336 #define IWbemEventProviderQuerySink_Release(This) (This)->lpVtbl->Release(This)
    337 #define IWbemEventProviderQuerySink_NewQuery(This,dwId,wszQueryLanguage,wszQuery) (This)->lpVtbl->NewQuery(This,dwId,wszQueryLanguage,wszQuery)
    338 #define IWbemEventProviderQuerySink_CancelQuery(This,dwId) (This)->lpVtbl->CancelQuery(This,dwId)
    339 #endif
    340 #endif
    341   HRESULT WINAPI IWbemEventProviderQuerySink_NewQuery_Proxy(IWbemEventProviderQuerySink *This,unsigned __LONG32 dwId,WBEM_WSTR wszQueryLanguage,WBEM_WSTR wszQuery);
    342   void __RPC_STUB IWbemEventProviderQuerySink_NewQuery_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    343   HRESULT WINAPI IWbemEventProviderQuerySink_CancelQuery_Proxy(IWbemEventProviderQuerySink *This,unsigned __LONG32 dwId);
    344   void __RPC_STUB IWbemEventProviderQuerySink_CancelQuery_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    345 #endif
    346 
    347 #ifndef __IWbemEventProviderSecurity_INTERFACE_DEFINED__
    348 #define __IWbemEventProviderSecurity_INTERFACE_DEFINED__
    349   EXTERN_C const IID IID_IWbemEventProviderSecurity;
    350 #if defined(__cplusplus) && !defined(CINTERFACE)
    351   struct IWbemEventProviderSecurity : public IUnknown {
    352   public:
    353     virtual HRESULT WINAPI AccessCheck(WBEM_CWSTR wszQueryLanguage,WBEM_CWSTR wszQuery,__LONG32 lSidLength,const BYTE *pSid) = 0;
    354   };
    355 #else
    356   typedef struct IWbemEventProviderSecurityVtbl {
    357     BEGIN_INTERFACE
    358       HRESULT (WINAPI *QueryInterface)(IWbemEventProviderSecurity *This,REFIID riid,void **ppvObject);
    359       ULONG (WINAPI *AddRef)(IWbemEventProviderSecurity *This);
    360       ULONG (WINAPI *Release)(IWbemEventProviderSecurity *This);
    361       HRESULT (WINAPI *AccessCheck)(IWbemEventProviderSecurity *This,WBEM_CWSTR wszQueryLanguage,WBEM_CWSTR wszQuery,__LONG32 lSidLength,const BYTE *pSid);
    362     END_INTERFACE
    363   } IWbemEventProviderSecurityVtbl;
    364   struct IWbemEventProviderSecurity {
    365     CONST_VTBL struct IWbemEventProviderSecurityVtbl *lpVtbl;
    366   };
    367 #ifdef COBJMACROS
    368 #define IWbemEventProviderSecurity_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
    369 #define IWbemEventProviderSecurity_AddRef(This) (This)->lpVtbl->AddRef(This)
    370 #define IWbemEventProviderSecurity_Release(This) (This)->lpVtbl->Release(This)
    371 #define IWbemEventProviderSecurity_AccessCheck(This,wszQueryLanguage,wszQuery,lSidLength,pSid) (This)->lpVtbl->AccessCheck(This,wszQueryLanguage,wszQuery,lSidLength,pSid)
    372 #endif
    373 #endif
    374   HRESULT WINAPI IWbemEventProviderSecurity_AccessCheck_Proxy(IWbemEventProviderSecurity *This,WBEM_CWSTR wszQueryLanguage,WBEM_CWSTR wszQuery,__LONG32 lSidLength,const BYTE *pSid);
    375   void __RPC_STUB IWbemEventProviderSecurity_AccessCheck_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    376 #endif
    377 
    378 #ifndef __IWbemEventConsumerProvider_INTERFACE_DEFINED__
    379 #define __IWbemEventConsumerProvider_INTERFACE_DEFINED__
    380   EXTERN_C const IID IID_IWbemEventConsumerProvider;
    381 #if defined(__cplusplus) && !defined(CINTERFACE)
    382   struct IWbemEventConsumerProvider : public IUnknown {
    383   public:
    384     virtual HRESULT WINAPI FindConsumer(IWbemClassObject *pLogicalConsumer,IWbemUnboundObjectSink **ppConsumer) = 0;
    385   };
    386 #else
    387   typedef struct IWbemEventConsumerProviderVtbl {
    388     BEGIN_INTERFACE
    389       HRESULT (WINAPI *QueryInterface)(IWbemEventConsumerProvider *This,REFIID riid,void **ppvObject);
    390       ULONG (WINAPI *AddRef)(IWbemEventConsumerProvider *This);
    391       ULONG (WINAPI *Release)(IWbemEventConsumerProvider *This);
    392       HRESULT (WINAPI *FindConsumer)(IWbemEventConsumerProvider *This,IWbemClassObject *pLogicalConsumer,IWbemUnboundObjectSink **ppConsumer);
    393     END_INTERFACE
    394   } IWbemEventConsumerProviderVtbl;
    395   struct IWbemEventConsumerProvider {
    396     CONST_VTBL struct IWbemEventConsumerProviderVtbl *lpVtbl;
    397   };
    398 #ifdef COBJMACROS
    399 #define IWbemEventConsumerProvider_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
    400 #define IWbemEventConsumerProvider_AddRef(This) (This)->lpVtbl->AddRef(This)
    401 #define IWbemEventConsumerProvider_Release(This) (This)->lpVtbl->Release(This)
    402 #define IWbemEventConsumerProvider_FindConsumer(This,pLogicalConsumer,ppConsumer) (This)->lpVtbl->FindConsumer(This,pLogicalConsumer,ppConsumer)
    403 #endif
    404 #endif
    405   HRESULT WINAPI IWbemEventConsumerProvider_FindConsumer_Proxy(IWbemEventConsumerProvider *This,IWbemClassObject *pLogicalConsumer,IWbemUnboundObjectSink **ppConsumer);
    406   void __RPC_STUB IWbemEventConsumerProvider_FindConsumer_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    407 #endif
    408 
    409 #ifndef __IWbemProviderInitSink_INTERFACE_DEFINED__
    410 #define __IWbemProviderInitSink_INTERFACE_DEFINED__
    411   EXTERN_C const IID IID_IWbemProviderInitSink;
    412 #if defined(__cplusplus) && !defined(CINTERFACE)
    413   struct IWbemProviderInitSink : public IUnknown {
    414   public:
    415     virtual HRESULT WINAPI SetStatus(LONG lStatus,LONG lFlags) = 0;
    416   };
    417 #else
    418   typedef struct IWbemProviderInitSinkVtbl {
    419     BEGIN_INTERFACE
    420       HRESULT (WINAPI *QueryInterface)(IWbemProviderInitSink *This,REFIID riid,void **ppvObject);
    421       ULONG (WINAPI *AddRef)(IWbemProviderInitSink *This);
    422       ULONG (WINAPI *Release)(IWbemProviderInitSink *This);
    423       HRESULT (WINAPI *SetStatus)(IWbemProviderInitSink *This,LONG lStatus,LONG lFlags);
    424     END_INTERFACE
    425   } IWbemProviderInitSinkVtbl;
    426   struct IWbemProviderInitSink {
    427     CONST_VTBL struct IWbemProviderInitSinkVtbl *lpVtbl;
    428   };
    429 #ifdef COBJMACROS
    430 #define IWbemProviderInitSink_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
    431 #define IWbemProviderInitSink_AddRef(This) (This)->lpVtbl->AddRef(This)
    432 #define IWbemProviderInitSink_Release(This) (This)->lpVtbl->Release(This)
    433 #define IWbemProviderInitSink_SetStatus(This,lStatus,lFlags) (This)->lpVtbl->SetStatus(This,lStatus,lFlags)
    434 #endif
    435 #endif
    436   HRESULT WINAPI IWbemProviderInitSink_SetStatus_Proxy(IWbemProviderInitSink *This,LONG lStatus,LONG lFlags);
    437   void __RPC_STUB IWbemProviderInitSink_SetStatus_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    438 #endif
    439 
    440 #ifndef __IWbemProviderInit_INTERFACE_DEFINED__
    441 #define __IWbemProviderInit_INTERFACE_DEFINED__
    442   EXTERN_C const IID IID_IWbemProviderInit;
    443 #if defined(__cplusplus) && !defined(CINTERFACE)
    444   struct IWbemProviderInit : public IUnknown {
    445   public:
    446     virtual HRESULT WINAPI Initialize(LPWSTR wszUser,LONG lFlags,LPWSTR wszNamespace,LPWSTR wszLocale,IWbemServices *pNamespace,IWbemContext *pCtx,IWbemProviderInitSink *pInitSink) = 0;
    447   };
    448 #else
    449   typedef struct IWbemProviderInitVtbl {
    450     BEGIN_INTERFACE
    451       HRESULT (WINAPI *QueryInterface)(IWbemProviderInit *This,REFIID riid,void **ppvObject);
    452       ULONG (WINAPI *AddRef)(IWbemProviderInit *This);
    453       ULONG (WINAPI *Release)(IWbemProviderInit *This);
    454       HRESULT (WINAPI *Initialize)(IWbemProviderInit *This,LPWSTR wszUser,LONG lFlags,LPWSTR wszNamespace,LPWSTR wszLocale,IWbemServices *pNamespace,IWbemContext *pCtx,IWbemProviderInitSink *pInitSink);
    455     END_INTERFACE
    456   } IWbemProviderInitVtbl;
    457   struct IWbemProviderInit {
    458     CONST_VTBL struct IWbemProviderInitVtbl *lpVtbl;
    459   };
    460 #ifdef COBJMACROS
    461 #define IWbemProviderInit_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
    462 #define IWbemProviderInit_AddRef(This) (This)->lpVtbl->AddRef(This)
    463 #define IWbemProviderInit_Release(This) (This)->lpVtbl->Release(This)
    464 #define IWbemProviderInit_Initialize(This,wszUser,lFlags,wszNamespace,wszLocale,pNamespace,pCtx,pInitSink) (This)->lpVtbl->Initialize(This,wszUser,lFlags,wszNamespace,wszLocale,pNamespace,pCtx,pInitSink)
    465 #endif
    466 #endif
    467   HRESULT WINAPI IWbemProviderInit_Initialize_Proxy(IWbemProviderInit *This,LPWSTR wszUser,LONG lFlags,LPWSTR wszNamespace,LPWSTR wszLocale,IWbemServices *pNamespace,IWbemContext *pCtx,IWbemProviderInitSink *pInitSink);
    468   void __RPC_STUB IWbemProviderInit_Initialize_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    469 #endif
    470 
    471 #ifndef __IWbemHiPerfProvider_INTERFACE_DEFINED__
    472 #define __IWbemHiPerfProvider_INTERFACE_DEFINED__
    473   EXTERN_C const IID IID_IWbemHiPerfProvider;
    474 #if defined(__cplusplus) && !defined(CINTERFACE)
    475   struct IWbemHiPerfProvider : public IUnknown {
    476   public:
    477     virtual HRESULT WINAPI QueryInstances(IWbemServices *pNamespace,WCHAR *wszClass,__LONG32 lFlags,IWbemContext *pCtx,IWbemObjectSink *pSink) = 0;
    478     virtual HRESULT WINAPI CreateRefresher(IWbemServices *pNamespace,__LONG32 lFlags,IWbemRefresher **ppRefresher) = 0;
    479     virtual HRESULT WINAPI CreateRefreshableObject(IWbemServices *pNamespace,IWbemObjectAccess *pTemplate,IWbemRefresher *pRefresher,__LONG32 lFlags,IWbemContext *pContext,IWbemObjectAccess **ppRefreshable,__LONG32 *plId) = 0;
    480     virtual HRESULT WINAPI StopRefreshing(IWbemRefresher *pRefresher,__LONG32 lId,__LONG32 lFlags) = 0;
    481     virtual HRESULT WINAPI CreateRefreshableEnum(IWbemServices *pNamespace,LPCWSTR wszClass,IWbemRefresher *pRefresher,__LONG32 lFlags,IWbemContext *pContext,IWbemHiPerfEnum *pHiPerfEnum,__LONG32 *plId) = 0;
    482     virtual HRESULT WINAPI GetObjects(IWbemServices *pNamespace,__LONG32 lNumObjects,IWbemObjectAccess **apObj,__LONG32 lFlags,IWbemContext *pContext) = 0;
    483   };
    484 #else
    485   typedef struct IWbemHiPerfProviderVtbl {
    486     BEGIN_INTERFACE
    487       HRESULT (WINAPI *QueryInterface)(IWbemHiPerfProvider *This,REFIID riid,void **ppvObject);
    488       ULONG (WINAPI *AddRef)(IWbemHiPerfProvider *This);
    489       ULONG (WINAPI *Release)(IWbemHiPerfProvider *This);
    490       HRESULT (WINAPI *QueryInstances)(IWbemHiPerfProvider *This,IWbemServices *pNamespace,WCHAR *wszClass,__LONG32 lFlags,IWbemContext *pCtx,IWbemObjectSink *pSink);
    491       HRESULT (WINAPI *CreateRefresher)(IWbemHiPerfProvider *This,IWbemServices *pNamespace,__LONG32 lFlags,IWbemRefresher **ppRefresher);
    492       HRESULT (WINAPI *CreateRefreshableObject)(IWbemHiPerfProvider *This,IWbemServices *pNamespace,IWbemObjectAccess *pTemplate,IWbemRefresher *pRefresher,__LONG32 lFlags,IWbemContext *pContext,IWbemObjectAccess **ppRefreshable,__LONG32 *plId);
    493       HRESULT (WINAPI *StopRefreshing)(IWbemHiPerfProvider *This,IWbemRefresher *pRefresher,__LONG32 lId,__LONG32 lFlags);
    494       HRESULT (WINAPI *CreateRefreshableEnum)(IWbemHiPerfProvider *This,IWbemServices *pNamespace,LPCWSTR wszClass,IWbemRefresher *pRefresher,__LONG32 lFlags,IWbemContext *pContext,IWbemHiPerfEnum *pHiPerfEnum,__LONG32 *plId);
    495       HRESULT (WINAPI *GetObjects)(IWbemHiPerfProvider *This,IWbemServices *pNamespace,__LONG32 lNumObjects,IWbemObjectAccess **apObj,__LONG32 lFlags,IWbemContext *pContext);
    496     END_INTERFACE
    497   } IWbemHiPerfProviderVtbl;
    498   struct IWbemHiPerfProvider {
    499     CONST_VTBL struct IWbemHiPerfProviderVtbl *lpVtbl;
    500   };
    501 #ifdef COBJMACROS
    502 #define IWbemHiPerfProvider_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
    503 #define IWbemHiPerfProvider_AddRef(This) (This)->lpVtbl->AddRef(This)
    504 #define IWbemHiPerfProvider_Release(This) (This)->lpVtbl->Release(This)
    505 #define IWbemHiPerfProvider_QueryInstances(This,pNamespace,wszClass,lFlags,pCtx,pSink) (This)->lpVtbl->QueryInstances(This,pNamespace,wszClass,lFlags,pCtx,pSink)
    506 #define IWbemHiPerfProvider_CreateRefresher(This,pNamespace,lFlags,ppRefresher) (This)->lpVtbl->CreateRefresher(This,pNamespace,lFlags,ppRefresher)
    507 #define IWbemHiPerfProvider_CreateRefreshableObject(This,pNamespace,pTemplate,pRefresher,lFlags,pContext,ppRefreshable,plId) (This)->lpVtbl->CreateRefreshableObject(This,pNamespace,pTemplate,pRefresher,lFlags,pContext,ppRefreshable,plId)
    508 #define IWbemHiPerfProvider_StopRefreshing(This,pRefresher,lId,lFlags) (This)->lpVtbl->StopRefreshing(This,pRefresher,lId,lFlags)
    509 #define IWbemHiPerfProvider_CreateRefreshableEnum(This,pNamespace,wszClass,pRefresher,lFlags,pContext,pHiPerfEnum,plId) (This)->lpVtbl->CreateRefreshableEnum(This,pNamespace,wszClass,pRefresher,lFlags,pContext,pHiPerfEnum,plId)
    510 #define IWbemHiPerfProvider_GetObjects(This,pNamespace,lNumObjects,apObj,lFlags,pContext) (This)->lpVtbl->GetObjects(This,pNamespace,lNumObjects,apObj,lFlags,pContext)
    511 #endif
    512 #endif
    513   HRESULT WINAPI IWbemHiPerfProvider_QueryInstances_Proxy(IWbemHiPerfProvider *This,IWbemServices *pNamespace,WCHAR *wszClass,__LONG32 lFlags,IWbemContext *pCtx,IWbemObjectSink *pSink);
    514   void __RPC_STUB IWbemHiPerfProvider_QueryInstances_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    515   HRESULT WINAPI IWbemHiPerfProvider_CreateRefresher_Proxy(IWbemHiPerfProvider *This,IWbemServices *pNamespace,__LONG32 lFlags,IWbemRefresher **ppRefresher);
    516   void __RPC_STUB IWbemHiPerfProvider_CreateRefresher_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    517   HRESULT WINAPI IWbemHiPerfProvider_CreateRefreshableObject_Proxy(IWbemHiPerfProvider *This,IWbemServices *pNamespace,IWbemObjectAccess *pTemplate,IWbemRefresher *pRefresher,__LONG32 lFlags,IWbemContext *pContext,IWbemObjectAccess **ppRefreshable,__LONG32 *plId);
    518   void __RPC_STUB IWbemHiPerfProvider_CreateRefreshableObject_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    519   HRESULT WINAPI IWbemHiPerfProvider_StopRefreshing_Proxy(IWbemHiPerfProvider *This,IWbemRefresher *pRefresher,__LONG32 lId,__LONG32 lFlags);
    520   void __RPC_STUB IWbemHiPerfProvider_StopRefreshing_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    521   HRESULT WINAPI IWbemHiPerfProvider_CreateRefreshableEnum_Proxy(IWbemHiPerfProvider *This,IWbemServices *pNamespace,LPCWSTR wszClass,IWbemRefresher *pRefresher,__LONG32 lFlags,IWbemContext *pContext,IWbemHiPerfEnum *pHiPerfEnum,__LONG32 *plId);
    522   void __RPC_STUB IWbemHiPerfProvider_CreateRefreshableEnum_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    523   HRESULT WINAPI IWbemHiPerfProvider_GetObjects_Proxy(IWbemHiPerfProvider *This,IWbemServices *pNamespace,__LONG32 lNumObjects,IWbemObjectAccess **apObj,__LONG32 lFlags,IWbemContext *pContext);
    524   void __RPC_STUB IWbemHiPerfProvider_GetObjects_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    525 #endif
    526 
    527 #ifndef __IWbemDecoupledRegistrar_INTERFACE_DEFINED__
    528 #define __IWbemDecoupledRegistrar_INTERFACE_DEFINED__
    529   EXTERN_C const IID IID_IWbemDecoupledRegistrar;
    530 #if defined(__cplusplus) && !defined(CINTERFACE)
    531   struct IWbemDecoupledRegistrar : public IUnknown {
    532   public:
    533     virtual HRESULT WINAPI Register(__LONG32 a_Flags,IWbemContext *a_Context,LPCWSTR a_User,LPCWSTR a_Locale,LPCWSTR a_Scope,LPCWSTR a_Registration,IUnknown *a_Unknown) = 0;
    534     virtual HRESULT WINAPI UnRegister(void) = 0;
    535   };
    536 #else
    537   typedef struct IWbemDecoupledRegistrarVtbl {
    538     BEGIN_INTERFACE
    539       HRESULT (WINAPI *QueryInterface)(IWbemDecoupledRegistrar *This,REFIID riid,void **ppvObject);
    540       ULONG (WINAPI *AddRef)(IWbemDecoupledRegistrar *This);
    541       ULONG (WINAPI *Release)(IWbemDecoupledRegistrar *This);
    542       HRESULT (WINAPI *Register)(IWbemDecoupledRegistrar *This,__LONG32 a_Flags,IWbemContext *a_Context,LPCWSTR a_User,LPCWSTR a_Locale,LPCWSTR a_Scope,LPCWSTR a_Registration,IUnknown *a_Unknown);
    543       HRESULT (WINAPI *UnRegister)(IWbemDecoupledRegistrar *This);
    544     END_INTERFACE
    545   } IWbemDecoupledRegistrarVtbl;
    546   struct IWbemDecoupledRegistrar {
    547     CONST_VTBL struct IWbemDecoupledRegistrarVtbl *lpVtbl;
    548   };
    549 #ifdef COBJMACROS
    550 #define IWbemDecoupledRegistrar_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
    551 #define IWbemDecoupledRegistrar_AddRef(This) (This)->lpVtbl->AddRef(This)
    552 #define IWbemDecoupledRegistrar_Release(This) (This)->lpVtbl->Release(This)
    553 #define IWbemDecoupledRegistrar_Register(This,a_Flags,a_Context,a_User,a_Locale,a_Scope,a_Registration,a_Unknown) (This)->lpVtbl->Register(This,a_Flags,a_Context,a_User,a_Locale,a_Scope,a_Registration,a_Unknown)
    554 #define IWbemDecoupledRegistrar_UnRegister(This) (This)->lpVtbl->UnRegister(This)
    555 #endif
    556 #endif
    557   HRESULT WINAPI IWbemDecoupledRegistrar_Register_Proxy(IWbemDecoupledRegistrar *This,__LONG32 a_Flags,IWbemContext *a_Context,LPCWSTR a_User,LPCWSTR a_Locale,LPCWSTR a_Scope,LPCWSTR a_Registration,IUnknown *a_Unknown);
    558   void __RPC_STUB IWbemDecoupledRegistrar_Register_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    559   HRESULT WINAPI IWbemDecoupledRegistrar_UnRegister_Proxy(IWbemDecoupledRegistrar *This);
    560   void __RPC_STUB IWbemDecoupledRegistrar_UnRegister_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    561 #endif
    562 
    563   EXTERN_C const CLSID CLSID_WbemAdministrativeLocator;
    564 #ifdef __cplusplus
    565   class WbemAdministrativeLocator;
    566 #endif
    567   EXTERN_C const CLSID CLSID_WbemAuthenticatedLocator;
    568 #ifdef __cplusplus
    569   class WbemAuthenticatedLocator;
    570 #endif
    571   EXTERN_C const CLSID CLSID_WbemUnauthenticatedLocator;
    572 #ifdef __cplusplus
    573   class WbemUnauthenticatedLocator;
    574 #endif
    575   EXTERN_C const CLSID CLSID_WbemDecoupledRegistrar;
    576 #ifdef __cplusplus
    577   class WbemDecoupledRegistrar;
    578 #endif
    579   EXTERN_C const CLSID CLSID_WbemDecoupledBasicEventProvider;
    580 #ifdef __cplusplus
    581   class WbemDecoupledBasicEventProvider;
    582 #endif
    583 #endif
    584 
    585 #ifndef __IWbemProviderIdentity_INTERFACE_DEFINED__
    586 #define __IWbemProviderIdentity_INTERFACE_DEFINED__
    587   EXTERN_C const IID IID_IWbemProviderIdentity;
    588 #if defined(__cplusplus) && !defined(CINTERFACE)
    589   struct IWbemProviderIdentity : public IUnknown {
    590   public:
    591     virtual HRESULT WINAPI SetRegistrationObject(__LONG32 lFlags,IWbemClassObject *pProvReg) = 0;
    592   };
    593 #else
    594   typedef struct IWbemProviderIdentityVtbl {
    595     BEGIN_INTERFACE
    596       HRESULT (WINAPI *QueryInterface)(IWbemProviderIdentity *This,REFIID riid,void **ppvObject);
    597       ULONG (WINAPI *AddRef)(IWbemProviderIdentity *This);
    598       ULONG (WINAPI *Release)(IWbemProviderIdentity *This);
    599       HRESULT (WINAPI *SetRegistrationObject)(IWbemProviderIdentity *This,__LONG32 lFlags,IWbemClassObject *pProvReg);
    600     END_INTERFACE
    601   } IWbemProviderIdentityVtbl;
    602   struct IWbemProviderIdentity {
    603     CONST_VTBL struct IWbemProviderIdentityVtbl *lpVtbl;
    604   };
    605 #ifdef COBJMACROS
    606 #define IWbemProviderIdentity_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
    607 #define IWbemProviderIdentity_AddRef(This) (This)->lpVtbl->AddRef(This)
    608 #define IWbemProviderIdentity_Release(This) (This)->lpVtbl->Release(This)
    609 #define IWbemProviderIdentity_SetRegistrationObject(This,lFlags,pProvReg) (This)->lpVtbl->SetRegistrationObject(This,lFlags,pProvReg)
    610 #endif
    611 #endif
    612   HRESULT WINAPI IWbemProviderIdentity_SetRegistrationObject_Proxy(IWbemProviderIdentity *This,__LONG32 lFlags,IWbemClassObject *pProvReg);
    613   void __RPC_STUB IWbemProviderIdentity_SetRegistrationObject_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    614 #endif
    615 
    616   typedef enum tag_WBEM_EXTRA_RETURN_CODES {
    617     WBEM_S_INITIALIZED = 0,
    618     WBEM_S_LIMITED_SERVICE = 0x43001,
    619     WBEM_S_INDIRECTLY_UPDATED = 0x43002,
    620     WBEM_S_SUBJECT_TO_SDS = 0x43003,
    621     WBEM_E_RETRY_LATER = 0x80043001,
    622     WBEM_E_RESOURCE_CONTENTION = 0x80043002
    623   } WBEM_EXTRA_RETURN_CODES;
    624 
    625   typedef enum tag_WBEM_PROVIDER_FLAGS {
    626     WBEM_FLAG_OWNER_UPDATE = 0x10000
    627   } WBEM_PROVIDER_FLAGS;
    628 
    629   extern RPC_IF_HANDLE __MIDL_itf_wbemprov_0169_v0_0_c_ifspec;
    630   extern RPC_IF_HANDLE __MIDL_itf_wbemprov_0169_v0_0_s_ifspec;
    631 #ifndef __IWbemDecoupledBasicEventProvider_INTERFACE_DEFINED__
    632 #define __IWbemDecoupledBasicEventProvider_INTERFACE_DEFINED__
    633   EXTERN_C const IID IID_IWbemDecoupledBasicEventProvider;
    634 #if defined(__cplusplus) && !defined(CINTERFACE)
    635   struct IWbemDecoupledBasicEventProvider : public IWbemDecoupledRegistrar {
    636   public:
    637     virtual HRESULT WINAPI GetSink(__LONG32 a_Flags,IWbemContext *a_Context,IWbemObjectSink **a_Sink) = 0;
    638     virtual HRESULT WINAPI GetService(__LONG32 a_Flags,IWbemContext *a_Context,IWbemServices **a_Service) = 0;
    639   };
    640 #else
    641   typedef struct IWbemDecoupledBasicEventProviderVtbl {
    642     BEGIN_INTERFACE
    643       HRESULT (WINAPI *QueryInterface)(IWbemDecoupledBasicEventProvider *This,REFIID riid,void **ppvObject);
    644       ULONG (WINAPI *AddRef)(IWbemDecoupledBasicEventProvider *This);
    645       ULONG (WINAPI *Release)(IWbemDecoupledBasicEventProvider *This);
    646       HRESULT (WINAPI *Register)(IWbemDecoupledBasicEventProvider *This,__LONG32 a_Flags,IWbemContext *a_Context,LPCWSTR a_User,LPCWSTR a_Locale,LPCWSTR a_Scope,LPCWSTR a_Registration,IUnknown *a_Unknown);
    647       HRESULT (WINAPI *UnRegister)(IWbemDecoupledBasicEventProvider *This);
    648       HRESULT (WINAPI *GetSink)(IWbemDecoupledBasicEventProvider *This,__LONG32 a_Flags,IWbemContext *a_Context,IWbemObjectSink **a_Sink);
    649       HRESULT (WINAPI *GetService)(IWbemDecoupledBasicEventProvider *This,__LONG32 a_Flags,IWbemContext *a_Context,IWbemServices **a_Service);
    650     END_INTERFACE
    651   } IWbemDecoupledBasicEventProviderVtbl;
    652   struct IWbemDecoupledBasicEventProvider {
    653     CONST_VTBL struct IWbemDecoupledBasicEventProviderVtbl *lpVtbl;
    654   };
    655 #ifdef COBJMACROS
    656 #define IWbemDecoupledBasicEventProvider_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
    657 #define IWbemDecoupledBasicEventProvider_AddRef(This) (This)->lpVtbl->AddRef(This)
    658 #define IWbemDecoupledBasicEventProvider_Release(This) (This)->lpVtbl->Release(This)
    659 #define IWbemDecoupledBasicEventProvider_Register(This,a_Flags,a_Context,a_User,a_Locale,a_Scope,a_Registration,a_Unknown) (This)->lpVtbl->Register(This,a_Flags,a_Context,a_User,a_Locale,a_Scope,a_Registration,a_Unknown)
    660 #define IWbemDecoupledBasicEventProvider_UnRegister(This) (This)->lpVtbl->UnRegister(This)
    661 #define IWbemDecoupledBasicEventProvider_GetSink(This,a_Flags,a_Context,a_Sink) (This)->lpVtbl->GetSink(This,a_Flags,a_Context,a_Sink)
    662 #define IWbemDecoupledBasicEventProvider_GetService(This,a_Flags,a_Context,a_Service) (This)->lpVtbl->GetService(This,a_Flags,a_Context,a_Service)
    663 #endif
    664 #endif
    665   HRESULT WINAPI IWbemDecoupledBasicEventProvider_GetSink_Proxy(IWbemDecoupledBasicEventProvider *This,__LONG32 a_Flags,IWbemContext *a_Context,IWbemObjectSink **a_Sink);
    666   void __RPC_STUB IWbemDecoupledBasicEventProvider_GetSink_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    667   HRESULT WINAPI IWbemDecoupledBasicEventProvider_GetService_Proxy(IWbemDecoupledBasicEventProvider *This,__LONG32 a_Flags,IWbemContext *a_Context,IWbemServices **a_Service);
    668   void __RPC_STUB IWbemDecoupledBasicEventProvider_GetService_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    669 #endif
    670 
    671   typedef enum tag_WBEM_BATCH_TYPE {
    672     WBEM_FLAG_BATCH_IF_NEEDED = 0,WBEM_FLAG_MUST_BATCH = 0x1,WBEM_FLAG_MUST_NOT_BATCH = 0x2
    673   } WBEM_BATCH_TYPE;
    674 
    675   extern RPC_IF_HANDLE __MIDL_itf_wbemprov_0174_v0_0_c_ifspec;
    676   extern RPC_IF_HANDLE __MIDL_itf_wbemprov_0174_v0_0_s_ifspec;
    677 #ifndef __IWbemEventSink_INTERFACE_DEFINED__
    678 #define __IWbemEventSink_INTERFACE_DEFINED__
    679   EXTERN_C const IID IID_IWbemEventSink;
    680 #if defined(__cplusplus) && !defined(CINTERFACE)
    681   struct IWbemEventSink : public IWbemObjectSink {
    682   public:
    683     virtual HRESULT WINAPI SetSinkSecurity(__LONG32 lSDLength,BYTE *pSD) = 0;
    684     virtual HRESULT WINAPI IsActive(void) = 0;
    685     virtual HRESULT WINAPI GetRestrictedSink(__LONG32 lNumQueries,const LPCWSTR *awszQueries,IUnknown *pCallback,IWbemEventSink **ppSink) = 0;
    686     virtual HRESULT WINAPI SetBatchingParameters(LONG lFlags,DWORD dwMaxBufferSize,DWORD dwMaxSendLatency) = 0;
    687   };
    688 #else
    689   typedef struct IWbemEventSinkVtbl {
    690     BEGIN_INTERFACE
    691       HRESULT (WINAPI *QueryInterface)(IWbemEventSink *This,REFIID riid,void **ppvObject);
    692       ULONG (WINAPI *AddRef)(IWbemEventSink *This);
    693       ULONG (WINAPI *Release)(IWbemEventSink *This);
    694       HRESULT (WINAPI *Indicate)(IWbemEventSink *This,__LONG32 lObjectCount,IWbemClassObject **apObjArray);
    695       HRESULT (WINAPI *SetStatus)(IWbemEventSink *This,__LONG32 lFlags,HRESULT hResult,BSTR strParam,IWbemClassObject *pObjParam);
    696       HRESULT (WINAPI *SetSinkSecurity)(IWbemEventSink *This,__LONG32 lSDLength,BYTE *pSD);
    697       HRESULT (WINAPI *IsActive)(IWbemEventSink *This);
    698       HRESULT (WINAPI *GetRestrictedSink)(IWbemEventSink *This,__LONG32 lNumQueries,const LPCWSTR *awszQueries,IUnknown *pCallback,IWbemEventSink **ppSink);
    699       HRESULT (WINAPI *SetBatchingParameters)(IWbemEventSink *This,LONG lFlags,DWORD dwMaxBufferSize,DWORD dwMaxSendLatency);
    700     END_INTERFACE
    701   } IWbemEventSinkVtbl;
    702   struct IWbemEventSink {
    703     CONST_VTBL struct IWbemEventSinkVtbl *lpVtbl;
    704   };
    705 #ifdef COBJMACROS
    706 #define IWbemEventSink_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
    707 #define IWbemEventSink_AddRef(This) (This)->lpVtbl->AddRef(This)
    708 #define IWbemEventSink_Release(This) (This)->lpVtbl->Release(This)
    709 #define IWbemEventSink_Indicate(This,lObjectCount,apObjArray) (This)->lpVtbl->Indicate(This,lObjectCount,apObjArray)
    710 #define IWbemEventSink_SetStatus(This,lFlags,hResult,strParam,pObjParam) (This)->lpVtbl->SetStatus(This,lFlags,hResult,strParam,pObjParam)
    711 #define IWbemEventSink_SetSinkSecurity(This,lSDLength,pSD) (This)->lpVtbl->SetSinkSecurity(This,lSDLength,pSD)
    712 #define IWbemEventSink_IsActive(This) (This)->lpVtbl->IsActive(This)
    713 #define IWbemEventSink_GetRestrictedSink(This,lNumQueries,awszQueries,pCallback,ppSink) (This)->lpVtbl->GetRestrictedSink(This,lNumQueries,awszQueries,pCallback,ppSink)
    714 #define IWbemEventSink_SetBatchingParameters(This,lFlags,dwMaxBufferSize,dwMaxSendLatency) (This)->lpVtbl->SetBatchingParameters(This,lFlags,dwMaxBufferSize,dwMaxSendLatency)
    715 #endif
    716 #endif
    717   HRESULT WINAPI IWbemEventSink_SetSinkSecurity_Proxy(IWbemEventSink *This,__LONG32 lSDLength,BYTE *pSD);
    718   void __RPC_STUB IWbemEventSink_SetSinkSecurity_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    719   HRESULT WINAPI IWbemEventSink_IsActive_Proxy(IWbemEventSink *This);
    720   void __RPC_STUB IWbemEventSink_IsActive_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    721   HRESULT WINAPI IWbemEventSink_GetRestrictedSink_Proxy(IWbemEventSink *This,__LONG32 lNumQueries,const LPCWSTR *awszQueries,IUnknown *pCallback,IWbemEventSink **ppSink);
    722   void __RPC_STUB IWbemEventSink_GetRestrictedSink_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    723   HRESULT WINAPI IWbemEventSink_SetBatchingParameters_Proxy(IWbemEventSink *This,LONG lFlags,DWORD dwMaxBufferSize,DWORD dwMaxSendLatency);
    724   void __RPC_STUB IWbemEventSink_SetBatchingParameters_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
    725 #endif
    726 
    727   ULONG __RPC_API BSTR_UserSize(ULONG *,ULONG,BSTR *);
    728   unsigned char *__RPC_API BSTR_UserMarshal(ULONG *,unsigned char *,BSTR *);
    729   unsigned char *__RPC_API BSTR_UserUnmarshal(ULONG *,unsigned char *,BSTR *);
    730   void __RPC_API BSTR_UserFree(ULONG *,BSTR *);
    731   ULONG __RPC_API VARIANT_UserSize(ULONG *,ULONG,VARIANT *);
    732   unsigned char *__RPC_API VARIANT_UserMarshal(ULONG *,unsigned char *,VARIANT *);
    733   unsigned char *__RPC_API VARIANT_UserUnmarshal(ULONG *,unsigned char *,VARIANT *);
    734   void __RPC_API VARIANT_UserFree(ULONG *,VARIANT *);
    735 
    736 #ifdef __cplusplus
    737 }
    738 #endif
    739 #endif
    740