ホーム › Devices.PortableDevices › IPortableDeviceKeyCollection
IPortableDeviceKeyCollection
COMメソッド 5
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| pcElems | DWORD* | in | コレクション内のキー総数を受け取る出力先。 |
vtbl 4 HRESULT GetAt(DWORD dwIndex, PROPERTYKEY* pKey)
| dwIndex | DWORD | in | 取得するキーの0始まりのインデックス。 |
| pKey | PROPERTYKEY* | in | 指定位置のキー(PROPERTYKEY)を受け取る出力先。 |
vtbl 5 HRESULT Add(PROPERTYKEY* Key)
| Key | PROPERTYKEY* | in | コレクションに追加するPROPERTYKEYへのポインタ。 |
vtbl 6 HRESULT Clear()
| dwIndex | DWORD | in | 削除するキーの0始まりのインデックス。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IPortableDeviceKeyCollection "{DADA2357-E0AD-492E-98DB-DD61C53BA353}" #usecom global IPortableDeviceKeyCollection IID_IPortableDeviceKeyCollection "{DE2D022D-2480-43BE-97F0-D1FA2CF98F4F}" #comfunc global IPortableDeviceKeyCollection_GetCount 3 var #comfunc global IPortableDeviceKeyCollection_GetAt 4 int,var #comfunc global IPortableDeviceKeyCollection_Add 5 var #comfunc global IPortableDeviceKeyCollection_Clear 6 #comfunc global IPortableDeviceKeyCollection_RemoveAt 7 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IPortableDeviceKeyCollection "{DADA2357-E0AD-492E-98DB-DD61C53BA353}" #usecom global IPortableDeviceKeyCollection IID_IPortableDeviceKeyCollection "{DE2D022D-2480-43BE-97F0-D1FA2CF98F4F}" #comfunc global IPortableDeviceKeyCollection_GetCount 3 sptr #comfunc global IPortableDeviceKeyCollection_GetAt 4 int,sptr #comfunc global IPortableDeviceKeyCollection_Add 5 sptr #comfunc global IPortableDeviceKeyCollection_Clear 6 #comfunc global IPortableDeviceKeyCollection_RemoveAt 7 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。