Win32 API 日本語リファレンス
ホームNetworking.BackgroundIntelligentTransferService › IBackgroundCopyError

IBackgroundCopyError

COM
IID19c613a0-fcb8-4f28-81ae-897c3d078f81継承元IUnknown自前メソッド開始 vtbl3

メソッド 5

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT GetError(BG_ERROR_CONTEXT* pContext, HRESULT* pCode)
pContextBG_ERROR_CONTEXT*outエラー発生時のコンテキストBG_ERROR_CONTEXTを受け取る出力ポインタ。
pCodeHRESULT*outエラーを示すHRESULTを受け取る出力ポインタ。
vtbl 4 HRESULT GetFile(IBackgroundCopyFile** pVal)
pValIBackgroundCopyFile**outエラーが発生したファイルのIBackgroundCopyFileを受け取る出力ポインタ。
vtbl 5 HRESULT GetErrorDescription(DWORD LanguageId, LPWSTR* pErrorDescription)
LanguageIdDWORDin説明文を取得する言語ID(LANGID)。
pErrorDescriptionLPWSTR*outローカライズされたエラー説明文を受け取る出力ポインタ。
vtbl 6 HRESULT GetErrorContextDescription(DWORD LanguageId, LPWSTR* pContextDescription)
LanguageIdDWORDin説明文を取得する言語ID(LANGID)。
pContextDescriptionLPWSTR*outローカライズされたエラーコンテキスト説明文を受け取る出力ポインタ。
vtbl 7 HRESULT GetProtocol(LPWSTR* pProtocol)
pProtocolLPWSTR*outエラーが発生した転送プロトコル名を受け取る出力ポインタ。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

出力引数:
#define global IID_IBackgroundCopyError "{19C613A0-FCB8-4F28-81AE-897C3D078F81}"
#usecom global IBackgroundCopyError IID_IBackgroundCopyError "{}"
#comfunc global IBackgroundCopyError_GetError                    3 var,var
#comfunc global IBackgroundCopyError_GetFile                     4 sptr
#comfunc global IBackgroundCopyError_GetErrorDescription         5 int,var
#comfunc global IBackgroundCopyError_GetErrorContextDescription  6 int,var
#comfunc global IBackgroundCopyError_GetProtocol                 7 var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。