Platform SDK: TAPI

ITRendezvous::CreateDirectoryObject

Creates a new ITDirectoryObject object.

HRESULT CreateDirectoryObject(
  DIRECTORY_OBJECT_TYPE DirectoryObjectType,
  BSTR pName,
  ITDirectoryObject **ppDirectoryObject
);

Parameters

DirectoryObjectType
[in] The type of the object. See DIRECTORY_OBJECT_TYPE.
pName
[in] Pointer to a BSTR containing the name of the object.
ppDirectoryObject
[out] Pointer to receive the interface pointer for the newly created ITDirectoryObject object.

Return Values

Value Meaning
S_OK Method succeeded.
E_INVALIDARG The DirectoryObjectType parameter is not valid.
E_OUTOFMEMORY Insufficient memory exists to perform the operation.
E_POINTER Pointer is invalid.

Remarks

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.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Version: Requires TAPI 3.0 or later.
  Header: Declared in Rend.h.
  Library: Use Rendid.lib.

See Also

ITRendezvous, DIRECTORY_OBJECT_TYPE