Committing a Queue

After all the desired file operations have been queued, the queue must be committed. This causes the enqueued file operations to be processed.

To commit the file queue, call the SetupCommitFileQueue function, specifying a callback routine. The callback routine will receive notifications from SetupCommitFileQueue as the file operations are processed. If you want to use the default queue callback routine, you must first initialize the necessary context by calling either SetupInitDefaultQueueCallback or SetupInitDefaultQueueCallbackEx. For more information about the default queue callback routine, see Default Queue Callback Routine.

Note SetupCommitFileQueue should be called before the queue is closed. Any operations that are uncommitted when SetupCloseFileQueue is called will not be performed.