IDiaStackFrame::get_rawLVarInstanceValue

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. 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

This method retrieves the value of the specified local variable as raw bytes.

Syntax

HRESULT get_rawLVarInstanceValue(
   IDiaLVarInstance* pInstance,
   DWORD             cbDataMax,
   DWORD*            pcbData,
   BYTE*             pbData
);

Parameters

pInstance

[in] An IDiaLVarInstance object representing an instance of local variable to get the value for.

cbDataMax

[in] Maximum number of bytes in the buffer pointed to by pbData. This can be a maximum of 8 bytes (sizeof(ULONGLONG)).

pcbData

[out] Returns the actual number of bytes stored in the buffer.

pbData

[out] A buffer to be filled in with data. This cannot be NULL.

Return Value

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

See also