pExcepInfo
pExcepInfo is a parameter used in COM automation to convey detailed exception information from a called method back to the caller. It is a pointer to an EXCEPINFO structure and is most commonly involved when a method invoked via the IDispatch::Invoke function fails and returns the DISP_E_EXCEPTION error code. When this occurs, the callee may populate the EXCEPINFO structure pointed to by pExcepInfo with descriptive error information for the caller.
The EXCEPINFO structure contains several fields intended to describe the error in a language- and locale-independent
Usage considerations: when a method invocation uses pExcepInfo to report an error, the caller can inspect the
In practice, pExcepInfo is mainly encountered by developers implementing or consuming automation interfaces that rely on