Gerry Hickman
2009-11-24 20:53:22 UTC
Hi,
I want to be able to create a temporary Profile, Logon to this profile,
carry out some tasks, then Logoff and discard the profile, then use a
different one.
In CDO 1.2.1 this appears to be possible by using the ProfileInfo
parameter of the Logon method of the Session object
http://msdn.microsoft.com/en-us/library/ms526377(EXCHG.10).aspx
"objSession.Logon( [profileName] [, profilePassword] [, showDialog] [,
newSession] [, parentWindow] [, NoMail] [, ProfileInfo] )"
but in the Outlook 2007 object model, the Logon method of the Namespace
object looks like this
http://msdn.microsoft.com/en-us/library/bb219914.aspx
expression.Logon(Profile, Password, ShowDialog, NewSession)
There's no ProfileInfo parameter.
So why don't I just use CDO 1.2.1? Because I'm on Vista/2008/Win7 and it
says on the Microsoft site that you can't install CDO (or the MAPI
client library) on a machine that has Outlook 2007 installed.
I want to be able to create a temporary Profile, Logon to this profile,
carry out some tasks, then Logoff and discard the profile, then use a
different one.
In CDO 1.2.1 this appears to be possible by using the ProfileInfo
parameter of the Logon method of the Session object
http://msdn.microsoft.com/en-us/library/ms526377(EXCHG.10).aspx
"objSession.Logon( [profileName] [, profilePassword] [, showDialog] [,
newSession] [, parentWindow] [, NoMail] [, ProfileInfo] )"
but in the Outlook 2007 object model, the Logon method of the Namespace
object looks like this
http://msdn.microsoft.com/en-us/library/bb219914.aspx
expression.Logon(Profile, Password, ShowDialog, NewSession)
There's no ProfileInfo parameter.
So why don't I just use CDO 1.2.1? Because I'm on Vista/2008/Win7 and it
says on the Microsoft site that you can't install CDO (or the MAPI
client library) on a machine that has Outlook 2007 installed.
--
Gerry Hickman (London UK)
Gerry Hickman (London UK)