functiondiscoverynotification.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 _INC_FUNCTIONDISCOVERYNOTIFICATION
  7. #define _INC_FUNCTIONDISCOVERYNOTIFICATION
  8. #if (_WIN32_WINNT >= 0x0600)
  9. #undef INTERFACE
  10. #define INTERFACE IFunctionDiscoveryNotification
  11. #ifdef __GNUC__
  12. #warning COM interfaces layout in this header has not been verified.
  13. #warning COM interfaces with incorrect layout may not work at all.
  14. __MINGW_BROKEN_INTERFACE(INTERFACE)
  15. #endif
  16. DECLARE_INTERFACE_(IFunctionDiscoveryNotification,IUnknown)
  17. {
  18. BEGIN_INTERFACE
  19. /* IUnknown methods */
  20. STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
  21. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  22. STDMETHOD_(ULONG, Release)(THIS) PURE;
  23. /* IFunctionDiscoveryNotification methods */
  24. STDMETHOD_(HRESULT,OnUpdate)(THIS_ QueryUpdateAction enumQueryUpdateAction,FDQUERYCONTEXT fdqcQueryContext,IFunctionInstance *pIFunctionInstance) PURE;
  25. STDMETHOD_(HRESULT,OnError)(THIS_ HRESULT hr,FDQUERYCONTEXT fdqcQueryContext,const WCHAR *pszProvider) PURE;
  26. STDMETHOD_(HRESULT,OnEvent)(THIS_ DWORD dwEventID,FDQUERYCONTEXT fdqcQueryContext,const WCHAR *pszProvider) PURE;
  27. END_INTERFACE
  28. };
  29. #ifdef COBJMACROS
  30. #define IFunctionDiscoveryNotification_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  31. #define IFunctionDiscoveryNotification_AddRef(This) (This)->lpVtbl->AddRef(This)
  32. #define IFunctionDiscoveryNotification_Release(This) (This)->lpVtbl->Release(This)
  33. #define IFunctionDiscoveryNotification_OnUpdate(This,enumQueryUpdateAction,fdqcQueryContext,pIFunctionInstance) (This)->lpVtbl->OnUpdate(This,enumQueryUpdateAction,fdqcQueryContext,pIFunctionInstance)
  34. #define IFunctionDiscoveryNotification_OnError(This,hr,fdqcQueryContext,pszProvider) (This)->lpVtbl->OnError(This,hr,fdqcQueryContext,pszProvider)
  35. #define IFunctionDiscoveryNotification_OnEvent(This,dwEventID,fdqcQueryContext,pszProvider) (This)->lpVtbl->OnEvent(This,dwEventID,fdqcQueryContext,pszProvider)
  36. #endif /*COBJMACROS*/
  37. #endif /*(_WIN32_WINNT >= 0x0600)*/
  38. #endif /* _INC_FUNCTIONDISCOVERYNOTIFICATION */