ホーム › Networking.ActiveDirectory › IADsPropertyList
IADsPropertyList
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 9
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
| plCount | INT* | out | プロパティリスト内のプロパティ数を受け取る出力ポインタ。 |
| pVariant | VARIANT* | out | 次のプロパティエントリを格納するVARIANTへのポインタ。終端ではS_FALSEを返す。 |
| cElements | INT | in | 列挙位置をスキップするプロパティ数。 |
vtbl 10 HRESULT Reset()
| varIndex | VARIANT | in | 取得対象を示すインデックス(整数)または名前(文字列)を保持するVARIANT。 |
| pVariant | VARIANT* | out | 取得したプロパティエントリを格納するVARIANTへのポインタ。 |
| bstrName | LPWSTR | in | 取得するプロパティの名前を示す文字列。 |
| lnADsType | INT | in | プロパティのADSTYPE(データ型)を示す値。 |
| pVariant | VARIANT* | out | 取得したプロパティエントリを格納するVARIANTへのポインタ。 |
| varData | VARIANT | in | 設定するプロパティエントリを保持するVARIANT。 |
| varEntry | VARIANT | in | リセット対象のプロパティを示すインデックスまたは名前を保持するVARIANT。 |
vtbl 15 HRESULT PurgePropertyList()
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IADsPropertyList "{C6F602B6-8F69-11D0-8528-00C04FD8D503}" #usecom global IADsPropertyList IID_IADsPropertyList "{}" #comfunc global IADsPropertyList_get_PropertyCount 7 var #comfunc global IADsPropertyList_Next 8 var #comfunc global IADsPropertyList_Skip 9 int #comfunc global IADsPropertyList_Reset 10 #comfunc global IADsPropertyList_Item 11 int,var #comfunc global IADsPropertyList_GetPropertyItem 12 wstr,int,var #comfunc global IADsPropertyList_PutPropertyItem 13 int #comfunc global IADsPropertyList_ResetPropertyItem 14 int #comfunc global IADsPropertyList_PurgePropertyList 15 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IADsPropertyList "{C6F602B6-8F69-11D0-8528-00C04FD8D503}" #usecom global IADsPropertyList IID_IADsPropertyList "{}" #comfunc global IADsPropertyList_get_PropertyCount 7 sptr #comfunc global IADsPropertyList_Next 8 sptr #comfunc global IADsPropertyList_Skip 9 int #comfunc global IADsPropertyList_Reset 10 #comfunc global IADsPropertyList_Item 11 int,sptr #comfunc global IADsPropertyList_GetPropertyItem 12 wstr,int,sptr #comfunc global IADsPropertyList_PutPropertyItem 13 int #comfunc global IADsPropertyList_ResetPropertyItem 14 int #comfunc global IADsPropertyList_PurgePropertyList 15 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。