Partager via


IErrorInfo::GetSource

This method returns the language-dependent programmatic identifier for the class or application that raised the error.

HRESULT GetSource( 
  BSTR* pBstrSource 
);

Parameters

  • pBstrSource
    [out] Pointer to a string that contains a programmatic identifier, in the form progname.objectname.

Return Values

If the method succeeds, the return value is S_OK.

Remarks

Use GetSource to determine the class or application that is the source of the error. The language for the returned programmatic identifier depends on the locale identifier (LCID) that was passed into the method at the time of invocation.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Oaidl.h, Oaidl.idl.
Link Library: Oleaut32.lib, Uuid.lib.

See Also

IErrorInfo

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.