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

IPresentationFactory

COM
IID8fb37b58-1d74-4f64-a49c-1f97a80a2ec0継承元IUnknown自前メソッド開始 vtbl3

メソッド 3

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

vtbl 3 BYTE IsPresentationSupported()
vtbl 4 BYTE IsPresentationSupportedWithIndependentFlip()
vtbl 5 HRESULT CreatePresentationManager(IPresentationManager** ppPresentationManager)
ppPresentationManagerIPresentationManager**out生成された提示マネージャIPresentationManagerを受け取る出力ポインタ。

HSP用 COM定義

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

#define global IID_IPresentationFactory "{8FB37B58-1D74-4F64-A49C-1F97A80A2EC0}"
#usecom global IPresentationFactory IID_IPresentationFactory "{}"
#comfunc global IPresentationFactory_IsPresentationSupported                     3
#comfunc global IPresentationFactory_IsPresentationSupportedWithIndependentFlip  4
#comfunc global IPresentationFactory_CreatePresentationManager                   5 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。