473,414 Members | 1,596 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Is there a way to check if an email profile exist?

Hi,

When my program starts up, it uses MAPILogonEx to connect to the
default email profile (set by user).

The problem is, if the email profile no longer exist, it would give an
error "The profile name is not valid. Enter a valid profile name",
after pressing ok, the email profile wizard will come up. We don't
want the error message to come up, instead we want to somehow check if
the default email profile exist, if it doesn't exist, set the flag
MAPI_LOGON_UI (or something like that) and call MAPILogonEx so that i
will prompt the user to set up a profile.

So I was wondering if any of you guys know if there is a way I can
check if a email profile exist or not?

P.S. I was told that I can look up the email profile information in
the registry, is that true?

Thanks, any help would be greatly appreaciated

Peter
Jul 23 '05 #1
1 1738
In message <ea**************************@posting.google.com >, Peter
<ks****@gmail.com> writes
Hi,

When my program starts up, it uses MAPILogonEx to connect to the
default email profile (set by user).

The problem is, if the email profile no longer exist, it would give an
error


I'm sorry to hear it. What's your question about C++ ?

--
Richard Herring
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JD | last post by:
What im trying to do is something like this maybe in my profile.php file //site thumbnail check//////////// $filename = "sitethumbs/".$user.".jpg"; if (file_exists($filename)) { } else {...
2
by: adam | last post by:
hello What query shoul I send to SQL serwer ( in transact SQL language ) to check does some database exist on serwer ? It similar to problem "does some table exist in database" - resolve to it...
0
by: Roula | last post by:
Ok, folks, more addons for our toolbar, including video... check it out. Articles NEW! Best director: The year of the auteur NEW! Profile: BROKEBACK MOUNTAIN NEW! Interview With Brokeback...
3
by: j-in-uk | last post by:
Hi, It seems as though Profiles have replaced session variables in visual studio 2005. The Profile needs to be defined in the web.config : <anonymousIdentification enabled="true" /> <profile...
7
by: Rusty Hill | last post by:
I have a base class that contains code for the profile object that works fine when the code is not in a file within the App_Code folder. Once I put the code into the App_Code folder it will no...
4
by: R.A.M. | last post by:
Hello, I am writing ASP.NET application in which I need to use User Profiles and Session mechanisms. Here I include part of my source code (Admin.cs): using System; using System.Data; using...
2
by: =?Utf-8?B?RGlya0dvZXM=?= | last post by:
I have added some profile properties to my web.config: <profile enabled="true"> <properties><add name="firstname"/></properties> </profile> However when I try to access the property in a code...
0
by: shapper | last post by:
Hello, On my MVC project I am using Membership and Profile. I added the following on my Web.Config: <profile enabled="true"> <properties> <add name="Company"/> </properties> </profile>
5
by: Steven | last post by:
I have the following in my web.config: <system.web> <profile defaultProvider="MyASPSqlProfileProvider" enabled="true" > <properties> <add name="FirstName" defaultValue="" type="string"/> <add...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.