RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.RaiseLastWin32Error Function

Raises an exception for the last occurring Win32 error.

Pascal
procedure RaiseLastWin32Error; deprecated;
C++
RaiseLastWin32Error();

SysUtils

Call RaiseLastWin32Error to raise an EWin32Error exception for the last Windows API call that failed. RaiseLastWin32Error retrieves the code for the last occurring Win32 error, if any. If Windows returns a previously occurring error code, RaiseLastWin32Error raises an EWin32Error exception with the error code and message associated with that error.

Note: RaiseLastWin32Error is a deprecated Windows-only procedure. New applications should use RaiseLastOSError instead.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!