Return constant of last error
Returns the error constant for the last reported error. If the function did not detect an error, it returns 0.
xPCGetLastError function returns the
constant of the last reported error by another API function. This
value is reset every time you call a new function. Therefore, check
this constant value immediately after a call to an API function. For
a list of error constants and messages, see C API Error Messages.