IDsObjectPickerCredentials::SetCredentials method (objsel.h)

Use this method to override the user credentials, passing new credentials for the account profile to be used.

Syntax

HRESULT SetCredentials(
  LPCWSTR szUserName,
  LPCWSTR szPassword
);

Parameters

szUserName

User account.

szPassword

Password.

Return value

S_OK indicates success.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows ServerĀ 2008
Target Platform Windows
Header objsel.h
DLL Objsel.dll

See also

IDsObjectPickerCredentials