How to check if a user has outlook profile created from c# .Net

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have a requirement where i have to check if currently logged in user has
an outlook profile created. I am using Microsoft interop assembly to access
outlook application.
Version of outlook i am using is 2003.

Any help will be appreciated.

Regards,
Rajesh
 
The place to check is in the Windows registry -- HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles -- using your choice of registry code. It's not an Outlook function.
 
Hi Mosher,

Thanks for the response. However, I am not sure what you meant by registry
code. Can you throw some more light on that? I did check the registry
location but i saw so many keys under it with some code names. I was not sure
what they all mean.

-Rajesh
 
Your C# docs should have information and samples on writing code to access the registry. If the key that I described is not present or has no subkeys, the user has no mail profile.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
Back
Top