Partager via


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. The value must be one of the following:

    • CLSID_OlkMail

    • CLSID_OlkAddressBook

    • CLSID_OlkStore

  • pcAccts
    [out] The number of accounts.
  • prgAccts
    [out] A pointer to an array of accounts.

Return Values

HRESULT Description

S_OK

The call succeeded

E_INVALIDARG

One or more arguments are invalid.

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 (Account Management API)
IOlkAccountManager::SetOrder