The SetupSetSourceList function allows the caller to set the list of installation sources for either the current user or the system (common to all users).
BOOL SetupSetSourceList(
DWORD Flags, // type of source list
PCTSTR *SourceList, // array of sources listed
UINT SourceCount // number of sources in the array
);
Important
If a temporary list is set, sources will not be added to or deleted from the system or user lists, even if subsequent calls to SetupAddToSourceList or SetupRemoveFromSourceList explicitly specify those lists.
Note One of the SRCLIST_SYSTEM, SRCLIST_USER, or SRCLIST_TEMPORARY flags must be specified. SRCLIST_NOBROWSE
The user is not allowed to add or change sources when SetupPromptForDisk is used. This flag is typically used in combination with the SRCLIST_TEMPORARY flag.
If the function succeeds, the return value is a non-zero value.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
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, SetupAddToSourceList, SetupCancelTemporarySourceList, SetupRemoveFromSourceList