ExtRemoteData::WriteBuffer
The WriteBuffer method writes data to the target's memory. The data is located in the beginning of the region represented by the ExtRemoteData object. However, the size of the data can be different.
ULONG
ExtRemoteData::WriteBuffer(
IN PVOID Buffer,
IN ULONG Bytes,
IN bool MustReadAll = true
) throw(...);
Parameters
- Buffer
- Specifies the data to write to the target.
- Bytes
- Specifies the number of bytes to write. The Buffer buffer must be at least this size.
- MustReadAll
- Specifies what happens if the debugger engine is unable to write all the data to the target. If MustReadAll is true and the debugger engine is unable to write Bytes bytes to the target, an ExtRemoteException will be thrown. If MustReadAll is false, no exception will be thrown if the engine is unable to write the requested number of bytes to the target.
Return Value
WriteBuffer returns the number of bytes written to the target from the Buffer buffer. If MustReadAll is true, the value of Bytes will be returned (unless an exception is thrown).
Requirements
Headers: Defined in Engextcpp.hpp. Include Engextcpp.hpp.
See Also
ExtRemoteData, ExtRemoteData::ReadBuffer
Build machine: CAPEBUILD