ReactOS 0.4.15-dev-8116-gf69e256
kdros.h
Go to the documentation of this file.
1
2
3
4#pragma once
5
6#if 0
7
10KdRosDumpAllThreads(VOID)
11{
12 KdSystemDebugControl(' soR', (PVOID)DumpAllThreads, 0, 0, 0, 0, 0);
13}
14
16VOID
17KdRosDumpUserThreads(VOID)
18{
19 KdSystemDebugControl(' soR', (PVOID)DumpUserThreads, 0, 0, 0, 0, 0);
20}
21
23VOID
24KdRosDumpArmPfnDatabase(VOID)
25{
26 KdSystemDebugControl(' soR', (PVOID)KdSpare3, 0, 0, 0, 0, 0);
27}
28#endif
29
31VOID
33 ULONG Id,
35{
36 KdSystemDebugControl('CsoR', Callback, Id, 0, 0, 0, 0);
37}
38
40VOID
43 PULONG_PTR Backtrace)
44{
45 KdSystemDebugControl('DsoR', Backtrace, Count, 0, 0, 0, 0);
46}
47
48#if defined(KDBG)
49typedef
51(NTAPI KDBG_CLI_ROUTINE)(
53 IN ULONG Argc,
54 IN PCH Argv[]);
55typedef KDBG_CLI_ROUTINE *PKDBG_CLI_ROUTINE;
56
59KdRosRegisterCliCallback(
61{
62 return KdSystemDebugControl('RbdK', Callback, FALSE, 0, 0, 0, 0);
63}
64
66VOID
67KdRosDeregisterCliCallback(
69{
70 KdSystemDebugControl('RbdK', Callback, TRUE, 0, 0, 0, 0);
71}
72#endif
73
DWORD Id
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
NTSTATUS NTAPI KdSystemDebugControl(_In_ SYSDBG_COMMAND Command, _In_ PVOID InputBuffer, _In_ ULONG InputBufferLength, _Out_ PVOID OutputBuffer, _In_ ULONG OutputBufferLength, _Inout_ PULONG ReturnLength, _In_ KPROCESSOR_MODE PreviousMode)
Definition: kdapi.c:2183
BOOLEAN(NTAPI * PKDBG_CLI_ROUTINE)(IN PCHAR Command, IN ULONG Argc, IN PCH Argv[])
Definition: kdb_cli.c:122
FORCEINLINE VOID KdRosSetDebugCallback(ULONG Id, PVOID Callback)
Definition: kdros.h:32
FORCEINLINE VOID KdRosDumpStackFrames(ULONG Count, PULONG_PTR Backtrace)
Definition: kdros.h:41
int Count
Definition: noreturn.cpp:7
CHAR * PCH
Definition: ntbasedef.h:391
#define BOOLEAN
Definition: pedump.c:73
Definition: shell.h:41
uint32_t * PULONG_PTR
Definition: typedefs.h:65
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
char * PCHAR
Definition: typedefs.h:51
_In_ WDFINTERRUPT _In_ PFN_WDF_INTERRUPT_SYNCHRONIZE Callback
Definition: wdfinterrupt.h:458
#define FORCEINLINE
Definition: wdftypes.h:67