Check out the error code with the GetLastError.