From f613b4322e2b951e2bd15e78539d32e66ce58728 Mon Sep 17 00:00:00 2001 From: xerox Date: Mon, 20 Apr 2020 04:14:33 +0000 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5fd6d91..20e2054 100644 --- a/README.md +++ b/README.md @@ -138,7 +138,7 @@ bool unmap_phys( } ``` -# Other +# DriverEntry you can change the paremeters you pass to driver entry simply by changing this: @@ -151,3 +151,17 @@ right now your entry point should look like this: ```cpp NTSTATUS DriverEntry(PVOID lpBaseAddress, DWORD32 dwSize) ``` + +The source the hello-world.sys is the following: + +```cpp + +#include + +NTSTATUS DriverEntry(PVOID lpBaseAddress, DWORD32 dwSize) +{ + DbgPrint("> Base Address: 0x%p, Size: 0x%x", lpBaseAddress, dwSize); + return STATUS_SUCCESS; +} + +```