Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

191 lines
5.0 KiB

  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.0323 */
  4. /* Compiler settings for hwevhndlr.idl:
  5. Oicf (OptLev=i2), W1, Zp8, env=Win32 (32b run)
  6. protocol : dce , ms_ext, c_ext
  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__ 440
  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 __hwevhndlr_h__
  27. #define __hwevhndlr_h__
  28. /* Forward Declarations */
  29. #ifndef __IHWEventHandler_FWD_DEFINED__
  30. #define __IHWEventHandler_FWD_DEFINED__
  31. typedef interface IHWEventHandler IHWEventHandler;
  32. #endif /* __IHWEventHandler_FWD_DEFINED__ */
  33. /* header files for imported files */
  34. #include "unknwn.h"
  35. #ifdef __cplusplus
  36. extern "C"{
  37. #endif
  38. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  39. void __RPC_USER MIDL_user_free( void __RPC_FAR * );
  40. #ifndef __IHWEventHandler_INTERFACE_DEFINED__
  41. #define __IHWEventHandler_INTERFACE_DEFINED__
  42. /* interface IHWEventHandler */
  43. /* [unique][helpstring][uuid][object] */
  44. EXTERN_C const IID IID_IHWEventHandler;
  45. #if defined(__cplusplus) && !defined(CINTERFACE)
  46. MIDL_INTERFACE("C1FB73D0-EC3A-4ba2-B512-8CDB9187B6D1")
  47. IHWEventHandler : public IUnknown
  48. {
  49. public:
  50. virtual HRESULT STDMETHODCALLTYPE Initialize(
  51. /* [in] */ LPCWSTR pszParams) = 0;
  52. virtual HRESULT STDMETHODCALLTYPE HandleEvent(
  53. /* [in] */ const GUID guidClass,
  54. /* [in] */ LPCWSTR pszPnpID,
  55. /* [in] */ LPCWSTR pszPnpInstID,
  56. /* [in] */ LPCWSTR pszDeviceID,
  57. /* [in] */ LPCWSTR pszEventType) = 0;
  58. };
  59. #else /* C style interface */
  60. typedef struct IHWEventHandlerVtbl
  61. {
  62. BEGIN_INTERFACE
  63. HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )(
  64. IHWEventHandler __RPC_FAR * This,
  65. /* [in] */ REFIID riid,
  66. /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  67. ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )(
  68. IHWEventHandler __RPC_FAR * This);
  69. ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )(
  70. IHWEventHandler __RPC_FAR * This);
  71. HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Initialize )(
  72. IHWEventHandler __RPC_FAR * This,
  73. /* [in] */ LPCWSTR pszParams);
  74. HRESULT ( STDMETHODCALLTYPE __RPC_FAR *HandleEvent )(
  75. IHWEventHandler __RPC_FAR * This,
  76. /* [in] */ const GUID guidClass,
  77. /* [in] */ LPCWSTR pszPnpID,
  78. /* [in] */ LPCWSTR pszPnpInstID,
  79. /* [in] */ LPCWSTR pszDeviceID,
  80. /* [in] */ LPCWSTR pszEventType);
  81. END_INTERFACE
  82. } IHWEventHandlerVtbl;
  83. interface IHWEventHandler
  84. {
  85. CONST_VTBL struct IHWEventHandlerVtbl __RPC_FAR *lpVtbl;
  86. };
  87. #ifdef COBJMACROS
  88. #define IHWEventHandler_QueryInterface(This,riid,ppvObject) \
  89. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  90. #define IHWEventHandler_AddRef(This) \
  91. (This)->lpVtbl -> AddRef(This)
  92. #define IHWEventHandler_Release(This) \
  93. (This)->lpVtbl -> Release(This)
  94. #define IHWEventHandler_Initialize(This,pszParams) \
  95. (This)->lpVtbl -> Initialize(This,pszParams)
  96. #define IHWEventHandler_HandleEvent(This,guidClass,pszPnpID,pszPnpInstID,pszDeviceID,pszEventType) \
  97. (This)->lpVtbl -> HandleEvent(This,guidClass,pszPnpID,pszPnpInstID,pszDeviceID,pszEventType)
  98. #endif /* COBJMACROS */
  99. #endif /* C style interface */
  100. HRESULT STDMETHODCALLTYPE IHWEventHandler_Initialize_Proxy(
  101. IHWEventHandler __RPC_FAR * This,
  102. /* [in] */ LPCWSTR pszParams);
  103. void __RPC_STUB IHWEventHandler_Initialize_Stub(
  104. IRpcStubBuffer *This,
  105. IRpcChannelBuffer *_pRpcChannelBuffer,
  106. PRPC_MESSAGE _pRpcMessage,
  107. DWORD *_pdwStubPhase);
  108. HRESULT STDMETHODCALLTYPE IHWEventHandler_HandleEvent_Proxy(
  109. IHWEventHandler __RPC_FAR * This,
  110. /* [in] */ const GUID guidClass,
  111. /* [in] */ LPCWSTR pszPnpID,
  112. /* [in] */ LPCWSTR pszPnpInstID,
  113. /* [in] */ LPCWSTR pszDeviceID,
  114. /* [in] */ LPCWSTR pszEventType);
  115. void __RPC_STUB IHWEventHandler_HandleEvent_Stub(
  116. IRpcStubBuffer *This,
  117. IRpcChannelBuffer *_pRpcChannelBuffer,
  118. PRPC_MESSAGE _pRpcMessage,
  119. DWORD *_pdwStubPhase);
  120. #endif /* __IHWEventHandler_INTERFACE_DEFINED__ */
  121. /* Additional Prototypes for ALL interfaces */
  122. /* end of Additional Prototypes */
  123. #ifdef __cplusplus
  124. }
  125. #endif
  126. #endif