SHUserSetPasswordHint

Go to Home Page

Sets the password hint for a specified user

Syntax

HRESULT WINAPI SHUserSetPasswordHint (
    PCWSTR pwszUserName,
    PCWSTR pwszPasswordHint
)

Parameters

pwszUserName
The name of the user whose password hint is to be set
pwszPasswordHint
The new hint to set

Return Value

S_OK on success, standard COM error code on failure

Remarks

The new password hint string cannot be longer than 65535 characters or the function will return HRESULT_FROM_WIN32(RPC_S_STRING_TOO_LONG)

This function is also known as _SHUserSetPasswordHint@8.