mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[FASTFAT] Use KdRosRegisterCliCallback() to register in KDBG.
This commit is contained in:
parent
de88611590
commit
fd8197645f
1 changed files with 6 additions and 11 deletions
|
@ -30,21 +30,16 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
#ifdef KDBG
|
||||||
|
#include <ndk/kdfuncs.h>
|
||||||
|
#include <reactos/kdros.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(ALLOC_PRAGMA)
|
#if defined(ALLOC_PRAGMA)
|
||||||
#pragma alloc_text(INIT, DriverEntry)
|
#pragma alloc_text(INIT, DriverEntry)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef KDBG
|
#ifdef KDBG
|
||||||
NTSTATUS
|
|
||||||
NTAPI
|
|
||||||
KdSystemDebugControl(IN ULONG Command,
|
|
||||||
IN PVOID InputBuffer,
|
|
||||||
IN ULONG InputBufferLength,
|
|
||||||
OUT PVOID OutputBuffer,
|
|
||||||
IN ULONG OutputBufferLength,
|
|
||||||
IN OUT PULONG ReturnLength,
|
|
||||||
IN KPROCESSOR_MODE PreviousMode);
|
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
NTAPI
|
NTAPI
|
||||||
vfatKdbgHandler(
|
vfatKdbgHandler(
|
||||||
|
@ -160,7 +155,7 @@ DriverEntry(
|
||||||
{
|
{
|
||||||
BOOLEAN Registered;
|
BOOLEAN Registered;
|
||||||
|
|
||||||
Registered = KdSystemDebugControl('RbdK', vfatKdbgHandler, FALSE, NULL, 0, NULL, KernelMode);
|
Registered = KdRosRegisterCliCallback(vfatKdbgHandler);
|
||||||
DPRINT1("FastFAT KDBG extension registered: %s\n", (Registered ? "yes" : "no"));
|
DPRINT1("FastFAT KDBG extension registered: %s\n", (Registered ? "yes" : "no"));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue