Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Triggers the Global Error Handler when an unhandled exception occurs.
Syntax
HRESULT RoReportUnhandledError(
[in] IRestrictedErrorInfo *pRestrictedErrorInfo
);
Parameters
[in] pRestrictedErrorInfo
The error to report. Call the GetRestrictedErrorInfo function to get the IRestrictedErrorInfo that represents the error.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The RoReportUnhandledError function enables language projections to trigger execution of the Global Error Handler when an exception reaches the top of the stack, which normally would terminate the application.
Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | roerrorapi.h |
| Library | Runtimeobject.lib |
| DLL | Api-ms-win-core-winrt-error-l1-1-1.dll |