System.SysUtils.CheckOSError
Delphi
procedure CheckOSError(LastError: Integer);
C++
extern DELPHI_PACKAGE void __fastcall CheckOSError(int LastError);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Checks an OS error.
If the LastError parameter is other than ERROR_SUCCESS, then CheckOSError calls RaiseLastOSError.
You can use CheckOSError to raise an EOSError associated with the LastError parameter.