Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Updates the credentials associated with the specified context.
Syntax
SpUpdateCredentialsFn Spupdatecredentialsfn;
NTSTATUS Spupdatecredentialsfn(
[in] LSA_SEC_HANDLE ContextHandle,
[in] GUID *CredType,
[in] ULONG FlatCredUIContextLength,
PUCHAR FlatCredUIContext
)
{...}
Parameters
[in] ContextHandle
A handle to the context to update.
[in] CredType
The type of credential specified by the ContextHandle parameter. This can be one of the following values.
Value | Meaning |
---|---|
|
The credential is a password. |
|
The credential is a certificate. |
|
The credential is authentication data from a cryptographic service provider (CSP). |
[in] FlatCredUIContextLength
The size, in characters, of the buffer specified by the FlatCredUIContext parameter.
FlatCredUIContext
A string that specifies the updated credentials.
Return value
If the function succeeds, return STATUS_SUCCESS, or an informational status code.
If the function fails, return an NTSTATUS error code that indicates the reason it failed. For more information, see Remarks.
Remarks
A pointer to the SpUpdateCredentialsFn function is available in the SECPKG_FUNCTION_TABLE structure received from the SpLsaModeInitialize function.
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 | ntsecpkg.h |