wsdattachment.idl 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * This file is part of the mingw-w64 runtime package.
  3. * No warranty is given; refer to the file DISCLAIMER within this package.
  4. */
  5. cpp_quote("#include <winapifamily.h>")
  6. cpp_quote("")
  7. cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
  8. import "objidl.idl";
  9. cpp_quote("")
  10. cpp_quote("#ifndef _INC_WSDAPI")
  11. cpp_quote("#error Please include wsdapi.h instead of this header. This header cannot be used directly.")
  12. cpp_quote("#endif")
  13. cpp_quote("")
  14. interface IWSDAttachment;
  15. interface IWSDInboundAttachment;
  16. interface IWSDOutboundAttachment;
  17. cpp_quote("")
  18. [object, uuid (5d55a616-9df8-4b09-b156-9ba351a48b76)]
  19. interface IWSDAttachment : IUnknown {
  20. }
  21. cpp_quote("")
  22. [object, local, uuid (5bd6ca65-233c-4fb8-9f7a-2641619655c9)]
  23. interface IWSDInboundAttachment : IWSDAttachment {
  24. HRESULT Read ([out, size_is (dwBytesToRead), length_is (*pdwNumberOfBytesRead)] BYTE *pBuffer,[in] DWORD dwBytesToRead,[out] LPDWORD pdwNumberOfBytesRead);
  25. HRESULT Close ();
  26. }
  27. cpp_quote("")
  28. [object, local, uuid (aa302f8d-5a22-4ba5-b392-aa8486f4c15d)]
  29. interface IWSDOutboundAttachment : IWSDAttachment {
  30. HRESULT Write ([in, size_is (dwBytesToWrite)] const BYTE *pBuffer,[in] DWORD dwBytesToWrite,[out] LPDWORD pdwNumberOfBytesWritten);
  31. HRESULT Close ();
  32. HRESULT Abort ();
  33. }
  34. cpp_quote("")
  35. cpp_quote("HRESULT WINAPI WSDCreateOutboundAttachment(IWSDOutboundAttachment **ppAttachment);")
  36. cpp_quote("#endif")