RemoteBuf_Read( ByRef H, ByRef pLocal, pSize, pOffset = 0 )
Read from the remote buffer into local buffer
H | Remote buffer handle |
pLocal | Reference to the local buffer |
pSize | Size of the local buffer |
pOffset | Optional reading offset, by default 0 |
TRUE on success or FALSE on failure. ErrorMessage on bad remote buffer handle
RemoteBuf_Write( Byref H, byref pLocal, pSize, pOffset = )
Write local buffer into remote buffer
H | Remote buffer handle |
pLocal | Reference to the local buffer |
pSize | Size of the local buffer |
pOffset | Optional writting offset, by default 0 |
TRUE on success or FALSE on failure. ErrorMessage on bad remote buffer handle
;get the handle of the Explorer window WinGet, hw, ID, ahk_class ExploreWClass ;open two buffers RemoteBuf_Open( hBuf1, hw, 128 ) RemoteBuf_Open( hBuf2, hw, 16 ) ;write something str := "1234" RemoteBuf_Write( hBuf1, str, strlen(str) ) str := "_5678" RemoteBuf_Write( hBuf1, str, strlen(str), 4) str := "_testing" RemoteBuf_Write( hBuf2, str, strlen(str)) ;read RemoteBuf_Read( hBuf1, str, 10 ) out = %str% RemoteBuf_Read( hBuf2, str, 10 ) out = %out%%str% MsgBox %out% ;close RemoteBuf_Close( hBuf1 ) RemoteBuf_Close( hBuf2 )
Open remote buffer
RemoteBuf_Open( ByRef H, hwnd, size )
Close the remote buffer
RemoteBuf_Close( ByRef H )
Read from the remote buffer into local buffer
RemoteBuf_Read( ByRef H, ByRef pLocal, pSize, pOffset = 0 )
Write local buffer into remote buffer
RemoteBuf_Write( Byref H, byref pLocal, pSize, pOffset = )
Get address or size of the remote buffer
RemoteBuf_Get( ByRef H, pQ = "adr" )