MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / MapViewOfSection

Function MapViewOfSection

Kernel-Bridge/API/SectionsUtils.cpp:49–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 NTSTATUS MapViewOfSection(
50 HANDLE hSection,
51 HANDLE hProcess,
52 IN OUT PVOID* BaseAddress,
53 SIZE_T CommitSize,
54 IN OUT OPTIONAL UINT64* SectionOffset,
55 IN OUT SIZE_T* ViewSize,
56 SECTION_INHERIT InheritDisposition,
57 ULONG AllocationType,
58 ULONG Win32Protect
59 ) {
60 return ZwMapViewOfSection(
61 hSection,
62 hProcess,
63 BaseAddress,
64 NULL,
65 CommitSize,
66 reinterpret_cast<PLARGE_INTEGER>(SectionOffset),
67 ViewSize,
68 InheritDisposition,
69 AllocationType,
70 Win32Protect
71 );
72 }
73
74 NTSTATUS UnmapViewOfSection(HANDLE hProcess, PVOID BaseAddress) {
75 return ZwUnmapViewOfSection(hProcess, BaseAddress);

Callers 1

KbMapViewOfSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected