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.

88 lines
1.4 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1990-1995 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. Environment:
  9. runs in the Win32 NTSD debug environment.
  10. Revision History:
  11. --*/
  12. #ifndef _NTSDEXTNS_
  13. #define _NTSDEXTNS_
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. typedef
  18. VOID
  19. (*PNTSD_OUTPUT_ROUTINE)(
  20. char *,
  21. ...
  22. );
  23. typedef
  24. DWORD
  25. (*PNTSD_GET_EXPRESSION)(
  26. char *
  27. );
  28. typedef
  29. VOID
  30. (*PNTSD_GET_SYMBOL)(
  31. LPVOID offset,
  32. PUCHAR pchBuffer,
  33. LPDWORD pDisplacement
  34. );
  35. typedef
  36. DWORD
  37. (*PNTSD_DISASM)(
  38. LPDWORD lpOffset,
  39. LPSTR lpBuffer,
  40. BOOL fShowEfeectiveAddress
  41. );
  42. typedef
  43. BOOL
  44. (*PNTSD_CHECK_CONTROL_C)(
  45. VOID
  46. );
  47. typedef struct _NTSD_EXTENSION_APIS {
  48. DWORD nSize;
  49. PNTSD_OUTPUT_ROUTINE lpOutputRoutine;
  50. PNTSD_GET_EXPRESSION lpGetExpressionRoutine;
  51. PNTSD_GET_SYMBOL lpGetSymbolRoutine;
  52. PNTSD_DISASM lpDisasmRoutine;
  53. PNTSD_CHECK_CONTROL_C lpCheckControlCRoutine;
  54. } NTSD_EXTENSION_APIS, *PNTSD_EXTENSION_APIS;
  55. typedef
  56. VOID
  57. (*PNTSD_EXTENSION_ROUTINE)(
  58. HANDLE hCurrentProcess,
  59. HANDLE hCurrentThread,
  60. DWORD dwCurrentPc,
  61. PNTSD_EXTENSION_APIS lpExtensionApis,
  62. LPSTR lpArgumentString
  63. );
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67. #endif // _NTSDEXTNS_