ホーム › System.SideShow › ISideShowPropVariantCollection
ISideShowPropVariantCollection
COMメソッド 5
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT Add(PROPVARIANT* pValue)
| pValue | PROPVARIANT* | in | コレクションに追加する PROPVARIANT 値へのポインタである。 |
vtbl 4 HRESULT Clear()
vtbl 5 HRESULT GetAt(DWORD dwIndex, PROPVARIANT* pValue)
| dwIndex | DWORD | in | 取得する要素のゼロ始まりのインデックスを指定する。 |
| pValue | PROPVARIANT* | inout | 指定したインデックスにある PROPVARIANT 値を受け取るバッファへのポインタである。 |
| pcElems | DWORD* | in | コレクションに含まれる要素数を受け取る変数へのポインタである。 |
| dwIndex | DWORD | in | 削除する要素のゼロ始まりのインデックスを指定する。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ISideShowPropVariantCollection "{2EA7A549-7BFF-4AAE-BAB0-22D43111DE49}" #usecom global ISideShowPropVariantCollection IID_ISideShowPropVariantCollection "{}" #comfunc global ISideShowPropVariantCollection_Add 3 var #comfunc global ISideShowPropVariantCollection_Clear 4 #comfunc global ISideShowPropVariantCollection_GetAt 5 int,var #comfunc global ISideShowPropVariantCollection_GetCount 6 var #comfunc global ISideShowPropVariantCollection_RemoveAt 7 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_ISideShowPropVariantCollection "{2EA7A549-7BFF-4AAE-BAB0-22D43111DE49}" #usecom global ISideShowPropVariantCollection IID_ISideShowPropVariantCollection "{}" #comfunc global ISideShowPropVariantCollection_Add 3 sptr #comfunc global ISideShowPropVariantCollection_Clear 4 #comfunc global ISideShowPropVariantCollection_GetAt 5 int,sptr #comfunc global ISideShowPropVariantCollection_GetCount 6 sptr #comfunc global ISideShowPropVariantCollection_RemoveAt 7 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。