Export (0) Print
Expand All
Expand Minimize
1 out of 3 rated this helpful - Rate this topic

SetupUninstallOEMInf 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 SetupUninstallOEMInf function uninstalls a specified .inf file and any associated .pnf file. If the .inf file was installed with a catalog for signing drivers, the catalog is also removed. A caller of this function must have administrative privileges, otherwise the function fails.

Syntax

BOOL SetupUninstallOEMInf(
  __in  PCWSTR InfFileName,
  __in  DWORD Flags,
  __in  PVOID Reserved
);

Parameters

InfFileName [in]

File name, without path, of the .inf file in the Windows Inf directory that is to be uninstalled.

Flags [in]

This parameter can be set as follows.

FlagMeaning
SUOI_FORCEDELETE
0x0001

The SetupUninstallOEMInf function first checks whether there are any devices installed using the .inf file. A device does not need to be present to be detected as using the .inf file.

If this flag is not set and the function finds a currently installed device that was installed using this .inf file, the .inf file is not removed.

If this flag is set, the .inf file is removed whether the function finds a device that was installed with this .inf file.

 

Reserved [in]

Set to null.

Return Value

TRUE

The function succeeded.

FALSE

The function failed. For extended error information, call GetLastError.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Setupapi.h

Library

Setupapi.lib

DLL

Setupapi.dll

Unicode and ANSI names

SetupUninstallOEMInfW (Unicode) and SetupUninstallOEMInfA (ANSI)

See Also

Overview
Functions
SetupCopyOEMInf

 

 

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.