portabledeviceconnectapi.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_PORTABLEDEVICECONNECTAPI__
  7. #define __INC_PORTABLEDEVICECONNECTAPI__
  8. #include <objbase.h>
  9. #if (_WIN32_WINNT >= 0x0601)
  10. #ifndef __IConnectionRequestCallback_FWD_DEFINED__
  11. #define __IConnectionRequestCallback_FWD_DEFINED__
  12. typedef struct IConnectionRequestCallback ILocationReport;
  13. #endif
  14. #undef INTERFACE
  15. #define INTERFACE IConnectionRequestCallback
  16. DECLARE_INTERFACE_(IConnectionRequestCallback,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. /* IConnectionRequestCallback methods */
  24. STDMETHOD_(HRESULT,OnComplete)(THIS_ HRESULT hrStatus) PURE;
  25. END_INTERFACE
  26. };
  27. #ifdef COBJMACROS
  28. #define IConnectionRequestCallback_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  29. #define IConnectionRequestCallback_AddRef(This) (This)->lpVtbl->AddRef(This)
  30. #define IConnectionRequestCallback_Release(This) (This)->lpVtbl->Release(This)
  31. #define IConnectionRequestCallback_OnComplete(This,hrStatus) (This)->lpVtbl->OnComplete(This,hrStatus)
  32. #endif /*COBJMACROS*/
  33. #endif /*(_WIN32_WINNT >= 0x0601)*/
  34. #endif /*__INC_PORTABLEDEVICECONNECTAPI__*/