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

NtWriteVirtualMemory

[DllImport("ntdll.dll", ExactSpelling = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern unsafe NTSTATUS NtWriteVirtualMemory(
    HANDLE ProcessHandle,
    void* BaseAddress,
    void* Buffer,
    uint NumberOfBytesToWrite,
    [Optional] uint* NumberOfBytesWritten);

Last updated