ホーム › Devices.Tapi › ITAllocatorProperties
ITAllocatorProperties
COMメソッド 6
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT SetAllocatorProperties(ALLOCATOR_PROPERTIES* pAllocProperties)
| pAllocProperties | ALLOCATOR_PROPERTIES* | in | 設定するアロケータのプロパティを記述したALLOCATOR_PROPERTIES構造体へのポインタ。 |
vtbl 4 HRESULT GetAllocatorProperties(ALLOCATOR_PROPERTIES* pAllocProperties)
| pAllocProperties | ALLOCATOR_PROPERTIES* | out | 現在のアロケータのプロパティを受け取るALLOCATOR_PROPERTIES構造体へのポインタ。 |
| bAllocBuffers | BOOL | in | MSPがバッファを割り当てるかを指定するBOOL値。TRUEで割り当てを有効化する。 |
| pbAllocBuffers | BOOL* | out | バッファ割り当てが有効かどうかを示すBOOL値を受け取る出力先。 |
| BufferSize | DWORD | in | 割り当てる各バッファのサイズをバイト単位で指定するDWORD値。 |
| pBufferSize | DWORD* | out | 現在のバッファサイズをバイト単位で受け取る出力先。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ITAllocatorProperties "{C1BC3C90-BCFE-11D1-9745-00C04FD91AC0}" #usecom global ITAllocatorProperties IID_ITAllocatorProperties "{}" #comfunc global ITAllocatorProperties_SetAllocatorProperties 3 var #comfunc global ITAllocatorProperties_GetAllocatorProperties 4 var #comfunc global ITAllocatorProperties_SetAllocateBuffers 5 int #comfunc global ITAllocatorProperties_GetAllocateBuffers 6 var #comfunc global ITAllocatorProperties_SetBufferSize 7 int #comfunc global ITAllocatorProperties_GetBufferSize 8 var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_ITAllocatorProperties "{C1BC3C90-BCFE-11D1-9745-00C04FD91AC0}" #usecom global ITAllocatorProperties IID_ITAllocatorProperties "{}" #comfunc global ITAllocatorProperties_SetAllocatorProperties 3 sptr #comfunc global ITAllocatorProperties_GetAllocatorProperties 4 sptr #comfunc global ITAllocatorProperties_SetAllocateBuffers 5 int #comfunc global ITAllocatorProperties_GetAllocateBuffers 6 sptr #comfunc global ITAllocatorProperties_SetBufferSize 7 int #comfunc global ITAllocatorProperties_GetBufferSize 8 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。