Function Reference


Writes memory in a specified process

#include <WinAPIMem.au3>
_WinAPI_WriteProcessMemory ( $hProcess, $pBaseAddress, $pBuffer, $iSize, ByRef $iWritten [, $sBuffer = "ptr"] )


$hProcess Identifies an open handle to a process whose memory is to be written to
$pBaseAddress Points to the base address in the specified process to be written to
$pBuffer Points to the buffer that supplies data to be written into the address space
$iSize Specifies the number of bytes to write into the specified process
$iWritten The actual number of bytes transferred into the specified process
$sBuffer [optional] Contains the data type that $pBuffer represents

Return Value

Success: True
Failure: False, call _WinAPI_GetLastError() to get extended error information



See Also

Search WriteProcessMemory in MSDN Library.