Platform SDK: Active Directory, ADSI, and Directory Services

IDsDisplaySpecifier::IsClassContainer

The IDsDisplaySpecifier::IsClassContainer method determines if a given object is a container.

BOOL IsClassContainer(
  LPCWSTR pszObjectClass,
  LPCWSTR pszAdsPath,
  DWORD dwFlags
);

Parameters

pszObjectClass
[in] Name of the object class.
pszAdsPath
[in] ADsPath of an class object that is be bound to in the display specifier and whose schema information can be fetched from the schema.
dwFlags
[in] A flag indicating how the method determines if the object is a container: If DSICCF_IGNORETREATASLEAF is set for this flag, the treatAsLeaf attribute in the display specifier is ignored and only the schema information is used.

Return Values

The method returns TRUE if the specified class is a container. Otherwise it returns FALSE.

Remarks

The method uses the schema information and/or a display specifier attribute to determine if an object class is a container. The class is a container if the schema indicates that the class can contain other objects. The "treatAsLeaf" attribute found in the display specifier is used to override this setting. This applies to both the admin tools and client UI.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Dsclient.h.
  Library: Included as a resource in Dsuiext.dll.

See Also

Active Directory Display Interfaces, IDsDisplaySpecifier