Show: Delphi C++
Display Preferences

System.SysUtils.Win32Check

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Win32Check(RetVal: BOOL): BOOL;

C++

extern DELPHI_PACKAGE System::LongBool __fastcall Win32Check(System::LongBool RetVal);

Properties

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

Description

Checks the return value of a Windows API call and raises an appropriate exception when it indicates failure.

Call Win32Check with the return value of a Windows API call that returns a Boolean to indicate success or failure. If the Windows API returns False (indicating failure), Win32Check calls RaiseLastOSError to raise an exception. If the Windows function returns True, Win32Check returns True.

Win32Check is available on Windows only.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance