Skip to content

Commit 9e09b5c

Browse files
hpoussinDarkFire01
authored andcommitted
[KDSTUB] Implement driver for KDNET extension stubs
CORE-20385
1 parent 8bef246 commit 9e09b5c

5 files changed

Lines changed: 42 additions & 0 deletions

File tree

‎drivers/base/CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ if(_WINKD_)
1414
else()
1515
add_subdirectory(kdrosdbg)
1616
endif()
17+
add_subdirectory(kdstub)
1718

1819
if(NOT ARCH STREQUAL "arm")
1920
add_subdirectory(nmidebug)

‎drivers/base/kdstub/CMakeLists.txt‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
spec2def(kdstub.dll kdstub.spec ADD_IMPORTLIB)
2+
3+
list(APPEND SOURCE
4+
kdstub.c)
5+
6+
add_library(kdstub MODULE
7+
${SOURCE}
8+
kdstub.rc
9+
${CMAKE_CURRENT_BINARY_DIR}/kdstub.def)
10+
11+
set_module_type(kdstub kerneldll ENTRYPOINT 0)
12+
set_subsystem(kdstub native)
13+
add_cd_file(TARGET kdstub DESTINATION reactos/system32 NO_CAB FOR all)

‎drivers/base/kdstub/kdstub.c‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* PROJECT: ReactOS Kernel Debugger over Network extension stubs
3+
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4+
* PURPOSE: Main source file
5+
* COPYRIGHT: Copyright 2022 Hervé Poussineau <hpoussin@reactos.org>
6+
*/
7+
8+
#define NOEXTAPI
9+
#include <ntifs.h>
10+
#include <kdnetextensibility.h>
11+
12+
NTSTATUS
13+
NTAPI
14+
KdInitializeLibrary(
15+
_In_ PKDNET_EXTENSIBILITY_IMPORTS ImportTable,
16+
_In_opt_ PCHAR LoaderOptions,
17+
_Inout_ PDEBUG_DEVICE_DESCRIPTOR Device)
18+
{
19+
return STATUS_NOT_IMPLEMENTED;
20+
}
21+

‎drivers/base/kdstub/kdstub.rc‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#define REACTOS_VERSION_DLL
2+
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Kernel Debugger over Network extension stubs"
3+
#define REACTOS_STR_INTERNAL_NAME "kdstub"
4+
#define REACTOS_STR_ORIGINAL_FILENAME "kdstub.dll"
5+
#include <reactos/version.rc>
6+

‎drivers/base/kdstub/kdstub.spec‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@ stdcall KdInitializeLibrary(ptr ptr ptr)

0 commit comments

Comments
 (0)