CDBErrorInfo::GetErrorRecords

Gets error records for the specified object.

HRESULT GetErrorRecords( 
   IUnknown* pUnk, 
   const IID& iid, 
   ULONG* pcRecords  
) throw( ); 
HRESULT GetErrorRecords( 
   ULONG* pcRecords  
) throw( );

Parameters

  • pUnk
    [in] Interface to the object for which to get error records.

  • iid
    [in] The IID of the interface associated with the error.

  • pcRecords
    [out] A pointer to the (one-based) count of error records.

Return Value

A standard HRESULT.

Remarks

Use the first form of the function if you want to check which interface to get the error information from. Otherwise, use the second form.

Requirements

Header: atldbcli.h

See Also

Reference

CDBErrorInfo Class