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.

59 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1998-99 Microsoft Corporation
  3. Module Name:
  4. debug.h
  5. Abstract:
  6. --*/
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. #define TRACE_FUNCTION_TRACE 0x0001
  11. #define TRACE_WARNINGS 0x0002
  12. #define TRACE_PACK 0x0004
  13. #define TRACE_LICENSE_REQUEST 0x0008
  14. #define TRACE_LICENSE_FREE 0x0010
  15. #define TRACE_REGISTRY 0x0020
  16. #define TRACE_REPLICATION 0x0040
  17. #define TRACE_LPC 0x0080
  18. #define TRACE_RPC 0x0100
  19. #define TRACE_INIT 0x0200
  20. #define TRACE_DATABASE 0x0400
  21. #define SERVICE_TABLE_NUM 1
  22. #define USER_TABLE_NUM 2
  23. #define SID_TABLE_NUM 3
  24. #define LICENSE_TABLE_NUM 4
  25. #define ADD_CACHE_TABLE_NUM 5
  26. #define MASTER_SERVICE_TABLE_NUM 6
  27. #define SERVICE_FAMILY_TABLE_NUM 7
  28. #define MAPPING_TABLE_NUM 8
  29. #define SERVER_TABLE_NUM 9
  30. #define SECURE_PRODUCT_TABLE_NUM 10
  31. #define CERTIFICATE_TABLE_NUM 11
  32. #if DBG
  33. void __cdecl dprintf(LPTSTR szFormat, ...);
  34. extern DWORD TraceFlags;
  35. #define ERR(x) \
  36. dprintf(TEXT("LLS : <%s @line %d> -> 0x%x\n"), \
  37. __FILE__, \
  38. __LINE__, \
  39. x);
  40. #else
  41. #define dprintf
  42. #define ERR(x)
  43. #endif
  44. #ifdef __cplusplus
  45. }
  46. #endif