Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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.
WINSETUPAPI BOOL SetupQueueDeleteSectionW(
[in] HSPFILEQ QueueHandle,
[in] HINF InfHandle,
[in] HINF ListInfHandle,
[in] PCWSTR Section
);
[in] QueueHandle
Handle to a setup file queue, as returned by SetupOpenFileQueue.
[in] InfHandle
Handle to an open INF file that contains the DestinationDirs section. If ListInfHandle is not specified, InfHandle contains the section name.
[in] ListInfHandle
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.
[in] Section
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.
Note
The setupapi.h header defines SetupQueueDeleteSection as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | setupapi.h |
Library | Setupapi.lib |
DLL | Setupapi.dll |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today