Add SystemBasicProcessInformation (252) for Win11 26100+#22
Open
0xCZR1 wants to merge 1 commit intoMSxDOS:masterfrom
Open
Add SystemBasicProcessInformation (252) for Win11 26100+#220xCZR1 wants to merge 1 commit intoMSxDOS:masterfrom
0xCZR1 wants to merge 1 commit intoMSxDOS:masterfrom
Conversation
2e7a8cb to
81d9329
Compare
MSxDOS
requested changes
Feb 4, 2026
src/ntexapi.rs
Outdated
| @@ -941,6 +941,8 @@ ENUM!{enum SYSTEM_INFORMATION_CLASS { | |||
| SystemLeapSecondInformation = 206, | |||
| SystemFlags2Information = 207, | |||
| MaxSystemInfoClass = 208, | |||
Owner
There was a problem hiding this comment.
Suggested change
| MaxSystemInfoClass = 208, |
This should always be the last field of the enum. In fact, you can remove it.
src/ntexapi.rs
Outdated
| SystemFlags2Information = 207, | ||
| MaxSystemInfoClass = 208, | ||
| SystemShadowStackInformation = 221, | ||
| SystemBasicProcessInformation = 252, // As per MSDN: Available as of Windows 11 version 26100.4770 |
Owner
There was a problem hiding this comment.
Suggested change
| SystemBasicProcessInformation = 252, // As per MSDN: Available as of Windows 11 version 26100.4770 | |
| SystemBasicProcessInformation = 252, |
There's no need for this comment.
src/ntexapi.rs
Outdated
| }} | ||
| pub type PSYSTEM_PROCESS_INFORMATION = *mut SYSTEM_PROCESS_INFORMATION; | ||
|
|
||
| STRUCT!{struct SYSTEM_BASIC_PROCESS_INFORMATION { |
Owner
There was a problem hiding this comment.
Suggested change
| STRUCT!{struct SYSTEM_BASIC_PROCESS_INFORMATION { | |
| STRUCT!{struct SYSTEM_BASICPROCESS_INFORMATION { |
...and the rest
81d9329 to
33f0926
Compare
Author
|
Hey @MSxDOS, thanks for the review! I've addressed all the feedback, removed MaxSystemInfoClass, dropped the inline comment, and renamed to SYSTEM_BASICPROCESS_INFORMATION to match the MSDN naming. Also added layout tests for x86 and aarch64 that were missing. Let me know if anything else needs adjusting. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two new system information classes and related structs.
SystemBasicProcessInformation (252)
Documentation: https://learn.microsoft.com/en-us/windows/win32/api/winternl/nf-winternl-ntquerysysteminformation
Minimum version: Windows 11 version 26100.4770+
Tested: Verified struct layout and functionality on Windows 11 26100+
From MSDN:
SystemShadowStackInformation (221)
Documentation: None (reverse engineered)
Tested: Verified struct layout and functionality on Windows 11 26100+
Returns CET (Control-flow Enforcement Technology) status flags. On a system with full CET enabled, returns value 0x3.
Bit meanings not documented — assumed based on CET architecture:
Changes
SystemShadowStackInformation = 221toSYSTEM_INFORMATION_CLASSenumSystemBasicProcessInformation = 252toSYSTEM_INFORMATION_CLASSenumSYSTEM_SHADOW_STACK_INFORMATIONstruct and pointer typeSYSTEM_BASIC_PROCESS_INFORMATIONstruct and pointer type