mirror of
https://github.com/reactos/reactos.git
synced 2024-09-27 21:16:34 +00:00
[DRIVERS] Add kdstub.dll
This commit is contained in:
parent
73af453c73
commit
c1c8f59eab
|
@ -2,6 +2,7 @@
|
|||
add_subdirectory(beep)
|
||||
add_subdirectory(bootvid)
|
||||
add_subdirectory(condrv)
|
||||
add_subdirectory(kdstub)
|
||||
|
||||
if(_WINKD_)
|
||||
if(GDB)
|
||||
|
|
13
drivers/base/kdstub/CMakeLists.txt
Normal file
13
drivers/base/kdstub/CMakeLists.txt
Normal 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
drivers/base/kdstub/kdstub.c
Normal file
21
drivers/base/kdstub/kdstub.c
Normal 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;
|
||||
}
|
||||
|
6
drivers/base/kdstub/kdstub.rc
Normal file
6
drivers/base/kdstub/kdstub.rc
Normal 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>
|
||||
|
1
drivers/base/kdstub/kdstub.spec
Normal file
1
drivers/base/kdstub/kdstub.spec
Normal file
|
@ -0,0 +1 @@
|
|||
@ stdcall KdInitializeLibrary(ptr ptr ptr)
|
Loading…
Reference in a new issue