| Platform SDK: TAPI | 
Creates a new ITDirectoryObject object.
HRESULT CreateDirectoryObject( DIRECTORY_OBJECT_TYPE DirectoryObjectType, BSTR pName, ITDirectoryObject **ppDirectoryObject );
| 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. | 
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.
  Windows NT/2000: Requires Windows 2000.
  Version: Requires TAPI 3.0 or later.
  Header: Declared in Rend.h.
  Library: Use Rendid.lib.