ホーム › Graphics.Printing › IXpsDocumentConsumer
IXpsDocumentConsumer
COMメソッド 7
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| pUnknown | IUnknown* | in | 型不定のXPSパートをIUnknownとして送信する入力。 |
vtbl 4 HRESULT SendXpsDocument(IXpsDocument* pIXpsDocument)
| pIXpsDocument | IXpsDocument* | in | 送信するXPSドキュメントオブジェクト。 |
vtbl 5 HRESULT SendFixedDocumentSequence(IFixedDocumentSequence* pIFixedDocumentSequence)
| pIFixedDocumentSequence | IFixedDocumentSequence* | in | 送信する固定ドキュメントシーケンス。 |
vtbl 6 HRESULT SendFixedDocument(IFixedDocument* pIFixedDocument)
| pIFixedDocument | IFixedDocument* | in | 送信する固定ドキュメント。 |
vtbl 7 HRESULT SendFixedPage(IFixedPage* pIFixedPage)
| pIFixedPage | IFixedPage* | in | 送信する固定ページ。 |
vtbl 8 HRESULT CloseSender()
vtbl 9 HRESULT GetNewEmptyPart(LPWSTR uri, GUID* riid, void** ppNewObject, IPrintWriteStream** ppWriteStream)
| uri | LPWSTR | in | 新規作成するパートのURI文字列。 |
| riid | GUID* | in | 要求するパートインターフェイスの識別子(IID)。 |
| ppNewObject | void** | out | 生成された空パートオブジェクトをriid型で受け取る出力先。 |
| ppWriteStream | IPrintWriteStream** | 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 指定が可能。#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,sptr,sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。