3.1.4.1.2.2.2 DomainName (Set) (Opnum 12)

The DomainName (Set) method sets the domain name for the session user.

 [propput, id(DISPID_SAF_SESS__DOMAINNAME)] HRESULT DomainName(
   [in] BSTR pVal
 );

pVal: Domain name to assign for the session user.

Return Values: A signed 32-bit value indicating return status. This method MUST return zero to indicate success, or an HRESULT error value (as specified in [MS-ERREF] section 2.1.1) to indicate failure.

Return value/code

Description

0x00000000

S_OK

The call was successful.

Exceptions Thrown:

No exceptions are thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].