ITDirectoryObjectUser::put_IPPhonePrimary method (rend.h)

[Rendezvous IP Telephony Conferencing controls and interfaces are not available for use in Windows Vista, Windows Server 2008, and subsequent versions of the operating system. The RTC Client API provides similar functionality.]

The put_IPPhonePrimary method sets the name of a machine as the primary IP phone for a user.


HRESULT put_IPPhonePrimary(
  BSTR pName



Pointer to the BSTR representation of the user's IP primary phone.

Return value

This method can return one of these values.

Return code Description
Method succeeded.
Invalid pointer.


This method can be used only on a new object that is subsequently added to the directory. If an application wants to modify the IP phone of an existing user object, it has to enumerate the objects from the server to determine the old IP phones are. This implies that a TAPI 3 application is running on one or more other machines. The application on a local machine has no information about whether those other applications are still running. Therefore, it is not the application's place to change the IP Phone on existing user objects.

To modify an existing user's IP Phone, the user must be deleted and re-added.

The application must use SysAllocString to allocate memory for the pName parameter and use SysFreeString to free the memory when the variable is no longer needed.

This function may send data over the wire in unencrypted form; therefore, someone eavesdropping on the network may be able to read the data. The security risk of sending the data in clear text should be considered before using this method.


Target Platform Windows
Header rend.h
DLL Rend.dll

See also