Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Compares the two specified credentials.
Syntax
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
);
Parameters
[in] AuthIdentity1
A pointer to an opaque structure that specifies the first credential to compare.
[in] AuthIdentity2
A pointer to an opaque structure that specifies the second credential to compare.
[out] SameSuppliedUser
TRUE if the user account specified by the AuthIdentity1 parameter is the same as the user account specified by the AuthIdentity2 parameter; otherwise, FALSE.
[out] SameSuppliedIdentity
TRUE if the identity specified by the AuthIdentity1 parameter is the same as the identity specified by the AuthIdentity2 parameter; otherwise, FALSE.
Return value
If the function succeeds, it returns SEC_E_OK.
If the function fails, it returns a nonzero error code.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7 [desktop apps only] |
| Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
| Target Platform | Windows |
| Header | sspi.h |
| Library | Secur32.lib |
| DLL | SspiCli.dll |