Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Writes a number of bytes to the address space of the target as defined by the inpassed context and ___location.
The number of bytes written is returned in "bytesWritten" upon success.
Syntax
HRESULT WriteBytes(
IDebugHostContext *context,
Location ___location,
void *buffer,
ULONG64 bufferSize,
ULONG64 *bytesWritten
);
Parameters
context
The host context in which to write bytes. This represents, for example, the address space in which the ___location exists.
___location
The ___location at which to write bytes. This ___location may represent a virtual address within the address space defined by context or it may represent something like a register within a context record for a thread.
buffer
The bytes to write to the debug target.
bufferSize
The size of the buffer / number of bytes to write to the debug target.
bytesWritten
The number of bytes actually written to the debug target will be returned here. If the method can complete a partial write, S_FALSE will be returned and the value in bytesWritten may be less than the requested number of bytes. If the method returns S_OK, a full write was completed.
Return value
This method returns HRESULT which indicates success or failure.
Requirements
Requirement | Value |
---|---|
Header | dbgmodel.h |