Export (0) Print
Expand All
Expand Minimize

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 codeDescription
ERROR_SUCCESS

The function was successful.

ERROR_NOT_FOUND

The credential was not found.

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

WinCred.h

Library

Credui.lib

DLL

Credui.dll

See also

CredUIStoreSSOCredW

 

 

Community Additions

ADD
Show:
© 2014 Microsoft