mrexodia / phnt-single-header Goto Github PK
View Code? Open in Web Editor NEWSingle header version of System Informer's phnt library.
License: MIT License
Single header version of System Informer's phnt library.
License: MIT License
The idea would be that you can use the releases of this repository with FetchContent directly. Additionally an example in the README is needed. The file would be in out/CMakeLists.txt
and provide a phnt::phnt
target (potentially also linking to ntdll.lib
for user-mode, maybe a split with a phnt::headers
target?)
Currently phnt_windows.h
is hardcoded. We can wrap this header in an ifdef with the _KERNEL_MODE
define and additionally define the appropriate PHNT_MODE
macro. This would also need to build a kernel driver as part of the tests (see https://github.com/build-cpp/wdk_template).
This feature should be implemented by modifying phnt_amalgamate.h
#ifdef _WINTERNL_
#error Do not mix Winternl.h and phnt.h
#endif // _WINTERNL_
#define _WINTERNL_ // Pretend the header was included
This should be possible with a simple python script that loads ntdll.dll
, iterates the exports and generates ntdll.def
. A (potentially) better idea could be to reuse parse_phnt.py
from dumpulator and generate the DEF file from the imports actually exposed with that OS version.
Could be implemented with a GH actions cron job:
This can be done by creating a dummy CMakeLists.txt
that just does:
message(FATAL_ERROR "Include phnt.zip from the release instead")
Would be nice to create IDA/Ghidra type libraries from the latest phnt version and include those in the release as well.
There's some issues:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.