/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 7.00.0499 */
/* Compiler settings for DeviceAgentTransport.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
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__ 475
#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 __DeviceAgentTransport_h__
#define __DeviceAgentTransport_h__
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
/* Forward Declarations */
#ifndef __IPacket_FWD_DEFINED__
#define __IPacket_FWD_DEFINED__
typedef interface IPacket IPacket;
#endif /* __IPacket_FWD_DEFINED__ */
#ifndef __IDevicePacketStream_FWD_DEFINED__
#define __IDevicePacketStream_FWD_DEFINED__
typedef interface IDevicePacketStream IDevicePacketStream;
#endif /* __IDevicePacketStream_FWD_DEFINED__ */
#ifndef __IDeviceStream_FWD_DEFINED__
#define __IDeviceStream_FWD_DEFINED__
typedef interface IDeviceStream IDeviceStream;
#endif /* __IDeviceStream_FWD_DEFINED__ */
#ifndef __IAgentTransportShutdownCallback_FWD_DEFINED__
#define __IAgentTransportShutdownCallback_FWD_DEFINED__
typedef interface IAgentTransportShutdownCallback IAgentTransportShutdownCallback;
#endif /* __IAgentTransportShutdownCallback_FWD_DEFINED__ */
#ifndef __IDeviceAgentTransport_FWD_DEFINED__
#define __IDeviceAgentTransport_FWD_DEFINED__
typedef interface IDeviceAgentTransport IDeviceAgentTransport;
#endif /* __IDeviceAgentTransport_FWD_DEFINED__ */
/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"
#ifdef __cplusplus
extern "C"{
#endif
/* interface __MIDL_itf_DeviceAgentTransport_0000_0000 */
/* [local] */
// @semantic SZ_DEVICE_AGENT_TRANSPORT_DLL
// Dll name
//
#define SZ_DEVICE_AGENT_TRANSPORT_DLL L"DeviceAgentTransport3.dll"
//@semantic Dll Entry Points
extern "C" HRESULT __stdcall GetDeviceAgentTransport
(
IDeviceAgentTransport **out_pTransport);
//@semantic Pointer for exported function
typedef HRESULT (__stdcall *GetDeviceAgentTransportFunc)
(
IDeviceAgentTransport **);
//@semantic Pointer for exported function
typedef HRESULT (__stdcall *GetNewPacketFunc)
(
IPacket **);
//@semantic Dll Entry Points
extern "C" HRESULT __stdcall GetNewPacket
(
IPacket **out_ppPacket);
//@supported allocation model for returned buffers
#define CRT_ALLOCATIONMODEL 0
#define COM_ALLOCATIONMODEL 1
//@semantic Pointer for exported function
typedef HRESULT (__stdcall *SetAllocationModelFunc)
(
DWORD);
//@semantic Dll Entry Points
extern "C" HRESULT __stdcall SetAllocationModel
(
DWORD dwAllocationModel);
/* Error codes */
#define CORECON_COR_E_IO _HRESULT_TYPEDEF_(0x80131620L)
extern RPC_IF_HANDLE __MIDL_itf_DeviceAgentTransport_0000_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_DeviceAgentTransport_0000_0000_v0_0_s_ifspec;
#ifndef __DeviceAgentTransport2Lib_LIBRARY_DEFINED__
#define __DeviceAgentTransport2Lib_LIBRARY_DEFINED__
/* library DeviceAgentTransport2Lib */
/* [helpstring][version][uuid] */
typedef /* [helpstring][version][v1_enum][uuid] */ DECLSPEC_UUID("CAE2339D-C752-4365-B987-E5E452E77A61")
enum DataTypeEnum
{ DT_INVALID = 0,
DT_BYTE = 1,
DT_INT32 = 2,
DT_WIDECHAR = 3,
DT_BOOL = 4,
DT_BYTEARRAY = 5,
DT_STRING = 6
} DataTypeEnum;
// Suppress problems with annotating from idl
#pragma warning(push)
#pragma warning(disable:28718)
EXTERN_C const IID LIBID_DeviceAgentTransport2Lib;
#ifndef __IPacket_INTERFACE_DEFINED__
#define __IPacket_INTERFACE_DEFINED__
/* interface IPacket */
/* [unique][helpstring][nonextensible][uuid][object] */
EXTERN_C const IID IID_IPacket;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("2F6015CC-2710-4AA1-9408-EAD056B555E1")
IPacket : public IUnknown
{
public:
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteByte(
/* [in] */ BYTE in_byteValue) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReadByte(
/* [retval][out] */ BYTE *out_pbyteValue) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteInt32(
/* [in] */ INT32 in_int32Value) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReadInt32(
/* [retval][out] */ INT32 *out_pInt32Value) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteBool(
/* [in] */ VARIANT_BOOL in_varBoolValue) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReadBool(
/* [retval][out] */ VARIANT_BOOL *out_pVarBoolValue) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteString(
/* [in] */ LPWSTR in_lpwcString) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReadString(
/* [retval][out] */ LPWSTR *out_plpwcString) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteChar(
/* [in] */ wchar_t in_wcharValue) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReadChar(
/* [retval][out] */ wchar_t *out_pwcharValue) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE WriteBytes(
/* [size_is][in] */ BYTE in_pBuffer[ ],
/* [in] */ ULONG in_ArraySize) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReadBytes(
/* [out] */ BYTE **out_pBuffer,
/* [out] */ ULONG *out_pArraySize) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ReadDataType(
/* [retval][out] */ DataTypeEnum *out_enumDataType) = 0;
virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_Count(
/* [retval][out] */ LONG *out_pCount) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Reset( void) = 0;
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IsEndOfPacket(
/* [retval][out] */ VARIANT_BOOL *pbEndOfPacket) = 0;
};
#else /* C style interface */
typedef struct IPacketVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IPacket * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IPacket * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IPacket * This);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WriteByte )(
IPacket * This,
/* [in] */ BYTE in_byteValue);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReadByte )(
IPacket * This,
/* [retval][out] */ BYTE *out_pbyteValue);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *WriteInt32 )(
IPacket * This,
/* [in] */ INT32 in_int32Value);
/* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ReadInt32