SetupDefaultQueueCallback  2CRX8V. 

[New - Windows NT]

The SetupDefaultQueueCallback function is the default queue callback routine included with the Setup API. You can use it to process notifications sent by the SetupCommitFileQueue1ADS_1C function.

UINT SetupDefaultQueueCallback(

    PVOID Context,

// context used by the default callback routine

    UINT Notification,

// queue notification

    UINT Param1,

// additional notification information

    UINT Param2

// additional notification information

   );

 

 

Parameters

Context

Supplies a pointer to the context initialized by the SetupInitDefaultQueueCallbackXJWK5Z or SetupInitDefaultQueueCallbackEx3T..3. functions.

Notification

Supplies the notification of a queue action. This parameter can be one of the following values:

SPFILENOTIFY_STARTQUEUETDNI4L

Started enqueued file operations.

SPFILENOTIFY_ENDQUEUECH5FJ0

Finished enqueued file operations.

SPFILENOTIFY_STARTSUBQUEUE13PKOHI

Started a copy, rename, or delete subqueue.

SPFILENOTIFY_ENDSUBQUEUE3QC.UZT

Finished a copy, rename, or delete subqueue.

SPFILENOTIFY_STARTRENAME175.8I6

Started a rename operation.

SPFILENOTIFY_ENDRENAMEGNWC93

Finished a rename operation.

SPFILENOTIFY_RENAMEERROR40IOAS

Encountered an error while renaming a file.

SPFILENOTIFY_STARTDELETE6VY_8Q

Started a delete operation.

SPFILENOTIFY_ENDDELETEVX6FWC

Finished a delete operation.

SPFILENOTIFY_DELETEERRORQ5J0QN

Encountered an error while deleting a file.

SPFILENOTIFY_STARTCOPYVV080K

Started a copy operation.

SPFILENOTIFY_ENDCOPY7CCU_QN

Finished a copy operation.

SPFILENOTIFY_COPYERROR7GQX77

Encountered an error while copying a file.

SPFILENOTIFY_NEEDMEDIA12KBD3A

New media is required.

SPFILENOTIFY_LANGMISMATCHZO9YCN

Existing target file is in a different language than the source.

SPFILENOTIFY_TARGETEXISTS18E8TZM

Target file exists.

SPFILENOTIFY_TARGETNEWER1_BG4LY

Existing target file is newer than source.

 

Param1

Specifies additional message information. The content of this parameter depends on the value of the Notification parameter.

Param2

Specifies additional message information. The content of this parameter depends on the value of the Notification parameter.

 

Return Values

Returns an unsigned integer to SetupCommitFileQueue that can be the following values.

File Directive

Description

FILEOP_ABORT

Abort the operation.

FILEOP_DOIT

Perform the file operation.

FILEOP_SKIP

Skip the operation.

FILEOP_RETRY

Retry the operation.

FILEOP_NEWPATH

Get a new path for the operation.

 

Remarks

The SetupDefaultQueueCallback function is usually only called explicitly by a custom queue callback routine. The custom callback handles a subset of the queue commit notifications and calls the SetupDefaultQueueCallback function to handle the rest of the notifications.

For more information see, Queue NotificationsBETQ8Q.

See Also

SetupCommitFileQueue