xpmgr/BuildTools/Include/PortableDeviceConnectApi.h

472 lines
14 KiB
C++

/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 7.00.0555 */
/* Compiler settings for PortableDeviceConnectApi.idl:
Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 7.00.0555
protocol : dce , ms_ext, c_ext, robust
error checks: allocation ref bounds_check enum stub_data
VC __declspec() decoration level:
__declspec(uuid()), __declspec(selectany), __declspec(novtable)
DECLSPEC_UUID(), MIDL_INTERFACE()
*/
/* @@MIDL_FILE_HEADING( ) */
#pragma warning( disable: 4049 ) /* more than 64k source lines */
/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 500
#endif
/* verify that the <rpcsal.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCSAL_H_VERSION__
#define __REQUIRED_RPCSAL_H_VERSION__ 100
#endif
#include "rpc.h"
#include "rpcndr.h"
#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__
#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/
#ifndef __PortableDeviceConnectApi_h__
#define __PortableDeviceConnectApi_h__
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
/* Forward Declarations */
#ifndef __IEnumPortableDeviceConnectors_FWD_DEFINED__
#define __IEnumPortableDeviceConnectors_FWD_DEFINED__
typedef interface IEnumPortableDeviceConnectors IEnumPortableDeviceConnectors;
#endif /* __IEnumPortableDeviceConnectors_FWD_DEFINED__ */
#ifndef __IPortableDeviceConnector_FWD_DEFINED__
#define __IPortableDeviceConnector_FWD_DEFINED__
typedef interface IPortableDeviceConnector IPortableDeviceConnector;
#endif /* __IPortableDeviceConnector_FWD_DEFINED__ */
#ifndef __IConnectionRequestCallback_FWD_DEFINED__
#define __IConnectionRequestCallback_FWD_DEFINED__
typedef interface IConnectionRequestCallback IConnectionRequestCallback;
#endif /* __IConnectionRequestCallback_FWD_DEFINED__ */
#ifndef __EnumBthMtpConnectors_FWD_DEFINED__
#define __EnumBthMtpConnectors_FWD_DEFINED__
#ifdef __cplusplus
typedef class EnumBthMtpConnectors EnumBthMtpConnectors;
#else
typedef struct EnumBthMtpConnectors EnumBthMtpConnectors;
#endif /* __cplusplus */
#endif /* __EnumBthMtpConnectors_FWD_DEFINED__ */
/* header files for imported files */
#include "wtypes.h"
#include "propsys.h"
#include "PortableDeviceConnectImports.h"
#ifdef __cplusplus
extern "C"{
#endif
/* interface __MIDL_itf_PortableDeviceConnectApi_0000_0000 */
/* [local] */
// Property set by the MTP Bluetooth Enumerator indicate whether the device is connected
// DEVPKEY_MTPBTH_IsConnected, DEVPROP_TYPE_BOOLEAN
//
// {ea1237fa-589d-4472-84e4-0abe36fd62ef}.2
DEFINE_DEVPROPKEY(DEVPKEY_MTPBTH_IsConnected, 0xea1237fa, 0x589d, 0x4472, 0x84, 0xe4, 0x0a, 0xbe, 0x36, 0xfd, 0x62, 0xef, 2);
extern RPC_IF_HANDLE __MIDL_itf_PortableDeviceConnectApi_0000_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_PortableDeviceConnectApi_0000_0000_v0_0_s_ifspec;
#ifndef __IEnumPortableDeviceConnectors_INTERFACE_DEFINED__
#define __IEnumPortableDeviceConnectors_INTERFACE_DEFINED__
/* interface IEnumPortableDeviceConnectors */
/* [unique][helpstring][uuid][object] */
EXTERN_C const IID IID_IEnumPortableDeviceConnectors;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("bfdef549-9247-454f-bd82-06fe80853faa")
IEnumPortableDeviceConnectors : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE Next(
/* [in] */ UINT32 cRequested,
/* [length_is][size_is][out] */ __RPC__out_ecount_part(cRequested, *pcFetched) IPortableDeviceConnector **pConnectors,
/* [unique][out][in] */ __RPC__inout_opt UINT32 *pcFetched) = 0;
virtual HRESULT STDMETHODCALLTYPE Skip(
/* [in] */ UINT32 cConnectors) = 0;
virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
virtual HRESULT STDMETHODCALLTYPE Clone(
/* [out] */ __RPC__deref_out_opt IEnumPortableDeviceConnectors **ppEnum) = 0;
};
#else /* C style interface */
typedef struct IEnumPortableDeviceConnectorsVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
__RPC__in IEnumPortableDeviceConnectors * This,
/* [in] */ __RPC__in REFIID riid,
/* [annotation][iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
__RPC__in IEnumPortableDeviceConnectors * This);
ULONG ( STDMETHODCALLTYPE *Release )(
__RPC__in IEnumPortableDeviceConnectors * This);
HRESULT ( STDMETHODCALLTYPE *Next )(
__RPC__in IEnumPortableDeviceConnectors * This,
/* [in] */ UINT32 cRequested,
/* [length_is][size_is][out] */ __RPC__out_ecount_part(cRequested, *pcFetched) IPortableDeviceConnector **pConnectors,
/* [unique][out][in] */ __RPC__inout_opt UINT32 *pcFetched);
HRESULT ( STDMETHODCALLTYPE *Skip )(
__RPC__in IEnumPortableDeviceConnectors * This,
/* [in] */ UINT32 cConnectors);
HRESULT ( STDMETHODCALLTYPE *Reset )(
__RPC__in IEnumPortableDeviceConnectors * This);
HRESULT ( STDMETHODCALLTYPE *Clone )(
__RPC__in IEnumPortableDeviceConnectors * This,
/* [out] */ __RPC__deref_out_opt IEnumPortableDeviceConnectors **ppEnum);
END_INTERFACE
} IEnumPortableDeviceConnectorsVtbl;
interface IEnumPortableDeviceConnectors
{
CONST_VTBL struct IEnumPortableDeviceConnectorsVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IEnumPortableDeviceConnectors_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define IEnumPortableDeviceConnectors_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define IEnumPortableDeviceConnectors_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define IEnumPortableDeviceConnectors_Next(This,cRequested,pConnectors,pcFetched) \
( (This)->lpVtbl -> Next(This,cRequested,pConnectors,pcFetched) )
#define IEnumPortableDeviceConnectors_Skip(This,cConnectors) \
( (This)->lpVtbl -> Skip(This,cConnectors) )
#define IEnumPortableDeviceConnectors_Reset(This) \
( (This)->lpVtbl -> Reset(This) )
#define IEnumPortableDeviceConnectors_Clone(This,ppEnum) \
( (This)->lpVtbl -> Clone(This,ppEnum) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IEnumPortableDeviceConnectors_INTERFACE_DEFINED__ */
#ifndef __IPortableDeviceConnector_INTERFACE_DEFINED__
#define __IPortableDeviceConnector_INTERFACE_DEFINED__
/* interface IPortableDeviceConnector */
/* [unique][helpstring][uuid][object] */
EXTERN_C const IID IID_IPortableDeviceConnector;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("625e2df8-6392-4cf0-9ad1-3cfa5f17775c")
IPortableDeviceConnector : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE Connect(
/* [in] */ __RPC__in_opt IConnectionRequestCallback *pCallback) = 0;
virtual HRESULT STDMETHODCALLTYPE Disconnect(
/* [in] */ __RPC__in_opt IConnectionRequestCallback *pCallback) = 0;
virtual HRESULT STDMETHODCALLTYPE Cancel(
/* [in] */ __RPC__in_opt IConnectionRequestCallback *pCallback) = 0;
virtual HRESULT STDMETHODCALLTYPE GetProperty(
/* [in] */ __RPC__in const DEVPROPKEY *pPropertyKey,
/* [out] */ __RPC__out DEVPROPTYPE *pPropertyType,
/* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcbData) BYTE **ppData,
/* [out] */ __RPC__out UINT32 *pcbData) = 0;
virtual HRESULT STDMETHODCALLTYPE SetProperty(
/* [in] */ __RPC__in const DEVPROPKEY *pPropertyKey,
/* [in] */ DEVPROPTYPE PropertyType,
/* [size_is][in] */ __RPC__in_ecount_full(cbData) const BYTE *pData,
/* [in] */ UINT32 cbData) = 0;
virtual HRESULT STDMETHODCALLTYPE GetPnPID(
/* [out] */ __RPC__deref_out_opt LPWSTR *ppwszPnPID) = 0;
};
#else /* C style interface */
typedef struct IPortableDeviceConnectorVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
__RPC__in IPortableDeviceConnector * This,
/* [in] */ __RPC__in REFIID riid,
/* [annotation][iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
__RPC__in IPortableDeviceConnector * This);
ULONG ( STDMETHODCALLTYPE *Release )(
__RPC__in IPortableDeviceConnector * This);
HRESULT ( STDMETHODCALLTYPE *Connect )(
__RPC__in IPortableDeviceConnector * This,
/* [in] */ __RPC__in_opt IConnectionRequestCallback *pCallback);
HRESULT ( STDMETHODCALLTYPE *Disconnect )(
__RPC__in IPortableDeviceConnector * This,
/* [in] */ __RPC__in_opt IConnectionRequestCallback *pCallback);
HRESULT ( STDMETHODCALLTYPE *Cancel )(
__RPC__in IPortableDeviceConnector * This,
/* [in] */ __RPC__in_opt IConnectionRequestCallback *pCallback);
HRESULT ( STDMETHODCALLTYPE *GetProperty )(
__RPC__in IPortableDeviceConnector * This,
/* [in] */ __RPC__in const DEVPROPKEY *pPropertyKey,
/* [out] */ __RPC__out DEVPROPTYPE *pPropertyType,
/* [size_is][size_is][out] */ __RPC__deref_out_ecount_full_opt(*pcbData) BYTE **ppData,
/* [out] */ __RPC__out UINT32 *pcbData);
HRESULT ( STDMETHODCALLTYPE *SetProperty )(
__RPC__in IPortableDeviceConnector * This,
/* [in] */ __RPC__in const DEVPROPKEY *pPropertyKey,
/* [in] */ DEVPROPTYPE PropertyType,
/* [size_is][in] */ __RPC__in_ecount_full(cbData) const BYTE *pData,
/* [in] */ UINT32 cbData);
HRESULT ( STDMETHODCALLTYPE *GetPnPID )(
__RPC__in IPortableDeviceConnector * This,
/* [out] */ __RPC__deref_out_opt LPWSTR *ppwszPnPID);
END_INTERFACE
} IPortableDeviceConnectorVtbl;
interface IPortableDeviceConnector
{
CONST_VTBL struct IPortableDeviceConnectorVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IPortableDeviceConnector_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define IPortableDeviceConnector_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define IPortableDeviceConnector_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define IPortableDeviceConnector_Connect(This,pCallback) \
( (This)->lpVtbl -> Connect(This,pCallback) )
#define IPortableDeviceConnector_Disconnect(This,pCallback) \
( (This)->lpVtbl -> Disconnect(This,pCallback) )
#define IPortableDeviceConnector_Cancel(This,pCallback) \
( (This)->lpVtbl -> Cancel(This,pCallback) )
#define IPortableDeviceConnector_GetProperty(This,pPropertyKey,pPropertyType,ppData,pcbData) \
( (This)->lpVtbl -> GetProperty(This,pPropertyKey,pPropertyType,ppData,pcbData) )
#define IPortableDeviceConnector_SetProperty(This,pPropertyKey,PropertyType,pData,cbData) \
( (This)->lpVtbl -> SetProperty(This,pPropertyKey,PropertyType,pData,cbData) )
#define IPortableDeviceConnector_GetPnPID(This,ppwszPnPID) \
( (This)->lpVtbl -> GetPnPID(This,ppwszPnPID) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IPortableDeviceConnector_INTERFACE_DEFINED__ */
#ifndef __IConnectionRequestCallback_INTERFACE_DEFINED__
#define __IConnectionRequestCallback_INTERFACE_DEFINED__
/* interface IConnectionRequestCallback */
/* [unique][helpstring][uuid][object] */
EXTERN_C const IID IID_IConnectionRequestCallback;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("272c9ae0-7161-4ae0-91bd-9f448ee9c427")
IConnectionRequestCallback : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE OnComplete(
/* [in] */ HRESULT hrStatus) = 0;
};
#else /* C style interface */
typedef struct IConnectionRequestCallbackVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
__RPC__in IConnectionRequestCallback * This,
/* [in] */ __RPC__in REFIID riid,
/* [annotation][iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
__RPC__in IConnectionRequestCallback * This);
ULONG ( STDMETHODCALLTYPE *Release )(
__RPC__in IConnectionRequestCallback * This);
HRESULT ( STDMETHODCALLTYPE *OnComplete )(
__RPC__in IConnectionRequestCallback * This,
/* [in] */ HRESULT hrStatus);
END_INTERFACE
} IConnectionRequestCallbackVtbl;
interface IConnectionRequestCallback
{
CONST_VTBL struct IConnectionRequestCallbackVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IConnectionRequestCallback_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define IConnectionRequestCallback_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define IConnectionRequestCallback_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define IConnectionRequestCallback_OnComplete(This,hrStatus) \
( (This)->lpVtbl -> OnComplete(This,hrStatus) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IConnectionRequestCallback_INTERFACE_DEFINED__ */
#ifndef __PortableDeviceConnectApiLib_LIBRARY_DEFINED__
#define __PortableDeviceConnectApiLib_LIBRARY_DEFINED__
/* library PortableDeviceConnectApiLib */
/* [helpstring][version][uuid] */
EXTERN_C const IID LIBID_PortableDeviceConnectApiLib;
EXTERN_C const CLSID CLSID_EnumBthMtpConnectors;
#ifdef __cplusplus
class DECLSPEC_UUID("a1570149-e645-4f43-8b0d-409b061db2fc")
EnumBthMtpConnectors;
#endif
#endif /* __PortableDeviceConnectApiLib_LIBRARY_DEFINED__ */
/* Additional Prototypes for ALL interfaces */
/* end of Additional Prototypes */
#ifdef __cplusplus
}
#endif
#endif