Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

5.70 GetNCType

 procedure GetNCType(nc: DSName) : ULONG

Informative summary of behavior: The GetNCType procedure returns the type of the NC replica.

 ncType: ULONG
  
 ncType = 0;
  
 if not AmIRODC() then
   if not nc = ConfigNC() and
      not nc = SchemaNC() and
      not nc = DefaultNC() and
      IsApplicationNC(nc) = false then
     /* the NC replica correspond to a GC partition */
     ncType := ncType + {NCT_GC_PARTIAL}
   endif
 else if
   if nc = ConfigNC() or
      nc = DefaultNC() or
      ApplicationNC(nc) = true then
     ncType := ncType + {NCT_FILTERED_ATTRIBUTE_SET, 
                         NCT_SPECIAL_SECRET_PROCESSING }
   else if nc = SchemaNC() then
      ncType := 0
    else
      ncType := ncType + {NCT_FILTERED_ATTRIBUTE_SET, 
                          NCT_GC_PARTIAL}
    endif
 endif
 return ncType
Show:
© 2015 Microsoft