Leaked source code of windows server 2003
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.2 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_REGISTRY(CLSID_DPLConnection, "DIRECT.DPLConnection.5", "DIRECT.DPLConnection.5", IDS_DPLAY2_DESC, THREADFLAGS_BOTH)
  20. DECLARE_AGGREGATABLE(C_dxj_DIDeviceObjectInstanceObject)
  21. public:
  22. C_dxj_DIDeviceObjectInstanceObject();
  23. /* [propget] */ HRESULT STDMETHODCALLTYPE getGuidType(
  24. /* [retval][out] */ BSTR __RPC_FAR *ret);
  25. /* [propget] */ HRESULT STDMETHODCALLTYPE getOfs(
  26. /* [retval][out] */ long __RPC_FAR *ret);
  27. /* [propget] */ HRESULT STDMETHODCALLTYPE getType(
  28. /* [retval][out] */ long __RPC_FAR *ret);
  29. /* [propget] */ HRESULT STDMETHODCALLTYPE getFlags(
  30. /* [retval][out] */ long __RPC_FAR *ret);
  31. /* [propget] */ HRESULT STDMETHODCALLTYPE getName(
  32. /* [retval][out] */ BSTR __RPC_FAR *ret);
  33. /* [propget] */ HRESULT STDMETHODCALLTYPE getCollectionNumber(
  34. /* [retval][out] */ short __RPC_FAR *ret);
  35. /* [propget] */ HRESULT STDMETHODCALLTYPE getDesignatorIndex(
  36. /* [retval][out] */ short __RPC_FAR *ret);
  37. /* [propget] */ HRESULT STDMETHODCALLTYPE getUsagePage(
  38. /* [retval][out] */ short __RPC_FAR *ret);
  39. /* [propget] */ HRESULT STDMETHODCALLTYPE getUsage(
  40. /* [retval][out] */ short __RPC_FAR *ret);
  41. /* [propget] */ HRESULT STDMETHODCALLTYPE getDimension(
  42. /* [retval][out] */ long __RPC_FAR *ret);
  43. /* [propget] */ HRESULT STDMETHODCALLTYPE getExponent(
  44. /* [retval][out] */ short __RPC_FAR *ret);
  45. static HRESULT C_dxj_DIDeviceObjectInstanceObject::create(DIDEVICEOBJECTINSTANCE *inst,I_dxj_DirectInputDeviceObjectInstance **ret);
  46. void init(DIDEVICEOBJECTINSTANCE *inst);
  47. private:
  48. DIDEVICEOBJECTINSTANCE m_inst;
  49. };