wsdclient.idl 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 "oaidl.idl";
  9. import "ocidl.idl";
  10. import "wsdxmldom.h";
  11. import "wsdtypes.h";
  12. cpp_quote("")
  13. interface IWSDAddress;
  14. interface IWSDXMLContext;
  15. interface IWSDiscoveredService;
  16. interface IWSDDeviceProxy;
  17. interface IWSDServiceProxy;
  18. interface IWSDEndpointProxy;
  19. interface IWSDAsyncResult;
  20. interface IWSDAsyncCallback;
  21. interface IWSDMetadataExchange;
  22. interface IWSDEventingStatus;
  23. [object, local, restricted, uuid (11a9852a-8dd8-423e-b537-9356db4fbfb8), pointer_default (unique)]
  24. interface IWSDAsyncResult : IUnknown {
  25. HRESULT SetCallback ([in] IWSDAsyncCallback *pCallback,[in] IUnknown *pAsyncState);
  26. HRESULT SetWaitHandle ([in] HANDLE hWaitHandle);
  27. HRESULT HasCompleted ();
  28. HRESULT GetAsyncState ([out] IUnknown **ppAsyncState);
  29. HRESULT Abort ();
  30. HRESULT GetEvent ([out] WSD_EVENT *pEvent);
  31. HRESULT GetEndpointProxy ([out] IWSDEndpointProxy **ppEndpoint);
  32. };
  33. [object, local, restricted, uuid (a63e109d-ce72-49e2-ba98-e845f5ee1666), pointer_default (unique)]
  34. interface IWSDAsyncCallback : IUnknown {
  35. HRESULT AsyncOperationComplete ([in] IWSDAsyncResult *pAsyncResult,[in] IUnknown *pAsyncState);
  36. };
  37. [object, local, restricted, uuid (06996d57-1d67-4928-9307-3d7833fdb846), pointer_default (unique)]
  38. interface IWSDMetadataExchange : IUnknown {
  39. HRESULT GetMetadata ([out] WSD_METADATA_SECTION_LIST **MetadataOut);
  40. };
  41. [object, local, restricted, uuid (49b17f52-637a-407a-ae99-fbe82a4d38c0), pointer_default (unique)]
  42. interface IWSDEventingStatus : IUnknown {
  43. void SubscriptionRenewed ([in] LPCWSTR pszSubscriptionAction);
  44. void SubscriptionRenewalFailed ([in] LPCWSTR pszSubscriptionAction,[in] HRESULT hr);
  45. void SubscriptionEnded ([in] LPCWSTR pszSubscriptionAction);
  46. };
  47. [object, local, restricted, uuid (1860d430-b24c-4975-9f90-dbb39baa24ec), pointer_default (unique)]
  48. interface IWSDEndpointProxy : IUnknown {
  49. HRESULT SendOneWayRequest ([in] const void *pBody,[in] const WSD_OPERATION *pOperation);
  50. HRESULT SendTwoWayRequest ([in] const void *pBody,[in] const WSD_OPERATION *pOperation,[in, optional] const WSD_SYNCHRONOUS_RESPONSE_CONTEXT *pResponseContext);
  51. HRESULT SendTwoWayRequestAsync ([in] const void *pBody,[in] const WSD_OPERATION *pOperation,[in] IUnknown *pAsyncState,[in] IWSDAsyncCallback *pCallback,[out] IWSDAsyncResult **pResult);
  52. HRESULT AbortAsyncOperation ([in] IWSDAsyncResult *pAsyncResult);
  53. HRESULT ProcessFault ([in] const WSD_SOAP_FAULT *pFault);
  54. HRESULT GetErrorInfo ([out] LPCWSTR *ppszErrorInfo);
  55. HRESULT GetFaultInfo ([out] WSD_SOAP_FAULT **ppFault);
  56. };
  57. [object, local, restricted, uuid (eee0c031-c578-4c0e-9a3b-973c35f409db), pointer_default (unique)]
  58. interface IWSDDeviceProxy : IUnknown {
  59. HRESULT Init ([in] LPCWSTR pszDeviceId,[in] IWSDAddress *pDeviceAddress,[in] LPCWSTR pszLocalId,[in, optional] IWSDXMLContext *pContext,[in, optional] IWSDDeviceProxy *pSponsor);
  60. HRESULT BeginGetMetadata ([out] IWSDAsyncResult **ppResult);
  61. HRESULT EndGetMetadata ([in] IWSDAsyncResult *pResult);
  62. HRESULT GetHostMetadata ([out] WSD_HOST_METADATA **ppHostMetadata);
  63. HRESULT GetThisModelMetadata ([out] WSD_THIS_MODEL_METADATA **ppManufacturerMetadata);
  64. HRESULT GetThisDeviceMetadata ([out] WSD_THIS_DEVICE_METADATA **ppThisDeviceMetadata);
  65. HRESULT GetAllMetadata ([out] WSD_METADATA_SECTION_LIST **ppMetadata);
  66. HRESULT GetServiceProxyById ([in] LPCWSTR pszServiceId,[out] IWSDServiceProxy **ppServiceProxy);
  67. HRESULT GetServiceProxyByType ([in] const WSDXML_NAME *pType,[out] IWSDServiceProxy **ppServiceProxy);
  68. HRESULT GetEndpointProxy ([out] IWSDEndpointProxy **ppProxy);
  69. };
  70. [object, local, restricted, uuid (d4c7fb9c-03ab-4175-9d67-094fafebf487), pointer_default (unique)]
  71. interface IWSDServiceProxy : IWSDMetadataExchange {
  72. HRESULT BeginGetMetadata ([out] IWSDAsyncResult **ppResult);
  73. HRESULT EndGetMetadata ([in] IWSDAsyncResult *pResult,[out] WSD_METADATA_SECTION_LIST **ppMetadata);
  74. HRESULT GetServiceMetadata ([out] WSD_SERVICE_METADATA **ppServiceMetadata);
  75. HRESULT SubscribeToOperation ([in] const WSD_OPERATION *pOperation,[in] IUnknown *pUnknown,[in] const WSDXML_ELEMENT *pAny,[out] WSDXML_ELEMENT **ppAny);
  76. HRESULT UnsubscribeToOperation ([in] const WSD_OPERATION *pOperation);
  77. HRESULT SetEventingStatusCallback ([in, optional] IWSDEventingStatus *pStatus);
  78. HRESULT GetEndpointProxy ([out] IWSDEndpointProxy **ppProxy);
  79. };
  80. cpp_quote("#if WINVER >= 0x601")
  81. [object, local, restricted, uuid (f9279d6d-1012-4a94-b8cc-fd35d2202bfe), pointer_default (unique)]
  82. interface IWSDServiceProxyEventing : IWSDServiceProxy {
  83. HRESULT SubscribeToMultipleOperations ([in] const WSD_OPERATION *pOperations,[in] DWORD dwOperationCount,[in] IUnknown *pUnknown,[in] const WSD_EVENTING_EXPIRES *pExpires,[in] const WSDXML_ELEMENT *pAny,[out] WSD_EVENTING_EXPIRES **ppExpires,[out] WSDXML_ELEMENT **ppAny);
  84. HRESULT BeginSubscribeToMultipleOperations ([in] const WSD_OPERATION *pOperations,[in] DWORD dwOperationCount,[in] IUnknown *pUnknown,[in] const WSD_EVENTING_EXPIRES *pExpires,[in] const WSDXML_ELEMENT *pAny,[in] IUnknown *pAsyncState,[in] IWSDAsyncCallback *pAsyncCallback,[out] IWSDAsyncResult **ppResult);
  85. HRESULT EndSubscribeToMultipleOperations ([in] const WSD_OPERATION *pOperations,[in] DWORD dwOperationCount,[in] IWSDAsyncResult *pResult,[out] WSD_EVENTING_EXPIRES **ppExpires,[out] WSDXML_ELEMENT **ppAny);
  86. HRESULT UnsubscribeToMultipleOperations ([in] const WSD_OPERATION *pOperations,[in] DWORD dwOperationCount,[in] const WSDXML_ELEMENT *pAny);
  87. HRESULT BeginUnsubscribeToMultipleOperations ([in] const WSD_OPERATION *pOperations,[in] DWORD dwOperationCount,[in] const WSDXML_ELEMENT *pAny,[in] IUnknown *pAsyncState,[in] IWSDAsyncCallback *pAsyncCallback,[out] IWSDAsyncResult **ppResult);
  88. HRESULT EndUnsubscribeToMultipleOperations ([in] const WSD_OPERATION *pOperations,[in] DWORD dwOperationCount,[in] IWSDAsyncResult *pResult);
  89. HRESULT RenewMultipleOperations ([in] const WSD_OPERATION *pOperations,[in] DWORD dwOperationCount,[in] const WSD_EVENTING_EXPIRES *pExpires,[in] const WSDXML_ELEMENT *pAny,[out] WSD_EVENTING_EXPIRES **ppExpires,[out] WSDXML_ELEMENT **ppAny);
  90. HRESULT BeginRenewMultipleOperations ([in] const WSD_OPERATION *pOperations,[in] DWORD dwOperationCount,[in] const WSD_EVENTING_EXPIRES *pExpires,[in] const WSDXML_ELEMENT *pAny,[in] IUnknown *pAsyncState,[in] IWSDAsyncCallback *pAsyncCallback,[out] IWSDAsyncResult **ppResult);
  91. HRESULT EndRenewMultipleOperations ([in] const WSD_OPERATION *pOperations,[in] DWORD dwOperationCount,[in] IWSDAsyncResult *pResult,[out] WSD_EVENTING_EXPIRES **ppExpires,[out] WSDXML_ELEMENT **ppAny);
  92. HRESULT GetStatusForMultipleOperations ([in] const WSD_OPERATION *pOperations,[in] DWORD dwOperationCount,[in] const WSDXML_ELEMENT *pAny,[out] WSD_EVENTING_EXPIRES **ppExpires,[out] WSDXML_ELEMENT **ppAny);
  93. HRESULT BeginGetStatusForMultipleOperations ([in] const WSD_OPERATION *pOperations,[in] DWORD dwOperationCount,[in] const WSDXML_ELEMENT *pAny,[in] IUnknown *pAsyncState,[in] IWSDAsyncCallback *pAsyncCallback,[out] IWSDAsyncResult **ppResult);
  94. HRESULT EndGetStatusForMultipleOperations ([in] const WSD_OPERATION *pOperations,[in] DWORD dwOperationCount,[in] IWSDAsyncResult *pResult,[out] WSD_EVENTING_EXPIRES **ppExpires,[out] WSDXML_ELEMENT **ppAny);
  95. };
  96. cpp_quote("#endif")
  97. cpp_quote("HRESULT WINAPI WSDCreateDeviceProxy(LPCWSTR pszDeviceId, LPCWSTR pszLocalId, IWSDXMLContext *pContext, IWSDDeviceProxy **ppDeviceProxy);")
  98. cpp_quote("HRESULT WINAPI WSDCreateDeviceProxyAdvanced(LPCWSTR pszDeviceId, IWSDAddress* pDeviceAddress, LPCWSTR pszLocalId, IWSDXMLContext *pContext, IWSDDeviceProxy **ppDeviceProxy);")
  99. cpp_quote("#if WINVER >= 0x601")
  100. cpp_quote("HRESULT WINAPI WSDCreateDeviceProxy2(LPCWSTR pszDeviceId, LPCWSTR pszLocalId, IWSDXMLContext *pContext, WSD_CONFIG_PARAM *pConfigParams, DWORD dwConfigParamCount, IWSDDeviceProxy **ppDeviceProxy);")
  101. cpp_quote("#endif")
  102. cpp_quote("#endif")