# NtMapViewOfSection

```csharp
[DllImport("ntdll.dll", ExactSpelling = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern unsafe NTSTATUS NtMapViewOfSection(
    HANDLE SectionHandle,
    HANDLE ProcessHandle,
    void* BaseAddress,
    nuint ZeroBits,
    nuint CommitSize,
    [Optional] long* SectionOffset,
    nuint* ViewSize,
    SECTION_INHERIT InheritDisposition,
    uint AllocationType,
    uint Win32Protect);
```

[section\_inherit](https://www.pinvoke.dev/wdk/section_inherit "mention")

[virtual\_allocation\_type](https://www.pinvoke.dev/memory/virtual_allocation_type "mention")

[page\_protection\_flags](https://www.pinvoke.dev/memory/page_protection_flags "mention")
