ホーム › System.Diagnostics.Debug.ActiveScript › IJsDebugProperty
IJsDebugProperty
COMメソッド 2
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT GetPropertyInfo(DWORD nRadix, JsDebugPropertyInfo* pPropertyInfo)
| nRadix | DWORD | in | 数値を文字列化する際の基数を指定する。 |
| pPropertyInfo | JsDebugPropertyInfo* | out | プロパティ情報を格納する JsDebugPropertyInfo 構造体へのポインタである。 |
vtbl 4 HRESULT GetMembers(JS_PROPERTY_MEMBERS members, IJsEnumDebugProperty** ppEnum)
| members | JS_PROPERTY_MEMBERS | in | 列挙するメンバーの種類を指定する JS_PROPERTY_MEMBERS 値である。 |
| ppEnum | IJsEnumDebugProperty** | out | メンバーを列挙する IJsEnumDebugProperty を受け取るポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IJsDebugProperty "{F8FFCF2B-3AA4-4320-85C3-52A312BA9633}" #usecom global IJsDebugProperty IID_IJsDebugProperty "{}" #comfunc global IJsDebugProperty_GetPropertyInfo 3 int,var #comfunc global IJsDebugProperty_GetMembers 4 int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IJsDebugProperty "{F8FFCF2B-3AA4-4320-85C3-52A312BA9633}" #usecom global IJsDebugProperty IID_IJsDebugProperty "{}" #comfunc global IJsDebugProperty_GetPropertyInfo 3 int,sptr #comfunc global IJsDebugProperty_GetMembers 4 int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。