Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetupQueueDelete
Collapse the table of content
Expand the table of content

SetupQueueDelete 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 SetupQueueDelete function places an individual file delete operation on a setup file queue.

Syntax


BOOL SetupQueueDelete(
  _In_  HSPFILEQ QueueHandle,
  _In_  PCTSTR PathPart1,
  _In_  PCTSTR PathPart2
);

Parameters

QueueHandle [in]

Handle to a setup file queue, as returned by SetupOpenFileQueue.

PathPart1 [in]

Pointer to a null-terminated string that specifies the first part of the path of the file to be deleted. If PathPart2 is NULL, PathPart1 is the full path of the file to be deleted.

PathPart2 [in]

Pointer to a null-terminated string that specifies the second part of the path of the file to be deleted. This parameter may be NULL. This is appended to PathPart1 to form the full path of the file to be deleted. The function checks for and collapses duplicated path separators when it combines PathPart1 and PathPart2.

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.

Remarks

Because delete operations are assumed to take place on fixed media, the user will not be prompted when the queue is committed.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Setupapi.h

Library

Setupapi.lib

DLL

Setupapi.dll

Unicode and ANSI names

SetupQueueDeleteW (Unicode) and SetupQueueDeleteA (ANSI)

See also

Overview
Functions
SetupQueueCopy
SetupQueueDeleteSection
SetupQueueRename

 

 

Community Additions

ADD
Show:
© 2015 Microsoft