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 mmapi fixes and improvements #2324

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RatinCN
Copy link
Contributor

@RatinCN RatinCN commented Dec 8, 2024

  • Nt(Read/Write)VirtualMemory:
    • Rename BufferSize to NumberOfBytesTo(Read/Write), this value can be smaller than the actual size of buffer.
    • Improve SAL, _Out_writes_bytes_ -> _Out_writes_bytes_to_, which implicits the real number of bytes written.
    • Improve SAL, BaseAddress cannot be NULL (same as (Read/Write)ProcessMemory).
  • NtWow64XxxVirtualMemory64:
    • Type of BaseAddress should be ULONGLONG, represents a 64-bit address.
  • NtWow64ReadVirtualMemory64:
    • Fix declaration, it's similar to NtReadVirtualMemory so has no Flags parameter like NtReadVirtualMemoryEx.
  • NtAllocateUserPhysicalPagesEx: Fix SAL.

@RatinCN RatinCN requested review from dmex and jxy-s as code owners December 8, 2024 02:47
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