Win32 API 日本語リファレンス
ホームSecurity.Authorization › IAzApplication3

IAzApplication3

COMIDispatch (デュアル)
IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IID181c845e-7196-4a7d-ac2e-020c0bb7a303継承元IAzApplication2呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl70

メソッド 14

vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。

vtbl 70 HRESULT ScopeExists(LPWSTR bstrScopeName, VARIANT_BOOL* pbExist)
bstrScopeNameLPWSTRin存在を確認するスコープの名前をBSTRで指定する。
pbExistVARIANT_BOOL*out指定したスコープが存在するかどうかを示すVARIANT_BOOLを受け取るポインタである。
vtbl 71 HRESULT OpenScope2(LPWSTR bstrScopeName, IAzScope2** ppScope2)
bstrScopeNameLPWSTRin開く既存のスコープの名前をBSTRで指定する。
ppScope2IAzScope2**out開かれたスコープオブジェクト(IAzScope2)を受け取るポインタである。
vtbl 72 HRESULT CreateScope2(LPWSTR bstrScopeName, IAzScope2** ppScope2)
bstrScopeNameLPWSTRin新しく作成するスコープの名前をBSTRで指定する。
ppScope2IAzScope2**out作成されたスコープオブジェクト(IAzScope2)を受け取るポインタである。
vtbl 73 HRESULT DeleteScope2(LPWSTR bstrScopeName)
bstrScopeNameLPWSTRin削除するスコープの名前をBSTRで指定する。
vtbl 74 HRESULT get_RoleDefinitions(IAzRoleDefinitions** ppRoleDefinitions)
ppRoleDefinitionsIAzRoleDefinitions**outアプリケーションに含まれるロール定義のコレクション(IAzRoleDefinitions)を受け取るポインタである。
vtbl 75 HRESULT CreateRoleDefinition(LPWSTR bstrRoleDefinitionName, IAzRoleDefinition** ppRoleDefinitions)
bstrRoleDefinitionNameLPWSTRin新しく作成するロール定義の名前をBSTRで指定する。
ppRoleDefinitionsIAzRoleDefinition**out作成されたロール定義オブジェクト(IAzRoleDefinition)を受け取るポインタである。
vtbl 76 HRESULT OpenRoleDefinition(LPWSTR bstrRoleDefinitionName, IAzRoleDefinition** ppRoleDefinitions)
bstrRoleDefinitionNameLPWSTRin開く既存のロール定義の名前をBSTRで指定する。
ppRoleDefinitionsIAzRoleDefinition**out開かれたロール定義オブジェクト(IAzRoleDefinition)を受け取るポインタである。
vtbl 77 HRESULT DeleteRoleDefinition(LPWSTR bstrRoleDefinitionName)
bstrRoleDefinitionNameLPWSTRin削除するロール定義の名前をBSTRで指定する。
vtbl 78 HRESULT get_RoleAssignments(IAzRoleAssignments** ppRoleAssignments)
ppRoleAssignmentsIAzRoleAssignments**outアプリケーションに含まれるロール割り当てのコレクション(IAzRoleAssignments)を受け取るポインタである。
vtbl 79 HRESULT CreateRoleAssignment(LPWSTR bstrRoleAssignmentName, IAzRoleAssignment** ppRoleAssignment)
bstrRoleAssignmentNameLPWSTRin新しく作成するロール割り当ての名前をBSTRで指定する。
ppRoleAssignmentIAzRoleAssignment**out作成されたロール割り当てオブジェクト(IAzRoleAssignment)を受け取るポインタである。
vtbl 80 HRESULT OpenRoleAssignment(LPWSTR bstrRoleAssignmentName, IAzRoleAssignment** ppRoleAssignment)
bstrRoleAssignmentNameLPWSTRin開く既存のロール割り当ての名前をBSTRで指定する。
ppRoleAssignmentIAzRoleAssignment**out開かれたロール割り当てオブジェクト(IAzRoleAssignment)を受け取るポインタである。
vtbl 81 HRESULT DeleteRoleAssignment(LPWSTR bstrRoleAssignmentName)
bstrRoleAssignmentNameLPWSTRin削除するロール割り当ての名前をBSTRで指定する。
vtbl 82 HRESULT get_BizRulesEnabled(VARIANT_BOOL* pbEnabled)
pbEnabledVARIANT_BOOL*outこのアプリケーションでビジネスルールが有効かどうかを示すVARIANT_BOOLを受け取るポインタである。
vtbl 83 HRESULT put_BizRulesEnabled(VARIANT_BOOL bEnabled)
bEnabledVARIANT_BOOLinこのアプリケーションでビジネスルールを有効にするかどうかをVARIANT_BOOLで指定する。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

出力引数:
#define global IID_IAzApplication3 "{181C845E-7196-4A7D-AC2E-020C0BB7A303}"
#usecom global IAzApplication3 IID_IAzApplication3 "{}"
#comfunc global IAzApplication3_ScopeExists           70 wstr,var
#comfunc global IAzApplication3_OpenScope2            71 wstr,sptr
#comfunc global IAzApplication3_CreateScope2          72 wstr,sptr
#comfunc global IAzApplication3_DeleteScope2          73 wstr
#comfunc global IAzApplication3_get_RoleDefinitions   74 sptr
#comfunc global IAzApplication3_CreateRoleDefinition  75 wstr,sptr
#comfunc global IAzApplication3_OpenRoleDefinition    76 wstr,sptr
#comfunc global IAzApplication3_DeleteRoleDefinition  77 wstr
#comfunc global IAzApplication3_get_RoleAssignments   78 sptr
#comfunc global IAzApplication3_CreateRoleAssignment  79 wstr,sptr
#comfunc global IAzApplication3_OpenRoleAssignment    80 wstr,sptr
#comfunc global IAzApplication3_DeleteRoleAssignment  81 wstr
#comfunc global IAzApplication3_get_BizRulesEnabled   82 var
#comfunc global IAzApplication3_put_BizRulesEnabled   83 int
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。