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

IFolderActionCollection

COMIDispatch (デュアル)
IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IID03837544-098b-11d8-9414-505054503030継承元IDispatch呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl7

メソッド 8

vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。

vtbl 7 HRESULT get_Count(DWORD* Count)
CountDWORD*out現在の要素数を受け取るポインタである。
vtbl 8 HRESULT get_Item(VARIANT Index, IFolderAction** Action)
IndexVARIANTin取得する要素のインデックスまたはキーを表す VARIANT を指定する。
ActionIFolderAction**out指定したフォルダアクションを表す IFolderAction を受け取るポインタである。
vtbl 9 HRESULT get__NewEnum(IUnknown** Enum)
EnumIUnknown**outコレクションを反復処理する列挙子(IUnknown)を受け取るポインタである。
vtbl 10 HRESULT Add(IFolderAction* Action)
ActionIFolderAction*inoptional追加するフォルダアクションを表す IFolderAction を指定する。
vtbl 11 HRESULT Remove(VARIANT Index)
IndexVARIANTin削除する要素のインデックスまたはキーを表す VARIANT を指定する。
vtbl 12 HRESULT Clear()
vtbl 13 HRESULT AddRange(IFolderActionCollection* Actions)
ActionsIFolderActionCollection*inoptional追加するフォルダアクションのコレクションを指定する。
vtbl 14 HRESULT CreateFolderAction(IFolderAction** FolderAction)
FolderActionIFolderAction**out新しく作成したフォルダアクションを表す IFolderAction を受け取るポインタである。

HSP用 COM定義

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

出力引数:
#define global IID_IFolderActionCollection "{03837544-098B-11D8-9414-505054503030}"
#usecom global IFolderActionCollection IID_IFolderActionCollection "{}"
#comfunc global IFolderActionCollection_get_Count           7 var
#comfunc global IFolderActionCollection_get_Item            8 int,sptr
#comfunc global IFolderActionCollection_get__NewEnum        9 sptr
#comfunc global IFolderActionCollection_Add                 10 sptr
#comfunc global IFolderActionCollection_Remove              11 int
#comfunc global IFolderActionCollection_Clear               12
#comfunc global IFolderActionCollection_AddRange            13 sptr
#comfunc global IFolderActionCollection_CreateFolderAction  14 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。