[WUA APIs]AutomatciUpdatesSettings

来源:互联网 发布:淘宝新店旺旺提取神器 编辑:程序博客网 时间:2024/05/21 07:00

AutomaticUpdatesSettings

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

IAutomaticUpdatesSettings interface

Contains the settings that are available in Automatic Updates.

成员

IAutomaticUpdatesSettings派生自IDispatch接口,故拥有该接口的所有成员。

方法

方法 描述 Refresh 检索最新的自动更新配置 Save 保存当前的自动更新配置

属性

属性 权限 描述 NotificationLevel 读写 获取通知用户Windows自动更新事件的方式 ReadOnly 只读 检测自动更新设置是否为只读(Boolean) Required 只读 检测策略组是否需要自动更新服务(Boolean) ScheduledInstallationDay 读写 获取或设置自动更新安装或卸载的日期,一周内的某一天 ScheduledInstallationTime 读写 获取或设置自动更新安装或卸载的时间,一天内的某个时间

注意

  1. 自Windows8和Window Server 2012始,ScheduledInstallationDay, ScheduledInstallationTimej将不再受到支持。修改该属性将得到不可靠的结果,得到操作成功的提示但实际并未生效。
  2. Windows RT操作系统上,将无法使用Save方法以编程的方式保存对自动更新的配置。该方法将在使用4(aunIScheduledInstallation)外的值时返回失败。

使用需求

需求 描述 最低客户机要求 Windows XP, Windows 2000 Professional with SP3 [desktop apps only] 最低服务器要求 Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only] IID IID_IAutomaticUpdatesSettings is defined as 2EE48F22-AF3C-405F-8970-F71BE12EE9A2 文件要求 其他诸如头文件等与其他接口一致
原创粉丝点击