ホーム › System.Wmi › ISWbemSecurity
ISWbemSecurity
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では
comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。メソッド 5
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
vtbl 7 HRESULT get_ImpersonationLevel(WbemImpersonationLevelEnum* iImpersonationLevel)
| iImpersonationLevel | WbemImpersonationLevelEnum* | out | 現在の偽装レベルを表す WbemImpersonationLevelEnum 値を受け取る出力ポインタである。 |
vtbl 8 HRESULT put_ImpersonationLevel(WbemImpersonationLevelEnum iImpersonationLevel)
| iImpersonationLevel | WbemImpersonationLevelEnum | in | 設定する偽装レベルを WbemImpersonationLevelEnum 値で指定する。 |
vtbl 9 HRESULT get_AuthenticationLevel(WbemAuthenticationLevelEnum* iAuthenticationLevel)
| iAuthenticationLevel | WbemAuthenticationLevelEnum* | out | 現在の認証レベルを表す WbemAuthenticationLevelEnum 値を受け取る出力ポインタである。 |
vtbl 10 HRESULT put_AuthenticationLevel(WbemAuthenticationLevelEnum iAuthenticationLevel)
| iAuthenticationLevel | WbemAuthenticationLevelEnum | in | 設定する認証レベルを WbemAuthenticationLevelEnum 値で指定する。 |
vtbl 11 HRESULT get_Privileges(ISWbemPrivilegeSet** objWbemPrivilegeSet)
| objWbemPrivilegeSet | ISWbemPrivilegeSet** | out | セキュリティに関連付けられた特権のコレクションを表す ISWbemPrivilegeSet オブジェクトを受け取る出力ポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_ISWbemSecurity "{B54D66E6-2287-11D2-8B33-00600806D9B6}" #usecom global ISWbemSecurity IID_ISWbemSecurity "{}" #comfunc global ISWbemSecurity_get_ImpersonationLevel 7 var #comfunc global ISWbemSecurity_put_ImpersonationLevel 8 int #comfunc global ISWbemSecurity_get_AuthenticationLevel 9 var #comfunc global ISWbemSecurity_put_AuthenticationLevel 10 int #comfunc global ISWbemSecurity_get_Privileges 11 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_ISWbemSecurity "{B54D66E6-2287-11D2-8B33-00600806D9B6}" #usecom global ISWbemSecurity IID_ISWbemSecurity "{}" #comfunc global ISWbemSecurity_get_ImpersonationLevel 7 sptr #comfunc global ISWbemSecurity_put_ImpersonationLevel 8 int #comfunc global ISWbemSecurity_get_AuthenticationLevel 9 sptr #comfunc global ISWbemSecurity_put_AuthenticationLevel 10 int #comfunc global ISWbemSecurity_get_Privileges 11 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。 ; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。