IDsObjectPickerCredentials::SetCredentials method

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

   
Windows version None supported Windows Server 2008
Target Platform Windows
Header objsel.h
DLL Objsel.dll

See Also

IDsObjectPickerCredentials