Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IErrorInfo::GetGUID method

Returns the globally unique identifier (GUID) of the interface that defined the error.

Syntax


HRESULT GetGUID(
  [out] GUID *pGUID
);

Parameters

pGUID [out]

A pointer to a GUID, or GUID_NULL, if the error was defined by the operating system.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

IErrorInfo::GetGUID returns the GUID of the interface that defined the error. If the error was defined by the system, IErrorInfo::GetGUID returns GUID_NULL.

This GUID does not necessarily represent the source of the error. The source is the class or application that raised the error. Using the GUID, an application can handle errors in an interface, independent of the class that implements the interface.

Requirements

IDL

OaIdl.idl

See also

IErrorInfo

 

 

Show:
© 2017 Microsoft