Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phnt: Fix availability of some functions #2425

Merged
merged 3 commits into from
Feb 17, 2025
Merged

Conversation

xdqi
Copy link
Contributor

@xdqi xdqi commented Feb 15, 2025

According to my real systems and syscall tables at

ntexapi.h

  • NtAddDriverEntry, NtDeleteDriverEntry, NtModifyDriverEntry, NtEnumerateDriverEntries, NtQueryDriverEntryOrder, NtSetDriverEntryOrder
    Available since NT 5.2 (PHNT_WS03)
  • NtQueryLicenseValue
    Available since NT 6.0 (PHNT_VISTA)

ntmisc.h

  • NtQuerySecurityPolicy
    Available since Win10 1607 (PHNT_REDSTONE)
  • NtCreateCrossVmEvent, NtCreateCrossVmMutant, NtAcquireCrossVmMutant, NtDirectGraphicsCall
    Available since Win10 2004 (PHNT_20H1)
  • NtOpenCpuPartition, NtCreateCpuPartition, NtSetInformationCpuPartition
    Available since Win11 22H2 (PHNT_WIN11_22H2)

ntpsapi.h

  • NtCreateUserProcess, NtCreateThreadEx
    Available since NT 6.0 (PHNT_VISTA)
  • NtGetCurrentProcessorNumber
    Available since NT 5.2 (PHNT_WS03)

ntregapi.h

  • NtLoadKeyEx, NtUnloadKey2, NtQueryOpenSubKeysEx
    Available since NT 5.2 (PHNT_WS03)

@xdqi xdqi requested review from dmex and jxy-s as code owners February 15, 2025 12:58
Copy link

github-actions bot commented Feb 15, 2025

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@xdqi
Copy link
Contributor Author

xdqi commented Feb 15, 2025

I have read the CLA Document and I hereby sign the CLA

@dmex dmex merged commit 0e3c183 into winsiderss:master Feb 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants