3.1.4.1.2.2.1 DomainName (Get) (Opnum 11)

The DomainName (Get) method retrieves the domain name for the session user.

 [propget, id(DISPID_SAF_SESS__DOMAINNAME)] HRESULT DomainName(
   [out, retval] BSTR* pVal
 );

pVal: Pointer to the domain name 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.

0x80004003

E_POINTER

The method failed due to an invalid pointer.

Exceptions Thrown:

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