Update README.md

2.0
_xeroxz 4 years ago
parent 25a8ad710a
commit 8897981acf

@ -521,6 +521,24 @@ Mind the space at the beginning of each line. If you want to generate a file lik
.... ....
``` ```
Once you have generated a map file for ntoskrnl.exe, or any other binary you want to link with, you can then use it to resolve external symbols. In the `DemoDrv` project, I reference two external symbols. One being `PiddbCacheTable`, and the other being a win32kfull.sys export.
```cpp
// this is a demo of resolving non-exported symbols...
// win32kfull.sys export example...
extern "C" void NtUserRegisterShellPTPListener();
extern "C" void* PiDDBCacheTable;
```
These two symbols are simply printed out via DbgPrint.
```cpp
// non-exported symbols being resolved by jit linker...
DbgPrint("> PiDDBCacheTable = 0x%p\n", &PiDDBCacheTable);
DbgPrint("> win32kfull!NtUserRegisterShellPTPListener = 0x%p\n", &NtUserRegisterShellPTPListener);
``
### Usermode Example ### Usermode Example
# License - BSD 3-Clause # License - BSD 3-Clause

Loading…
Cancel
Save