RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.Win32Check Function

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

Pascal
function Win32Check(RetVal: BOOL): BOOL; platform;
C++
BOOL Win32Check(BOOL RetVal);

SysUtils

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!