Function Reference


_WinAPI_WriteProcessMemory

Writes memory in a specified process

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

Parameters

$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

Related

_WinAPI_ReadProcessMemory

See Also

Search WriteProcessMemory in MSDN Library.