Return constant of last error
Do not use this C API type definition. Support for this type definition relies on support for the C API, which will be removed in a future release.
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.