CredUICredUIReadSSOCred Method
Retrieves the user name for 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 CredUIReadSSOCred(
string realm,
out string refUserName
)
<DllImportAttribute("CredUI.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true>]
Public Shared Function CredUIReadSSOCred (
realm As String,
<OutAttribute> ByRef refUserName As String
) As Win32ErrorCode
Dim realm As String
Dim refUserName As String
Dim returnValue As Win32ErrorCode
returnValue = CredUI.CredUIReadSSOCred(realm,
refUserName)
public:
[DllImportAttribute(L"CredUI.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)]
static Win32ErrorCode CredUIReadSSOCred(
String^ realm,
[OutAttribute] String^% refUserName
)
[<DllImportAttribute("CredUI.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true)>]
static member CredUIReadSSOCred :
realm : string *
refUserName : string byref -> 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.
- 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.
Win32ErrorCode
Returns
ERROR_SUCCESS on success, or a
Win32ErrorCode error code on failure.