Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This function raises an exception in the calling thread.
void RaiseException( DWORD dwExceptionCode , DWORD dwExceptionFlags , DWORD nNumberOfArguments , const DWORD * lpArguments );
Parameters
Note that the system will clear bit 28 of dwExceptionCode. This bit is a reserved exception bit, used by the system for its own purposes. For example, after calling the RaiseExceptionfunction with a dwExceptionCodevalue of 0xFFFFFFFF, the system displays a message indicating that the exception number is 0xEFFFFFFF.
Return Values
None.
Remarks
The RaiseExceptionfunction enables a process to use structured exception handling to handle private, software-generated, application-defined exceptions.
Raising an exception causes the exception dispatcher to go through the following search for an exception handler:
The values specified in the dwExceptionCode, dwExceptionFlags, nNumberOfArguments, and lpArgumentsparameters can be retrieved in the filter expression of a try- exceptframe-based exception handler by calling the GetExceptionInformationfunction. A debugger can retrieve these values by calling the WaitForDebugEventfunction.
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 1.0 and later | Winbase.h | Coredll.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
GetExceptionCode, GetExceptionInformation, WaitForDebugEvent