RAD Studio VCL Reference
SysUtils.Win32Check Function

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

function Win32Check(RetVal: BOOL): BOOL; platform;
BOOL Win32Check(BOOL RetVal);

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. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!