The SetupInitDefaultQueueCallback function initializes the context used by the default queue callback routine included with the Setup API in the same manner as SetupInitDefaultQueueCallback, except that an additional window is provided to the callback function to accept progress messages.
PVOID SetupInitDefaultQueueCallbackEx(
HWND OwnerWindow, // parent of callback dialog boxes
HWND AlternateProgressWindow, // handle to progress window
UINT ProgressMessage, // specifies progress message
DWORD Reserved1, // wParam of a window message
PVOID Reserved2 // lParam of a window message
);
A pointer to the context used by the default queue callback routine.
To get extended error information, call GetLastError.
When the queue starts to commit the copy sub queue, the default queue callback routine will send a message to the window specified in AlternateProgressWindow. Reserved1 will have the value 0, and Reserved2 will contain a pointer to the number of enqueued file copy operations.
For each file copy operation completed, the default queue callback routine will send a message to AlternateProgressWindow, which can be used to 'tick' the progress bar. Reserved1 will have the value 1, and Reserved2 will be 0.
SetupInitDefaultQueueCallbackEx can be used to get the default behavior for disk prompting, error handling, and so on, and also provide a gauge embedded in a wizard page or other specialized dialog box.
Windows NT: Use version 4.0 and later.
Windows: Use Windows 95 and later.
Windows CE: Unsupported.
Header: Declared in setupapi.h.
Import Library: Link with setupapi.lib.
Overview, Functions, SetupInitDefaultQueueCallback