5.78 GetForestFunctionalLevel

 procedure GetForestFunctionalLevel(): integer

The GetForestFunctionalLevel procedure returns the forest functional level (see [MS-ADTS] section 6.1.4.4).

  
 partitionsContainer: DSName
 partitionsContainer:= DescendantObject(ConfigNC(), "CN=Partitions,")
 if partitionsContainer!msDS-Behavior-Version = null then
   return DS_BEHAVIOR_WIN2000
 else
   return partitionsContainer!msDS-Behavior-Version
 endif