2024-10-19 05:15:45 +08:00
|
|
|
/*** Autogenerated by WIDL 9.20 from include/wsdhost.idl - Do not edit ***/
|
2014-03-10 21:04:33 +08:00
|
|
|
|
2019-08-01 20:50:34 +08:00
|
|
|
#ifdef _WIN32
|
2014-03-10 21:04:33 +08:00
|
|
|
#ifndef __REQUIRED_RPCNDR_H_VERSION__
|
|
|
|
#define __REQUIRED_RPCNDR_H_VERSION__ 475
|
|
|
|
#endif
|
|
|
|
#include <rpc.h>
|
|
|
|
#include <rpcndr.h>
|
2019-08-01 20:50:34 +08:00
|
|
|
#endif
|
2014-03-10 21:04:33 +08:00
|
|
|
|
|
|
|
#ifndef COM_NO_WINDOWS_H
|
|
|
|
#include <windows.h>
|
|
|
|
#include <ole2.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __wsdhost_h__
|
|
|
|
#define __wsdhost_h__
|
|
|
|
|
|
|
|
/* Forward declarations */
|
|
|
|
|
|
|
|
#ifndef __IWSDDeviceHostNotify_FWD_DEFINED__
|
|
|
|
#define __IWSDDeviceHostNotify_FWD_DEFINED__
|
|
|
|
typedef interface IWSDDeviceHostNotify IWSDDeviceHostNotify;
|
2018-11-10 05:51:16 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
interface IWSDDeviceHostNotify;
|
|
|
|
#endif /* __cplusplus */
|
2014-03-10 21:04:33 +08:00
|
|
|
#endif
|
2010-08-11 22:55:18 +08:00
|
|
|
|
2014-03-10 21:04:33 +08:00
|
|
|
#ifndef __IWSDServiceMessaging_FWD_DEFINED__
|
|
|
|
#define __IWSDServiceMessaging_FWD_DEFINED__
|
|
|
|
typedef interface IWSDServiceMessaging IWSDServiceMessaging;
|
2018-11-10 05:51:16 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
interface IWSDServiceMessaging;
|
|
|
|
#endif /* __cplusplus */
|
2010-08-11 22:55:18 +08:00
|
|
|
#endif
|
|
|
|
|
2014-03-10 21:04:33 +08:00
|
|
|
#ifndef __IWSDDeviceHost_FWD_DEFINED__
|
|
|
|
#define __IWSDDeviceHost_FWD_DEFINED__
|
|
|
|
typedef interface IWSDDeviceHost IWSDDeviceHost;
|
2018-11-10 05:51:16 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
interface IWSDDeviceHost;
|
|
|
|
#endif /* __cplusplus */
|
2014-03-10 21:04:33 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Headers for imported files */
|
|
|
|
|
|
|
|
#include <oaidl.h>
|
|
|
|
#include <ocidl.h>
|
|
|
|
#include <wsdxmldom.h>
|
|
|
|
#include <wsdtypes.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <winapifamily.h>
|
|
|
|
|
|
|
|
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
2010-08-11 22:55:18 +08:00
|
|
|
|
2014-03-10 21:04:33 +08:00
|
|
|
#ifndef __IWSDAddress_FWD_DEFINED__
|
|
|
|
#define __IWSDAddress_FWD_DEFINED__
|
|
|
|
typedef interface IWSDAddress IWSDAddress;
|
2018-11-10 05:51:16 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
interface IWSDAddress;
|
|
|
|
#endif /* __cplusplus */
|
2014-03-10 21:04:33 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __IWSDXMLContext_FWD_DEFINED__
|
|
|
|
#define __IWSDXMLContext_FWD_DEFINED__
|
|
|
|
typedef interface IWSDXMLContext IWSDXMLContext;
|
2018-11-10 05:51:16 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
interface IWSDXMLContext;
|
|
|
|
#endif /* __cplusplus */
|
2014-03-10 21:04:33 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __IWSDDeviceHost_FWD_DEFINED__
|
|
|
|
#define __IWSDDeviceHost_FWD_DEFINED__
|
|
|
|
typedef interface IWSDDeviceHost IWSDDeviceHost;
|
2018-11-10 05:51:16 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
interface IWSDDeviceHost;
|
|
|
|
#endif /* __cplusplus */
|
2014-03-10 21:04:33 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __IWSDDeviceHostNotify_FWD_DEFINED__
|
|
|
|
#define __IWSDDeviceHostNotify_FWD_DEFINED__
|
|
|
|
typedef interface IWSDDeviceHostNotify IWSDDeviceHostNotify;
|
2018-11-10 05:51:16 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
interface IWSDDeviceHostNotify;
|
|
|
|
#endif /* __cplusplus */
|
2014-03-10 21:04:33 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __IWSDServiceMessaging_FWD_DEFINED__
|
|
|
|
#define __IWSDServiceMessaging_FWD_DEFINED__
|
|
|
|
typedef interface IWSDServiceMessaging IWSDServiceMessaging;
|
2018-11-10 05:51:16 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
interface IWSDServiceMessaging;
|
|
|
|
#endif /* __cplusplus */
|
2014-03-10 21:04:33 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IWSDDeviceHostNotify interface
|
|
|
|
*/
|
|
|
|
#ifndef __IWSDDeviceHostNotify_INTERFACE_DEFINED__
|
|
|
|
#define __IWSDDeviceHostNotify_INTERFACE_DEFINED__
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_IWSDDeviceHostNotify, 0xb5bee9f9, 0xeeda, 0x41fe, 0x96,0xf7, 0xf4,0x5e,0x14,0x99,0x0f,0xb0);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
|
|
|
MIDL_INTERFACE("b5bee9f9-eeda-41fe-96f7-f45e14990fb0")
|
|
|
|
IWSDDeviceHostNotify : public IUnknown
|
|
|
|
{
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetService(
|
|
|
|
LPCWSTR pszServiceId,
|
|
|
|
IUnknown **ppService) = 0;
|
|
|
|
|
|
|
|
};
|
|
|
|
#ifdef __CRT_UUID_DECL
|
|
|
|
__CRT_UUID_DECL(IWSDDeviceHostNotify, 0xb5bee9f9, 0xeeda, 0x41fe, 0x96,0xf7, 0xf4,0x5e,0x14,0x99,0x0f,0xb0)
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
typedef struct IWSDDeviceHostNotifyVtbl {
|
2010-08-10 16:24:16 +08:00
|
|
|
BEGIN_INTERFACE
|
2014-03-10 21:04:33 +08:00
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHostNotify *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
REFIID riid,
|
|
|
|
void **ppvObject);
|
|
|
|
|
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHostNotify *This);
|
2014-03-10 21:04:33 +08:00
|
|
|
|
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHostNotify *This);
|
2014-03-10 21:04:33 +08:00
|
|
|
|
|
|
|
/*** IWSDDeviceHostNotify methods ***/
|
|
|
|
HRESULT (STDMETHODCALLTYPE *GetService)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHostNotify *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
LPCWSTR pszServiceId,
|
|
|
|
IUnknown **ppService);
|
|
|
|
|
|
|
|
END_INTERFACE
|
|
|
|
} IWSDDeviceHostNotifyVtbl;
|
2018-11-10 05:51:16 +08:00
|
|
|
|
2014-03-10 21:04:33 +08:00
|
|
|
interface IWSDDeviceHostNotify {
|
|
|
|
CONST_VTBL IWSDDeviceHostNotifyVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef COBJMACROS
|
|
|
|
#ifndef WIDL_C_INLINE_WRAPPERS
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IWSDDeviceHostNotify_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
|
|
|
|
#define IWSDDeviceHostNotify_AddRef(This) (This)->lpVtbl->AddRef(This)
|
|
|
|
#define IWSDDeviceHostNotify_Release(This) (This)->lpVtbl->Release(This)
|
|
|
|
/*** IWSDDeviceHostNotify methods ***/
|
|
|
|
#define IWSDDeviceHostNotify_GetService(This,pszServiceId,ppService) (This)->lpVtbl->GetService(This,pszServiceId,ppService)
|
|
|
|
#else
|
|
|
|
/*** IUnknown methods ***/
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHostNotify_QueryInterface(IWSDDeviceHostNotify* This,REFIID riid,void **ppvObject) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline ULONG IWSDDeviceHostNotify_AddRef(IWSDDeviceHostNotify* This) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->AddRef(This);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline ULONG IWSDDeviceHostNotify_Release(IWSDDeviceHostNotify* This) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->Release(This);
|
|
|
|
}
|
|
|
|
/*** IWSDDeviceHostNotify methods ***/
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHostNotify_GetService(IWSDDeviceHostNotify* This,LPCWSTR pszServiceId,IUnknown **ppService) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->GetService(This,pszServiceId,ppService);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __IWSDDeviceHostNotify_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IWSDServiceMessaging interface
|
|
|
|
*/
|
|
|
|
#ifndef __IWSDServiceMessaging_INTERFACE_DEFINED__
|
|
|
|
#define __IWSDServiceMessaging_INTERFACE_DEFINED__
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_IWSDServiceMessaging, 0x94974cf4, 0x0cab, 0x460d, 0xa3,0xf6, 0x7a,0x0a,0xd6,0x23,0xc0,0xe6);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
|
|
|
MIDL_INTERFACE("94974cf4-0cab-460d-a3f6-7a0ad623c0e6")
|
|
|
|
IWSDServiceMessaging : public IUnknown
|
|
|
|
{
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE SendResponse(
|
|
|
|
void *pBody,
|
|
|
|
WSD_OPERATION *pOperation,
|
|
|
|
IWSDMessageParameters *pMessageParameters) = 0;
|
|
|
|
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE FaultRequest(
|
|
|
|
WSD_SOAP_HEADER *pRequestHeader,
|
|
|
|
IWSDMessageParameters *pMessageParameters,
|
|
|
|
WSD_SOAP_FAULT *pFault) = 0;
|
|
|
|
|
|
|
|
};
|
|
|
|
#ifdef __CRT_UUID_DECL
|
|
|
|
__CRT_UUID_DECL(IWSDServiceMessaging, 0x94974cf4, 0x0cab, 0x460d, 0xa3,0xf6, 0x7a,0x0a,0xd6,0x23,0xc0,0xe6)
|
2014-02-23 23:13:11 +08:00
|
|
|
#endif
|
2014-03-10 21:04:33 +08:00
|
|
|
#else
|
|
|
|
typedef struct IWSDServiceMessagingVtbl {
|
|
|
|
BEGIN_INTERFACE
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDServiceMessaging *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
REFIID riid,
|
|
|
|
void **ppvObject);
|
|
|
|
|
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDServiceMessaging *This);
|
2014-03-10 21:04:33 +08:00
|
|
|
|
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDServiceMessaging *This);
|
2014-03-10 21:04:33 +08:00
|
|
|
|
|
|
|
/*** IWSDServiceMessaging methods ***/
|
|
|
|
HRESULT (STDMETHODCALLTYPE *SendResponse)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDServiceMessaging *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
void *pBody,
|
|
|
|
WSD_OPERATION *pOperation,
|
|
|
|
IWSDMessageParameters *pMessageParameters);
|
|
|
|
|
|
|
|
HRESULT (STDMETHODCALLTYPE *FaultRequest)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDServiceMessaging *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
WSD_SOAP_HEADER *pRequestHeader,
|
|
|
|
IWSDMessageParameters *pMessageParameters,
|
|
|
|
WSD_SOAP_FAULT *pFault);
|
2010-08-10 16:24:16 +08:00
|
|
|
|
|
|
|
END_INTERFACE
|
2014-03-10 21:04:33 +08:00
|
|
|
} IWSDServiceMessagingVtbl;
|
2018-11-10 05:51:16 +08:00
|
|
|
|
2014-03-10 21:04:33 +08:00
|
|
|
interface IWSDServiceMessaging {
|
|
|
|
CONST_VTBL IWSDServiceMessagingVtbl* lpVtbl;
|
2010-08-10 16:24:16 +08:00
|
|
|
};
|
2014-03-10 21:04:33 +08:00
|
|
|
|
2010-08-10 16:24:16 +08:00
|
|
|
#ifdef COBJMACROS
|
2014-03-10 21:04:33 +08:00
|
|
|
#ifndef WIDL_C_INLINE_WRAPPERS
|
|
|
|
/*** IUnknown methods ***/
|
* Fix incorrect references for pVtbl to lpVtbl in these files:
audioengineendpoint.h, bdaiface.h, dvbsiparser.h, dwrite.h, dxvahd.h,
evr.h, fsrm.h, fsrmquota.h, fsrmreports.h, fsrmscreen.h,
functiondiscoveryapi.h, functiondiscoverynotification.h,
identitystore.h, locationapi.h, mfapi.h, mfidl.h, mfobjects.h,
mfplay.h, mfreadwrite.h, mftransform.h, mpeg2data.h, mpeg2psiparser.h,
msrdc.h, ndhelper.h, opmapi.h, portabledeviceconnectapi.h,
rdpencomapi.h, strmif.h, strmif.idl, tuner.h, vsadmin.h, vsbackup.h,
vsmgmt.h, vsprov.h, vss.h, vswriter.h, winsync.h, wmcontainer.h,
wsdattachment.h, wsdbase.h, wsdclient.h, wsddisco.h, wsdhost.h,
wsdxml.h.
* adhoc.h (IDot11AdHocInterfaceNotificationSink): Fix
OnConnectionStatusChange.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@4962 4407c894-4637-0410-b4f5-ada5f102cad1
2012-04-24 00:50:30 +08:00
|
|
|
#define IWSDServiceMessaging_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
|
|
|
|
#define IWSDServiceMessaging_AddRef(This) (This)->lpVtbl->AddRef(This)
|
|
|
|
#define IWSDServiceMessaging_Release(This) (This)->lpVtbl->Release(This)
|
2014-03-10 21:04:33 +08:00
|
|
|
/*** IWSDServiceMessaging methods ***/
|
2010-08-10 16:24:16 +08:00
|
|
|
#define IWSDServiceMessaging_SendResponse(This,pBody,pOperation,pMessageParameters) (This)->lpVtbl->SendResponse(This,pBody,pOperation,pMessageParameters)
|
2014-03-10 21:04:33 +08:00
|
|
|
#define IWSDServiceMessaging_FaultRequest(This,pRequestHeader,pMessageParameters,pFault) (This)->lpVtbl->FaultRequest(This,pRequestHeader,pMessageParameters,pFault)
|
|
|
|
#else
|
|
|
|
/*** IUnknown methods ***/
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDServiceMessaging_QueryInterface(IWSDServiceMessaging* This,REFIID riid,void **ppvObject) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline ULONG IWSDServiceMessaging_AddRef(IWSDServiceMessaging* This) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->AddRef(This);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline ULONG IWSDServiceMessaging_Release(IWSDServiceMessaging* This) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->Release(This);
|
|
|
|
}
|
|
|
|
/*** IWSDServiceMessaging methods ***/
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDServiceMessaging_SendResponse(IWSDServiceMessaging* This,void *pBody,WSD_OPERATION *pOperation,IWSDMessageParameters *pMessageParameters) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->SendResponse(This,pBody,pOperation,pMessageParameters);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDServiceMessaging_FaultRequest(IWSDServiceMessaging* This,WSD_SOAP_HEADER *pRequestHeader,IWSDMessageParameters *pMessageParameters,WSD_SOAP_FAULT *pFault) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->FaultRequest(This,pRequestHeader,pMessageParameters,pFault);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
2010-08-10 16:24:16 +08:00
|
|
|
|
2014-02-23 23:13:11 +08:00
|
|
|
#endif
|
2010-08-10 16:24:16 +08:00
|
|
|
|
2014-03-10 21:04:33 +08:00
|
|
|
|
|
|
|
#endif /* __IWSDServiceMessaging_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IWSDDeviceHost interface
|
|
|
|
*/
|
|
|
|
#ifndef __IWSDDeviceHost_INTERFACE_DEFINED__
|
|
|
|
#define __IWSDDeviceHost_INTERFACE_DEFINED__
|
|
|
|
|
|
|
|
DEFINE_GUID(IID_IWSDDeviceHost, 0x917fe891, 0x3d13, 0x4138, 0x98,0x09, 0x93,0x4c,0x8a,0xbe,0xb1,0x2c);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
|
|
|
MIDL_INTERFACE("917fe891-3d13-4138-9809-934c8abeb12c")
|
|
|
|
IWSDDeviceHost : public IUnknown
|
|
|
|
{
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE Init(
|
|
|
|
LPCWSTR pszLocalId,
|
|
|
|
IWSDXMLContext *pContext,
|
|
|
|
IWSDAddress **ppHostAddresses,
|
|
|
|
DWORD dwHostAddressCount) = 0;
|
2010-08-10 16:24:16 +08:00
|
|
|
|
2014-03-10 21:04:33 +08:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Start(
|
|
|
|
ULONGLONG ullInstanceId,
|
|
|
|
const WSD_URI_LIST *pScopeList,
|
|
|
|
IWSDDeviceHostNotify *pNotificationSink) = 0;
|
|
|
|
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE Stop(
|
|
|
|
) = 0;
|
|
|
|
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE Terminate(
|
|
|
|
) = 0;
|
|
|
|
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE RegisterPortType(
|
|
|
|
const WSD_PORT_TYPE *pPortType) = 0;
|
|
|
|
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetMetadata(
|
|
|
|
const WSD_THIS_MODEL_METADATA *pThisModelMetadata,
|
|
|
|
const WSD_THIS_DEVICE_METADATA *pThisDeviceMetadata,
|
|
|
|
const WSD_HOST_METADATA *pHostMetadata,
|
|
|
|
const WSD_METADATA_SECTION_LIST *pCustomMetadata) = 0;
|
|
|
|
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE RegisterService(
|
|
|
|
LPCWSTR pszServiceId,
|
|
|
|
IUnknown *pService) = 0;
|
|
|
|
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE RetireService(
|
|
|
|
LPCWSTR pszServiceId) = 0;
|
|
|
|
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE AddDynamicService(
|
|
|
|
LPCWSTR pszServiceId,
|
|
|
|
LPCWSTR pszEndpointAddress,
|
|
|
|
const WSD_PORT_TYPE *pPortType,
|
|
|
|
const WSDXML_NAME *pPortName,
|
|
|
|
const WSDXML_ELEMENT *pAny,
|
|
|
|
IUnknown *pService) = 0;
|
|
|
|
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE RemoveDynamicService(
|
|
|
|
LPCWSTR pszServiceId) = 0;
|
|
|
|
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetServiceDiscoverable(
|
|
|
|
LPCWSTR pszServiceId,
|
|
|
|
WINBOOL fDiscoverable) = 0;
|
|
|
|
|
|
|
|
virtual HRESULT STDMETHODCALLTYPE SignalEvent(
|
|
|
|
LPCWSTR pszServiceId,
|
|
|
|
const void *pBody,
|
|
|
|
const WSD_OPERATION *pOperation) = 0;
|
|
|
|
|
|
|
|
};
|
|
|
|
#ifdef __CRT_UUID_DECL
|
|
|
|
__CRT_UUID_DECL(IWSDDeviceHost, 0x917fe891, 0x3d13, 0x4138, 0x98,0x09, 0x93,0x4c,0x8a,0xbe,0xb1,0x2c)
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
typedef struct IWSDDeviceHostVtbl {
|
2010-08-10 16:24:16 +08:00
|
|
|
BEGIN_INTERFACE
|
2014-03-10 21:04:33 +08:00
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
REFIID riid,
|
|
|
|
void **ppvObject);
|
|
|
|
|
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This);
|
2014-03-10 21:04:33 +08:00
|
|
|
|
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This);
|
2014-03-10 21:04:33 +08:00
|
|
|
|
|
|
|
/*** IWSDDeviceHost methods ***/
|
|
|
|
HRESULT (STDMETHODCALLTYPE *Init)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
LPCWSTR pszLocalId,
|
|
|
|
IWSDXMLContext *pContext,
|
|
|
|
IWSDAddress **ppHostAddresses,
|
|
|
|
DWORD dwHostAddressCount);
|
|
|
|
|
|
|
|
HRESULT (STDMETHODCALLTYPE *Start)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
ULONGLONG ullInstanceId,
|
|
|
|
const WSD_URI_LIST *pScopeList,
|
|
|
|
IWSDDeviceHostNotify *pNotificationSink);
|
|
|
|
|
|
|
|
HRESULT (STDMETHODCALLTYPE *Stop)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This);
|
2014-03-10 21:04:33 +08:00
|
|
|
|
|
|
|
HRESULT (STDMETHODCALLTYPE *Terminate)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This);
|
2014-03-10 21:04:33 +08:00
|
|
|
|
|
|
|
HRESULT (STDMETHODCALLTYPE *RegisterPortType)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
const WSD_PORT_TYPE *pPortType);
|
|
|
|
|
|
|
|
HRESULT (STDMETHODCALLTYPE *SetMetadata)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
const WSD_THIS_MODEL_METADATA *pThisModelMetadata,
|
|
|
|
const WSD_THIS_DEVICE_METADATA *pThisDeviceMetadata,
|
|
|
|
const WSD_HOST_METADATA *pHostMetadata,
|
|
|
|
const WSD_METADATA_SECTION_LIST *pCustomMetadata);
|
|
|
|
|
|
|
|
HRESULT (STDMETHODCALLTYPE *RegisterService)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
LPCWSTR pszServiceId,
|
|
|
|
IUnknown *pService);
|
|
|
|
|
|
|
|
HRESULT (STDMETHODCALLTYPE *RetireService)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
LPCWSTR pszServiceId);
|
|
|
|
|
|
|
|
HRESULT (STDMETHODCALLTYPE *AddDynamicService)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
LPCWSTR pszServiceId,
|
|
|
|
LPCWSTR pszEndpointAddress,
|
|
|
|
const WSD_PORT_TYPE *pPortType,
|
|
|
|
const WSDXML_NAME *pPortName,
|
|
|
|
const WSDXML_ELEMENT *pAny,
|
|
|
|
IUnknown *pService);
|
|
|
|
|
|
|
|
HRESULT (STDMETHODCALLTYPE *RemoveDynamicService)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
LPCWSTR pszServiceId);
|
|
|
|
|
|
|
|
HRESULT (STDMETHODCALLTYPE *SetServiceDiscoverable)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
LPCWSTR pszServiceId,
|
|
|
|
WINBOOL fDiscoverable);
|
|
|
|
|
|
|
|
HRESULT (STDMETHODCALLTYPE *SignalEvent)(
|
2018-11-10 05:51:16 +08:00
|
|
|
IWSDDeviceHost *This,
|
2014-03-10 21:04:33 +08:00
|
|
|
LPCWSTR pszServiceId,
|
|
|
|
const void *pBody,
|
|
|
|
const WSD_OPERATION *pOperation);
|
2010-08-10 16:24:16 +08:00
|
|
|
|
|
|
|
END_INTERFACE
|
2014-03-10 21:04:33 +08:00
|
|
|
} IWSDDeviceHostVtbl;
|
2018-11-10 05:51:16 +08:00
|
|
|
|
2014-03-10 21:04:33 +08:00
|
|
|
interface IWSDDeviceHost {
|
|
|
|
CONST_VTBL IWSDDeviceHostVtbl* lpVtbl;
|
2010-08-10 16:24:16 +08:00
|
|
|
};
|
2014-03-10 21:04:33 +08:00
|
|
|
|
2010-08-10 16:24:16 +08:00
|
|
|
#ifdef COBJMACROS
|
2014-03-10 21:04:33 +08:00
|
|
|
#ifndef WIDL_C_INLINE_WRAPPERS
|
|
|
|
/*** IUnknown methods ***/
|
* Fix incorrect references for pVtbl to lpVtbl in these files:
audioengineendpoint.h, bdaiface.h, dvbsiparser.h, dwrite.h, dxvahd.h,
evr.h, fsrm.h, fsrmquota.h, fsrmreports.h, fsrmscreen.h,
functiondiscoveryapi.h, functiondiscoverynotification.h,
identitystore.h, locationapi.h, mfapi.h, mfidl.h, mfobjects.h,
mfplay.h, mfreadwrite.h, mftransform.h, mpeg2data.h, mpeg2psiparser.h,
msrdc.h, ndhelper.h, opmapi.h, portabledeviceconnectapi.h,
rdpencomapi.h, strmif.h, strmif.idl, tuner.h, vsadmin.h, vsbackup.h,
vsmgmt.h, vsprov.h, vss.h, vswriter.h, winsync.h, wmcontainer.h,
wsdattachment.h, wsdbase.h, wsdclient.h, wsddisco.h, wsdhost.h,
wsdxml.h.
* adhoc.h (IDot11AdHocInterfaceNotificationSink): Fix
OnConnectionStatusChange.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@4962 4407c894-4637-0410-b4f5-ada5f102cad1
2012-04-24 00:50:30 +08:00
|
|
|
#define IWSDDeviceHost_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
|
|
|
|
#define IWSDDeviceHost_AddRef(This) (This)->lpVtbl->AddRef(This)
|
|
|
|
#define IWSDDeviceHost_Release(This) (This)->lpVtbl->Release(This)
|
2014-03-10 21:04:33 +08:00
|
|
|
/*** IWSDDeviceHost methods ***/
|
|
|
|
#define IWSDDeviceHost_Init(This,pszLocalId,pContext,ppHostAddresses,dwHostAddressCount) (This)->lpVtbl->Init(This,pszLocalId,pContext,ppHostAddresses,dwHostAddressCount)
|
2010-08-10 16:24:16 +08:00
|
|
|
#define IWSDDeviceHost_Start(This,ullInstanceId,pScopeList,pNotificationSink) (This)->lpVtbl->Start(This,ullInstanceId,pScopeList,pNotificationSink)
|
2014-03-10 21:04:33 +08:00
|
|
|
#define IWSDDeviceHost_Stop(This) (This)->lpVtbl->Stop(This)
|
|
|
|
#define IWSDDeviceHost_Terminate(This) (This)->lpVtbl->Terminate(This)
|
2010-08-10 16:24:16 +08:00
|
|
|
#define IWSDDeviceHost_RegisterPortType(This,pPortType) (This)->lpVtbl->RegisterPortType(This,pPortType)
|
2014-03-10 21:04:33 +08:00
|
|
|
#define IWSDDeviceHost_SetMetadata(This,pThisModelMetadata,pThisDeviceMetadata,pHostMetadata,pCustomMetadata) (This)->lpVtbl->SetMetadata(This,pThisModelMetadata,pThisDeviceMetadata,pHostMetadata,pCustomMetadata)
|
2010-08-10 16:24:16 +08:00
|
|
|
#define IWSDDeviceHost_RegisterService(This,pszServiceId,pService) (This)->lpVtbl->RegisterService(This,pszServiceId,pService)
|
|
|
|
#define IWSDDeviceHost_RetireService(This,pszServiceId) (This)->lpVtbl->RetireService(This,pszServiceId)
|
2014-03-10 21:04:33 +08:00
|
|
|
#define IWSDDeviceHost_AddDynamicService(This,pszServiceId,pszEndpointAddress,pPortType,pPortName,pAny,pService) (This)->lpVtbl->AddDynamicService(This,pszServiceId,pszEndpointAddress,pPortType,pPortName,pAny,pService)
|
2010-08-10 16:24:16 +08:00
|
|
|
#define IWSDDeviceHost_RemoveDynamicService(This,pszServiceId) (This)->lpVtbl->RemoveDynamicService(This,pszServiceId)
|
|
|
|
#define IWSDDeviceHost_SetServiceDiscoverable(This,pszServiceId,fDiscoverable) (This)->lpVtbl->SetServiceDiscoverable(This,pszServiceId,fDiscoverable)
|
|
|
|
#define IWSDDeviceHost_SignalEvent(This,pszServiceId,pBody,pOperation) (This)->lpVtbl->SignalEvent(This,pszServiceId,pBody,pOperation)
|
2014-03-10 21:04:33 +08:00
|
|
|
#else
|
|
|
|
/*** IUnknown methods ***/
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHost_QueryInterface(IWSDDeviceHost* This,REFIID riid,void **ppvObject) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline ULONG IWSDDeviceHost_AddRef(IWSDDeviceHost* This) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->AddRef(This);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline ULONG IWSDDeviceHost_Release(IWSDDeviceHost* This) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->Release(This);
|
|
|
|
}
|
|
|
|
/*** IWSDDeviceHost methods ***/
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHost_Init(IWSDDeviceHost* This,LPCWSTR pszLocalId,IWSDXMLContext *pContext,IWSDAddress **ppHostAddresses,DWORD dwHostAddressCount) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->Init(This,pszLocalId,pContext,ppHostAddresses,dwHostAddressCount);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHost_Start(IWSDDeviceHost* This,ULONGLONG ullInstanceId,const WSD_URI_LIST *pScopeList,IWSDDeviceHostNotify *pNotificationSink) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->Start(This,ullInstanceId,pScopeList,pNotificationSink);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHost_Stop(IWSDDeviceHost* This) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->Stop(This);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHost_Terminate(IWSDDeviceHost* This) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->Terminate(This);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHost_RegisterPortType(IWSDDeviceHost* This,const WSD_PORT_TYPE *pPortType) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->RegisterPortType(This,pPortType);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHost_SetMetadata(IWSDDeviceHost* This,const WSD_THIS_MODEL_METADATA *pThisModelMetadata,const WSD_THIS_DEVICE_METADATA *pThisDeviceMetadata,const WSD_HOST_METADATA *pHostMetadata,const WSD_METADATA_SECTION_LIST *pCustomMetadata) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->SetMetadata(This,pThisModelMetadata,pThisDeviceMetadata,pHostMetadata,pCustomMetadata);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHost_RegisterService(IWSDDeviceHost* This,LPCWSTR pszServiceId,IUnknown *pService) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->RegisterService(This,pszServiceId,pService);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHost_RetireService(IWSDDeviceHost* This,LPCWSTR pszServiceId) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->RetireService(This,pszServiceId);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHost_AddDynamicService(IWSDDeviceHost* This,LPCWSTR pszServiceId,LPCWSTR pszEndpointAddress,const WSD_PORT_TYPE *pPortType,const WSDXML_NAME *pPortName,const WSDXML_ELEMENT *pAny,IUnknown *pService) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->AddDynamicService(This,pszServiceId,pszEndpointAddress,pPortType,pPortName,pAny,pService);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHost_RemoveDynamicService(IWSDDeviceHost* This,LPCWSTR pszServiceId) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->RemoveDynamicService(This,pszServiceId);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHost_SetServiceDiscoverable(IWSDDeviceHost* This,LPCWSTR pszServiceId,WINBOOL fDiscoverable) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->SetServiceDiscoverable(This,pszServiceId,fDiscoverable);
|
|
|
|
}
|
2024-10-19 05:15:45 +08:00
|
|
|
static inline HRESULT IWSDDeviceHost_SignalEvent(IWSDDeviceHost* This,LPCWSTR pszServiceId,const void *pBody,const WSD_OPERATION *pOperation) {
|
2014-03-10 21:04:33 +08:00
|
|
|
return This->lpVtbl->SignalEvent(This,pszServiceId,pBody,pOperation);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
2010-08-10 16:24:16 +08:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2014-03-10 21:04:33 +08:00
|
|
|
|
|
|
|
#endif /* __IWSDDeviceHost_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
HRESULT WINAPI WSDCreateDeviceHost(LPCWSTR pszLocalId, IWSDXMLContext *pContext, IWSDDeviceHost **ppDeviceHost);
|
|
|
|
#if WINVER >= 0x601
|
|
|
|
HRESULT WINAPI WSDCreateDeviceHost2(LPCWSTR pszLocalId, IWSDXMLContext *pContext, WSD_CONFIG_PARAM *pConfigParams, DWORD dwConfigParamCount, IWSDDeviceHost **ppDeviceHost);
|
|
|
|
#endif
|
|
|
|
HRESULT WINAPI WSDCreateDeviceHostAdvanced(LPCWSTR pszLocalId, IWSDXMLContext *pContext, IWSDAddress** ppHostAddresses, DWORD dwHostAddressCount, IWSDDeviceHost **ppDeviceHost);
|
|
|
|
#endif
|
|
|
|
/* Begin additional prototypes for all interfaces */
|
|
|
|
|
|
|
|
|
|
|
|
/* End additional prototypes */
|
2010-08-10 16:24:16 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2014-03-10 21:04:33 +08:00
|
|
|
#endif /* __wsdhost_h__ */
|