大网数据广告活动
Windows 系统接口

UninstallComponent function

· 52CE 我爱测

The GUID of the exception component being uninstalled.

Removes an exception package.

Syntax

void UninstallComponent(
  _In_opt_ const GUID  *CompGuid,
  _In_           DWORD Flags,
  _In_opt_       INT   VerMajor,
  _In_opt_       INT   VerMinor,
  _In_opt_       INT   VerBuild,
  _In_opt_       INT   VerQFE
);

Parameters

CompGuid [in, optional]

The GUID of the exception component being uninstalled.

Flags [in]

The flags used to control installation behaviors. This parameter can be a combination of the following values.

Value Meaning
COMP_FLAGS_NOUI Suppresses all UI.
COMP_FLAGS_UPDATE_DLLCACHE Forces the DLLCACHE directory to be updated when a system file is updated.
COMP_FLAGS_USE_SVCPACK_CACHE Uses files cached by a Windows service pack install to supersede files backed up.

VerMajor [in, optional]

The major version of the Exception component to be uninstalled.

VerMinor [in, optional]

The minor version of the Exception component to be uninstalled.

VerBuild [in, optional]

The build version of the Exception component to be uninstalled.

VerQFE [in, optional]

The hotfix revision of the Exception component to be uninstalled.

Return value

This function does not return a value.

Remarks

Exception packages are Windows system files that are released outside of a full package Windows release and that update operating-system files. Exception packages are authored only by operating-system teams that have been granted authorization to update Windows system files.

To install and uninstall files that are not protected by Windows File Protection, use the functions documented in General Setup Functions. To install device drivers, venders should use functions documented in Device Installation Functions and PnP Configuration Manager Functions.

This function has no associated import library or header file; you must call it by using the LoadLibrary and GetProcAddress functions.

Requirements

Requirement Value
DLL Msoobci.dll

See also

InstallComponentW

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。