Skip to content

ADS_SCOPEENUM

The ADS_SCOPEENUM enumeration specifies the scope of a directory search.

Syntax

enum ADS_SCOPEENUM
{
  ADS_SCOPE_BASE       = 0,  //0x0
  ADS_SCOPE_ONELEVEL   = 1,  //0x1
  ADS_SCOPE_SUBTREE    = 2   //0x2
}

Constants

  • Flag

  • Description

  • ADS_SCOPE_BASE

  • Limits the search to the base object. The result contains, at most, one object.

  • ADS_SCOPE_ONELEVEL

  • Searches one level of the immediate children, excluding the base object.

  • ADS_SCOPE_SUBTREE

  • Searches the whole subtree, including all the children and the base object itself.

Remarks

If you do not explicitly set the search scope, the default is ADS_SCOPE_SUBTREE.

Requirements

Minimum required version: 2009.1