| 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); |
no outgoing calls
no test coverage detected