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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for