N
N11689
I am using the Microsoft.Office.Interop.Outlook PIAs for 2003.
I am coding to automatically logon using the default profile by passing in
"" as the username and password to the logon method:
----------------------------------------------------------------------------------------------
Dim objOutlookApplication As Object
Dim objMapiNameSpace As Object
'Create Outlook application.
objOutlookApplication = CreateObject("Outlook.Application")
objMapiNameSpace = objOutlookApplication.getnamespace("mapi")
objMapiNameSpace.Logon("", "", True, True)
------------------------------------------------------------------------------------------------
However, if there are multiple outlook profiles on the machine, I don't want
to automatically use the default profile. I want to prompt the user to
logon.
Without accessing the registry, how can I programmatically count the number
of default outlook profiles on the machine?
I am using VB.NET 2005
I am coding to automatically logon using the default profile by passing in
"" as the username and password to the logon method:
----------------------------------------------------------------------------------------------
Dim objOutlookApplication As Object
Dim objMapiNameSpace As Object
'Create Outlook application.
objOutlookApplication = CreateObject("Outlook.Application")
objMapiNameSpace = objOutlookApplication.getnamespace("mapi")
objMapiNameSpace.Logon("", "", True, True)
------------------------------------------------------------------------------------------------
However, if there are multiple outlook profiles on the machine, I don't want
to automatically use the default profile. I want to prompt the user to
logon.
Without accessing the registry, how can I programmatically count the number
of default outlook profiles on the machine?
I am using VB.NET 2005