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.

64 lines
1.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: didevinstobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. class C_dxj_DIDeviceInstance8Object :
  12. public I_dxj_DirectInputDeviceInstance8,
  13. public CComObjectRoot
  14. {
  15. public:
  16. BEGIN_COM_MAP(C_dxj_DIDeviceInstance8Object)
  17. COM_INTERFACE_ENTRY(I_dxj_DirectInputDeviceInstance8)
  18. END_COM_MAP()
  19. DECLARE_AGGREGATABLE(C_dxj_DIDeviceInstance8Object)
  20. public:
  21. C_dxj_DIDeviceInstance8Object();
  22. /* [propget] */ HRESULT STDMETHODCALLTYPE getGuidInstance(
  23. /* [retval][out] */ BSTR __RPC_FAR *ret);
  24. /* [propget] */ HRESULT STDMETHODCALLTYPE getGuidProduct(
  25. /* [retval][out] */ BSTR __RPC_FAR *ret);
  26. /* [propget] */ HRESULT STDMETHODCALLTYPE getProductName(
  27. /* [retval][out] */ BSTR __RPC_FAR *ret);
  28. /* [propget] */ HRESULT STDMETHODCALLTYPE getInstanceName(
  29. /* [retval][out] */ BSTR __RPC_FAR *ret);
  30. /* [propget] */ HRESULT STDMETHODCALLTYPE getGuidFFDriver(
  31. /* [retval][out] */ BSTR __RPC_FAR *ret);
  32. /* [propget] */ HRESULT STDMETHODCALLTYPE getUsagePage(
  33. /* [retval][out] */ short __RPC_FAR *ret);
  34. /* [propget] */ HRESULT STDMETHODCALLTYPE getUsage(
  35. /* [retval][out] */ short __RPC_FAR *ret);
  36. /* [propget] */ HRESULT STDMETHODCALLTYPE getDevType(
  37. /* [retval][out] */ long __RPC_FAR *ret);
  38. void init(DIDEVICEINSTANCEW *inst);
  39. static HRESULT C_dxj_DIDeviceInstance8Object::create(DIDEVICEINSTANCEW *inst,I_dxj_DirectInputDeviceInstance8 **ret);
  40. private:
  41. DIDEVICEINSTANCEW m_inst;
  42. };