The RaiseException function raises an exception in the calling thread.
VOID RaiseException(
DWORD dwExceptionCode, |
// exception code |
DWORD dwExceptionFlags, |
// continuable exception flag |
DWORD nNumberOfArguments, |
// number of arguments in array |
CONST DWORD *lpArguments |
// address of array of arguments |
); |
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 RaiseException function with a dwExceptionCode
value of 0xFFFFFFFF Windows displays a message indicating that the exception
number is 0xEFFFFFFF.
This function does not return a value.
The RaiseException function 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 lpArguments parameters can be retrieved in the filter expression of a try-except frame-based exception handler by calling the GetExceptionInformation function. A debugger can retrieve these values by calling the WaitForDebugEvent function.
ExitProcess, GetExceptionCode, GetExceptionInformation, WaitForDebugEvent
file: /Techref/os/win/api/win32/func/src/f69_13.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/11/4 14:48,
3.131.13.138:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://ecomorder.com/Techref/os/win/api/win32/func/src/f69_13.htm"> RaiseException</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to ecomorder.com! |
.