IDiaInjectedSource::get_source

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

Retrieves the source code bytes.

Syntax

HRESULT get_source ( 
   DWORD  cbData,
   DWORD* pcbData,
   BYTE   data[]
);

Parameters

cbData

[in] The number of bytes that represents the size of the data buffer.

pcbData

[out] Returns the number of bytes that represents the bytes returned. If data is NULL, then pcbData is the total number of bytes of data available.

data[]

[out] A buffer that is to be filled in with the source bytes.

Return Value

If successful, returns S_OK. Returns S_FALSE if this property is not supported. Otherwise, returns an error code.

See also