Share via


GetPCSyncName (Windows CE 5.0)

Send Feedback

This function returns the name or IP address of the desktop computer from which the LAP attempts to retrieve lock/unlock status. This value is set using SetPCSyncName.

HRESULT GetPCSyncName(WCHAR* wszNameBuffer,INT cchNameBuffer);

Parameters

  • wszNameBuffer
    Pointer to a caller-allocated buffer that this method uses to store the desktop computer name.
  • cchNameBuffer
    The size of the buffer represented by the pointer in the wszNameBuffer parameter.

Return Values

The following table shows possible return values.

Value Description
S_OK The desktop computer name was returned successfully.
E_INVALIDARG The cchNameBuffer parameter is less than or equal to 0.
E_POINTER The wszNameBuffer parameter does not point to a valid string.

Remarks

The AttemptConnection method and PC Authentication version of the LASS VerifyUser function attempt to connect to this desktop computer. For more information about the PC Authentication implementation of VerifyUser, see PC Authentication Implementation of LASS Functions.

The desktop computer name is stored in the registry as explained in more detail in PC Authentication Registry Settings.

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.