ReactOS  0.4.15-dev-3440-g915569a
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(
61 {
62  return KdSystemDebugControl('RbdK', Callback, FALSE, 0, 0, 0, 0);
63 }
64 
66 VOID
67 KdRosDeregisterCliCallback(
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:39
#define TRUE
Definition: types.h:120
DWORD Id
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
#define FALSE
Definition: types.h:117
CHAR * PCH
Definition: ntbasedef.h:391
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
struct Command Command
_In_ WDFINTERRUPT _In_ PFN_WDF_INTERRUPT_SYNCHRONIZE Callback
Definition: wdfinterrupt.h:456
#define FORCEINLINE
Definition: wdftypes.h:67
BOOLEAN(NTAPI * PKDBG_CLI_ROUTINE)(IN PCHAR Command, IN ULONG Argc, IN PCH Argv[])
Definition: kdb_cli.c:132
#define BOOLEAN
Definition: pedump.c:73
unsigned int ULONG
Definition: retypes.h:1
uint32_t * PULONG_PTR
Definition: typedefs.h:65
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:2152