| 47 | } |
| 48 | |
| 49 | ntapi::NTSTATUS |
| 50 | NTAPI |
| 51 | ntapi::NtUnmapViewOfSection( |
| 52 | _In_ HANDLE ProcessHandle, |
| 53 | _In_opt_ PVOID BaseAddress) |
| 54 | { |
| 55 | typedef NTSTATUS(NTAPI* NtUnmapViewOfSection_t)(HANDLE, PVOID); |
| 56 | static NtUnmapViewOfSection_t Fn = NtUnmapViewOfSection_t(GetProcAddress(hmNtdll, "NtUnmapViewOfSection")); |
| 57 | if (Fn) |
| 58 | return Fn(ProcessHandle, BaseAddress); |
| 59 | SetLastError(ERROR_PROC_NOT_FOUND); |
| 60 | return STATUS_PROCEDURE_NOT_FOUND; |
| 61 | } |
| 62 | |
| 63 | //////////////////////////////////////////////////////////////////////////////// |
| 64 | // Virtual Memory |
nothing calls this directly
no outgoing calls
no test coverage detected