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.

58 lines
1.2 KiB

  1. /*** debugger.h - Debugger Definitions
  2. *
  3. * Copyright (c) 1996,1997 Microsoft Corporation
  4. * Author: Michael Tsang (MikeTs)
  5. * Created 09/18/96
  6. *
  7. * MODIFICATION HISTORY
  8. */
  9. #ifndef _DEBUGGER_H
  10. #define _DEBUGGER_H
  11. #ifdef DEBUGGER
  12. /*** Macros
  13. */
  14. #ifndef _PRINTF
  15. #define _PRINTF(x) DbgPrintEx(DPFLTR_AMLI_ID, DPFLTR_INFO_LEVEL,x)
  16. #endif
  17. #define DBG_ERROR(x) ConPrintf(MODNAME "_DBGERR: "); \
  18. ConPrintf x; \
  19. ConPrintf("\n");
  20. /*** Constants
  21. */
  22. // Debugger error codes
  23. #define DBGERR_NONE 0
  24. #define DBGERR_QUIT -1
  25. #define DBGERR_INVALID_CMD -2
  26. #define DBGERR_PARSE_ARGS -3
  27. #define DBGERR_CMD_FAILED -4
  28. #define DBGERR_INTERNAL_ERR -5
  29. // Command flags
  30. #define CMDF_QUIT 0x00000001
  31. /*** Type definitions
  32. */
  33. typedef struct _dbgcmd
  34. {
  35. PSZ pszCmd;
  36. ULONG dwfCmd;
  37. PCMDARG pArgTable;
  38. PFNARG pfnCmd;
  39. } DBGCMD, *PDBGCMD;
  40. /*** Exported function prototypes
  41. */
  42. VOID LOCAL Debugger(PDBGCMD pDbgCmds, PSZ pszPrompt);
  43. #endif //ifdef DEBUGGER
  44. #endif //ifndef _DEBUGGER_H