Win32 API 日本語リファレンス
ホームNetworkManagement.NetManagement › INetCfgComponentNotifyGlobal

INetCfgComponentNotifyGlobal

COM
IID932238e2-bea1-11d0-9298-00c04fc99dcf継承元IUnknown自前メソッド開始 vtbl3

メソッド 4

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT GetSupportedNotifications(DWORD* dwNotifications)
dwNotificationsDWORD*outコンポーネントが受け取りたい通知種別のNCN_*フラグを受け取る。
vtbl 4 HRESULT SysQueryBindingPath(DWORD dwChangeFlag, INetCfgBindingPath* pIPath)
dwChangeFlagDWORDinシステム全体のバインディングパス変更種別を示すNCN_*フラグ。
pIPathINetCfgBindingPath*in変更対象のバインディングパスINetCfgBindingPath。拒否で変更を阻止可能。
vtbl 5 HRESULT SysNotifyBindingPath(DWORD dwChangeFlag, INetCfgBindingPath* pIPath)
dwChangeFlagDWORDin確定したシステムバインディングパス変更の種別を示すNCN_*フラグ。
pIPathINetCfgBindingPath*in変更が適用されたバインディングパスINetCfgBindingPath。
vtbl 6 HRESULT SysNotifyComponent(DWORD dwChangeFlag, INetCfgComponent* pIComp)
dwChangeFlagDWORDinコンポーネント変更の種別を示すNCN_*フラグ。
pICompINetCfgComponent*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 指定が可能。