IClusCfgCredentials::GetIdentity method

[This method is available for use only in Windows Server 2003.]

Retrieves the user name and domain name from the user credentials.

Syntax

HRESULT GetIdentity(
  [out] BSTR *pbstrUserOut,
  [out] BSTR *pbstrDomainOut
);

Parameters

  • pbstrUserOut [out]
    Pointer to a BSTR that receives the user name.

  • pbstrDomainOut [out]
    Pointer to a BSTR that receives the domain name.

Return value

If the GetIdentity method successfully retrieves user name and domain name from the credentials, it returns S_OK.

Any other HRESULT value indicates that the call failed.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003

End of server support

Windows Server 2003

IDL

ClusCfgServer.idl

DLL

ClCfgSrv.dll

IID

IID_IClusCfgCredentials is defined as 54AA9406-A409-4B49-B314-5F0A0CE4C88E

See also

IClusCfgCredentials