FltCommitComplete function (fltkernel.h)
The FltCommitComplete routine acknowledges a TRANSACTION_NOTIFY_COMMIT notification.
NTSTATUS FLTAPI FltCommitComplete( [in] PFLT_INSTANCE Instance, [in] PKTRANSACTION Transaction, [in, optional] PFLT_CONTEXT TransactionContext );
Opaque instance pointer for the caller.
Opaque transaction pointer for the transaction.
[in, optional] TransactionContext
Pointer to the minifilter driver's context for the transaction. This parameter is optional and can be NULL.
FltCommitComplete returns STATUS_SUCCESS or an appropriate NTSTATUS value such as the following:
||The minifilter driver did not set a context on the transaction. This is an error code.|
This routine is available on Windows Vista and later.
A minifilter driver that is enlisted in a transaction can receive a TRANSACTION_NOTIFY_COMMIT notification when the transaction is in the process of being committed. To send the notification to the minifilter driver, the filter manager calls the minifilter driver's TransactionNotificationCallback routine. The minifilter driver acknowledges this notification in one of two ways:
- The minifilter driver's TransactionNotificationCallback routine performs any needed processing and returns STATUS_SUCCESS. In this case, the minifilter driver does not call FltCommitComplete.
- The minifilter driver's TransactionNotificationCallback routine posts any needed processing to a worker thread and returns STATUS_PENDING. After performing the processing asynchronously, the minifilter driver's work routine must call FltCommitComplete to indicate that it has finished this processing. If the minifilter driver's work routine does not call FltCommitComplete, the transaction commit operation cannot be completed by the kernel transaction manager.
To enlist in a transaction, call FltEnlistInTransaction.
To allocate a new transaction context, call FltAllocateContext.
To retrieve a transaction context, call FltGetTransactionContext.
To set a transaction context, call FltSetTransactionContext.
|Header||fltkernel.h (include Fltkernel.h)|