IBackgroundCopyJob2::GetNotifyCmdLine 方法 (bits1_5.h)

擷取作業進入錯誤或傳輸狀態時所要執行的程式。

語法

HRESULT GetNotifyCmdLine(
  [out] LPWSTR *pProgram,
  [out] LPWSTR *pParameters
);

參數

[out] pProgram

Null 終止的字串,其中包含當作業進入錯誤或傳輸狀態時要執行的程式。 完成時呼叫 CoTaskMemFree 函式以釋出 pProgram

[out] pParameters

Null 終止的字串,其中包含 pProgram 中程式的自變數。 完成時呼叫 CoTaskMemFree 函式以釋放 pParameters

傳回值

此方法會在成功時 傳回S_OK ,或發生錯誤的其中一個標準 COM HRESULT 值。

備註

如果尚未呼叫 IBackgroundCopyJob2::SetNotifyCmdLine 方法,GetNotifyCmdLine 方法會將 pProgrampParameters 設定為空字符串 (L“”“) 。

規格需求

需求
最低支援的用戶端 Windows Vista
最低支援的伺服器 Windows Server 2003
目標平台 Windows
標頭 bits1_5.h (包含 Bits.h)
程式庫 Bits.lib
Dll BitsPrx2.dll
可轉散發套件 Windows XP 上的 BITS 1.5

另請參閱

IBackgroundCopyJob2::SetNotifyCmdLine