ホーム › Storage.Xps › IXpsOMPartUriCollection
IXpsOMPartUriCollection
COMメソッド 6
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| count | DWORD* | out | コレクションに含まれるパート URI の個数を受け取る変数へのポインタである。 |
vtbl 4 HRESULT GetAt(DWORD index, IOpcPartUri** partUri)
| index | DWORD | in | 取得するパート URI の 0 から始まるインデックスを指定する。 |
| partUri | IOpcPartUri** | out | 指定インデックスのパート URI を表す IOpcPartUri を受け取るポインタである。 |
vtbl 5 HRESULT InsertAt(DWORD index, IOpcPartUri* partUri)
| index | DWORD | in | 新しいパート URI を挿入する位置の 0 から始まるインデックスを指定する。 |
| partUri | IOpcPartUri* | in | 挿入する IOpcPartUri を指定する。 |
| index | DWORD | in | コレクションから削除するパート URI の 0 から始まるインデックスを指定する。 |
vtbl 7 HRESULT SetAt(DWORD index, IOpcPartUri* partUri)
| index | DWORD | in | 置き換える要素の 0 から始まるインデックスを指定する。 |
| partUri | IOpcPartUri* | in | 指定位置に設定する IOpcPartUri を指定する。 |
vtbl 8 HRESULT Append(IOpcPartUri* partUri)
| partUri | IOpcPartUri* | in | コレクションの末尾に追加する IOpcPartUri を指定する。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IXpsOMPartUriCollection "{57C650D4-067C-4893-8C33-F62A0633730F}" #usecom global IXpsOMPartUriCollection IID_IXpsOMPartUriCollection "{}" #comfunc global IXpsOMPartUriCollection_GetCount 3 var #comfunc global IXpsOMPartUriCollection_GetAt 4 int,sptr #comfunc global IXpsOMPartUriCollection_InsertAt 5 int,sptr #comfunc global IXpsOMPartUriCollection_RemoveAt 6 int #comfunc global IXpsOMPartUriCollection_SetAt 7 int,sptr #comfunc global IXpsOMPartUriCollection_Append 8 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IXpsOMPartUriCollection "{57C650D4-067C-4893-8C33-F62A0633730F}" #usecom global IXpsOMPartUriCollection IID_IXpsOMPartUriCollection "{}" #comfunc global IXpsOMPartUriCollection_GetCount 3 sptr #comfunc global IXpsOMPartUriCollection_GetAt 4 int,sptr #comfunc global IXpsOMPartUriCollection_InsertAt 5 int,sptr #comfunc global IXpsOMPartUriCollection_RemoveAt 6 int #comfunc global IXpsOMPartUriCollection_SetAt 7 int,sptr #comfunc global IXpsOMPartUriCollection_Append 8 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。