Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: didevobjinstobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. class C_dxj_DIDeviceObjectInstanceObject :
  12. public I_dxj_DirectInputDeviceObjectInstance,
  13. public CComObjectRoot
  14. {
  15. public:
  16. BEGIN_COM_MAP(C_dxj_DIDeviceObjectInstanceObject)
  17. COM_INTERFACE_ENTRY(I_dxj_DirectInputDeviceObjectInstance)
  18. END_COM_MAP()
  19. DECLARE_AGGREGATABLE(C_dxj_DIDeviceObjectInstanceObject)
  20. public:
  21. C_dxj_DIDeviceObjectInstanceObject();
  22. /* [propget] */ HRESULT STDMETHODCALLTYPE getGuidType(
  23. /* [retval][out] */ BSTR __RPC_FAR *ret);
  24. /* [propget] */ HRESULT STDMETHODCALLTYPE getOfs(
  25. /* [retval][out] */ long __RPC_FAR *ret);
  26. /* [propget] */ HRESULT STDMETHODCALLTYPE getType(
  27. /* [retval][out] */ long __RPC_FAR *ret);
  28. /* [propget] */ HRESULT STDMETHODCALLTYPE getFlags(
  29. /* [retval][out] */ long __RPC_FAR *ret);
  30. /* [propget] */ HRESULT STDMETHODCALLTYPE getName(
  31. /* [retval][out] */ BSTR __RPC_FAR *ret);
  32. /* [propget] */ HRESULT STDMETHODCALLTYPE getCollectionNumber(
  33. /* [retval][out] */ short __RPC_FAR *ret);
  34. /* [propget] */ HRESULT STDMETHODCALLTYPE getDesignatorIndex(
  35. /* [retval][out] */ short __RPC_FAR *ret);
  36. /* [propget] */ HRESULT STDMETHODCALLTYPE getUsagePage(
  37. /* [retval][out] */ short __RPC_FAR *ret);
  38. /* [propget] */ HRESULT STDMETHODCALLTYPE getUsage(
  39. /* [retval][out] */ short __RPC_FAR *ret);
  40. /* [propget] */ HRESULT STDMETHODCALLTYPE getDimension(
  41. /* [retval][out] */ long __RPC_FAR *ret);
  42. /* [propget] */ HRESULT STDMETHODCALLTYPE getExponent(
  43. /* [retval][out] */ short __RPC_FAR *ret);
  44. static HRESULT C_dxj_DIDeviceObjectInstanceObject::create(DIDEVICEOBJECTINSTANCEW *inst,I_dxj_DirectInputDeviceObjectInstance **ret);
  45. void init(DIDEVICEOBJECTINSTANCEW *inst);
  46. private:
  47. DIDEVICEOBJECTINSTANCEW m_inst;
  48. };