ホーム › System.Search › IRowsetNotify
IRowsetNotify
COMメソッド 3
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT OnFieldChange(IRowset* pRowset, UINT_PTR hRow, UINT_PTR cColumns, UINT_PTR* rgColumns, DWORD eReason, DWORD ePhase, BOOL fCantDeny)
| pRowset | IRowset* | in | 通知を発行したロウセットへのポインタである。 |
| hRow | UINT_PTR | in | フィールドが変更された行のハンドルである。 |
| cColumns | UINT_PTR | in | rgColumns 配列に含まれる変更対象の列数である。 |
| rgColumns | UINT_PTR* | in | 変更されたフィールドの列序数を格納した配列へのポインタである。 |
| eReason | DWORD | in | フィールド変更の理由(値の設定など)を指定する。 |
| ePhase | DWORD | in | 通知のフェーズ(変更直前、変更後、中止など)を指定する。 |
| fCantDeny | BOOL | in | コンシューマーがこの変更を拒否できるかどうかを指定する。TRUE の場合は拒否できない。 |
vtbl 4 HRESULT OnRowChange(IRowset* pRowset, UINT_PTR cRows, UINT_PTR* rghRows, DWORD eReason, DWORD ePhase, BOOL fCantDeny)
| pRowset | IRowset* | in | 通知を発行したロウセットへのポインタである。 |
| cRows | UINT_PTR | in | rghRows 配列に含まれる変更対象の行数である。 |
| rghRows | UINT_PTR* | in | 変更された行のハンドル配列へのポインタである。 |
| eReason | DWORD | in | 行変更の理由(挿入、削除、移動など)を指定する。 |
| ePhase | DWORD | in | 通知のフェーズ(変更直前、変更後、中止など)を指定する。 |
| fCantDeny | BOOL | in | コンシューマーがこの変更を拒否できるかどうかを指定する。TRUE の場合は拒否できない。 |
| pRowset | IRowset* | in | 通知を発行したロウセットへのポインタである。 |
| eReason | DWORD | in | ロウセット全体の変更理由(再フェッチ、解放など)を指定する。 |
| ePhase | DWORD | in | 通知のフェーズ(変更直前、変更後、中止など)を指定する。 |
| fCantDeny | BOOL | in | コンシューマーがこの変更を拒否できるかどうかを指定する。TRUE の場合は拒否できない。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IRowsetNotify "{0C733A83-2A1C-11CE-ADE5-00AA0044773D}" #usecom global IRowsetNotify IID_IRowsetNotify "{}" #comfunc global IRowsetNotify_OnFieldChange 3 sptr,sptr,sptr,var,int,int,int #comfunc global IRowsetNotify_OnRowChange 4 sptr,sptr,var,int,int,int #comfunc global IRowsetNotify_OnRowsetChange 5 sptr,int,int,int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IRowsetNotify "{0C733A83-2A1C-11CE-ADE5-00AA0044773D}" #usecom global IRowsetNotify IID_IRowsetNotify "{}" #comfunc global IRowsetNotify_OnFieldChange 3 sptr,sptr,sptr,sptr,int,int,int #comfunc global IRowsetNotify_OnRowChange 4 sptr,sptr,sptr,int,int,int #comfunc global IRowsetNotify_OnRowsetChange 5 sptr,int,int,int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。