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

IBackgroundCopyFile5

COM
IID85c1657f-dafc-40e8-8834-df18ea25717e継承元IBackgroundCopyFile4自前メソッド開始 vtbl13

メソッド 2

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

vtbl 13 HRESULT SetProperty(BITS_FILE_PROPERTY_ID PropertyId, BITS_FILE_PROPERTY_VALUE PropertyValue)
PropertyIdBITS_FILE_PROPERTY_IDin設定対象のファイルプロパティを識別するBITS_FILE_PROPERTY_ID列挙値。
PropertyValueBITS_FILE_PROPERTY_VALUEin設定する値を保持するBITS_FILE_PROPERTY_VALUE共用体。プロパティIDに応じたメンバを使用する。
vtbl 14 HRESULT GetProperty(BITS_FILE_PROPERTY_ID PropertyId, BITS_FILE_PROPERTY_VALUE* PropertyValue)
PropertyIdBITS_FILE_PROPERTY_IDin取得対象のファイルプロパティを識別するBITS_FILE_PROPERTY_ID列挙値。
PropertyValueBITS_FILE_PROPERTY_VALUE*out取得したファイルプロパティ値を受け取るBITS_FILE_PROPERTY_VALUE共用体の出力ポインタ。

HSP用 COM定義

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

出力引数:
#define global IID_IBackgroundCopyFile5 "{85C1657F-DAFC-40E8-8834-DF18EA25717E}"
#usecom global IBackgroundCopyFile5 IID_IBackgroundCopyFile5 "{}"
#comfunc global IBackgroundCopyFile5_SetProperty  13 int,int
#comfunc global IBackgroundCopyFile5_GetProperty  14 int,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。