https://github.com/winsiderss/phnt
Native API header files for the System Informer project.
https://github.com/winsiderss/phnt
native sdk wdk windows
Last synced: about 1 month ago
JSON representation
Native API header files for the System Informer project.
- Host: GitHub
- URL: https://github.com/winsiderss/phnt
- Owner: winsiderss
- License: mit
- Created: 2018-08-14T23:58:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-15T15:33:18.000Z (3 months ago)
- Last Synced: 2025-04-13T13:15:54.775Z (2 months ago)
- Topics: native, sdk, wdk, windows
- Language: C
- Homepage: https://github.com/winsiderss/systeminformer
- Size: 698 KB
- Stars: 1,155
- Watchers: 40
- Forks: 182
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This collection of Native API header files has been maintained since 2009 for the Process Hacker project, and is the most up-to-date set of Native API definitions that I know of. I have gathered these definitions from official Microsoft header files and symbol files, as well as a lot of reverse engineering and guessing. See `phnt.h` for more information.
## Usage
First make sure that your program is using the latest Windows SDK.
These header files are designed to be used by user-mode programs. Instead of `#include `, place
```
#include
#include
```at the top of your program. The first line provides access to the Win32 API as well as the `NTSTATUS` values. The second line provides access to the entire Native API. By default, only definitions present in Windows XP are included into your program. To change this, use one of the following:
```
#define PHNT_VERSION PHNT_WINDOWS_XP // Windows XP
#define PHNT_VERSION PHNT_WINDOWS_SERVER_2003 // Windows Server 2003
#define PHNT_VERSION PHNT_WINDOWS_VISTA // Windows Vista
#define PHNT_VERSION PHNT_WINDOWS_7 // Windows 7
#define PHNT_VERSION PHNT_WINDOWS_8 // Windows 8
#define PHNT_VERSION PHNT_WINDOWS_8_1 // Windows 8.1
#define PHNT_VERSION PHNT_WINDOWS_10 // Windows 10
#define PHNT_VERSION PHNT_WINDOWS_11 // Windows 11
```