From 45af97bff6d8227638acfaad501e0d8f97957d9b Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Fri, 16 Apr 2021 17:41:14 +0200 Subject: EASTL integration Signed-off-by: Toni Uhlig --- ddk-template-cplusplus.cpp | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) (limited to 'ddk-template-cplusplus.cpp') diff --git a/ddk-template-cplusplus.cpp b/ddk-template-cplusplus.cpp index 3ab6257..f4e3ce4 100644 --- a/ddk-template-cplusplus.cpp +++ b/ddk-template-cplusplus.cpp @@ -1,11 +1,11 @@ #include -#include - class TestSmth { public: - TestSmth() {} + TestSmth() + { + } void doSmth(void) { DbgPrint("%s\n", "Hello Class!"); @@ -21,30 +21,28 @@ static void test_cplusplus(void) extern "C" { -DRIVER_INITIALIZE DriverEntry; -DRIVER_UNLOAD DriverUnload; + DRIVER_INITIALIZE DriverEntry; + DRIVER_UNLOAD DriverUnload; -NTSTATUS DriverEntry( - _In_ struct _DRIVER_OBJECT *DriverObject, - _In_ PUNICODE_STRING RegistryPath -) -{ - DbgPrint("%s\n", "Hello ring0!"); + NTSTATUS DriverEntry(_In_ struct _DRIVER_OBJECT * DriverObject, _In_ PUNICODE_STRING RegistryPath) + { + (void)DriverObject; + (void)RegistryPath; - /* support for service stopping */ - DriverObject->DriverUnload = DriverUnload; + DbgPrint("%s\n", "Hello ring0!"); - test_cplusplus(); + /* support for service stopping */ + DriverObject->DriverUnload = DriverUnload; - return STATUS_SUCCESS; -} + test_cplusplus(); -VOID -DriverUnload( - _In_ struct _DRIVER_OBJECT *DriverObject -) -{ - DbgPrint("%s\n", "Bye ring0!"); -} + return STATUS_SUCCESS; + } + VOID DriverUnload(_In_ struct _DRIVER_OBJECT * DriverObject) + { + (void)DriverObject; + + DbgPrint("%s\n", "Bye ring0!"); + } } -- cgit v1.2.3