CredUICredUIReadSSOCred Method

Retrieves the user name for 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 CredUIReadSSOCred(
	string realm,
	out string refUserName
)

Parameters

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

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

refUserName  String
Pointer to a pointer to a null-terminated string. When you have finished using the string, free refUserName by calling the LocalFree(IntPtr) function.

Return Value

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

Remarks

See Also