Hi Guys Is there any way to automate the creation of a MAPI account in a third party message store? I've found a C++ project called ProfMan but it uses an illegal hack to gain access to the profile section of a store as clients aren't usually privilieged enough to access this. This no longer works with recent versionf of Outlook/MAPI. How can I force Outlook to trigger account creation? Cheers Win
That hack is only used to *read* profile data. Plus Outlook 2002 added a new flag that lets client code open any profile section. Secondly, keep in mind that some servies (POPO3/SMTP, IMAP$/SMTP) are no longer MAPI based. You can use IOlkAccountManager API to enumerate and change existing accounts, but you cannot add new ones - MS has never documented the relevant parts. -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "Windoze" wrote in message news:O5cRrcgqIHA.5068@TK2MSFTNGP02.phx.gbl... > Hi Guys > > Is there any way to automate the creation of a MAPI account in a third > party message store? > > I've found a C++ project called ProfMan but it uses an illegal hack to > gain access to the profile section of a store as clients aren't usually > privilieged enough to access this. This no longer works with recent > versionf of Outlook/MAPI. > > How can I force Outlook to trigger account creation? > > Cheers > Win >
Look at mfcmapi: http://codeplex.com/mfcmapi to see a better version of the hack, including the documented flags. "Windoze" wrote in message news:O5cRrcgqIHA.5068@TK2MSFTNGP02.phx.gbl... > Hi Guys > > Is there any way to automate the creation of a MAPI account in a third > party message store? > > I've found a C++ project called ProfMan but it uses an illegal hack to > gain access to the profile section of a store as clients aren't usually > privilieged enough to access this. This no longer works with recent > versionf of Outlook/MAPI. > > How can I force Outlook to trigger account creation? > > Cheers > Win >