SHUserGetPasswordHint

Go to Home Page

Returns the password hint for a specific user

Syntax

HRESULT WINAPI SHUserGetPasswordHint (
    PCWSTR pwszUserName,
    PWSTR* ppwszHint
)

Parameters

pwszUserName
The name of the user whose password hint is to be gotten
ppwszHint
A pointer to a string that receives the password hint. The returned string must be freed with CoTaskMemFree.

Return Value

S_OK on success, standard COM error code on failure

Remarks

This function queries the Profile property store for the pwszUserName user with the PKEY_SAM_PasswordHint property key.

This function is also known as _SHUserGetPasswordHint@8.