ホーム › Devices.Tapi › ITForwardInformation
ITForwardInformation
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 7
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
| lNumRings | INT | in | 無応答転送が発動するまでの呼び出し音回数を設定する。 |
| plNumRings | INT* | out | 無応答転送が発動するまでの呼び出し音回数を受け取る。 |
| ForwardType | INT | in | 設定する転送条件の種類(LINEFORWARDMODE値)を指定する。 |
| pDestAddress | LPWSTR | in | 転送先のアドレス(電話番号)を指定する。 |
| pCallerAddress | LPWSTR | in | 条件付き転送で対象となる発信元アドレスを指定する。全発信元対象ならNULL可。 |
| ForwardType | INT | in | 問い合わせる転送条件の種類を指定する。 |
| ppDestAddress | LPWSTR* | out | 指定転送種別に対する転送先アドレスを受け取る出力先。呼び出し側で解放する。 |
| Forwardtype | INT | in | 問い合わせる転送条件の種類を指定する。 |
| ppCallerAddress | LPWSTR* | out | 指定転送種別に対する発信元アドレスを受け取る出力先。呼び出し側で解放する。 |
vtbl 12 HRESULT GetForwardType(INT ForwardType, LPWSTR* ppDestinationAddress, LPWSTR* ppCallerAddress)
| ForwardType | INT | in | 問い合わせる転送条件の種類を指定する。 |
| ppDestinationAddress | LPWSTR* | out | 指定転送種別に対する転送先アドレスを受け取る出力先。呼び出し側で解放する。 |
| ppCallerAddress | LPWSTR* | out | 指定転送種別に対する発信元アドレスを受け取る出力先。呼び出し側で解放する。 |
vtbl 13 HRESULT Clear()
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ITForwardInformation "{449F659E-88A3-11D1-BB5D-00C04FB6809F}" #usecom global ITForwardInformation IID_ITForwardInformation "{}" #comfunc global ITForwardInformation_put_NumRingsNoAnswer 7 int #comfunc global ITForwardInformation_get_NumRingsNoAnswer 8 var #comfunc global ITForwardInformation_SetForwardType 9 int,wstr,wstr #comfunc global ITForwardInformation_get_ForwardTypeDestination 10 int,var #comfunc global ITForwardInformation_get_ForwardTypeCaller 11 int,var #comfunc global ITForwardInformation_GetForwardType 12 int,var,var #comfunc global ITForwardInformation_Clear 13 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_ITForwardInformation "{449F659E-88A3-11D1-BB5D-00C04FB6809F}" #usecom global ITForwardInformation IID_ITForwardInformation "{}" #comfunc global ITForwardInformation_put_NumRingsNoAnswer 7 int #comfunc global ITForwardInformation_get_NumRingsNoAnswer 8 sptr #comfunc global ITForwardInformation_SetForwardType 9 int,wstr,wstr #comfunc global ITForwardInformation_get_ForwardTypeDestination 10 int,sptr #comfunc global ITForwardInformation_get_ForwardTypeCaller 11 int,sptr #comfunc global ITForwardInformation_GetForwardType 12 int,sptr,sptr #comfunc global ITForwardInformation_Clear 13 ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。