Win32 API 日本語リファレンス
ホームSystem.Contacts › IContactAggregationContactCollection

IContactAggregationContactCollection

COM
IID826e66fa-81de-43ca-a6fb-8c785cd996c6継承元IUnknown自前メソッド開始 vtbl3

メソッド 5

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

vtbl 3 HRESULT FindFirst(IContactAggregationContact** ppItem)
ppItemIContactAggregationContact**outコレクション内の最初の連絡先を表す IContactAggregationContact インターフェイスを受け取るポインタへのポインタである。
vtbl 4 HRESULT FindNext(IContactAggregationContact** ppItem)
ppItemIContactAggregationContact**outコレクション内の次の連絡先を表す IContactAggregationContact インターフェイスを受け取るポインタへのポインタである。
vtbl 5 HRESULT FindFirstByIdentityHash(LPWSTR pSourceType, LPWSTR pAccountId, CONTACT_AGGREGATION_BLOB* pIdentityHash, IContactAggregationContact** ppItem)
pSourceTypeLPWSTRin検索対象のソース種別を指定する文字列である。
pAccountIdLPWSTRin検索対象のアカウント ID を指定する文字列である。
pIdentityHashCONTACT_AGGREGATION_BLOB*in検索キーとなる ID ハッシュを表す CONTACT_AGGREGATION_BLOB へのポインタである。
ppItemIContactAggregationContact**out条件に一致した最初の連絡先を表す IContactAggregationContact インターフェイスを受け取るポインタへのポインタである。
vtbl 6 HRESULT get_Count(INT* pCount)
pCountINT*outコレクションに含まれる連絡先の数を受け取る変数へのポインタである。
vtbl 7 HRESULT FindFirstByRemoteId(LPWSTR pSourceType, LPWSTR pAccountId, CONTACT_AGGREGATION_BLOB* pRemoteObjectId, IContactAggregationContact** ppItem)
pSourceTypeLPWSTRin検索対象のソース種別を指定する文字列である。
pAccountIdLPWSTRin検索対象のアカウント ID を指定する文字列である。
pRemoteObjectIdCONTACT_AGGREGATION_BLOB*in検索キーとなるリモートオブジェクト ID を表す CONTACT_AGGREGATION_BLOB へのポインタである。
ppItemIContactAggregationContact**out条件に一致した最初の連絡先を表す IContactAggregationContact インターフェイスを受け取るポインタへのポインタである。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

出力引数:
#define global IID_IContactAggregationContactCollection "{826E66FA-81DE-43CA-A6FB-8C785CD996C6}"
#usecom global IContactAggregationContactCollection IID_IContactAggregationContactCollection "{}"
#comfunc global IContactAggregationContactCollection_FindFirst                3 sptr
#comfunc global IContactAggregationContactCollection_FindNext                 4 sptr
#comfunc global IContactAggregationContactCollection_FindFirstByIdentityHash  5 wstr,wstr,var,sptr
#comfunc global IContactAggregationContactCollection_get_Count                6 var
#comfunc global IContactAggregationContactCollection_FindFirstByRemoteId      7 wstr,wstr,var,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。