IRDSAccounts::Add Method
Description
The Add method adds a new RDS account to the collection.
Syntax
[id(0x000000CB)]
HRESULT _stdcall Add(
[in] BSTR UserName,
[in] BSTR Password,
[in, defaultvalue(False)] VARIANT_BOOL CreateAccount,
[out, retval] IRDS** Value
);
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
UserName |
BSTR | [in] | The username for the account |
Password |
BSTR | [in] | The password credential |
CreateAccount |
VARIANT_BOOL | [in] | Flag to create account (default: False) |
Value |
IRDS** | [out, retval] | Returns the IRDS object reference |
Return Value
Returns an HRESULT indicating success or failure status.