MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / WriteProcessMemory

Function WriteProcessMemory

windows/winproxy/apis/kernel32.py:278–282  ·  view source on GitHub ↗

Computer nSize with len(lpBuffer) if not given

(hProcess, lpBaseAddress, lpBuffer, nSize=None, lpNumberOfBytesWritten=None)

Source from the content-addressed store, hash-verified

276
277@Kernel32Proxy()
278def WriteProcessMemory(hProcess, lpBaseAddress, lpBuffer, nSize=None, lpNumberOfBytesWritten=None):
279 """Computer nSize with len(lpBuffer) if not given"""
280 if nSize is None:
281 nSize = len(lpBuffer)
282 return WriteProcessMemory.ctypes_function(hProcess, lpBaseAddress, lpBuffer, nSize, lpNumberOfBytesWritten)
283
284
285## Error

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected