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.

42 lines
1.0 KiB

  1. #ifndef _DFHLPRS_H
  2. #define _DFHLPRS_H
  3. #include <objbase.h>
  4. struct _sFLAG_DESCR
  5. {
  6. DWORD dwFlag;
  7. LPTSTR pszDescr;
  8. LPTSTR pszComment;
  9. };
  10. #define FLAG_DESCR(a) { (DWORD)a, TEXT(#a), NULL }
  11. #define FLAG_DESCR_COMMENT(a, c) { (DWORD)a, TEXT(#a), c }
  12. struct _sGUID_DESCR
  13. {
  14. GUID* pguid;
  15. LPTSTR pszDescr;
  16. LPTSTR pszComment;
  17. };
  18. #define GUID_DESCR(a, b) { (GUID*)a, b, NULL }
  19. #define GUID_DESCR_COMMENT(a, b, c) { (GUID*)a, b, c }
  20. int _PrintIndent(DWORD cch);
  21. int _PrintCR();
  22. int _PrintGUID(CONST GUID* pguid);
  23. int _PrintGUIDEx(CONST GUID* pguid, _sGUID_DESCR rgguid[], DWORD cguid,
  24. BOOL fPrintValue, DWORD cchIndent);
  25. void _StartClock();
  26. void _StopClock();
  27. int _PrintElapsedTime(DWORD cchIndent, BOOL fCarriageReturn);
  28. int _PrintGetLastError(DWORD cchIndent);
  29. int _PrintFlag(DWORD dwFlag, _sFLAG_DESCR rgflag[], DWORD cflag,
  30. DWORD cchIndent, BOOL fPrintValue, BOOL fHex, BOOL fComment, BOOL fORed);
  31. HANDLE _GetDeviceHandle(LPTSTR psz, DWORD dwDesiredAccess, DWORD dwFileAttributes);
  32. #endif // _DFHLPRS_H