Win32 API 日本語リファレンス
ホームSecurity.Authentication.Identity.Provider › IIdentityAuthentication

IIdentityAuthentication

COM
IID5e7ef254-979f-43b5-b74e-06e4eb7df0f9継承元IUnknown自前メソッド開始 vtbl3

メソッド 2

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT SetIdentityCredential(BYTE* CredBuffer, DWORD CredBufferLength)
CredBufferBYTE*inoptional設定する資格情報データを格納したバッファへのポインタを指定する。
CredBufferLengthDWORDin資格情報データバッファの長さをバイト数で指定する。
vtbl 4 HRESULT ValidateIdentityCredential(BYTE* CredBuffer, DWORD CredBufferLength, IPropertyStore** ppIdentityProperties)
CredBufferBYTE*in検証する資格情報データを格納したバッファへのポインタを指定する。
CredBufferLengthDWORDin資格情報データバッファの長さをバイト数で指定する。
ppIdentityPropertiesIPropertyStore**inoutoptional検証に成功した ID のプロパティを保持する IPropertyStore インターフェイスを受け取るポインタである。

HSP用 COM定義

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

出力引数:
#define global IID_IIdentityAuthentication "{5E7EF254-979F-43B5-B74E-06E4EB7DF0F9}"
#usecom global IIdentityAuthentication IID_IIdentityAuthentication "{}"
#comfunc global IIdentityAuthentication_SetIdentityCredential       3 var,int
#comfunc global IIdentityAuthentication_ValidateIdentityCredential  4 var,int,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。