ホーム › NetworkManagement.MobileBroadband › IMbnConnectionProfileManager
IMbnConnectionProfileManager
COMメソッド 3
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT GetConnectionProfiles(IMbnInterface* mbnInterface, SAFEARRAY** connectionProfiles)
| mbnInterface | IMbnInterface* | in | プロファイルを取得する対象インターフェイスを指定するIMbnInterfaceポインタ。 |
| connectionProfiles | SAFEARRAY** | out | 対象インターフェイスの接続プロファイル一覧をSAFEARRAYで受け取る出力ポインタ。 |
vtbl 4 HRESULT GetConnectionProfile(IMbnInterface* mbnInterface, LPWSTR profileName, IMbnConnectionProfile** connectionProfile)
| mbnInterface | IMbnInterface* | in | プロファイルを取得する対象インターフェイスを指定するIMbnInterfaceポインタ。 |
| profileName | LPWSTR | in | 取得対象プロファイルの名前を指定する文字列の入力。 |
| connectionProfile | IMbnConnectionProfile** | out | 指定名に対応する接続プロファイルIMbnConnectionProfileを受け取る出力ポインタ。 |
| xmlProfile | LPWSTR | in | 新規作成する接続プロファイルの定義を記述した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 指定が可能。#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,sptr #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から自動取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。