For the complete documentation index, see llms.txt. This page is also available as Markdown.

ReadProcessMemory

[DllImport("KERNEL32.dll", ExactSpelling = true, SetLastError = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern unsafe BOOL ReadProcessMemory(
    HANDLE hProcess,
    void* lpBaseAddress,
    void* lpBuffer,
    nuint nSize,
    [Optional] nuint* lpNumberOfBytesRead);

Last updated