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

Function IsProcessPagePresent

Kernel-Bridge/API/PteUtils.cpp:282–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280
281 _IRQL_requires_max_(APC_LEVEL)
282 BOOLEAN IsProcessPagePresent(OPTIONAL PEPROCESS Process, PVOID Address, OPTIONAL OUT PULONG PageSize)
283 {
284 if (!Process || Process == PsGetCurrentProcess())
285 return IsPagePresent(Address, PageSize);
286 KAPC_STATE ApcState;
287 KeStackAttachProcess(Process, &ApcState);
288 BOOLEAN IsPresent = IsPagePresent(Address, PageSize);
289 KeUnstackDetachProcess(&ApcState);
290 return IsPresent;
291 }
292
293 _IRQL_requires_max_(APC_LEVEL)
294 BOOLEAN IsMemoryRangePresent(OPTIONAL PEPROCESS Process, PVOID Address, SIZE_T Size)

Callers

nothing calls this directly

Calls 1

IsPagePresentFunction · 0.70

Tested by

no test coverage detected