65 lines
1.8 KiB
C++
65 lines
1.8 KiB
C++
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 1998 - 1999
|
|
//
|
|
// File: didevinstobj.h
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
class C_dxj_DIDeviceInstanceObject :
|
|
public I_dxj_DirectInputDeviceInstance,
|
|
public CComObjectRoot
|
|
{
|
|
public:
|
|
|
|
BEGIN_COM_MAP(C_dxj_DIDeviceInstanceObject)
|
|
COM_INTERFACE_ENTRY(I_dxj_DirectInputDeviceInstance)
|
|
END_COM_MAP()
|
|
|
|
DECLARE_AGGREGATABLE(C_dxj_DIDeviceInstanceObject)
|
|
|
|
public:
|
|
C_dxj_DIDeviceInstanceObject();
|
|
|
|
|
|
/* [propget] */ HRESULT STDMETHODCALLTYPE getGuidInstance(
|
|
/* [retval][out] */ BSTR __RPC_FAR *ret);
|
|
|
|
/* [propget] */ HRESULT STDMETHODCALLTYPE getGuidProduct(
|
|
/* [retval][out] */ BSTR __RPC_FAR *ret);
|
|
|
|
/* [propget] */ HRESULT STDMETHODCALLTYPE getProductName(
|
|
/* [retval][out] */ BSTR __RPC_FAR *ret);
|
|
|
|
/* [propget] */ HRESULT STDMETHODCALLTYPE getInstanceName(
|
|
/* [retval][out] */ BSTR __RPC_FAR *ret);
|
|
|
|
/* [propget] */ HRESULT STDMETHODCALLTYPE getGuidFFDriver(
|
|
/* [retval][out] */ BSTR __RPC_FAR *ret);
|
|
|
|
/* [propget] */ HRESULT STDMETHODCALLTYPE getUsagePage(
|
|
/* [retval][out] */ short __RPC_FAR *ret);
|
|
|
|
/* [propget] */ HRESULT STDMETHODCALLTYPE getUsage(
|
|
/* [retval][out] */ short __RPC_FAR *ret);
|
|
|
|
/* [propget] */ HRESULT STDMETHODCALLTYPE getDevType(
|
|
/* [retval][out] */ long __RPC_FAR *ret);
|
|
|
|
void init(DIDEVICEINSTANCE *inst);
|
|
static HRESULT C_dxj_DIDeviceInstanceObject::create(DIDEVICEINSTANCE *inst,I_dxj_DirectInputDeviceInstance **ret);
|
|
|
|
|
|
private:
|
|
DIDEVICEINSTANCE m_inst;
|
|
|
|
};
|
|
|
|
|