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.

92 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. adtdbg.h
  5. Abstract:
  6. Contains definitions used in debugging the messenger service.
  7. Author:
  8. Dan Lafferty (danl) 25-Mar-1993
  9. Environment:
  10. User Mode -Win32
  11. Revision History:
  12. --*/
  13. #ifndef _ADTDBG_INCLUDED
  14. #define _ADTDBG_INCLUDED
  15. //
  16. // Debug macros and constants.
  17. //
  18. #if DBG
  19. #define STATIC
  20. #else
  21. #define STATIC static
  22. #endif
  23. extern DWORD AdtsvcDebugLevel;
  24. //
  25. // The following allow debug print syntax to look like:
  26. //
  27. // SC_LOG1(DEBUG_TRACE, "An error occured %x\n",status)
  28. //
  29. #if DBG
  30. #define ADT_LOG0(level,string) \
  31. if( AdtsvcDebugLevel & (DEBUG_ ## level)){ \
  32. (VOID) KdPrint(("[ADT]")); \
  33. (VOID) KdPrint((string)); \
  34. }
  35. #define ADT_LOG1(level,string,var) \
  36. if( AdtsvcDebugLevel & (DEBUG_ ## level)){ \
  37. (VOID)KdPrint(("[ADT]")); \
  38. (VOID)KdPrint((string,var)); \
  39. }
  40. #else
  41. #define ADT_LOG0(level,string)
  42. #define ADT_LOG1(level,string,var)
  43. #endif
  44. #define DEBUG_NONE 0x00000000
  45. #define DEBUG_ERROR 0x00000001
  46. #define DEBUG_TRACE 0x00000002
  47. #define DEBUG_LOCKS 0x00000004
  48. #define DEBUG_ALL 0xffffffff
  49. DWORD
  50. PrivateGetFileSecurity (
  51. LPWSTR FileName,
  52. SECURITY_INFORMATION RequestedInfo,
  53. PSECURITY_DESCRIPTOR *pSDBuffer,
  54. LPDWORD pBufSize
  55. );
  56. DWORD
  57. PrivateSetFileSecurity (
  58. LPWSTR FileName,
  59. SECURITY_INFORMATION SecurityInfo,
  60. PSECURITY_DESCRIPTOR pSecurityDescriptor
  61. );
  62. #endif // _ADTDBG_INCLUDED