System.SysUtils.CheckOSError

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

procedure CheckOSError(LastError: Integer);

C++

extern DELPHI_PACKAGE void __fastcall CheckOSError(int LastError);

Propriétés

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

Description

Vérifie une erreur du système d'exploitation.

Si le paramètre LastError est différent de ERROR_SUCCESS, CheckOSError appelle alors RaiseLastOSError.

Vous pouvez utiliser CheckOSError pour déclencher un EOSError associé au paramètre LastError.

Voir aussi