ホーム › NetworkManagement.NetManagement › INetCfgComponentNotifyGlobal
INetCfgComponentNotifyGlobal
COMメソッド 4
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| dwNotifications | DWORD* | out | コンポーネントが受け取りたい通知種別のNCN_*フラグを受け取る。 |
vtbl 4 HRESULT SysQueryBindingPath(DWORD dwChangeFlag, INetCfgBindingPath* pIPath)
| dwChangeFlag | DWORD | in | システム全体のバインディングパス変更種別を示すNCN_*フラグ。 |
| pIPath | INetCfgBindingPath* | in | 変更対象のバインディングパスINetCfgBindingPath。拒否で変更を阻止可能。 |
vtbl 5 HRESULT SysNotifyBindingPath(DWORD dwChangeFlag, INetCfgBindingPath* pIPath)
| dwChangeFlag | DWORD | in | 確定したシステムバインディングパス変更の種別を示すNCN_*フラグ。 |
| pIPath | INetCfgBindingPath* | in | 変更が適用されたバインディングパスINetCfgBindingPath。 |
vtbl 6 HRESULT SysNotifyComponent(DWORD dwChangeFlag, INetCfgComponent* pIComp)
| dwChangeFlag | DWORD | in | コンポーネント変更の種別を示すNCN_*フラグ。 |
| pIComp | INetCfgComponent* | in | 変更が発生したコンポーネントINetCfgComponent。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_INetCfgComponentNotifyGlobal "{932238E2-BEA1-11D0-9298-00C04FC99DCF}" #usecom global INetCfgComponentNotifyGlobal IID_INetCfgComponentNotifyGlobal "{}" #comfunc global INetCfgComponentNotifyGlobal_GetSupportedNotifications 3 var #comfunc global INetCfgComponentNotifyGlobal_SysQueryBindingPath 4 int,sptr #comfunc global INetCfgComponentNotifyGlobal_SysNotifyBindingPath 5 int,sptr #comfunc global INetCfgComponentNotifyGlobal_SysNotifyComponent 6 int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_INetCfgComponentNotifyGlobal "{932238E2-BEA1-11D0-9298-00C04FC99DCF}" #usecom global INetCfgComponentNotifyGlobal IID_INetCfgComponentNotifyGlobal "{}" #comfunc global INetCfgComponentNotifyGlobal_GetSupportedNotifications 3 sptr #comfunc global INetCfgComponentNotifyGlobal_SysQueryBindingPath 4 int,sptr #comfunc global INetCfgComponentNotifyGlobal_SysNotifyBindingPath 5 int,sptr #comfunc global INetCfgComponentNotifyGlobal_SysNotifyComponent 6 int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。