TBlockSerial.SerialCheck
TBlockSerial

function SerialCheck(SerialResult: Integer): Integer;

Unit
SynaSer

Description
If you "manually"call API functions, forward their return code as parameter to this function, which evaluates it, eventually calls GetLastError and found error code returns and stores to LastError.