Re: Setting an IMAP4 account as the default store

Tech-Archive recommends: Fix windows errors by optimizing your registry



Got it done using IOlkAccountManager interface. Here is some extra information on this -


The SetOrder API -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/olintapi/html/oliaIOlkAccountManager_HV01155206.asp
has an interface specification...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/olintapi/html/oliaIOlkAccountManager-SetOrder_HV01155212.asp
defined as

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

This is wrong.....

It should be

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


--
Cheers,
Raj
.



Relevant Pages