Win32 API 日本語リファレンス
ホームGraphics.Printing › IXpsDocumentConsumer

IXpsDocumentConsumer

COM
IID4368d8a2-4181-4a9f-b295-3d9a38bb9ba0継承元IUnknown自前メソッド開始 vtbl3

メソッド 7

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

vtbl 3 HRESULT SendXpsUnknown(IUnknown* pUnknown)
pUnknownIUnknown*in型不定のXPSパートをIUnknownとして送信する入力。
vtbl 4 HRESULT SendXpsDocument(IXpsDocument* pIXpsDocument)
pIXpsDocumentIXpsDocument*in送信するXPSドキュメントオブジェクト。
vtbl 5 HRESULT SendFixedDocumentSequence(IFixedDocumentSequence* pIFixedDocumentSequence)
pIFixedDocumentSequenceIFixedDocumentSequence*in送信する固定ドキュメントシーケンス。
vtbl 6 HRESULT SendFixedDocument(IFixedDocument* pIFixedDocument)
pIFixedDocumentIFixedDocument*in送信する固定ドキュメント。
vtbl 7 HRESULT SendFixedPage(IFixedPage* pIFixedPage)
pIFixedPageIFixedPage*in送信する固定ページ。
vtbl 8 HRESULT CloseSender()
vtbl 9 HRESULT GetNewEmptyPart(LPWSTR uri, GUID* riid, void** ppNewObject, IPrintWriteStream** ppWriteStream)
uriLPWSTRin新規作成するパートのURI文字列。
riidGUID*in要求するパートインターフェイスの識別子(IID)。
ppNewObjectvoid**out生成された空パートオブジェクトをriid型で受け取る出力先。
ppWriteStreamIPrintWriteStream**outパートへの書き込みストリームを受け取る出力先。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

出力引数:
#define global IID_IXpsDocumentConsumer "{4368D8A2-4181-4A9F-B295-3D9A38BB9BA0}"
#usecom global IXpsDocumentConsumer IID_IXpsDocumentConsumer "{}"
#comfunc global IXpsDocumentConsumer_SendXpsUnknown             3 sptr
#comfunc global IXpsDocumentConsumer_SendXpsDocument            4 sptr
#comfunc global IXpsDocumentConsumer_SendFixedDocumentSequence  5 sptr
#comfunc global IXpsDocumentConsumer_SendFixedDocument          6 sptr
#comfunc global IXpsDocumentConsumer_SendFixedPage              7 sptr
#comfunc global IXpsDocumentConsumer_CloseSender                8
#comfunc global IXpsDocumentConsumer_GetNewEmptyPart            9 wstr,var,sptr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。