ホーム › Storage.FileServerResourceManager › IFsrmReport
IFsrmReport
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 9
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
vtbl 7 HRESULT get_Type(FsrmReportType* reportType)
| reportType | FsrmReportType* | out | このレポートの種類を示す FsrmReportType 列挙値を受け取るポインタである。 |
| name | LPWSTR* | out | レポートの名前を受け取る文字列ポインタである。 |
| name | LPWSTR | in | レポートに設定する名前を指定する文字列である。 |
| description | LPWSTR* | out | レポートの説明文を受け取る文字列ポインタである。 |
| description | LPWSTR | in | レポートに設定する説明文を指定する文字列である。 |
| prefix | LPWSTR* | out | 最後に生成されたレポートファイル名のプレフィックスを受け取る文字列ポインタである。 |
vtbl 13 HRESULT GetFilter(FsrmReportFilter filter, VARIANT* filterValue)
| filter | FsrmReportFilter | in | 値を取得する対象のフィルターを示す FsrmReportFilter 列挙値を指定する。 |
| filterValue | VARIANT* | out | 指定したフィルターの現在値を格納した VARIANT を受け取るポインタである。 |
vtbl 14 HRESULT SetFilter(FsrmReportFilter filter, VARIANT filterValue)
| filter | FsrmReportFilter | in | 値を設定する対象のフィルターを示す FsrmReportFilter 列挙値を指定する。 |
| filterValue | VARIANT | in | 指定したフィルターに設定する値を格納した VARIANT を指定する。 |
vtbl 15 HRESULT Delete()
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IFsrmReport "{D8CC81D9-46B8-4FA4-BFA5-4AA9DEC9B638}" #usecom global IFsrmReport IID_IFsrmReport "{}" #comfunc global IFsrmReport_get_Type 7 var #comfunc global IFsrmReport_get_Name 8 var #comfunc global IFsrmReport_put_Name 9 wstr #comfunc global IFsrmReport_get_Description 10 var #comfunc global IFsrmReport_put_Description 11 wstr #comfunc global IFsrmReport_get_LastGeneratedFileNamePrefix 12 var #comfunc global IFsrmReport_GetFilter 13 int,var #comfunc global IFsrmReport_SetFilter 14 int,int #comfunc global IFsrmReport_Delete 15 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IFsrmReport "{D8CC81D9-46B8-4FA4-BFA5-4AA9DEC9B638}" #usecom global IFsrmReport IID_IFsrmReport "{}" #comfunc global IFsrmReport_get_Type 7 sptr #comfunc global IFsrmReport_get_Name 8 sptr #comfunc global IFsrmReport_put_Name 9 wstr #comfunc global IFsrmReport_get_Description 10 sptr #comfunc global IFsrmReport_put_Description 11 wstr #comfunc global IFsrmReport_get_LastGeneratedFileNamePrefix 12 sptr #comfunc global IFsrmReport_GetFilter 13 int,sptr #comfunc global IFsrmReport_SetFilter 14 int,int #comfunc global IFsrmReport_Delete 15 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。