[KDSTUB] Implement driver for KDNET extension stubs

CORE-20385
This commit is contained in:
Hervé Poussineau
2026-06-15 08:42:50 -07:00
committed by Justin Miller
parent 8bef246a10
commit 9e09b5c5b9
5 changed files with 42 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ if(_WINKD_)
else()
add_subdirectory(kdrosdbg)
endif()
add_subdirectory(kdstub)
if(NOT ARCH STREQUAL "arm")
add_subdirectory(nmidebug)
+13
View File
@@ -0,0 +1,13 @@
spec2def(kdstub.dll kdstub.spec ADD_IMPORTLIB)
list(APPEND SOURCE
kdstub.c)
add_library(kdstub MODULE
${SOURCE}
kdstub.rc
${CMAKE_CURRENT_BINARY_DIR}/kdstub.def)
set_module_type(kdstub kerneldll ENTRYPOINT 0)
set_subsystem(kdstub native)
add_cd_file(TARGET kdstub DESTINATION reactos/system32 NO_CAB FOR all)
+21
View File
@@ -0,0 +1,21 @@
/*
* PROJECT: ReactOS Kernel Debugger over Network extension stubs
* LICENSE: MIT (https://spdx.org/licenses/MIT)
* PURPOSE: Main source file
* COPYRIGHT: Copyright 2022 Hervé Poussineau <[email protected]>
*/
#define NOEXTAPI
#include <ntifs.h>
#include <kdnetextensibility.h>
NTSTATUS
NTAPI
KdInitializeLibrary(
_In_ PKDNET_EXTENSIBILITY_IMPORTS ImportTable,
_In_opt_ PCHAR LoaderOptions,
_Inout_ PDEBUG_DEVICE_DESCRIPTOR Device)
{
return STATUS_NOT_IMPLEMENTED;
}
+6
View File
@@ -0,0 +1,6 @@
#define REACTOS_VERSION_DLL
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Kernel Debugger over Network extension stubs"
#define REACTOS_STR_INTERNAL_NAME "kdstub"
#define REACTOS_STR_ORIGINAL_FILENAME "kdstub.dll"
#include <reactos/version.rc>
+1
View File
@@ -0,0 +1 @@
@ stdcall KdInitializeLibrary(ptr ptr ptr)