Microsoft KB Archive/97926

{|
 * width="100%"|

The Use of the SetLastErrorEx API

 * }

Q97926

-

The information in this article applies to:


 * Microsoft Win32 Application Programming Interface (API), included with:
 * the operating system: Microsoft Windows NT, versions 3.1, 3.5, 3.51
 * Microsoft Windows 95

-

SetLastErrorEx is intended for better debugging support, not for passing additional error information.

The SetLastErrorEx application programming interface (API) differs from the SetLastError API only in that it raises a debug &quot;RIP&quot; event. The RIP event is intended to give text to the debugger so that the user can retry, ignore, and so forth, these errors. SetLastErrorEx raises an exception only if SetDebugErrorLevel has been called by the debugger to allow the errors to be passed on.

The error type can be determined from the debugger by examining the debug event structure that is passed with the event. The debug event structure contains a RIP_INFO substructure.

Additional query words: 3.10 3.50 4.00

Keywords : kbOSWinNT310 kbOSWinNT350 kbOSWinNT351 kbOSWin95

Issue type :

Technology : kbAudDeveloper kbWin32sSearch kbWin32API