ITRendezvous::CreateDirectory 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 CreateDirectory method creates an ITDirectory object corresponding to a directory of the given type and name.

Syntax

HRESULT CreateDirectory(
  [in]  DIRECTORY_TYPE DirectoryType,
  [in]  BSTR           pName,
  [out] ITDirectory    **ppDir
);

Parameters

[in] DirectoryType

The type of the directory. See DIRECTORY_TYPE.

[in] pName

Pointer to a BSTR containing the name of the directory to be created.

[out] ppDir

Pointer to receive an ITDirectory object of the type specified above.

Return value

This method can return one of these values.

Value Meaning
S_OK
Method succeeded.
E_OUTOFMEMORY
Insufficient memory exists to perform the operation.
E_POINTER
The pName or ppDir parameter is an invalid pointer.
E_INVALIDARG
The DirectoryType parameter is not valid.

Remarks

For directories of type DT_NTDS, pName is ignored because Rendezvous supports using only the local domain controller (DC).

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.

TAPI calls the AddRef method on the ITDirectory interface returned by ITRendezvous::CreateDirectory. The application must call Release on the ITDirectory interface to free resources associated with it.

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.

Requirements

Requirement Value
Target Platform Windows
Header rend.h
DLL Rend.dll

See also

DIRECTORY_TYPE

ITDirectory

ITRendezvous