Win32 API 日本語リファレンス
ホームStorage.Xps › IXpsOMPartUriCollection

IXpsOMPartUriCollection

COM
IID57c650d4-067c-4893-8c33-f62a0633730f継承元IUnknown自前メソッド開始 vtbl3

メソッド 6

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT GetCount(DWORD* count)
countDWORD*outコレクションに含まれるパート URI の個数を受け取る変数へのポインタである。
vtbl 4 HRESULT GetAt(DWORD index, IOpcPartUri** partUri)
indexDWORDin取得するパート URI の 0 から始まるインデックスを指定する。
partUriIOpcPartUri**out指定インデックスのパート URI を表す IOpcPartUri を受け取るポインタである。
vtbl 5 HRESULT InsertAt(DWORD index, IOpcPartUri* partUri)
indexDWORDin新しいパート URI を挿入する位置の 0 から始まるインデックスを指定する。
partUriIOpcPartUri*in挿入する IOpcPartUri を指定する。
vtbl 6 HRESULT RemoveAt(DWORD index)
indexDWORDinコレクションから削除するパート URI の 0 から始まるインデックスを指定する。
vtbl 7 HRESULT SetAt(DWORD index, IOpcPartUri* partUri)
indexDWORDin置き換える要素の 0 から始まるインデックスを指定する。
partUriIOpcPartUri*in指定位置に設定する IOpcPartUri を指定する。
vtbl 8 HRESULT Append(IOpcPartUri* partUri)
partUriIOpcPartUri*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 指定が可能。