ホーム › Data.Xml.MsXml › ISchema
ISchema
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 9
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
| targetNamespace | LPWSTR* | out | このスキーマの対象名前空間(targetNamespace)URIを受け取る出力先。 |
| version | LPWSTR* | out | スキーマのversion属性値を受け取る出力先。 |
vtbl 16 HRESULT get_types(ISchemaItemCollection** types)
| types | ISchemaItemCollection** | out | スキーマで定義された型の集合(ISchemaItemCollection)を受け取る出力先。 |
vtbl 17 HRESULT get_elements(ISchemaItemCollection** elements)
| elements | ISchemaItemCollection** | out | スキーマで宣言された要素の集合を受け取る出力先。 |
vtbl 18 HRESULT get_attributes(ISchemaItemCollection** attributes)
| attributes | ISchemaItemCollection** | out | スキーマで宣言された属性の集合を受け取る出力先。 |
vtbl 19 HRESULT get_attributeGroups(ISchemaItemCollection** attributeGroups)
| attributeGroups | ISchemaItemCollection** | out | スキーマで定義された属性グループの集合を受け取る出力先。 |
vtbl 20 HRESULT get_modelGroups(ISchemaItemCollection** modelGroups)
| modelGroups | ISchemaItemCollection** | out | スキーマで定義されたモデルグループの集合を受け取る出力先。 |
vtbl 21 HRESULT get_notations(ISchemaItemCollection** notations)
| notations | ISchemaItemCollection** | out | スキーマで宣言された記法(notation)の集合を受け取る出力先。 |
vtbl 22 HRESULT get_schemaLocations(ISchemaStringCollection** schemaLocations)
| schemaLocations | ISchemaStringCollection** | out | このスキーマが参照する他スキーマの所在URI文字列の集合を受け取る出力先。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ISchema "{50EA08B4-DD1B-4664-9A50-C2F40F4BD79A}" #usecom global ISchema IID_ISchema "{}" #comfunc global ISchema_get_targetNamespace 14 var #comfunc global ISchema_get_version 15 var #comfunc global ISchema_get_types 16 sptr #comfunc global ISchema_get_elements 17 sptr #comfunc global ISchema_get_attributes 18 sptr #comfunc global ISchema_get_attributeGroups 19 sptr #comfunc global ISchema_get_modelGroups 20 sptr #comfunc global ISchema_get_notations 21 sptr #comfunc global ISchema_get_schemaLocations 22 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_ISchema "{50EA08B4-DD1B-4664-9A50-C2F40F4BD79A}" #usecom global ISchema IID_ISchema "{}" #comfunc global ISchema_get_targetNamespace 14 sptr #comfunc global ISchema_get_version 15 sptr #comfunc global ISchema_get_types 16 sptr #comfunc global ISchema_get_elements 17 sptr #comfunc global ISchema_get_attributes 18 sptr #comfunc global ISchema_get_attributeGroups 19 sptr #comfunc global ISchema_get_modelGroups 20 sptr #comfunc global ISchema_get_notations 21 sptr #comfunc global ISchema_get_schemaLocations 22 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。