Calling the Default Queue Callback Routine

If the default queue callback routine is initialized and specified when SetupCommitFileQueue is called, the queue calls the default queue callback routine internally and you need do nothing more.

If you create a filter callback routine that relies on the default queue callback routine to handle a subset of the queue notifications, your filter callback routine must call SetupDefaultQueueCallback explicitly.

Important

When you call SetupDefaultQueueCallback explicitly, you must pass in the void pointer returned by either SetupInitDefaultQueueCallback or SetupInitDefaultQueueCallbackEx.

 

Note

One way to do this is to create a context structure for your custom callback routine that includes as one of its members the void pointer returned by SetupInitDefaultQueueCallback or SetupInitDefaultQueueCallbackEx.