CDBErrorInfo::GetAllErrorInfo

HRESULT GetAllErrorInfo( ULONG ulRecordNum, LCID lcid, BSTR* pbstrDescription, GUID* pguid, DWORD* pdwHelpContext, BSTR* pbstrHelpFile, BSTR* pbstrSource );

Return Value

S_OK if successful. See IErrorRecords::GetErrorInfo in the OLE DB Programmer's Reference for other return values.

Parameters

ulRecordNum

[in] The zero-based number of the record for which to return error information.

lcid

[in] The locale ID for the error information to be returned.

pbstrDescription

[out] A pointer to a text description of the error.

pguid

[out] A pointer to the GUID of the interface that defined the error.

pdwHelpContext

[out] A pointer to the help context ID for the error.

pbstrHelpFile

[out] A pointer to a string containing the path to the help file that describes the error.

pbstrSource

[out] A pointer to a string containing the name of the component that generated the error.

Remarks

Returns all the types of error information contained in an error record.

CDBErrorInfo OverviewClass Members