다음을 통해 공유


IDebugPointerObject::SetBytes

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Sets the value pointed to from a series of consecutive bytes.

Syntax

HRESULT SetBytes(   
   DWORD  dwStart,  
   DWORD  dwCount,  
   BYTE*  pBytes,  
   DWORD* pdwBytes  
);  
int SetBytes(  
   uint     dwStart,   
   uint     dwCount,   
   byte[]   pBytes,   
   out uint pdwBytes  
);  

Parameters

dwStart
[in] An offset, in bytes, from the start of the object pointed to.

dwCount
[in] The number of bytes to set.

pBytes
[in] An array of bytes representing the new value. This value is stored into the object, starting at the given offset.

pdwBytes
[out] Returns the number of bytes actually set.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

This method is used if the pointer as represented by this IDebugPointerObject points to a primitive type or a simple array of primitive types (that is, an array that can be represented by a simple sequence of bytes). This IDebugPointerObject object cannot be a null reference (it must point to an address in memory).

See Also

GetBytes
IDebugPointerObject