ホーム › System.Search › ICommandProperties
ICommandProperties
COMメソッド 2
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT GetProperties(DWORD cPropertyIDSets, DBPROPIDSET* rgPropertyIDSets, DWORD* pcPropertySets, DBPROPSET** prgPropertySets)
| cPropertyIDSets | DWORD | in | rgPropertyIDSets 配列に含まれる DBPROPIDSET 構造体の数を指定する。0 の場合はすべてのプロパティを取得する。 |
| rgPropertyIDSets | DBPROPIDSET* | inoptional | 取得するプロパティ ID の集合を格納した DBPROPIDSET 構造体の配列へのポインタである。 |
| pcPropertySets | DWORD* | out | 返される DBPROPSET 構造体の数を受け取る変数へのポインタである。 |
| prgPropertySets | DBPROPSET** | out | プロパティ値を格納した DBPROPSET 構造体の配列を受け取るポインタである。呼び出し側が解放する。 |
| cPropertySets | DWORD | in | rgPropertySets 配列に含まれる DBPROPSET 構造体の数を指定する。0 の場合は何もしない。 |
| rgPropertySets | DBPROPSET* | in | 設定するプロパティ値を格納した DBPROPSET 構造体の配列へのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ICommandProperties "{0C733A79-2A1C-11CE-ADE5-00AA0044773D}" #usecom global ICommandProperties IID_ICommandProperties "{}" #comfunc global ICommandProperties_GetProperties 3 int,var,var,var #comfunc global ICommandProperties_SetProperties 4 int,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_ICommandProperties "{0C733A79-2A1C-11CE-ADE5-00AA0044773D}" #usecom global ICommandProperties IID_ICommandProperties "{}" #comfunc global ICommandProperties_GetProperties 3 int,sptr,sptr,sptr #comfunc global ICommandProperties_SetProperties 4 int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。