{ RaiseLastOSError calls GetLastError to retrieve the code for<br> the last occuring error in a call to an OS or system library function.<br> If GetLastError returns an error code, RaiseLastOSError raises<br> an EOSError exception with the error code and a system-provided<br> message associated with with error. }<br><br>procedure RaiseLastOSError;<br><br>{$IFDEF MSWINDOWS}<br>procedure RaiseLastWin32Error; deprecated; // use RaiseLastOSError<br><br>procedure RaiseLastWin32Error;<br>begin<br> RaiseLastOSError;<br>end;<br><br>你直接调用RaiseLastOSError行了