#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IXblIdpAuthManager "{EB5DDB08-8BBF-449B-AC21-B02DDEB3B136}"
#usecom global IXblIdpAuthManager IID_IXblIdpAuthManager "{CE23534B-56D8-4978-86A2-7EE570640468}"
#comfunc global IXblIdpAuthManager_SetGamerAccount 3 wstr,wstr
#comfunc global IXblIdpAuthManager_GetGamerAccount 4 var,var
#comfunc global IXblIdpAuthManager_SetAppViewInitialized 5 wstr,wstr
#comfunc global IXblIdpAuthManager_GetEnvironment 6 var
#comfunc global IXblIdpAuthManager_GetSandbox 7 var
#comfunc global IXblIdpAuthManager_GetTokenAndSignatureWithTokenResult 8 wstr,wstr,wstr,wstr,wstr,wstr,wstr,var,int,int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IXblIdpAuthManager "{EB5DDB08-8BBF-449B-AC21-B02DDEB3B136}"
#usecom global IXblIdpAuthManager IID_IXblIdpAuthManager "{CE23534B-56D8-4978-86A2-7EE570640468}"
#comfunc global IXblIdpAuthManager_SetGamerAccount 3 wstr,wstr
#comfunc global IXblIdpAuthManager_GetGamerAccount 4 sptr,sptr
#comfunc global IXblIdpAuthManager_SetAppViewInitialized 5 wstr,wstr
#comfunc global IXblIdpAuthManager_GetEnvironment 6 sptr
#comfunc global IXblIdpAuthManager_GetSandbox 7 sptr
#comfunc global IXblIdpAuthManager_GetTokenAndSignatureWithTokenResult 8 wstr,wstr,wstr,wstr,wstr,wstr,wstr,sptr,int,int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。