ホーム › Devices.FunctionDiscovery › IProviderQueryConstraintCollection
IProviderQueryConstraintCollection
COMメソッド 6
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| pdwCount | DWORD* | out | コレクション内の制約数を受け取るポインター。 |
| pszConstraintName | LPWSTR | in | 値を取得する制約の名前。 |
| ppszConstraintValue | WORD** | out | 指定した制約名に対応する値を受け取るポインター。 |
| dwIndex | DWORD | in | 取得対象制約の0起算インデックス。 |
| ppszConstraintName | WORD** | out | 指定インデックスの制約名を受け取るポインター。 |
| ppszConstraintValue | WORD** | out | 指定インデックスの制約値を受け取るポインター。 |
| ppszConstraintName | WORD** | out | 次の制約の名前を受け取るポインター。列挙終了時はS_FALSE。 |
| ppszConstraintValue | WORD** | out | 次の制約の値を受け取るポインター。 |
vtbl 7 HRESULT Skip()
vtbl 8 HRESULT Reset()
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IProviderQueryConstraintCollection "{9C243E11-3261-4BCD-B922-84A873D460AE}" #usecom global IProviderQueryConstraintCollection IID_IProviderQueryConstraintCollection "{}" #comfunc global IProviderQueryConstraintCollection_GetCount 3 var #comfunc global IProviderQueryConstraintCollection_Get 4 wstr,var #comfunc global IProviderQueryConstraintCollection_Item 5 int,var,var #comfunc global IProviderQueryConstraintCollection_Next 6 var,var #comfunc global IProviderQueryConstraintCollection_Skip 7 #comfunc global IProviderQueryConstraintCollection_Reset 8 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IProviderQueryConstraintCollection "{9C243E11-3261-4BCD-B922-84A873D460AE}" #usecom global IProviderQueryConstraintCollection IID_IProviderQueryConstraintCollection "{}" #comfunc global IProviderQueryConstraintCollection_GetCount 3 sptr #comfunc global IProviderQueryConstraintCollection_Get 4 wstr,sptr #comfunc global IProviderQueryConstraintCollection_Item 5 int,sptr,sptr #comfunc global IProviderQueryConstraintCollection_Next 6 sptr,sptr #comfunc global IProviderQueryConstraintCollection_Skip 7 #comfunc global IProviderQueryConstraintCollection_Reset 8 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。