ReactOS 0.4.16-dev-300-g2aadf2e
kd.h
Go to the documentation of this file.
1#pragma once
2
3#include <cportlib/cportlib.h>
4
5//
6// Kernel Debugger Port Definition
7//
8
13 ULONG ComPortNumber
14);
15
20 PUCHAR ByteReceived);
21
22VOID
26 UCHAR ByteToSend
27);
28
29#ifdef _NTOSKRNL_
30
31/* KD GLOBALS ****************************************************************/
32
33/* KD Internal Debug Services */
34typedef enum _KDP_DEBUG_SERVICE
35{
36 DumpNonPagedPool = 0x1e, /* a */
37 ManualBugCheck = 0x30, /* b */
38 DumpNonPagedPoolStats = 0x2e, /* c */
39 DumpNewNonPagedPool = 0x20, /* d */
40 DumpNewNonPagedPoolStats = 0x12, /* e */
41 DumpAllThreads = 0x21, /* f */
42 DumpUserThreads = 0x22, /* g */
43 KdSpare1 = 0x23, /* h */
44 KdSpare2 = 0x17, /* i */
45 KdSpare3 = 0x24, /* j */
46 EnterDebugger = 0x25, /* k */
47 ThatsWhatSheSaid = 69 /* FIGURE IT OUT */
48} KDP_DEBUG_SERVICE;
49
50#endif // _NTOSKRNL_
51
52#if DBG && defined(_M_IX86) && !defined(_WINKD_) // See ke/i386/traphdlr.c
53#define ID_Win32PreServiceHook 'WSH0'
54#define ID_Win32PostServiceHook 'WSH1'
55typedef void (NTAPI *PKDBG_PRESERVICEHOOK)(ULONG, PULONG_PTR);
56typedef ULONG_PTR (NTAPI *PKDBG_POSTSERVICEHOOK)(ULONG, ULONG_PTR);
57extern PKDBG_PRESERVICEHOOK KeWin32PreServiceHook;
58extern PKDBG_POSTSERVICEHOOK KeWin32PostServiceHook;
59#endif
unsigned char BOOLEAN
#define ULONG_PTR
Definition: config.h:101
IN CINT OUT PVOID PortInformation
Definition: dumpinfo.c:40
BOOLEAN NTAPI KdPortGetByteEx(PCPPORT PortInformation, PUCHAR ByteReceived)
BOOLEAN NTAPI KdPortInitializeEx(PCPPORT PortInformation, ULONG ComPortNumber)
VOID NTAPI KdPortPutByteEx(PCPPORT PortInformation, UCHAR ByteToSend)
uint32_t * PULONG_PTR
Definition: typedefs.h:65
#define NTAPI
Definition: typedefs.h:36
unsigned char * PUCHAR
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
unsigned char UCHAR
Definition: xmlstorage.h:181