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/11 16:33,
3.238.202.29: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://www.piclist.com/techref/os/win/api/win32/func/src/f69_13.htm"> RaiseException</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.