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.

92 lines
1.4 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1990-1993 Microsoft Corporation
  3. Module Name:
  4. ntsdexts.h
  5. Abstract:
  6. This file contains procedure prototypes and structures
  7. needed to write NTSD and KD debugger extensions.
  8. Author:
  9. Mark Lucovsky (markl) 09-Apr-1991
  10. Environment:
  11. runs in the Win32 NTSD debug environment.
  12. Revision History:
  13. --*/
  14. #ifndef _NTSDEXTNS_
  15. #define _NTSDEXTNS_
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. typedef
  20. VOID
  21. (*PNTSD_OUTPUT_ROUTINE)(
  22. char *,
  23. ...
  24. );
  25. typedef
  26. DWORD
  27. (*PNTSD_GET_EXPRESSION)(
  28. char *
  29. );
  30. typedef
  31. VOID
  32. (*PNTSD_GET_SYMBOL)(
  33. LPVOID offset,
  34. PUCHAR pchBuffer,
  35. LPDWORD pDisplacement
  36. );
  37. typedef
  38. DWORD
  39. (*PNTSD_DISASM)(
  40. LPDWORD lpOffset,
  41. LPSTR lpBuffer,
  42. BOOL fShowEfeectiveAddress
  43. );
  44. typedef
  45. BOOL
  46. (*PNTSD_CHECK_CONTROL_C)(
  47. VOID
  48. );
  49. typedef struct _NTSD_EXTENSION_APIS {
  50. DWORD nSize;
  51. PNTSD_OUTPUT_ROUTINE lpOutputRoutine;
  52. PNTSD_GET_EXPRESSION lpGetExpressionRoutine;
  53. PNTSD_GET_SYMBOL lpGetSymbolRoutine;
  54. PNTSD_DISASM lpDisasmRoutine;
  55. PNTSD_CHECK_CONTROL_C lpCheckControlCRoutine;
  56. } NTSD_EXTENSION_APIS, *PNTSD_EXTENSION_APIS;
  57. typedef
  58. VOID
  59. (*PNTSD_EXTENSION_ROUTINE)(
  60. HANDLE hCurrentProcess,
  61. HANDLE hCurrentThread,
  62. DWORD dwCurrentPc,
  63. PNTSD_EXTENSION_APIS lpExtensionApis,
  64. LPSTR lpArgumentString
  65. );
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69. #endif // _NTSDEXTNS_