CredUICredUIStoreSSOCred Method
Stores a single logon credential.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("CredUI.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true>]
Public Shared Function CredUIStoreSSOCred (
realm As String,
userName As String,
password As String,
persist As Boolean
) As Win32ErrorCode
Dim realm As String
Dim userName As String
Dim password As String
Dim persist As Boolean
Dim returnValue As Win32ErrorCode
returnValue = CredUI.CredUIStoreSSOCred(realm,
userName, password, persist)
public:
[DllImportAttribute(L"CredUI.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)]
static Win32ErrorCode CredUIStoreSSOCred(
String^ realm,
String^ userName,
String^ password,
bool persist
)
[<DllImportAttribute("CredUI.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)>]
static member CredUIStoreSSOCred :
realm : string *
userName : string *
password : string *
persist : bool -> Win32ErrorCode
No code example is currently available or this language may not be supported.
- 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.
Win32ErrorCode
Returns
ERROR_SUCCESS on success, or a
Win32ErrorCode error code on failure.