Win32 API 日本語リファレンス
ホームDevices.FunctionDiscovery › IProviderQueryConstraintCollection

IProviderQueryConstraintCollection

COM
IID9c243e11-3261-4bcd-b922-84a873d460ae継承元IUnknown自前メソッド開始 vtbl3

メソッド 6

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT GetCount(DWORD* pdwCount)
pdwCountDWORD*outコレクション内の制約数を受け取るポインター。
vtbl 4 HRESULT Get(LPWSTR pszConstraintName, WORD** ppszConstraintValue)
pszConstraintNameLPWSTRin値を取得する制約の名前。
ppszConstraintValueWORD**out指定した制約名に対応する値を受け取るポインター。
vtbl 5 HRESULT Item(DWORD dwIndex, WORD** ppszConstraintName, WORD** ppszConstraintValue)
dwIndexDWORDin取得対象制約の0起算インデックス。
ppszConstraintNameWORD**out指定インデックスの制約名を受け取るポインター。
ppszConstraintValueWORD**out指定インデックスの制約値を受け取るポインター。
vtbl 6 HRESULT Next(WORD** ppszConstraintName, WORD** ppszConstraintValue)
ppszConstraintNameWORD**out次の制約の名前を受け取るポインター。列挙終了時はS_FALSE。
ppszConstraintValueWORD**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 方式にも切替可。