IOlkAccountManager::SetOrder [Outlook 2003 API Reference]

Modifies the ordering of the specified category of accounts.

Quick Info

See IOlkAccountManager.

HRESULT IOlkAccountManager::SetOrder ( 
    const CLSID *pclsidCategory,
    DWORD *pcAccts,
    DWORD *prgAccts[]
);

Parameters

pclsidCategory

[in] The category class ID for which to set the order.

CLSID_OlkMail

CLSID_OlkAddressBook

CLSID_OlkStore

pcAccts

[in] The number of accounts.

prgAccts

[in] Pointer to an array of account IDs. The size of the array is pcAccts.

Return Values

E_ACCT_WRONG_SORT_ORDER

The new sort order has a different number of accounts than the old sort order.

E_INVALIDARG

An invalid argument has been provided.

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

Constants for the Account Management API

IOlkAccountManager::GetOrder