MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / CheckUserMemoryWriteable

Function CheckUserMemoryWriteable

Source/Client/NM_Sys/API/MemoryUtils.cpp:175–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173
174 _IRQL_requires_max_(APC_LEVEL)
175 BOOLEAN CheckUserMemoryWriteable(__in_data_source(USER_MODE) PVOID UserAddress, SIZE_T Size)
176 {
177 __try
178 {
179 ProbeForWrite(UserAddress, Size, 1);
180 return TRUE;
181 }
182 __except (EXCEPTION_EXECUTE_HANDLER)
183 {
184 return FALSE;
185 }
186 }
187
188 _IRQL_requires_max_(APC_LEVEL)
189 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