ホーム › Graphics.Printing › IPrintSchemaCapabilities
IPrintSchemaCapabilities
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 7
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
vtbl 10 HRESULT GetFeatureByKeyName(LPWSTR bstrKeyName, IPrintSchemaFeature** ppFeature)
| bstrKeyName | LPWSTR | in | 取得する機能のキー名(標準キーワード)を指定する入力文字列。 |
| ppFeature | IPrintSchemaFeature** | out | 指定キー名に対応するIPrintSchemaFeatureを受け取る出力先。 |
vtbl 11 HRESULT GetFeature(LPWSTR bstrName, LPWSTR bstrNamespaceUri, IPrintSchemaFeature** ppFeature)
| bstrName | LPWSTR | in | 取得する機能の名前を指定する入力文字列。 |
| bstrNamespaceUri | LPWSTR | in | 機能の名前空間URIを指定する入力文字列。 |
| ppFeature | IPrintSchemaFeature** | out | 指定したIPrintSchemaFeatureを受け取る出力先。 |
vtbl 12 HRESULT get_PageImageableSize(IPrintSchemaPageImageableSize** ppPageImageableSize)
| ppPageImageableSize | IPrintSchemaPageImageableSize** | out | ページの印刷可能領域情報を表すIPrintSchemaPageImageableSizeを受け取る出力先。 |
| pulJobCopiesAllDocumentsMinValue | DWORD* | out | ジョブ全文書の部数として設定可能な最小値を受け取る出力先(DWORD*)。 |
| pulJobCopiesAllDocumentsMaxValue | DWORD* | out | ジョブ全文書の部数として設定可能な最大値を受け取る出力先(DWORD*)。 |
vtbl 15 HRESULT GetSelectedOptionInPrintTicket(IPrintSchemaFeature* pFeature, IPrintSchemaOption** ppOption)
| pFeature | IPrintSchemaFeature* | in | 選択オプションを問い合わせる対象のIPrintSchemaFeatureへのポインタ。 |
| ppOption | IPrintSchemaOption** | out | 印刷チケット上で選択されているIPrintSchemaOptionを受け取る出力先。 |
vtbl 16 HRESULT GetOptions(IPrintSchemaFeature* pFeature, IPrintSchemaOptionCollection** ppOptionCollection)
| pFeature | IPrintSchemaFeature* | in | オプション一覧を取得する対象のIPrintSchemaFeatureへのポインタ。 |
| ppOptionCollection | IPrintSchemaOptionCollection** | out | 当該機能の全オプションを保持するIPrintSchemaOptionCollectionを受け取る出力先。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IPrintSchemaCapabilities "{5A577640-501D-4927-BCD0-5EF57A7ED175}" #usecom global IPrintSchemaCapabilities IID_IPrintSchemaCapabilities "{}" #comfunc global IPrintSchemaCapabilities_GetFeatureByKeyName 10 wstr,sptr #comfunc global IPrintSchemaCapabilities_GetFeature 11 wstr,wstr,sptr #comfunc global IPrintSchemaCapabilities_get_PageImageableSize 12 sptr #comfunc global IPrintSchemaCapabilities_get_JobCopiesAllDocumentsMinValue 13 var #comfunc global IPrintSchemaCapabilities_get_JobCopiesAllDocumentsMaxValue 14 var #comfunc global IPrintSchemaCapabilities_GetSelectedOptionInPrintTicket 15 sptr,sptr #comfunc global IPrintSchemaCapabilities_GetOptions 16 sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IPrintSchemaCapabilities "{5A577640-501D-4927-BCD0-5EF57A7ED175}" #usecom global IPrintSchemaCapabilities IID_IPrintSchemaCapabilities "{}" #comfunc global IPrintSchemaCapabilities_GetFeatureByKeyName 10 wstr,sptr #comfunc global IPrintSchemaCapabilities_GetFeature 11 wstr,wstr,sptr #comfunc global IPrintSchemaCapabilities_get_PageImageableSize 12 sptr #comfunc global IPrintSchemaCapabilities_get_JobCopiesAllDocumentsMinValue 13 sptr #comfunc global IPrintSchemaCapabilities_get_JobCopiesAllDocumentsMaxValue 14 sptr #comfunc global IPrintSchemaCapabilities_GetSelectedOptionInPrintTicket 15 sptr,sptr #comfunc global IPrintSchemaCapabilities_GetOptions 16 sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。