Win32 API 日本語リファレンス
ホームData.Xml.MsXml › ISchema

ISchema

COMIDispatch (デュアル)
IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IID50ea08b4-dd1b-4664-9a50-c2f40f4bd79a継承元ISchemaItem呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl14

メソッド 9

vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。

vtbl 14 HRESULT get_targetNamespace(LPWSTR* targetNamespace)
targetNamespaceLPWSTR*outこのスキーマの対象名前空間(targetNamespace)URIを受け取る出力先。
vtbl 15 HRESULT get_version(LPWSTR* version)
versionLPWSTR*outスキーマのversion属性値を受け取る出力先。
vtbl 16 HRESULT get_types(ISchemaItemCollection** types)
typesISchemaItemCollection**outスキーマで定義された型の集合(ISchemaItemCollection)を受け取る出力先。
vtbl 17 HRESULT get_elements(ISchemaItemCollection** elements)
elementsISchemaItemCollection**outスキーマで宣言された要素の集合を受け取る出力先。
vtbl 18 HRESULT get_attributes(ISchemaItemCollection** attributes)
attributesISchemaItemCollection**outスキーマで宣言された属性の集合を受け取る出力先。
vtbl 19 HRESULT get_attributeGroups(ISchemaItemCollection** attributeGroups)
attributeGroupsISchemaItemCollection**outスキーマで定義された属性グループの集合を受け取る出力先。
vtbl 20 HRESULT get_modelGroups(ISchemaItemCollection** modelGroups)
modelGroupsISchemaItemCollection**outスキーマで定義されたモデルグループの集合を受け取る出力先。
vtbl 21 HRESULT get_notations(ISchemaItemCollection** notations)
notationsISchemaItemCollection**outスキーマで宣言された記法(notation)の集合を受け取る出力先。
vtbl 22 HRESULT get_schemaLocations(ISchemaStringCollection** schemaLocations)
schemaLocationsISchemaStringCollection**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 不要)。