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.

39 lines
1.3 KiB

  1. //-----------------------------------------------------------------------------
  2. // File: usefuldi.h
  3. //
  4. // Desc: Contains various DInput-specific utility classes and functions
  5. // to help the UI carry its operations more easily.
  6. //
  7. // Copyright (C) 1999-2000 Microsoft Corporation. All Rights Reserved.
  8. //-----------------------------------------------------------------------------
  9. #ifndef __USEFULDI_H__
  10. #define __USEFULDI_H__
  11. struct DIDEVOBJSTRUCT {
  12. DIDEVOBJSTRUCT() : nObjects(0), pdoi(NULL) {}
  13. ~DIDEVOBJSTRUCT() {if (pdoi != NULL) free(pdoi);}
  14. DWORD GetTypeFromObjID(DWORD);
  15. int nObjects;
  16. DIDEVICEOBJECTINSTANCEW *pdoi;
  17. int n;
  18. };
  19. HRESULT FillDIDeviceObjectStruct(DIDEVOBJSTRUCT &os, LPDIRECTINPUTDEVICE8W pDID);
  20. LPTSTR AllocConfigureFlagStr(DWORD dwFlags);
  21. LPTSTR AllocActionFlagStr(DWORD dwFlags);
  22. LPTSTR AllocActionHowFlagStr(DWORD dwFlags);
  23. void CleanupActionFormatCopy(DIACTIONFORMATW &c);
  24. HRESULT CopyActionFormat(DIACTIONFORMATW &to, const DIACTIONFORMATW &from);
  25. LPDIACTIONFORMATW DupActionFormat(LPCDIACTIONFORMATW lpAcFor);
  26. void FreeActionFormatDup(LPDIACTIONFORMATW &lpAcFor);
  27. void TraceActionFormat(LPTSTR header, const DIACTIONFORMATW &acf);
  28. BOOL IsZeroOrInvalidColorSet(const DICOLORSET &);
  29. COLORREF D3DCOLOR2COLORREF(D3DCOLOR c);
  30. #endif //__USEFULDI_H__