IMsTscAx::put_Domain (Windows Embedded CE 6.0)
1/6/2010
This method sets the value of the Domain property, which specifies the domain to which the current user logs on.
Syntax
HRESULT put_Domain(
BSTR domainProperty
);
Parameters
- domainProperty
[in] The value the Domain property is set to.
Return Value
The following table shows the return values for this method.
Value | Description |
---|---|
S_OK |
The Domain property was correctly set. |
E_FAIL |
The control is already connected or in the connecting state. |
nonzero error code |
An error occurred. |
Remarks
Setting Domain is optional. If it is not set, the user can choose a domain when the Windows Logon dialog box appears during the connection.
The Domain property can be set only if the control is not in the connected state. The method returns E_FAIL if it is called after the control is connected. You can check if the control is connected by calling the IMsTscAx::get_Connected method.
Requirements
Header | discodlg.h, mstsax.idl |
Library | Mstsax.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |