Export (0) Print
Expand All GetCanonicalName

 procedure GetCanonicalName(
  obj: DSName, extended: boolean): unicodestring

Informative summary of behavior: The GetCanonicalName function constructs the canonical name of an object by walking up its ancestors to the NC root.

 result: unicodestring
 if obj = GetDomainNC(obj) then
   return DomainDNSNameFromDomain(obj)
 /* Recurse into parent, obtain non-extended canonical name. */
 result := GetCanonicalName(obj!parent, false)
 if extended = true then
   result := result + "\n"
   result := result + "/"
 result := result + obj!name
 return result
© 2016 Microsoft