IFaxAccountSet::AddAccount method (faxcomex.h)

Adds a fax account to the fax server and returns the new IFaxAccount object.

Syntax

HRESULT AddAccount(
  [in] BSTR        bstrAccountName,
       IFaxAccount **pFaxAccount
);

Parameters

[in] bstrAccountName

Type: BSTR

Specifies a null-terminated string that contains a name for the new account.

pFaxAccount

Type: IFaxAccount**

The address of a pointer to an IFaxAccount object.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

bstrAccountName must be of the form <domainName>&lt;username> or just <username> for local users.

When the new account is returned, all its values except the name are set to defaults.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header faxcomex.h
DLL Fxscomex.dll

See also

FaxAccountSet

IFaxAccountSet