forked from bb107/MemoryModulePP
-
Notifications
You must be signed in to change notification settings - Fork 0
Remove winternl.h dependency and add PHNT-style NT API definitions #4
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
Merged
Conversation
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
- Removed #include <winternl.h> from nt.h to avoid redefinition conflicts - Added complete NTSTATUS, STRING, UNICODE_STRING, OBJECT_ATTRIBUTES definitions - Added PROCESSINFOCLASS and THREADINFOCLASS enumerations - Added PEB_LDR_DATA, RTL_USER_PROCESS_PARAMETERS structures - Added complete PEB structure with SessionId field - Added TEB structure with ClientId field - Added linked list manipulation functions (InitializeListHead, InsertTailList, etc.) - Added MEMORY_INFORMATION_CLASS enumeration - Added NtQueryVirtualMemory, NtOpenSection, RtlExitUserThread functions - Added RtlEncodePointer/RtlDecodePointer, RtlImageDirectoryEntryToData functions - Added RtlProcessHeap macro - Added STATUS_ALREADY_INITIALIZED constant - Fixed WINDOWS_VERSION enum class to regular C enum for VS2010 compatibility - Fixed COMIMAGE_FLAGS_ILONLY usage to not use scoped enum syntax Co-authored-by: iamasbcx <34831834+iamasbcx@users.noreply.github.com>
…S_INFORMATION and related NT structures - Added SYSTEM_INFORMATION_CLASS enumeration with all system info classes - Added NtQuerySystemInformation function declaration - Added SYSTEM_THREAD_INFORMATION and SYSTEM_PROCESS_INFORMATION structures - Added THREAD_BASIC_INFORMATION structure - Added NtOpenThread function declaration - Added NtCurrentTeb, NtCurrentProcessId, NtCurrentThreadId macros - Improved comment for RtlZeroMemory/RtlMoveMemory/RtlCopyMemory clarification Co-authored-by: iamasbcx <34831834+iamasbcx@users.noreply.github.com>
Co-authored-by: iamasbcx <34831834+iamasbcx@users.noreply.github.com>
Co-authored-by: iamasbcx <34831834+iamasbcx@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix redefinitions and nt.h identifier issues
Remove winternl.h dependency and add PHNT-style NT API definitions
Nov 30, 2025
Owner
|
@copilot 编译不行好像 |
…stead of Win32) Co-authored-by: iamasbcx <34831834+iamasbcx@users.noreply.github.com>
Author
Owner
|
@copilot 看看什么问题 帮我修复好啊 |
Copilot stopped work on behalf of
iamasbcx due to an error
November 30, 2025 02:32
Owner
|
@copilot 请Copilot再试一次 |
Copilot stopped work on behalf of
iamasbcx due to an error
November 30, 2025 02:35
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.
<winternl.h><winternl.h>Note: The workflow needs to be approved in GitHub Actions before it can run. Please approve the workflow at https://github.com/iamasbcx/MemoryModulePP/actions
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.