[WUA APIs]AutomatciUpdates

AutomaticUpdates

文中信息皆來自MSDN,鏈接如下:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa385821(v=vs.85).aspx

IAutomaticUpdates interface

Contains the functionality of Automatic Updates.

成員

IAutomaticUpdates接口派生自IDispatch接口,擁有該接口的所有成員。

方法

方法 描述
DetectNow 若更新未開始,則啓動自動更新
EnableService 啓用所有自動更新所需的組件
Pause 暫停自動更新
Resume 恢復被暫停的自動更新
ShowSettingsDialog 顯示自動更新配置對話框

屬性

IAutomaticUpdates接口所擁有的屬性。

屬性 權限 描述
ServiceEnabled 只讀 返回所有自動更新組件是否已啓動的標識(Boolean,應該是BOOL而非bool)
Settings 只讀 獲取自動更新的配置信息

注意

可使用 Microsoft.Update.AutoUpdate標識符通過AutomaticUpdates核心組件創建該接口。

使用需求

需求 描述
最低客戶機要求 Windows XP, Windows 2000 Pro with SP3(僅適用於桌面應用)
最低服務器要求 Windows Server 2003, Windows 2000 Server with SP3(僅適用於桌面應用)
頭文件 Wuapi.h
IDL Wuapi.idl
靜態庫 Wuguid.lib
動態庫 Wuapi.dll
IID IID_IAutomaticUpdates is defined as 673425BF-C082-4C7C-BDFD-569464B8E0CE

新版本請看 IAutomaticUpdates2

IAutomaticUpdate2

IAutomaticUpdates2派生自IAutomaticUpdates接口。

方法

方法 描述
Results 返回一個IAuotmaticUpdatesResults接口指針

注意

與IAutomaticUpdates接口一致。

使用需求

需求 描述
最低客戶機要求 Windows XP, Windows 2000 Pro with SP3(僅適用於桌面應用)
最低服務器要求 Windows Server 2003, Windows 2000 Server with SP3(僅適用於桌面應用)
頭文件 Wuapi.h
IDL Wuapi.idl
靜態庫 Wuguid.lib
動態庫 Wuapi.dll
IID IID_IAutomaticUpdates2 is defined as 4A2F5C31-CFD9-410E-B7FB-29A653973A0F
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章