ReactOS 0.4.15-dev-7942-gd23573b
kdfuncs.h
Go to the documentation of this file.
1/******************************************************************************
2 * Kernel Debugger Functions *
3 ******************************************************************************/
9 _In_z_ PCCH Prompt,
13
15#ifndef _DBGNT_
16
21 ...);
22
23#if (NTDDI_VERSION >= NTDDI_WIN2K)
29 ...);
30#endif
31
32#if (NTDDI_VERSION >= NTDDI_WINXP)
33
41 ...);
42
43#ifdef _VA_LIST_DEFINED
44
53
63
64#endif /* _VA_LIST_DEFINED */
65
72
80
81#endif /* (NTDDI_VERSION >= NTDDI_WINXP) */
82
83#if (NTDDI_VERSION >= NTDDI_VISTA)
84
85typedef VOID
90
95 _In_ PDEBUG_PRINT_CALLBACK DebugPrintCallback,
97
98#endif /* (NTDDI_VERSION >= NTDDI_VISTA) */
99
100#endif /* _DBGNT_ */
101
102#if DBG
103
104#define KdPrint(_x_) DbgPrint _x_
105#define KdPrintEx(_x_) DbgPrintEx _x_
106#define vKdPrintEx(_x_) vDbgPrintEx _x_
107#define vKdPrintExWithPrefix(_x_) vDbgPrintExWithPrefix _x_
108#define KdBreakPoint() DbgBreakPoint()
109#define KdBreakPointWithStatus(s) DbgBreakPointWithStatus(s)
110
111#else /* !DBG */
112
113#define KdPrint(_x_)
114#define KdPrintEx(_x_)
115#define vKdPrintEx(_x_)
116#define vKdPrintExWithPrefix(_x_)
117#define KdBreakPoint()
118#define KdBreakPointWithStatus(s)
119
120#endif /* !DBG */
121
122#ifdef _NTSYSTEM_
124#define KD_DEBUGGER_ENABLED KdDebuggerEnabled
126#define KD_DEBUGGER_NOT_PRESENT KdDebuggerNotPresent
127#else
130#define KD_DEBUGGER_ENABLED (*KdDebuggerEnabled)
133#define KD_DEBUGGER_NOT_PRESENT (*KdDebuggerNotPresent)
134#endif
135
136#if (NTDDI_VERSION >= NTDDI_WIN2K)
137
140NTAPI
142
145NTAPI
147
148#if (_MSC_FULL_VER >= 150030729) && !defined(IMPORT_NATIVE_DBG_BREAK)
149#define DbgBreakPoint __debugbreak
150#else
152VOID
153NTAPI
155#endif
156
159VOID
160NTAPI
163
164#endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
165
166#if (NTDDI_VERSION >= NTDDI_WS03)
169NTAPI
171#endif
172
173#if (NTDDI_VERSION >= NTDDI_WS03SP1)
176NTAPI
178 _In_ KD_OPTION Option,
179 _In_opt_ ULONG InBufferBytes,
180 _In_ PVOID InBuffer,
181 _In_opt_ ULONG OutBufferBytes,
183 _Out_opt_ PULONG OutBufferNeeded);
184#endif
unsigned char BOOLEAN
#define __cdecl
Definition: accygwin.h:79
#define VOID
Definition: acefi.h:82
char * va_list
Definition: acmsvcex.h:78
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char const char UINT32 ComponentId
Definition: acpixf.h:1281
NTSYSAPI ULONG NTAPI vDbgPrintEx(_In_ ULONG ComponentId, _In_ ULONG Level, _In_z_ PCCH Format, _In_ va_list ap)
LONG NTSTATUS
Definition: precomp.h:26
#define NTSYSAPI
Definition: ntoskrnl.h:12
Status
Definition: gdiplustypes.h:25
#define DbgPrint
Definition: hal.h:12
NTSYSAPI NTSTATUS WINAPI vDbgPrintExWithPrefix(LPCSTR, ULONG, ULONG, LPCSTR, __ms_va_list)
NTSYSAPI void WINAPI DbgBreakPoint(void)
#define _Out_opt_
Definition: ms_sal.h:346
#define _Out_writes_bytes_(size)
Definition: ms_sal.h:350
#define _In_z_
Definition: ms_sal.h:313
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
#define _Printf_format_string_
Definition: ms_sal.h:561
NTSYSAPI ULONG NTAPI DbgPrompt(_In_z_ PCCH Prompt, _Out_writes_bytes_(MaximumResponseLength) PCH Response, _In_ ULONG MaximumResponseLength)
CHAR * PCH
Definition: ntbasedef.h:391
CONST CHAR * PCCH
Definition: ntbasedef.h:392
#define _NTDDK_
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:142
_In_ UCHAR _In_ ULONG _Out_ PUCHAR _Outptr_result_bytebuffer_ OutBufferLength PVOID * OutBuffer
Definition: scsi.h:4071
@ Output
Definition: arc.h:85
#define __analysis_noreturn
Definition: specstrings.h:262
Definition: ncftp.h:89
uint32_t * PULONG
Definition: typedefs.h:59
#define NTAPI
Definition: typedefs.h:36
const char * PCSTR
Definition: typedefs.h:52
uint32_t ULONG
Definition: typedefs.h:59
#define __CREATE_NTOS_DATA_IMPORT_ALIAS(_Name)
#define _WDMDDK_
Definition: wdm.template.h:26
#define NTKERNELAPI
void int int ULONGLONG int va_list * ap
Definition: winesup.h:36
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:56
$endif(_NTDDK_) $if(_WDMDDK_) ULONG __cdecl DbgPrint(_In_z_ _Printf_format_string_ PCSTR Format
Definition: iofuncs.h:2494
NTSYSAPI NTSTATUS NTAPI DbgSetDebugFilterState(_In_ ULONG ComponentId, _In_ ULONG Level, _In_ BOOLEAN State)
NTSYSAPI NTSTATUS NTAPI DbgSetDebugPrintCallback(_In_ PDEBUG_PRINT_CALLBACK DebugPrintCallback, _In_ BOOLEAN Enable)
NTSYSAPI ULONG __cdecl DbgPrintReturnControlC(_In_z_ _Printf_format_string_ PCCH Format,...)
NTKERNELAPI BOOLEAN NTAPI KdRefreshDebuggerNotPresent(VOID)
Definition: kdapi.c:2350
NTSYSAPI ULONG __cdecl DbgPrintEx(_In_ ULONG ComponentId, _In_ ULONG Level, _In_z_ _Printf_format_string_ PCSTR Format,...)
_In_ ULONG MaximumResponseLength
Definition: kdfuncs.h:11
BOOLEAN * KdDebuggerEnabled
Definition: kddata.c:82
__analysis_noreturn NTSYSAPI VOID NTAPI DbgBreakPointWithStatus(_In_ ULONG Status)
VOID(* PDEBUG_PRINT_CALLBACK)(_In_ PSTRING Output, _In_ ULONG ComponentId, _In_ ULONG Level)
Definition: kdfuncs.h:86
$if(_NTDDK_) NTSYSAPI ULONG NTAPI DbgPrompt(_In_z_ PCCH Prompt
Definition: ke.h:180
NTSYSAPI NTSTATUS NTAPI DbgQueryDebugFilterState(_In_ ULONG ComponentId, _In_ ULONG Level)
NTKERNELAPI NTSTATUS NTAPI KdEnableDebugger(VOID)
Definition: kdapi.c:2161
NTKERNELAPI NTSTATUS NTAPI KdDisableDebugger(VOID)
Definition: kdapi.c:2172
BOOLEAN * KdDebuggerNotPresent
Definition: kddata.c:81
NTKERNELAPI NTSTATUS NTAPI KdChangeOption(_In_ KD_OPTION Option, _In_opt_ ULONG InBufferBytes, _In_ PVOID InBuffer, _In_opt_ ULONG OutBufferBytes, _Out_ PVOID OutBuffer, _Out_opt_ PULONG OutBufferNeeded)
enum _KD_OPTION KD_OPTION
_In_ __drv_aliasesMem PSTRING Prefix
Definition: rtlfuncs.h:1630