aboutsummaryrefslogtreecommitdiff
path: root/examples/dpp-example.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-07-02 14:33:31 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-07-02 14:33:31 +0200
commit54db7a6b49e11fc16134e0994a901e17d2443a97 (patch)
tree688c39b30129a02203023938e315853c59caaaf1 /examples/dpp-example.c
parentde3d64ca85fcd3fa4251a4d4719c452da2a56987 (diff)
Improved `examples/dpp-example-cplusplus-EASTL.cpp` user mode build.
* added `_enable()` / `_disable()` semantics to `examples/dpp-example.c` Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'examples/dpp-example.c')
-rw-r--r--examples/dpp-example.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/dpp-example.c b/examples/dpp-example.c
index 8a14af9..f5a079c 100644
--- a/examples/dpp-example.c
+++ b/examples/dpp-example.c
@@ -10,6 +10,12 @@ NTSTATUS DriverEntry(struct _DRIVER_OBJECT * DriverObject, PUNICODE_STRING Regis
DbgPrint("%s\n", "Hello ring0!");
+ // This is bad. Please do not call _disable/_enable in the DriverEntry.
+ DbgPrint("%s\n", "Disable/Enable Interrupts!");
+ _disable();
+ _enable();
+ DbgPrint("%s\n", "Done with Disable/Enable Interrupts!");
+
return STATUS_SUCCESS;
}