IPropertyKeyStore
COMメソッド 6
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| keyCount | INT* | out | ストアに格納されているプロパティキーの数を受け取る変数へのポインタである。 |
vtbl 4 HRESULT GetKeyAt(INT index, PROPERTYKEY* pkey)
| index | INT | in | 取得するキーの 0 から始まるインデックスを指定する。 |
| pkey | PROPERTYKEY* | out | 指定インデックスのプロパティキーを受け取る PROPERTYKEY 構造体へのポインタである。 |
vtbl 5 HRESULT AppendKey(PROPERTYKEY* key)
| key | PROPERTYKEY* | in | ストアの末尾に追加するプロパティキーを指す PROPERTYKEY 構造体へのポインタである。 |
| index | INT | in | 削除するキーの 0 から始まるインデックスを指定する。 |
vtbl 7 HRESULT IsKeyInStore(PROPERTYKEY* key)
| key | PROPERTYKEY* | in | ストアに存在するか確認するプロパティキーを指す PROPERTYKEY 構造体へのポインタである。 |
vtbl 8 HRESULT RemoveKey(PROPERTYKEY* key)
| key | PROPERTYKEY* | in | ストアから削除するプロパティキーを指す PROPERTYKEY 構造体へのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IPropertyKeyStore "{75BD59AA-F23B-4963-ABA4-0B355752A91B}" #usecom global IPropertyKeyStore IID_IPropertyKeyStore "{}" #comfunc global IPropertyKeyStore_GetKeyCount 3 var #comfunc global IPropertyKeyStore_GetKeyAt 4 int,var #comfunc global IPropertyKeyStore_AppendKey 5 var #comfunc global IPropertyKeyStore_DeleteKey 6 int #comfunc global IPropertyKeyStore_IsKeyInStore 7 var #comfunc global IPropertyKeyStore_RemoveKey 8 var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IPropertyKeyStore "{75BD59AA-F23B-4963-ABA4-0B355752A91B}" #usecom global IPropertyKeyStore IID_IPropertyKeyStore "{}" #comfunc global IPropertyKeyStore_GetKeyCount 3 sptr #comfunc global IPropertyKeyStore_GetKeyAt 4 int,sptr #comfunc global IPropertyKeyStore_AppendKey 5 sptr #comfunc global IPropertyKeyStore_DeleteKey 6 int #comfunc global IPropertyKeyStore_IsKeyInStore 7 sptr #comfunc global IPropertyKeyStore_RemoveKey 8 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。