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.
- 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
Build date: 8/19/2010