System.SysUtils.RaiseLastWin32Error

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RaiseLastWin32Error;

C++

extern DELPHI_PACKAGE void __fastcall RaiseLastWin32Error _DEPRECATED_ATTRIBUTE1("Use RaiseLastOSError") (void);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Warning: RaiseLastWin32Error is deprecated. Please use RaiseLastOSError.

Raises an exception for the last occurring Win32 error.

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.

See Also