다음을 통해 공유


IDebugPointerObject::GetBytes

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

Gets the value pointed to as a series of consecutive bytes.

Syntax

HRESULT GetBytes(   
   DWORD  dwStart,  
   DWORD  dwCount,  
   BYTE*  pBytes,  
   DWORD* pdwBytes  
);  
int GetBytes(  
   uint       dwStart,   
   uint       dwCount,   
   out 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 retrieve.

pBytes
[in, out] An array that is filled in with the value as a series of consecutive bytes, starting at the given offset from the object pointed to.

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

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).

See Also

IDebugPointerObject
SetBytes