[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 SetupQueueDeleteSection function queues all the files in a section of an INF file for deletion. The section must be in the correct Delete Files format and the INF file must contain a DestinationDirs section.
BOOL SetupQueueDeleteSection( __in HSPFILEQ QueueHandle, __in HINF InfHandle, __in HINF ListInfHandle, __in PCTSTR Section );
- QueueHandle [in]
Handle to a setup file queue, as returned by SetupOpenFileQueue.
- InfHandle [in]
Handle to an open INF file that contains the DestinationDirs section. If ListInfHandle is not specified, InfHandle contains the section name.
- ListInfHandle [in]
Optional handle to an open INF file that contains the section to queue for deletion. If ListInfHandle is not specified, InfHandle is assumed to contain the section name.
- Section [in]
Pointer to a null-terminated string that specifies the name of the section to be queued for deletion.
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.
This function requires a Windows INF file. Some older INF file formats may not be supported.
Minimum supported client
|Windows 2000 Professional|
Minimum supported server
|Windows 2000 Server|
Unicode and ANSI names
|SetupQueueDeleteSectionW (Unicode) and SetupQueueDeleteSectionA (ANSI)|
Build date: 8/19/2010