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

R

Raj

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
 
S

Sue Mosher [MVP-Outlook]

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.
 
R

Raj

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
 
S

Sue Mosher [MVP-Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top