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

IMbnConnectionProfileManager

COM
IIDdcbbbab6-200f-4bbb-aaee-338e368af6fa継承元IUnknown自前メソッド開始 vtbl3

メソッド 3

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

vtbl 3 HRESULT GetConnectionProfiles(IMbnInterface* mbnInterface, SAFEARRAY** connectionProfiles)
mbnInterfaceIMbnInterface*inプロファイルを取得する対象インターフェイスを指定するIMbnInterfaceポインタ。
connectionProfilesSAFEARRAY**out対象インターフェイスの接続プロファイル一覧をSAFEARRAYで受け取る出力ポインタ。
vtbl 4 HRESULT GetConnectionProfile(IMbnInterface* mbnInterface, LPWSTR profileName, IMbnConnectionProfile** connectionProfile)
mbnInterfaceIMbnInterface*inプロファイルを取得する対象インターフェイスを指定するIMbnInterfaceポインタ。
profileNameLPWSTRin取得対象プロファイルの名前を指定する文字列の入力。
connectionProfileIMbnConnectionProfile**out指定名に対応する接続プロファイルIMbnConnectionProfileを受け取る出力ポインタ。
vtbl 5 HRESULT CreateConnectionProfile(LPWSTR xmlProfile)
xmlProfileLPWSTRin新規作成する接続プロファイルの定義を記述したXML文字列の入力。

HSP用 COM定義

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

出力引数:
#define global IID_IMbnConnectionProfileManager "{DCBBBAB6-200F-4BBB-AAEE-338E368AF6FA}"
#usecom global IMbnConnectionProfileManager IID_IMbnConnectionProfileManager "{BDFEE05A-4418-11DD-90ED-001C257CCFF1}"
#comfunc global IMbnConnectionProfileManager_GetConnectionProfiles    3 sptr,var
#comfunc global IMbnConnectionProfileManager_GetConnectionProfile     4 sptr,wstr,sptr
#comfunc global IMbnConnectionProfileManager_CreateConnectionProfile  5 wstr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。