IOlkAccountManager::GetOrder

IOlkAccountManager::GetOrder

Gets the ordering of the specified category of accounts.

Quick Info

See IOlkAccountManager.

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

Parameters

pclsidCategory

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

CLSID_OlkMail

CLSID_OlkAddressBook

CLSID_OlkStore

pcAccts

[out] The number of accounts.

prgAccts

[out] Pointer to an array of accounts.

Return Values

E_INVALIDARG

An invalid argument has been provided.

E_OLK_NOT_INITIALIZED

The account manager has not been initialized for use.

Remarks

Before calling this method, the caller allocates only an array pointer prgAccts but no memory for the array at which prgAccts points. After this method returns, the caller must use IOlkAccountManager::FreeMemory to release the memory allocated for prgAccts.

See Also

Constants for the Account Management API

IOlkAccountManager::SetOrder