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

SetupQueueRenameSection 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 SetupQueueRenameSection function queues a section in an INF file for renaming. The section must be in the correct rename list section format and the INF file must contain a DestinationDirs section.

Syntax

BOOL SetupQueueRenameSection(
  __in  HSPFILEQ QueueHandle,
  __in  HINF InfHandle,
  __in  HINF ListInfHandle,
  __in  PCTSTR Section
);

Parameters

QueueHandle [in]

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

InfHandle [in]

Handle to the INF file that contains the DestinationDirs section. If ListInfHandle is not specified, InfHandle contains the section name.

ListInfHandle [in]

Optional handle to an INF file that contains the section to queue for renaming. If ListInfHandle is not specified, InfHandle is assumed to contain the section name.

Section [in]

Name of the section to be queued for renaming.

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

You cannot queue file moves with SetupQueueRenameSection because the form of a rename list section limits section renaming to within the same directory.

This function requires a Windows INF file. Some older INF file formats may not be supported.

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

SetupQueueRenameSectionW (Unicode) and SetupQueueRenameSectionA (ANSI)

See Also

Overview
Functions
SetupQueueCopySection
SetupQueueDeleteSection
SetupQueueRename

 

 

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.