sspiCompareAuthIdentities 函式 (sspi.h)

比較兩個指定的認證。

語法

SECURITY_STATUS SEC_ENTRY SspiCompareAuthIdentities(
  [in]  PSEC_WINNT_AUTH_IDENTITY_OPAQUE AuthIdentity1,
  [in]  PSEC_WINNT_AUTH_IDENTITY_OPAQUE AuthIdentity2,
  [out] PBOOLEAN                        SameSuppliedUser,
  [out] PBOOLEAN                        SameSuppliedIdentity
);

參數

[in] AuthIdentity1

不透明結構的指標,指定要比較的第一個認證。

[in] AuthIdentity2

不透明結構的指標,指定要比較的第二個認證。

[out] SameSuppliedUser

如果 AuthIdentity1 參數指定的用戶帳戶與 AuthIdentity2 參數所指定的用戶帳戶相同,則為 TRUE;否則為 FALSE

[out] SameSuppliedIdentity

如果 AuthIdentity1 參數指定的身分識別與 AuthIdentity2 參數指定的身分識別相同,則為 TRUE;否則為 FALSE

傳回值

如果函式成功,則會 傳回SEC_E_OK

如果函式失敗,則會傳回非零的錯誤碼。

規格需求

需求
最低支援的用戶端 Windows 7 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 R2 [僅限桌面應用程式]
目標平台 Windows
標頭 sspi.h
程式庫 Secur32.lib
Dll SspiCli.dll