[This function is available for use in the operating systems indicated in the Requirements section. It may be altered or unavailable in subsequent versions. SetupAPI should no longer be used for installing applications. Instead, use the Windows Installer for developing application installers. SetupAPI continues to be used for installing device drivers.]
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( __in DWORD Flags, __in PCTSTR *SourceList, __in UINT SourceCount );
- Flags [in]
Specifies the type of list. This parameter can be a combination of the following values.
The list is the per-system Most Recently Used (MRU) list stored in the registry. The caller must be a member of the administrators local group.
The list is the per-user MRU list stored in the registry.
The specified list is temporary and will be the only list accessible to the current process until SetupCancelTemporarySourceList is called or SetSourceList is called again.
Important If a temporary list is set, sources are not 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.
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.
- SourceList [in]
Pointer to an array of strings to use as the source list, as specified by the Flags parameter.
- SourceCount [in]
Number of elements in the array pointed to by SourceList.
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Minimum supported client
|Windows 2000 Professional|
Minimum supported server
|Windows 2000 Server|
Unicode and ANSI names
|SetupSetSourceListW (Unicode) and SetupSetSourceListA (ANSI)|
Build date: 8/19/2010