CredUIReadSSOCredW function
The CredUIReadSSOCredW function retrieves the user name for a single logon credential.
Syntax
DWORD CredUIReadSSOCredW( _In_ PCWSTR pszRealm, _Out_ PWSTR *ppszUsername );
Parameters
- pszRealm [in]
-
Pointer to a null-terminated string that specifies the realm. If this parameter is NULL, the default realm is used.
- ppszUsername [out]
-
Pointer to a pointer to a null-terminated string. When you have finished using the string, free ppszUsername by calling the LocalFree function.
Return value
The return value is a DWORD. The following table lists the possible values.
| Return code | Description |
|---|---|
|
The function was successful. |
|
The credential was not found. |
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also