次の方法で共有


AttemptConnection (Windows CE 5.0)

Send Feedback

This function attempts to connect to the associated desktop computer to determine if the desktop computer is locked or unlocked. Its operation is the same as the PC Authentication implementation of the LASS VerifyUser function, except that the connection attempt only times out when a much longer period of time has expired, as explained in more detail in the Remarks.

For more information about the PC Authentication implementation of VerifyUser, see PC Authentication Implementation of LASS Functions.

DWORD AttemptConnection();

Parameters

None.

Return Values

This function returns a VOIPLAP_S_ value if the desktop computer is contacted successfully and its lock/unlock status is determined. Otherwise, it returns a VOIPLAP_E_ value.

Remarks

This function blocks until a response is received or the timeout value expires.

This function times out if a response is not received from the desktop computer in the number of milliseconds represented by the c_cmsNormalTimeout constant. The PC Authentication version of the VerifyUser function performs the same steps as this function but times out in a much shorter time, represented by c_cmsNormalTimeout. Both constants are defined in %_WINCEROOT%\Public\VoIP\Oak\Phone\Lap\Sync\PCQueryBot.cpp.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Voiplap.h.

See Also

PC Authentication Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.