AutomaticUpdatesPermissionType 列舉 (wuapi.h)

定義設定 IAutomaticUpdatesSettings 介面或 IAutomaticUpdatesSettings 介面之 NotificationLevel 属性的可能方式,或 IAutomaticUpdatesSettings2 介面的 IncludeRecommendedUpdates 属性。

Syntax

typedef enum tagAutomaticUpdatesPermissionType {
  auptSetNotificationLevel = 1,
  auptDisableAutomaticUpdates = 2,
  auptSetIncludeRecommendedUpdates = 3,
  auptSetFeaturedUpdatesEnabled = 4,
  auptSetNonAdministratorsElevated = 5
} AutomaticUpdatesPermissionType;

常數

 
auptSetNotificationLevel
值: 1
設定 IAutomaticUpdatesSettings::NotificationLevel 屬性的能力。
auptDisableAutomaticUpdates
值: 2
IAutomaticUpdatesSettings::NotificationLevel 屬性設定為 aunlDisabled 的能力。
auptSetIncludeRecommendedUpdates
值: 3
設定 IAutomaticUpdatesSettings2::IncludedRecommendedUpdates 屬性的能力。
auptSetFeaturedUpdatesEnabled
值: 4
設定 IAutomaticUpdatesSettings3::FeaturedUpdatesEnabled 屬性的能力。
auptSetNonAdministratorsElevated
值: 5
設定 IAutomaticUpdatesSettings3::NonAdministratorsElevated 屬性的能力。

備註

只有 Windows Vista 和更新版本才支援精選更新通知。 在執行支援 IAutomaticUpdatesSettings3 Windows Update Agent (WUA) 版本的 Windows XP 系統上,IAutomaticUpdatesSettings3::FeaturedUpdatesEnabled 值一律會VARIANT_FALSE,而嘗試改變其值將會導致錯誤。

只有在開啟自動 匯報 時,才支援精選更新通知。 如果 [自動 匯報 設定為「永遠不要檢查更新 (不建議) 」,則 IAutomaticUpdatesSettings3::FeaturedUpdatesEnabled 值一律會VARIANT_FALSE,而且嘗試改變其值會導致錯誤。

只有特定更新服務才支援精選更新通知。 目前唯一支援的更新服務是 Microsoft Update。 如果 [自動 匯報 目前設定為從 Windows Update 或 WSUS 伺服器) 接收另一個服務 (的更新,則 IAutomaticUpdatesSettings3::FeaturedUpdatesEnabled 值一律會VARIANT_FALSE,而嘗試改變其值將會產生錯誤。

規格需求

需求
最低支援的用戶端 Windows XP、Windows 2000 Professional 與 SP3 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003、Windows 2000 Server 與 SP3 [僅限桌面應用程式]
標頭 wuapi.h