IOlkAccountManager::SetOrder

Modifies the ordering of the specified category of accounts.

Quick info

See IOlkAccountManager.

HRESULT SetOrder(
    const CLSID * pclsidCategory,
    DWORD cAccts,
    DWORD rgAccts[]
);

Parameters

pclsidCategory

[in] The category class ID for which to set the order. The value must be one of the following:

  • CLSID_OlkAddressBook

  • CLSID_OlkStore

cAccts

[in] The number of accounts.

rgAccts

[in] An array of account IDs. The size of the array is cAccts.

Return values

HRESULT Description
S_OK
The call succeeded.
E_ACCT_WRONG_SORT_ORDER
The new sort order has a different number of accounts than the old sort order.
E_INVALIDARG
One or more arguments are invalid.
E_OLK_NOT_INITIALIZED
The account manager has not been initialized for use.

Remarks

The caller allocates memory for the array pointer prgAccts as well as for the array at which prgAccts points.

See also