WlxQueryConsoleSwitchCredentials failing with ERROR_IO_PENDING



Hi all,

I am getting an error from the call to
WlxQueryConsoleSwitchCredentials(), and GetLastError() returned
ERROR_IO_PENDING (997). Does anyone know what could cause
WlxQueryConsoleSwitchCredentials() to fail with this error? What IO was
being referred to?

The flow of execution that would cause this error goes like this:

Machine start-up
LOCAL: Login - Ok
LOCAL: Logoff - Ok
(At this point, no user is logged on to the computer, and a remote
session is being initiated)
REMOTE: Login - Enter credentials
REMOTE: WlxGetConsoleSwitchCredentials() - This function has been
implemented to return UserName, Domain, Token and ProfilePath.
LOCAL: WlxLoggedOutSAS() is invoked with dwSasType ==
WLX_SAS_TYPE_AUTHENTICATED. And the call to
WlxQueryConsoleSwitchCredentials() fails with ERROR_IO_PENDING

Anyone has a clue?

Thanks,
Angkusu Pedomio

.