使用 GetObject 方法來擷取 IBITSExtensionSetup 介面的指標。 這個方法會執行 ADsGetObject ADSI 函式執行的相同系結。
語法
HRESULT GetObject(
[in] BSTR Path,
[out] IBITSExtensionSetup **ppExtensionSetup
);
參數
[in] Path
包含目錄服務路徑的 Null 終止字串。 例如,“IIS://< machine name>/w3svc/1/virtual directory”。
[out] ppExtensionSetup
使用 IBITSExtensionSetup 介面來啟用和停用指定虛擬目錄的 BITS 上傳。
傳回值
這個方法會傳回 S_OK ,以取得成功。 否則,方法會失敗。
規格需求
| 需求 | 值 |
|---|---|
| 最低支援的用戶端 | Windows Vista |
| 最低支援的伺服器 | Windows Server 2003 |
| 目標平台 | Windows |
| 標頭 | bitscfg.h |
| Dll | BitsMgr.dll |
| 可轉散發套件 | Windows XP 上的 BITS 1.5 |