IDiaEnumSourceLink2::Next2
Retrieves the next source link blob and advances the enumeration.
Syntax
HRESULT Next(
ULONGLONG cb,
ULONGLONG* pcb,
BYTE* pb
);
Parameters
cb
[in] Specifies the number of bytes in the buffer pb
. This should never be 0.
pcb
[out, optional] Returns the number of bytes written to the buffer pb
upon success.
pb
[out] Returns the bytes for next source link blob.
Return Value
If successful, returns S_OK
. If the end of the enumeration has been reached, returns S_FALSE
. Otherwise, returns an error code. Note that this function does not return an error code if pb
is too small to return the entire source link blob, it merely silently truncates the blob. The caller should always ensure the buffer is big enough and cb
specifies the correct size of the buffer. Call the IDiaEnumSourceLink2::SizeOfNext2
method to get the needed buffer size.