예제 #1
0
 /// <summary>
 /// Get a list of all accessible enlistment objects owned by this resource manager.
 /// </summary>
 /// <param name="object_attributes">The object attributes</param>
 /// <param name="desired_access">The access for the enlistment objects.</param>
 /// <returns>The list of all accessible enlistment objects.</returns>
 public IEnumerable <NtEnlistment> GetAccessibleEnlistment(ObjectAttributes object_attributes, EnlistmentAccessRights desired_access)
 {
     return(NtTransactionManagerUtils.GetAccessibleTransactionObjects(
                Handle,
                KtmObjectType.Enlistment,
                id => NtEnlistment.Open(object_attributes, desired_access, this, id, false)));
 }
예제 #2
0
 /// <summary>
 /// Get a list of all accessible transaction objects.
 /// </summary>
 /// <param name="object_attributes">The object attributes for the object</param>
 /// <param name="transaction_manager">Optional transaction manager.</param>
 /// <param name="desired_access">The access for the transaction objects.</param>
 /// <returns>The list of all accessible transaction objects.</returns>
 public static IEnumerable <NtTransaction> GetAccessibleTransaction(ObjectAttributes object_attributes,
                                                                    TransactionAccessRights desired_access, NtTransactionManager transaction_manager)
 {
     return(NtTransactionManagerUtils.GetAccessibleTransactionObjects(
                transaction_manager.GetHandle(), KtmObjectType.Transaction,
                id => Open(object_attributes, desired_access, id, transaction_manager, false)));
 }
 /// <summary>
 /// Get a list of all accessible resource manager objects owned by this transaction manager.
 /// </summary>
 /// <param name="desired_access">The access for the resource manager objects.</param>
 /// <returns>The list of all accessible resource manager objects.</returns>
 public IEnumerable <NtResourceManager> GetAccessibleResourceManager(ResourceManagerAccessRights desired_access)
 {
     return(NtTransactionManagerUtils.GetAccessibleTransactionObjects(
                Handle,
                KtmObjectType.ResourceManager,
                id => NtResourceManager.Open(null, desired_access, this, id, false)));
 }
 /// <summary>
 /// Get a list of all accessible transaction objects owned by this transaction manager.
 /// </summary>
 /// <param name="desired_access">The access for the transaction objects.</param>
 /// <returns>The list of all accessible transaction objects.</returns>
 public IEnumerable <NtTransaction> GetAccessibleTransaction(TransactionAccessRights desired_access)
 {
     return(NtTransactionManagerUtils.GetAccessibleTransactionObjects(
                Handle,
                KtmObjectType.Transaction,
                id => NtTransaction.Open(null, desired_access, id, null, false)));
 }
예제 #5
0
 /// <summary>
 /// Get a list of all accessible transaction manager objects.
 /// </summary>
 /// <param name="object_attributes">Object attributes for opened handle.</param>
 /// <param name="desired_access">The access for the transaction manager objects.</param>
 /// <param name="options">Open options.</param>
 /// <returns>The list of all accessible transaction manager objects.</returns>
 public static IEnumerable <NtTransactionManager> GetAccessibleTransactionManager(ObjectAttributes object_attributes,
                                                                                  TransactionManagerAccessRights desired_access, TransactionManagerOpenOptions options)
 {
     return(NtTransactionManagerUtils.GetAccessibleTransactionObjects(
                SafeKernelObjectHandle.Null, KtmObjectType.TransactionManager,
                id => Open(object_attributes, desired_access, null, id, options, false)));
 }
 /// <summary>
 /// Get a list of all accessible transaction manager objects.
 /// </summary>
 /// <param name="desired_access">The access for the transaction manager objects.</param>
 /// <returns>The list of all accessible transaction manager objects.</returns>
 public static IEnumerable <NtTransactionManager> GetAccessibleTransactionManager(TransactionManagerAccessRights desired_access)
 {
     return(NtTransactionManagerUtils.GetAccessibleTransactionObjects(
                SafeKernelObjectHandle.Null, KtmObjectType.TransactionManager,
                id => Open(null, desired_access, null, id, TransactionManagerOpenOptions.None, false)));
 }