Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SetupRemoveFromSourceList Function

[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 SetupRemoveFromSourceList function removes a value from the list of installation sources for either the current user or the system. The system and user lists are merged at run time.

A caller of this function is required have administrative privileges, otherwise the function fails.

Syntax

BOOL SetupRemoveFromSourceList(
  __in  DWORD Flags,
  __in  PCTSTR Source
);

Parameters

Flags [in]

Specifies which source to remove from the list. This parameter can be any combination of the following values.

SRCLIST_SYSTEM

Remove the source to the per-system list. The caller must be an administrator.

SRCLIST_USER

Remove the source to the per-user list.

SRCLIST_SYSIFADMIN

If the caller is an administrator, the source is removed from the per-system list; if the caller is not an administrator, the source is removed from the per-user list for the current user.

Note  If a temporary list is currently in use (see SetupSetSourceList), the preceding flags are ignored and the source is removed from the temporary list.

SRCLIST_SUBDIRS

Remove all subdirectories of the source.

Source [in]

Pointer to a null-terminated string that specifies the source to remove from the list.

Return Value

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.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Setupapi.h

Library

Setupapi.lib

DLL

Setupapi.dll

Unicode and ANSI names

SetupRemoveFromSourceListW (Unicode) and SetupRemoveFromSourceListA (ANSI)

See Also

Overview
Functions
SetupAddToSourceList
SetupSetSourceList

 

 

Build date: 8/19/2010

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.