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.

94 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. kddll.h
  5. Abstract:
  6. Kernel Debugger HW Extension DLL definitions
  7. Author:
  8. Eric Nelson (enelson) 1/10/2000
  9. Revision History:
  10. --*/
  11. #ifndef __KDDLL_H__
  12. #define __KDDLL_H__
  13. //
  14. // This Kernel Debugger Context structure is used to share
  15. // information between the Kernel Debugger and the Kernel
  16. // Debugger HW extension DLL
  17. //
  18. typedef struct _KD_CONTEXT {
  19. ULONG KdpDefaultRetries;
  20. BOOLEAN KdpControlCPending;
  21. } KD_CONTEXT, *PKD_CONTEXT;
  22. //
  23. // Kernel Debugger HW Extension DLL exported functions
  24. //
  25. NTSTATUS
  26. KdD0Transition(
  27. VOID
  28. );
  29. NTSTATUS
  30. KdD3Transition(
  31. VOID
  32. );
  33. NTSTATUS
  34. KdDebuggerInitialize0(
  35. IN PLOADER_PARAMETER_BLOCK LoaderBlock
  36. );
  37. NTSTATUS
  38. KdDebuggerInitialize1(
  39. IN PLOADER_PARAMETER_BLOCK LoaderBlock
  40. );
  41. ULONG
  42. KdReceivePacket(
  43. IN ULONG PacketType,
  44. OUT PSTRING MessageHeader,
  45. OUT PSTRING MessageData,
  46. OUT PULONG DataLength,
  47. IN OUT PKD_CONTEXT KdContext
  48. );
  49. NTSTATUS
  50. KdRestore(
  51. IN BOOLEAN KdSleepTransition
  52. );
  53. NTSTATUS
  54. KdSave(
  55. IN BOOLEAN KdSleepTransition
  56. );
  57. //
  58. // status Constants for Packet waiting
  59. //
  60. #define KDP_PACKET_RECEIVED 0
  61. #define KDP_PACKET_TIMEOUT 1
  62. #define KDP_PACKET_RESEND 2
  63. VOID
  64. KdSendPacket(
  65. IN ULONG PacketType,
  66. IN PSTRING MessageHeader,
  67. IN PSTRING MessageData OPTIONAL,
  68. IN OUT PKD_CONTEXT KdContext
  69. );
  70. #endif // __KDDLL_H__