Directory Services

IDsDisplaySpecifier::IsClassContainer

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

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

Parameters

pszObjectClass
[in] Pointer to a null-terminated Unicode string that contains the name of the object class to determine if it is a container. Examples of the object class name are "user" and "container".
pszAdsPath
[in] Pointer to a null-terminated Unicode string that contains the ADsPath of a class object that can be bound to in the display specifier container and whose schema data can be obtained.
dwFlags
[in] Contains flags that modify the behavior of this method. This can be zero or the following flag.
Value Meaning
DSICCF_IGNORETREATASLEAF The treatAsLeaf attribute in the display specifier is ignored and only the schema data is used to determine if the class is a container.

Return Values

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

Remarks

The method uses the schema data and/or the treatAsLeaf attribute of the display specifier to determine if an object class is a container. The object class is determined to be a container if the schema indicates that the class can contain other objects. The treatAsLeaf attribute of the display specifier can be used to override the schema indicator.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Header: Declared in Dsclient.h.

See Also

IDsDisplaySpecifier, Active Directory Display Interfaces