/// <summary>
 /// Method to create an object from a set of object attributes.
 /// </summary>
 /// <param name="obj_attributes">The object attributes to create/open from.</param>
 /// <returns>The newly created object.</returns>
 protected override object CreateObject(ObjectAttributes obj_attributes)
 {
     if (ParameterSetName == "All")
     {
         return(TransactionManager.GetAccessibleResourceManager(obj_attributes, Access));
     }
     return(NtResourceManager.Open(obj_attributes, Access, TransactionManager, ResourceManagerGuid));
 }
Exemple #2
0
        /// <summary>
        /// Method to create an object from a set of object attributes.
        /// </summary>
        /// <param name="obj_attributes">The object attributes to create/open from.</param>
        /// <returns>The newly created object.</returns>
        protected override object CreateObject(ObjectAttributes obj_attributes)
        {
            if (TransactionManager.Volatile)
            {
                CreateFlags |= ResourceManagerCreateOptions.Volatile;
            }

            return(NtResourceManager.Create(obj_attributes, Access,
                                            TransactionManager, ResourceManagerGuid,
                                            CreateFlags, Description));
        }