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 |