4.1.10.5.22 GetOptionalFeatureBit

 procedure GetOptionalFeatureBit(featureGuid: GUID, var bit: integer): boolean

Informative summary of behavior: The GetOptionalFeatureBit procedure obtains the bit number in the dwFlagsExt and dwExtCaps fields of the DRS_EXTENSIONS_INT structure that corresponds to the optional feature identified by featureGuid.

 if (featureGUID = GUID of Recycle Bin optional feature)
     /* [MS-ADTS] section 6.1.1.2.4.1.3.1 */
     bit := DRS_EXT_RECYCLE_BIN
     return true
 else
     return false
 endif