aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index c808e5d..a379646 100644
--- a/README.md
+++ b/README.md
@@ -82,8 +82,9 @@ NTSTATUS MyDriverEntry(_In_ struct _DRIVER_OBJECT * DriverObject, _In_ PUNICODE_
}
```
-shouldn't be used. Instead the function `DriverUnload` will be called.
-So make sure that the symbol `DriverUnload` exists and has the usual ddk function signature:
+**must not** used. Overwriting `DriverObject->DriverUnload` with your own function may BSOD.
+Instead the function `DriverUnload` will be called.
+Make sure that the symbol `DriverUnload` exists and has the usual ddk function signature:
`void DriverUnload(_In_ struct _DRIVER_OBJECT * DriverObject)`.
This is required to make ctors/dtors work without calling additional functions in `DriverEntry` / `DriverUnload`.