#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IMLangConvertCharset "{D66D6F98-CDAA-11D0-B822-00C04FC9B31F}"
#usecom global IMLangConvertCharset IID_IMLangConvertCharset "{}"
#comfunc global IMLangConvertCharset_Initialize 3 int,int,int
#comfunc global IMLangConvertCharset_GetSourceCodePage 4 var
#comfunc global IMLangConvertCharset_GetDestinationCodePage 5 var
#comfunc global IMLangConvertCharset_GetProperty 6 var
#comfunc global IMLangConvertCharset_DoConversion 7 var,var,var,var
#comfunc global IMLangConvertCharset_DoConversionToUnicode 8 str,var,var,var
#comfunc global IMLangConvertCharset_DoConversionFromUnicode 9 wstr,var,var,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IMLangConvertCharset "{D66D6F98-CDAA-11D0-B822-00C04FC9B31F}"
#usecom global IMLangConvertCharset IID_IMLangConvertCharset "{}"
#comfunc global IMLangConvertCharset_Initialize 3 int,int,int
#comfunc global IMLangConvertCharset_GetSourceCodePage 4 sptr
#comfunc global IMLangConvertCharset_GetDestinationCodePage 5 sptr
#comfunc global IMLangConvertCharset_GetProperty 6 sptr
#comfunc global IMLangConvertCharset_DoConversion 7 sptr,sptr,sptr,sptr
#comfunc global IMLangConvertCharset_DoConversionToUnicode 8 str,sptr,sptr,sptr
#comfunc global IMLangConvertCharset_DoConversionFromUnicode 9 wstr,sptr,sptr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。