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.

29 lines
948 B

  1. //==========================================================================;
  2. //
  3. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. // PURPOSE.
  7. //
  8. // Copyright (c) 1996 - 1998 ATI Technologies Inc. All Rights Reserved.
  9. //
  10. //==========================================================================;
  11. #ifndef _WDMDEBUG_H_
  12. #define _WDMDEBUG_H_
  13. #define TRAP DEBUG_BREAKPOINT();
  14. // global variables
  15. extern "C" ULONG g_DebugLevel;
  16. #define OutputDebugTrace(x) { if( g_DebugLevel >= MINIDRIVER_DEBUGLEVEL_MESSAGE) DbgPrint x; }
  17. #define OutputDebugInfo(x) { if( g_DebugLevel >= MINIDRIVER_DEBUGLEVEL_INFO) DbgPrint x; }
  18. #define OutputDebugError(x) { if( g_DebugLevel >= MINIDRIVER_DEBUGLEVEL_ERROR) DbgPrint x; }
  19. #endif // #ifndef _WDMDEBUG_H_