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.

68 lines
1.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: dinput1obj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // ddPaletteObj.h : Declaration of the C_dxj_DirectDrawColorControlObject
  11. #include "resource.h" // main symbols
  12. #define typedef__dxj_DirectInput LPDIRECTINPUT
  13. /////////////////////////////////////////////////////////////////////////////
  14. // Direct
  15. class C_dxj_DirectInputObject :
  16. public I_dxj_DirectInput,
  17. public CComObjectRoot
  18. {
  19. public:
  20. C_dxj_DirectInputObject() ;
  21. virtual ~C_dxj_DirectInputObject();
  22. BEGIN_COM_MAP(C_dxj_DirectInputObject)
  23. COM_INTERFACE_ENTRY(I_dxj_DirectInput)
  24. END_COM_MAP()
  25. DECLARE_AGGREGATABLE(C_dxj_DirectInputObject)
  26. public:
  27. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalSetObject(
  28. /* [in] */ IUnknown __RPC_FAR *lpdd);
  29. /* [hidden] */ HRESULT STDMETHODCALLTYPE InternalGetObject(
  30. /* [retval][out] */ IUnknown __RPC_FAR *__RPC_FAR *lpdd);
  31. HRESULT STDMETHODCALLTYPE createDevice(
  32. /* [in] */ BSTR guid,
  33. /* [retval][out] */ I_dxj_DirectInputDevice __RPC_FAR *__RPC_FAR *dev);
  34. HRESULT STDMETHODCALLTYPE getDIEnumDevices(
  35. /* [in] */ long deviceType,
  36. /* [in] */ long flags,
  37. /* [retval][out] */ I_dxj_DIEnumDevices __RPC_FAR *__RPC_FAR *retVal);
  38. HRESULT STDMETHODCALLTYPE getDeviceStatus(
  39. /* [in] */ BSTR guid,
  40. /* [retval][out] */ VARIANT_BOOL *status);
  41. HRESULT STDMETHODCALLTYPE runControlPanel(
  42. /* [in] */ long hwndOwner
  43. ///* [in] */ long flags
  44. );
  45. private:
  46. DECL_VARIABLE(_dxj_DirectInput);
  47. public:
  48. DX3J_GLOBAL_LINKS(_dxj_DirectInput)
  49. };