CredUICredUIStoreSSOCred Method

Stores a single logon credential.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("CredUI.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ThrowOnUnmappableChar = true)]
public static Win32ErrorCode CredUIStoreSSOCred(
	string realm,
	string userName,
	string password,
	bool persist
)

Parameters

realm  String
Pointer to a null-terminated string that specifies the realm.

If this parameter is NULL, the default realm is used.

userName  String
Pointer to a null-terminated string that specifies the user's name.
password  String
Pointer to a null-terminated string that specifies the user's password.

When you have finished using the password, clear the password from memory by calling the SecureZeroMemory function.

persist  Boolean
Boolean value that specifies whether the credentials are persisted.

If this value is , the credentials are persisted.

If this value is , the credentials are not persisted.

Return Value

Win32ErrorCode
Returns ERROR_SUCCESS on success, or a Win32ErrorCode error code on failure.

Remarks

See Also