#define global IID_IPrincipal "{D98D51E5-C9B4-496A-A9C1-18980261CF0F}"
#usecom global IPrincipal IID_IPrincipal "{}"
#comfunc global IPrincipal_get_Id 7 var
#comfunc global IPrincipal_put_Id 8 wstr
#comfunc global IPrincipal_get_DisplayName 9 var
#comfunc global IPrincipal_put_DisplayName 10 wstr
#comfunc global IPrincipal_get_UserId 11 var
#comfunc global IPrincipal_put_UserId 12 wstr
#comfunc global IPrincipal_get_LogonType 13 var
#comfunc global IPrincipal_put_LogonType 14 int
#comfunc global IPrincipal_get_GroupId 15 var
#comfunc global IPrincipal_put_GroupId 16 wstr
#comfunc global IPrincipal_get_RunLevel 17 var
#comfunc global IPrincipal_put_RunLevel 18 int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IPrincipal "{D98D51E5-C9B4-496A-A9C1-18980261CF0F}"
#usecom global IPrincipal IID_IPrincipal "{}"
#comfunc global IPrincipal_get_Id 7 sptr
#comfunc global IPrincipal_put_Id 8 wstr
#comfunc global IPrincipal_get_DisplayName 9 sptr
#comfunc global IPrincipal_put_DisplayName 10 wstr
#comfunc global IPrincipal_get_UserId 11 sptr
#comfunc global IPrincipal_put_UserId 12 wstr
#comfunc global IPrincipal_get_LogonType 13 sptr
#comfunc global IPrincipal_put_LogonType 14 int
#comfunc global IPrincipal_get_GroupId 15 sptr
#comfunc global IPrincipal_put_GroupId 16 wstr
#comfunc global IPrincipal_get_RunLevel 17 sptr
#comfunc global IPrincipal_put_RunLevel 18 int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。