[DRIVERS] Add kdstub.dll

This commit is contained in:
Hervé Poussineau 2022-06-27 20:51:06 +02:00
parent 73af453c73
commit c1c8f59eab
5 changed files with 42 additions and 0 deletions

View file

@ -2,6 +2,7 @@
add_subdirectory(beep)
add_subdirectory(bootvid)
add_subdirectory(condrv)
add_subdirectory(kdstub)
if(_WINKD_)
if(GDB)

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)

View file

@ -0,0 +1,21 @@
/*
* PROJECT: ReactOS Kernel
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
* PURPOSE: Stubs for the kernel network debugger
* COPYRIGHT: Copyright 2022 Hervé Poussineau <hpoussin@reactos.org>
*/
#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;
}

View file

@ -0,0 +1,6 @@
#define REACTOS_VERSION_DLL
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Kernel Debugger Stub Extension DLL"
#define REACTOS_STR_INTERNAL_NAME "kdstub"
#define REACTOS_STR_ORIGINAL_FILENAME "kdstub.dll"
#include <reactos/version.rc>

View file

@ -0,0 +1 @@
@ stdcall KdInitializeLibrary(ptr ptr ptr)