#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IAudioEndpointVolume "{5CDF2C82-841E-4546-9722-0CF74078229A}"
#usecom global IAudioEndpointVolume IID_IAudioEndpointVolume "{}"
#comfunc global IAudioEndpointVolume_RegisterControlChangeNotify 3 sptr
#comfunc global IAudioEndpointVolume_UnregisterControlChangeNotify 4 sptr
#comfunc global IAudioEndpointVolume_GetChannelCount 5 var
#comfunc global IAudioEndpointVolume_SetMasterVolumeLevel 6 float,var
#comfunc global IAudioEndpointVolume_SetMasterVolumeLevelScalar 7 float,var
#comfunc global IAudioEndpointVolume_GetMasterVolumeLevel 8 var
#comfunc global IAudioEndpointVolume_GetMasterVolumeLevelScalar 9 var
#comfunc global IAudioEndpointVolume_SetChannelVolumeLevel 10 int,float,var
#comfunc global IAudioEndpointVolume_SetChannelVolumeLevelScalar 11 int,float,var
#comfunc global IAudioEndpointVolume_GetChannelVolumeLevel 12 int,var
#comfunc global IAudioEndpointVolume_GetChannelVolumeLevelScalar 13 int,var
#comfunc global IAudioEndpointVolume_SetMute 14 int,var
#comfunc global IAudioEndpointVolume_GetMute 15 var
#comfunc global IAudioEndpointVolume_GetVolumeStepInfo 16 var,var
#comfunc global IAudioEndpointVolume_VolumeStepUp 17 var
#comfunc global IAudioEndpointVolume_VolumeStepDown 18 var
#comfunc global IAudioEndpointVolume_QueryHardwareSupport 19 var
#comfunc global IAudioEndpointVolume_GetVolumeRange 20 var,var,var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IAudioEndpointVolume "{5CDF2C82-841E-4546-9722-0CF74078229A}"
#usecom global IAudioEndpointVolume IID_IAudioEndpointVolume "{}"
#comfunc global IAudioEndpointVolume_RegisterControlChangeNotify 3 sptr
#comfunc global IAudioEndpointVolume_UnregisterControlChangeNotify 4 sptr
#comfunc global IAudioEndpointVolume_GetChannelCount 5 sptr
#comfunc global IAudioEndpointVolume_SetMasterVolumeLevel 6 float,sptr
#comfunc global IAudioEndpointVolume_SetMasterVolumeLevelScalar 7 float,sptr
#comfunc global IAudioEndpointVolume_GetMasterVolumeLevel 8 sptr
#comfunc global IAudioEndpointVolume_GetMasterVolumeLevelScalar 9 sptr
#comfunc global IAudioEndpointVolume_SetChannelVolumeLevel 10 int,float,sptr
#comfunc global IAudioEndpointVolume_SetChannelVolumeLevelScalar 11 int,float,sptr
#comfunc global IAudioEndpointVolume_GetChannelVolumeLevel 12 int,sptr
#comfunc global IAudioEndpointVolume_GetChannelVolumeLevelScalar 13 int,sptr
#comfunc global IAudioEndpointVolume_SetMute 14 int,sptr
#comfunc global IAudioEndpointVolume_GetMute 15 sptr
#comfunc global IAudioEndpointVolume_GetVolumeStepInfo 16 sptr,sptr
#comfunc global IAudioEndpointVolume_VolumeStepUp 17 sptr
#comfunc global IAudioEndpointVolume_VolumeStepDown 18 sptr
#comfunc global IAudioEndpointVolume_QueryHardwareSupport 19 sptr
#comfunc global IAudioEndpointVolume_GetVolumeRange 20 sptr,sptr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。