win32cred.CredWrite

CredWrite(Credential, Flags)

Creates or updates a stored credential

Parameters

Credential : dict

PyCREDENTIAL dict containing the credentials to be stored

Flags=0 : int

CRED_PRESERVE_CREDENTIAL_BLOB is only defined flag

Comments

When updating a credential, to preserve a previously stored password use None or '' for CredentialBlob member of Credential and pass CRED_PRESERVE_CREDENTIAL_BLOB in Flags