| 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) |
nothing calls this directly
no test coverage detected