MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / ProbeForWriteUlong

Function ProbeForWriteUlong

KernelLibrary/kDbgCore.h:385–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383
384#if defined(_AMD64_)
385FORCEINLINE
386VOID
387ProbeForWriteUlong(
388 IN PULONG Address
389){
390 if (Address >= (ULONG* const)MM_USER_PROBE_ADDRESS) {
391 Address = (ULONG* const)MM_USER_PROBE_ADDRESS;
392 }
393
394 *((volatile ULONG*)Address) = *Address;
395 return;
396}
397#else
398#define ProbeForWriteUlong(Address) { \
399 if ((Address) >= (ULONG * const)MM_USER_PROBE_ADDRESS) { \

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected