long GetLastErrorCode()
Description
This function returns the code for the most recent error. If you call this function after a function that executed successfully (with no errors), then this function returns information about the last error that occurred during a prior function call. To avoid confusion, always call this function immediately after calling a function that returned an error.
Return Value
The code for the most recent error returned. If no errors have occurred since you created the QMF for Windows API object, zero is returned.