updateServiceOption 列舉 (wuapi.h)

定義會影響如何移除掃描封裝服務之服務註冊的選項。

Syntax

typedef enum tagUpdateServiceOption {
  usoNonVolatileService = 0x1
} UpdateServiceOption;

常數

 
usoNonVolatileService
值: 0x1
表示您必須呼叫 IUpdateServiceManager::RemoveService 方法來移除服務註冊。

在釋放IUpdateService介面之前,無法呼叫RemoveService方法會導致資源流失。

備註

如果您未指定 usoNonVolatileService,當您釋放 IUpdateService 介面時,會自動移除服務註冊。

UpdateServiceOption列舉可能需要您更新 Windows Update Agent (WUA) 。 如需詳細資訊,請參閱更新Windows Update代理程式

規格需求

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

另請參閱

IUpdateServiceManager::AddScanPackageService