UpdateCredentials function
Applies to: desktop apps only
Provides a mechanism for one security package to notify other packages that the credentials for a logon session have changed.
Syntax
NTSTATUS UpdateCredentials( __in PSECPKG_PRIMARY_CRED PrimaryCredentials, __in_opt PSECPKG_SUPPLEMENTAL_CRED_ARRAY Credentials );
Parameters
- PrimaryCredentials [in]
-
Pointer to a SECPKG_PRIMARY_CRED structure containing the primary credentials.
- Credentials [in, optional]
-
Optional. Pointer to a SECPKG_SUPPLEMENTAL_CRED_ARRAY structure containing the supplemental credentials.
Return value
If the function succeeds, the return value is STATUS_SUCCESS.
If the function fails, the return value is an NTSTATUS code indicating the reason it failed.
Remarks
To notify packages about the changed credentials, the Local Security Authority (LSA) calls the SpAcceptCredentials function implementation in each package.
A pointer to the UpdateCredentials function is available in the LSA_SECPKG_FUNCTION_TABLE structure received by the SpInitialize function.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
See also
- LSA_SECPKG_FUNCTION_TABLE
- SECPKG_PRIMARY_CRED
- SECPKG_SUPPLEMENTAL_CRED_ARRAY
- SpAcceptCredentials
- SpInitialize
Send comments about this topic to Microsoft
Build date: 3/13/2012