| 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 |  | 
 
 
 
 
 | 9 | import "oaidl.idl"; | 
 
 
 
 
 | 10 | import "ocidl.idl"; | 
 
 
 
 
 | 11 | import "wsdxmldom.h"; | 
 
 
 
 
 | 12 | import "wsdtypes.h"; | 
 
 
 
 
 | 13 |  | 
 
 
 
 
 | 14 | cpp_quote("") | 
 
 
 
 
 | 15 | interface IWSDAddress; | 
 
 
 
 
 | 16 | interface IWSDXMLContext; | 
 
 
 
 
 | 17 | interface IWSDDeviceHost; | 
 
 
 
 
 | 18 | interface IWSDDeviceHostNotify; | 
 
 
 
 
 | 19 | interface IWSDServiceMessaging; | 
 
 
 
 
 | 20 |  | 
 
 
 
 
 | 21 | [object, restricted, uuid (b5bee9f9-eeda-41fe-96f7-f45e14990fb0), pointer_default (unique)] | 
 
 
 
 
 | 22 | interface IWSDDeviceHostNotify : IUnknown { | 
 
 
 
 
 | 23 | HRESULT GetService ([in] LPCWSTR pszServiceId,[out] IUnknown **ppService); | 
 
 
 
 
 | 24 | }; | 
 
 
 
 
 | 25 |  | 
 
 
 
 
 | 26 | [object, local, restricted, uuid (94974cf4-0cab-460d-a3f6-7a0ad623c0e6), pointer_default (unique)] | 
 
 
 
 
 | 27 | interface IWSDServiceMessaging : IUnknown { | 
 
 
 
 
 | 28 | HRESULT SendResponse ([in] void *pBody,[in] WSD_OPERATION *pOperation,[in] IWSDMessageParameters *pMessageParameters); | 
 
 
 
 
 | 29 | HRESULT FaultRequest ([in] WSD_SOAP_HEADER *pRequestHeader,[in] IWSDMessageParameters *pMessageParameters,[in, optional] WSD_SOAP_FAULT *pFault); | 
 
 
 
 
 | 30 | }; | 
 
 
 
 
 | 31 |  | 
 
 
 
 
 | 32 | [object, local, restricted, uuid (917fe891-3d13-4138-9809-934c8abeb12c), pointer_default (unique)] | 
 
 
 
 
 | 33 | interface IWSDDeviceHost : IUnknown { | 
 
 
 
 
 | 34 | HRESULT Init ([in] LPCWSTR pszLocalId,[in, optional] IWSDXMLContext *pContext,[in, optional] IWSDAddress **ppHostAddresses,[in, optional] DWORD dwHostAddressCount); | 
 
 
 
 
 | 35 | HRESULT Start ([in] ULONGLONG ullInstanceId,[in] const WSD_URI_LIST *pScopeList,[in, optional] IWSDDeviceHostNotify *pNotificationSink); | 
 
 
 
 
 | 36 | HRESULT Stop (); | 
 
 
 
 
 | 37 | HRESULT Terminate (); | 
 
 
 
 
 | 38 | HRESULT RegisterPortType ([in] const WSD_PORT_TYPE *pPortType); | 
 
 
 
 
 | 39 | HRESULT SetMetadata ([in] const WSD_THIS_MODEL_METADATA *pThisModelMetadata,[in] const WSD_THIS_DEVICE_METADATA *pThisDeviceMetadata,[in, optional] const WSD_HOST_METADATA *pHostMetadata,[in, optional] const WSD_METADATA_SECTION_LIST *pCustomMetadata); | 
 
 
 
 
 | 40 | HRESULT RegisterService ([in] LPCWSTR pszServiceId,[in] IUnknown *pService); | 
 
 
 
 
 | 41 | HRESULT RetireService ([in] LPCWSTR pszServiceId); | 
 
 
 
 
 | 42 | HRESULT AddDynamicService ([in] LPCWSTR pszServiceId,[in, optional] LPCWSTR pszEndpointAddress,[in, optional] const WSD_PORT_TYPE *pPortType,[in, optional] const WSDXML_NAME *pPortName,[in, optional] const WSDXML_ELEMENT *pAny,[in, optional] IUnknown *pService); | 
 
 
 
 
 | 43 | HRESULT RemoveDynamicService ([in] LPCWSTR pszServiceId); | 
 
 
 
 
 | 44 | HRESULT SetServiceDiscoverable ([in] LPCWSTR pszServiceId,[in] BOOL fDiscoverable); | 
 
 
 
 
 | 45 | HRESULT SignalEvent ([in] LPCWSTR pszServiceId,[in] const void *pBody,[in] const WSD_OPERATION *pOperation); | 
 
 
 
 
 | 46 | }; | 
 
 
 
 
 | 47 |  | 
 
 
 
 
 | 48 | cpp_quote("HRESULT WINAPI WSDCreateDeviceHost(LPCWSTR pszLocalId, IWSDXMLContext *pContext, IWSDDeviceHost **ppDeviceHost);") | 
 
 
 
 
 | 49 | cpp_quote("#if WINVER >= 0x601") | 
 
 
 
 
 | 50 | cpp_quote("HRESULT WINAPI WSDCreateDeviceHost2(LPCWSTR pszLocalId, IWSDXMLContext *pContext, WSD_CONFIG_PARAM *pConfigParams, DWORD dwConfigParamCount, IWSDDeviceHost **ppDeviceHost);") | 
 
 
 
 
 | 51 | cpp_quote("#endif") | 
 
 
 
 
 | 52 | cpp_quote("HRESULT WINAPI WSDCreateDeviceHostAdvanced(LPCWSTR pszLocalId, IWSDXMLContext *pContext, IWSDAddress** ppHostAddresses, DWORD dwHostAddressCount, IWSDDeviceHost **ppDeviceHost);") | 
 
 
 
 
 | 53 |  | 
 
 
 
 
 | 54 | cpp_quote("#endif") |