WbemAds.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:9k
源码类别:

模拟服务器

开发平台:

C/C++

  1. #pragma warning( disable: 4049 )  /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3.  /* File created by MIDL compiler version 6.00.0347 */
  4. /* Compiler settings for wbemads.idl:
  5.     Oicf, W1, Zp8, env=Win32 (32b run)
  6.     protocol : dce , ms_ext, c_ext, robust
  7.     error checks: allocation ref bounds_check enum stub_data 
  8.     VC __declspec() decoration level: 
  9.          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10.          DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING(  )
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __wbemads_h__
  27. #define __wbemads_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */ 
  32. #ifndef __IWMIExtension_FWD_DEFINED__
  33. #define __IWMIExtension_FWD_DEFINED__
  34. typedef interface IWMIExtension IWMIExtension;
  35. #endif  /* __IWMIExtension_FWD_DEFINED__ */
  36. #ifndef __WMIExtension_FWD_DEFINED__
  37. #define __WMIExtension_FWD_DEFINED__
  38. #ifdef __cplusplus
  39. typedef class WMIExtension WMIExtension;
  40. #else
  41. typedef struct WMIExtension WMIExtension;
  42. #endif /* __cplusplus */
  43. #endif  /* __WMIExtension_FWD_DEFINED__ */
  44. #ifndef __IWMIExtension_FWD_DEFINED__
  45. #define __IWMIExtension_FWD_DEFINED__
  46. typedef interface IWMIExtension IWMIExtension;
  47. #endif  /* __IWMIExtension_FWD_DEFINED__ */
  48. /* header files for imported files */
  49. #include "oaidl.h"
  50. #include "ocidl.h"
  51. #include "wbemdisp.h"
  52. #ifdef __cplusplus
  53. extern "C"{
  54. #endif 
  55. void * __RPC_USER MIDL_user_allocate(size_t);
  56. void __RPC_USER MIDL_user_free( void * ); 
  57. #ifndef __WMIEXTENSIONLib_LIBRARY_DEFINED__
  58. #define __WMIEXTENSIONLib_LIBRARY_DEFINED__
  59. /* library WMIEXTENSIONLib */
  60. /* [helpstring][version][uuid] */ 
  61. EXTERN_C const IID LIBID_WMIEXTENSIONLib;
  62. #ifndef __IWMIExtension_INTERFACE_DEFINED__
  63. #define __IWMIExtension_INTERFACE_DEFINED__
  64. /* interface IWMIExtension */
  65. /* [unique][helpstring][dual][uuid][object] */ 
  66. EXTERN_C const IID IID_IWMIExtension;
  67. #if defined(__cplusplus) && !defined(CINTERFACE)
  68.     
  69.     MIDL_INTERFACE("adc1f06e-5c7e-11d2-8b74-00104b2afb41")
  70.     IWMIExtension : public IDispatch
  71.     {
  72.     public:
  73.         virtual /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE get_WMIObjectPath( 
  74.             /* [retval][out] */ BSTR *strWMIObjectPath) = 0;
  75.         
  76.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetWMIObject( 
  77.             /* [retval][out] */ ISWbemObject **objWMIObject) = 0;
  78.         
  79.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetWMIServices( 
  80.             /* [retval][out] */ ISWbemServices **objWMIServices) = 0;
  81.         
  82.     };
  83.     
  84. #else  /* C style interface */
  85.     typedef struct IWMIExtensionVtbl
  86.     {
  87.         BEGIN_INTERFACE
  88.         
  89.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  90.             IWMIExtension * This,
  91.             /* [in] */ REFIID riid,
  92.             /* [iid_is][out] */ void **ppvObject);
  93.         
  94.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  95.             IWMIExtension * This);
  96.         
  97.         ULONG ( STDMETHODCALLTYPE *Release )( 
  98.             IWMIExtension * This);
  99.         
  100.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  101.             IWMIExtension * This,
  102.             /* [out] */ UINT *pctinfo);
  103.         
  104.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  105.             IWMIExtension * This,
  106.             /* [in] */ UINT iTInfo,
  107.             /* [in] */ LCID lcid,
  108.             /* [out] */ ITypeInfo **ppTInfo);
  109.         
  110.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  111.             IWMIExtension * This,
  112.             /* [in] */ REFIID riid,
  113.             /* [size_is][in] */ LPOLESTR *rgszNames,
  114.             /* [in] */ UINT cNames,
  115.             /* [in] */ LCID lcid,
  116.             /* [size_is][out] */ DISPID *rgDispId);
  117.         
  118.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  119.             IWMIExtension * This,
  120.             /* [in] */ DISPID dispIdMember,
  121.             /* [in] */ REFIID riid,
  122.             /* [in] */ LCID lcid,
  123.             /* [in] */ WORD wFlags,
  124.             /* [out][in] */ DISPPARAMS *pDispParams,
  125.             /* [out] */ VARIANT *pVarResult,
  126.             /* [out] */ EXCEPINFO *pExcepInfo,
  127.             /* [out] */ UINT *puArgErr);
  128.         
  129.         /* [helpstring][propget][id] */ HRESULT ( STDMETHODCALLTYPE *get_WMIObjectPath )( 
  130.             IWMIExtension * This,
  131.             /* [retval][out] */ BSTR *strWMIObjectPath);
  132.         
  133.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetWMIObject )( 
  134.             IWMIExtension * This,
  135.             /* [retval][out] */ ISWbemObject **objWMIObject);
  136.         
  137.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *GetWMIServices )( 
  138.             IWMIExtension * This,
  139.             /* [retval][out] */ ISWbemServices **objWMIServices);
  140.         
  141.         END_INTERFACE
  142.     } IWMIExtensionVtbl;
  143.     interface IWMIExtension
  144.     {
  145.         CONST_VTBL struct IWMIExtensionVtbl *lpVtbl;
  146.     };
  147.     
  148. #ifdef COBJMACROS
  149. #define IWMIExtension_QueryInterface(This,riid,ppvObject)
  150.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  151. #define IWMIExtension_AddRef(This)
  152.     (This)->lpVtbl -> AddRef(This)
  153. #define IWMIExtension_Release(This)
  154.     (This)->lpVtbl -> Release(This)
  155. #define IWMIExtension_GetTypeInfoCount(This,pctinfo)
  156.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  157. #define IWMIExtension_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  158.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  159. #define IWMIExtension_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  160.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  161. #define IWMIExtension_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  162.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  163. #define IWMIExtension_get_WMIObjectPath(This,strWMIObjectPath)
  164.     (This)->lpVtbl -> get_WMIObjectPath(This,strWMIObjectPath)
  165. #define IWMIExtension_GetWMIObject(This,objWMIObject)
  166.     (This)->lpVtbl -> GetWMIObject(This,objWMIObject)
  167. #define IWMIExtension_GetWMIServices(This,objWMIServices)
  168.     (This)->lpVtbl -> GetWMIServices(This,objWMIServices)
  169. #endif /* COBJMACROS */
  170. #endif  /* C style interface */
  171. /* [helpstring][propget][id] */ HRESULT STDMETHODCALLTYPE IWMIExtension_get_WMIObjectPath_Proxy( 
  172.     IWMIExtension * This,
  173.     /* [retval][out] */ BSTR *strWMIObjectPath);
  174. void __RPC_STUB IWMIExtension_get_WMIObjectPath_Stub(
  175.     IRpcStubBuffer *This,
  176.     IRpcChannelBuffer *_pRpcChannelBuffer,
  177.     PRPC_MESSAGE _pRpcMessage,
  178.     DWORD *_pdwStubPhase);
  179. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWMIExtension_GetWMIObject_Proxy( 
  180.     IWMIExtension * This,
  181.     /* [retval][out] */ ISWbemObject **objWMIObject);
  182. void __RPC_STUB IWMIExtension_GetWMIObject_Stub(
  183.     IRpcStubBuffer *This,
  184.     IRpcChannelBuffer *_pRpcChannelBuffer,
  185.     PRPC_MESSAGE _pRpcMessage,
  186.     DWORD *_pdwStubPhase);
  187. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IWMIExtension_GetWMIServices_Proxy( 
  188.     IWMIExtension * This,
  189.     /* [retval][out] */ ISWbemServices **objWMIServices);
  190. void __RPC_STUB IWMIExtension_GetWMIServices_Stub(
  191.     IRpcStubBuffer *This,
  192.     IRpcChannelBuffer *_pRpcChannelBuffer,
  193.     PRPC_MESSAGE _pRpcMessage,
  194.     DWORD *_pdwStubPhase);
  195. #endif  /* __IWMIExtension_INTERFACE_DEFINED__ */
  196. EXTERN_C const CLSID CLSID_WMIExtension;
  197. #ifdef __cplusplus
  198. class DECLSPEC_UUID("f0975afe-5c7f-11d2-8b74-00104b2afb41")
  199. WMIExtension;
  200. #endif
  201. #endif /* __WMIEXTENSIONLib_LIBRARY_DEFINED__ */
  202. /* Additional Prototypes for ALL interfaces */
  203. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
  204. unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
  205. unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
  206. void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 
  207. /* end of Additional Prototypes */
  208. #ifdef __cplusplus
  209. }
  210. #endif
  211. #endif