1
0
mirror of https://github.com/nefarius/WDF-Utils.git synced 2024-07-27 08:39:27 +02:00

Added warning text

This commit is contained in:
Benjamin Höglinger-Stelzer 2023-06-18 18:34:23 +02:00
parent 35ca954827
commit 718aaf33a3

View File

@ -2,6 +2,8 @@
For dynamically calling functions, [`MmGetSystemRoutineAddress`](https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/wdm/nf-wdm-mmgetsystemroutineaddress) will only work for exports from `NtosKrnl.exe`, but what if you wish to get a pointer to a function of an export driver (a.k.a. kernel DLL)? The following snippet has been tested on Windows 10 version 1507 and upwards.
**WARNING:** in contrast to `LoadLibrary`s behaviour calling `FindDriverBaseAddress` will **not** load the desired module, if not found! I might add another helper function to achieve this in the future, if need arises.
## Header
```c