|
QLIB-function: QAPIGetLastErrorCode
Retrieves the calling thread's extended last-error code value
ULONG QAPIGetLastErrorCode(void);
Return value
The return value is the calling thread's extended last-error code value.
Commands
You should call the QAPIGetLastErrorCode function immediately when a QAPIGetLastError function's returns ERROR_GETLASTERROR or ERROR_WSAGETLASTERROR. If QAPIGetLastError returns an ERROR_GETLASTERROR then QAPIGetLastErrorCode returns an operating system specific error code. It is the return code the operating system has returned when the QLIB called the kernel function GetLastError(). Read more details in the Microsoft Windows SDK Helpfile for the API function GetLastError().In the case of ERROR_WSAGETLASTERROR there was a WinSock error during remote networking. In this case the function QAPIGetLastErrorCode returns the return code the operating system has returned when the QLIB called the WinSock DLL WSAGetLastError() function.Read more details in the Microsoft Windows SDK Helpfile for the API function WSAGetLastError().
Back to the QLIB overview
|