addServiceFlag 列舉 (wuapi.h)

定義 IUpdateServiceManager2 介面可以處理服務註冊要求的可能方式。

Syntax

typedef enum tagAddServiceFlag {
  asfAllowPendingRegistration = 0x1,
  asfAllowOnlineRegistration = 0x2,
  asfRegisterServiceWithAU = 0x4
} AddServiceFlag;

常數

 
asfAllowPendingRegistration
值: 0x1
允許更新代理程式在稍後執行在線掃描更新時處理服務註冊。
asfAllowOnlineRegistration
值: 0x2
允許更新代理程式在網路連線可用時立即處理服務註冊。
asfRegisterServiceWithAU
值: 0x4
在新增服務時,向自動 匯報 註冊服務。

備註

如需當您在 flags 參數中指定不同 AddServiceFlag 值組合時,IUpdateServiceManager2::AddService2 的行為相關信息,請參閱 IUpdateServiceManager2::AddService2 的一節。

規格需求

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

另請參閱

IUpdateServiceManager2::AddService2