MCPcopy Create free account
hub / github.com/changeofpace/Self-Remapping-Code / NtUnmapViewOfSection

Method NtUnmapViewOfSection

Self-Remapping Code/ntapi.cpp:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49ntapi::NTSTATUS
50NTAPI
51ntapi::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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected