Platform SDK: TAPI

ITRendezvous::CreateDirectory

Creates a directory of given type and name.

HRESULT CreateDirectory(
  DIRECTORY_TYPE DirectoryType,
  BSTR pName,
  ITDirectory **ppDir
);

Parameters

DirectoryType
[in] The type of the directory. See DIRECTORY_TYPE.
pName
[in] Pointer to a BSTR containing the name of the directory to be created.
ppDir
[out] Pointer to receive ITDirectory object of the type specified above.

Return 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

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_TYPE