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.

49 lines
1.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: dienumdevicesobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. class C_dxj_DIEnumDevicesObject :
  12. public I_dxj_DIEnumDevices,
  13. public CComObjectRoot
  14. {
  15. public:
  16. C_dxj_DIEnumDevicesObject() ;
  17. virtual ~C_dxj_DIEnumDevicesObject() ;
  18. BEGIN_COM_MAP(C_dxj_DIEnumDevicesObject)
  19. COM_INTERFACE_ENTRY(I_dxj_DIEnumDevices)
  20. END_COM_MAP()
  21. DECLARE_AGGREGATABLE(C_dxj_DIEnumDevicesObject)
  22. public:
  23. HRESULT STDMETHODCALLTYPE getItem( long index, I_dxj_DirectInputDeviceInstance **ret);
  24. HRESULT STDMETHODCALLTYPE getCount( long __RPC_FAR *count);
  25. static HRESULT C_dxj_DIEnumDevicesObject::create(LPDIRECTINPUT pDI,long deviceType, long flags,I_dxj_DIEnumDevices **ppRet) ;
  26. public:
  27. DIDEVICEINSTANCE *m_pList;
  28. long m_nCount;
  29. long m_nMax;
  30. BOOL m_bProblem;
  31. };