IBackgroundCopyError::GetFile 方法 (bits.h)

擷取與錯誤相關聯之檔案物件的介面指標。

語法

HRESULT GetFile(
  [out] IBackgroundCopyFile **pVal
);

參數

[out] pVal

IBackgroundCopyFile 介面指標,其方法可用來判斷與錯誤相關聯的本機和遠端檔名。 如果錯誤與本機或遠端檔案沒有關聯, ppFile 參數會設定為 NULL 。 完成後,請釋放 ppFile

傳回值

這個方法會傳回下列 HRESULT 值。

傳回碼 Description
S_OK
已成功擷取檔案物件的介面指標。
BG_E_FILE_NOT_AVAILABLE
錯誤與本機或遠端檔案無關。 ppFile 參數設定為 NULL

規格需求

需求
最低支援的用戶端 Windows XP
最低支援的伺服器 Windows Server 2003
目標平台 Windows
標頭 bits.h
程式庫 Bits.lib
Dll QmgrPrxy.dll

另請參閱

IBackgroundCopyError::GetError

IBackgroundCopyError::GetErrorContextDescription

IBackgroundCopyError::GetErrorDescription