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.

77 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1991-92 Microsoft Corporation
  3. Module Name:
  4. DebugFmt.h
  5. Abstract:
  6. This header file declares equates for debug print format strings.
  7. Author:
  8. John Rogers (JohnRo) 11-Mar-1991
  9. Environment:
  10. ifdef'ed for NT, any ANSI C environment, or none of the above (which
  11. implies nondebug). The interface is portable (Win/32).
  12. Requires ANSI C extensions: slash-slash comments, long external names.
  13. Revision History:
  14. 11-Mar-1991 JohnRo
  15. Created NetDebug.h.
  16. 15-Apr-1992 JohnRo
  17. Extracted format equates into DebugFmt.h.
  18. --*/
  19. #ifndef _DEBUGFMT_
  20. #define _DEBUGFMT_
  21. //
  22. // printf-style format strings for some possibly nonportable stuff...
  23. // These are passed to NetpDbgPrint(); use with other routines at your
  24. // own risk.
  25. //
  26. // Note also that FORMAT_LPVOID is preferable to FORMAT_POINTER, as
  27. // different kinds of pointers can be different sizes. FORMAT_POINTER
  28. // will be deleted eventually.
  29. //
  30. //#define FORMAT_API_STATUS "%lu"
  31. #define FORMAT_CHAR "%c"
  32. //#define FORMAT_LPDEBUG_STRING "%s"
  33. #define FORMAT_DWORD "%lu"
  34. #define FORMAT_HEX_DWORD "0x%08lX"
  35. #define FORMAT_HEX_WORD "0x%04X"
  36. #define FORMAT_HEX_ULONG "0x%08lX"
  37. #define FORMAT_LONG "%ld"
  38. #define FORMAT_LPSTR "%s"
  39. #define FORMAT_LPVOID "0x%08lX"
  40. #define FORMAT_LPWSTR "%ws"
  41. //#define FORMAT_POINTER "0x%08lX"
  42. #define FORMAT_RPC_STATUS "0x%08lX"
  43. #define FORMAT_ULONG "%lu"
  44. #define FORMAT_WCHAR "%wc"
  45. #define FORMAT_WORD_ONLY "%u"
  46. #define FORMAT_POINTER "%p"
  47. #ifndef UNICODE
  48. #define FORMAT_TCHAR FORMAT_CHAR
  49. #define FORMAT_LPTSTR FORMAT_LPSTR
  50. #else // UNICODE
  51. #define FORMAT_TCHAR FORMAT_WCHAR
  52. #define FORMAT_LPTSTR FORMAT_LPWSTR
  53. #endif // UNICODE
  54. #define FORMAT_NTSTATUS "0x%08lX"
  55. #endif // ndef _DEBUGFMT_