Determining PC Lock Status by Calling the LAP Directly (Windows CE 5.0)
When using LASS, the LAP should return a success or failure response in a small amount of time (typically less than two seconds). To accomplish this, the PC Authentication VerifyUser implementation times out if it doesn't receive a response from the desktop computer in less than two seconds. For more information about the PC Authentication implementation of VerifyUser, see PC Authentication LAP Implementation.
In some cases you may prefer that the LAP wait for a longer period of time. To accomplish this, the PC Authentication LAP provides the AttemptConnection function. This function connects to the desktop computer application and performs the same task as the LAP VerifyUser function. However, in contrast to the PC Authentication VerifyUser function, AttemptConnection waits for a much longer period of time before timing out.
For detailed example code that demonstrates calling AttemptConnection, see the Telephony User Interface (TUI) OnTieClick method in %_WINCEROOT%\Public\VoIP\OAK\Phone\TUI\State\TieToPCState.cpp.
To examine or change the timeout values, see the c_cmsNormalTimeout and c_cmsExtendedTimeout constants in %_WINCEROOT%\Public\VoIP\Oak\Phone\Lap\Sync\PCQueryBot.cpp.
See Also
PC Authentication Application Development
Send Feedback on this topic to the authors