ICorDebugMutableDataTarget::WriteVirtual Method

Writes memory into the target process address space.

Syntax

HRESULT WriteVirtual(  
   [in] CORDB_ADDRESS address,  
   [in, size_is(bytesRequested)] const BYTE * pBuffer,  
   [in] ULONG32 bytesRequested);  

Parameters

address
[in] The address at which to write the contents of pBuffer.

pBuffer
[in] A pointer to a byte array that contains the bytes to be written.

address
[in] The number of bytes in pBuffer.

Return Value

S_OK on success, or any other HRESULT on failure.

Remarks

If any bytes cannot be written, the method call fails without changing any bytes in the target address space. (Otherwise, the target would be in an inconsistent state that makes further debugging unreliable.)

Requirements

Platforms: See System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: Available since 4.6

See also