ホーム › NetworkManagement.MobileBroadband › IMbnDeviceServicesContext
IMbnDeviceServicesContext
COMメソッド 4
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| deviceServices | SAFEARRAY** | out | デバイスが公開する全デバイスサービスの一覧をSAFEARRAYで受け取る出力ポインタ。 |
vtbl 4 HRESULT GetDeviceService(LPWSTR deviceServiceID, IMbnDeviceService** mbnDeviceService)
| deviceServiceID | LPWSTR | in | 取得対象デバイスサービスを識別するGUID文字列の入力。 |
| mbnDeviceService | IMbnDeviceService** | out | 指定IDに対応するデバイスサービスIMbnDeviceServiceを受け取る出力ポインタ。 |
| maxCommandSize | DWORD* | out | コマンドで送受信可能な最大データサイズをバイト単位で受け取る出力ポインタ。 |
| maxDataSize | DWORD* | out | データセッションで送受信可能な最大データサイズをバイト単位で受け取る出力ポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IMbnDeviceServicesContext "{FC5AC347-1592-4068-80BB-6A57580150D8}" #usecom global IMbnDeviceServicesContext IID_IMbnDeviceServicesContext "{}" #comfunc global IMbnDeviceServicesContext_EnumerateDeviceServices 3 var #comfunc global IMbnDeviceServicesContext_GetDeviceService 4 wstr,sptr #comfunc global IMbnDeviceServicesContext_get_MaxCommandSize 5 var #comfunc global IMbnDeviceServicesContext_get_MaxDataSize 6 var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IMbnDeviceServicesContext "{FC5AC347-1592-4068-80BB-6A57580150D8}" #usecom global IMbnDeviceServicesContext IID_IMbnDeviceServicesContext "{}" #comfunc global IMbnDeviceServicesContext_EnumerateDeviceServices 3 sptr #comfunc global IMbnDeviceServicesContext_GetDeviceService 4 wstr,sptr #comfunc global IMbnDeviceServicesContext_get_MaxCommandSize 5 sptr #comfunc global IMbnDeviceServicesContext_get_MaxDataSize 6 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。