ホーム › Networking.BackgroundIntelligentTransferService › IBackgroundCopyFile5
IBackgroundCopyFile5
COMメソッド 2
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 13 HRESULT SetProperty(BITS_FILE_PROPERTY_ID PropertyId, BITS_FILE_PROPERTY_VALUE PropertyValue)
| PropertyId | BITS_FILE_PROPERTY_ID | in | 設定対象のファイルプロパティを識別するBITS_FILE_PROPERTY_ID列挙値。 |
| PropertyValue | BITS_FILE_PROPERTY_VALUE | in | 設定する値を保持するBITS_FILE_PROPERTY_VALUE共用体。プロパティIDに応じたメンバを使用する。 |
vtbl 14 HRESULT GetProperty(BITS_FILE_PROPERTY_ID PropertyId, BITS_FILE_PROPERTY_VALUE* PropertyValue)
| PropertyId | BITS_FILE_PROPERTY_ID | in | 取得対象のファイルプロパティを識別するBITS_FILE_PROPERTY_ID列挙値。 |
| PropertyValue | BITS_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 方式にも切替可。#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,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。