aboutsummaryrefslogtreecommitdiff
path: root/ddk-template-cplusplus.cpp
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-04-16 17:41:14 +0200
committerToni Uhlig <matzeton@googlemail.com>2021-04-16 17:41:14 +0200
commit45af97bff6d8227638acfaad501e0d8f97957d9b (patch)
treee88cd1185b5b5c421a31c56cf770caadbbb420cd /ddk-template-cplusplus.cpp
parentc727b5ceb06fcdc8dc141f8861baff14836f752f (diff)
EASTL integration
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'ddk-template-cplusplus.cpp')
-rw-r--r--ddk-template-cplusplus.cpp44
1 files changed, 21 insertions, 23 deletions
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 <ntddk.h>
-#include <vector>
-
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!");
+ }
}