仔细看书,delphi5开发指南上讲得已经很清楚了

解决方案 »

  1.   

    对啊。
    From Delphi Help:Checks the return value of a Windows API call and raises an appropriate exception when it indicates failure.UnitSysUtilsCategoryexception handling routinesfunction Win32Check(RetVal: BOOL): BOOL;DescriptionCall 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 RaiseLastWin32Error to raise an exception.  If the Windows function returns True, Win32Check returns True. 
      

  2.   

    调用API函数时,可以用Win32Check来进行错误检查。若API函数调用成功,它什么也不做,若不成功,它就调用另一个API函数:GetLastError来显示出错信息。