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

INetCfgBindingInterface

COM
IIDc0e8ae94-306e-11d1-aacf-00805fc1270e継承元IUnknown自前メソッド開始 vtbl3

メソッド 3

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

vtbl 3 HRESULT GetName(LPWSTR* ppszwInterfaceName)
ppszwInterfaceNameLPWSTR*outoptionalバインディングインターフェイスの名前文字列を受け取る。CoTaskMemFreeで解放。
vtbl 4 HRESULT GetUpperComponent(INetCfgComponent** ppnccItem)
ppnccItemINetCfgComponent**outoptionalバインドの上位側コンポーネントINetCfgComponentを受け取る。
vtbl 5 HRESULT GetLowerComponent(INetCfgComponent** ppnccItem)
ppnccItemINetCfgComponent**outoptionalバインドの下位側コンポーネントINetCfgComponentを受け取る。

HSP用 COM定義

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

出力引数:
#define global IID_INetCfgBindingInterface "{C0E8AE94-306E-11D1-AACF-00805FC1270E}"
#usecom global INetCfgBindingInterface IID_INetCfgBindingInterface "{}"
#comfunc global INetCfgBindingInterface_GetName            3 var
#comfunc global INetCfgBindingInterface_GetUpperComponent  4 sptr
#comfunc global INetCfgBindingInterface_GetLowerComponent  5 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。