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

Function CheckUserMemoryWriteable

Kernel-Bridge/API/MemoryUtils.cpp:213–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211
212 _IRQL_requires_max_(APC_LEVEL)
213 BOOLEAN CheckUserMemoryWriteable(__in_data_source(USER_MODE) PVOID UserAddress, SIZE_T Size) {
214 __try {
215 ProbeForWrite(UserAddress, Size, 1);
216 return TRUE;
217 } __except (EXCEPTION_EXECUTE_HANDLER) {
218 return FALSE;
219 }
220 }
221
222 _IRQL_requires_max_(APC_LEVEL)
223 BOOLEAN CheckProcessMemoryWriteable(PEPROCESS Process, __in_data_source(USER_MODE) PVOID UserAddress, SIZE_T Size) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected