ReactOS  0.4.14-dev-297-g23e575c
kdros.h
Go to the documentation of this file.
1 
2 
3 
4 #pragma once
5 
6 #if 0
7 
9 VOID
10 KdRosDumpAllThreads(VOID)
11 {
12  KdSystemDebugControl(' soR', (PVOID)DumpAllThreads, 0, 0, 0, 0, 0);
13 }
14 
16 VOID
17 KdRosDumpUserThreads(VOID)
18 {
19  KdSystemDebugControl(' soR', (PVOID)DumpUserThreads, 0, 0, 0, 0, 0);
20 }
21 
23 VOID
24 KdRosDumpArmPfnDatabase(VOID)
25 {
26  KdSystemDebugControl(' soR', (PVOID)KdSpare3, 0, 0, 0, 0, 0);
27 }
28 #endif
29 
31 VOID
33  ULONG Id,
35 {
36  KdSystemDebugControl('CsoR', Callback, Id, 0, 0, 0, 0);
37 }
38 
40 VOID
42  ULONG Count,
43  PULONG_PTR Backtrace)
44 {
45  KdSystemDebugControl('DsoR', Backtrace, Count, 0, 0, 0, 0);
46 }
47 
48 #if defined(KDBG)
49 typedef
50 BOOLEAN
51 (NTAPI KDBG_CLI_ROUTINE)(
53  IN ULONG Argc,
54  IN PCH Argv[]);
55 typedef KDBG_CLI_ROUTINE *PKDBG_CLI_ROUTINE;
56 
58 ULONG
59 KdRosRegisterCliCallback(
60  PKDBG_CLI_ROUTINE Callback)
61 {
62  return KdSystemDebugControl('RbdK', Callback, FALSE, 0, 0, 0, 0);
63 }
64 
66 VOID
67 KdRosDeregisterCliCallback(
68  PKDBG_CLI_ROUTINE Callback)
69 {
70  KdSystemDebugControl('RbdK', Callback, TRUE, 0, 0, 0, 0);
71 }
72 #endif
73 
signed char * PCHAR
Definition: retypes.h:7
#define IN
Definition: typedefs.h:38
#define TRUE
Definition: types.h:120
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
DWORD Id
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
CHAR * PCH
Definition: ntbasedef.h:398
#define FORCEINLINE
Definition: ntbasedef.h:221
FORCEINLINE VOID KdRosSetDebugCallback(ULONG Id, PVOID Callback)
Definition: kdros.h:32
FORCEINLINE VOID KdRosDumpStackFrames(ULONG Count, PULONG_PTR Backtrace)
Definition: kdros.h:41
NTSTATUS NTAPI KdSystemDebugControl(IN SYSDBG_COMMAND Command, IN PVOID InputBuffer, IN ULONG InputBufferLength, OUT PVOID OutputBuffer, IN ULONG OutputBufferLength, IN OUT PULONG ReturnLength, IN KPROCESSOR_MODE PreviousMode)
Definition: kdmain.c:474
struct Command Command
#define BOOLEAN
Definition: pedump.c:73
unsigned int ULONG
Definition: retypes.h:1
uint32_t * PULONG_PTR
Definition: typedefs.h:63
LPFNPSPCALLBACK Callback
Definition: desk.c:111