List Info

Thread: Re: Outlook 2003 Question & integration with DotNet 1.1 Warning Message




Re: Outlook 2003 Question & integration with DotNet 1.1 Warning Message
country flaguser name
United Kingdom
2007-07-25 08:08:55
Shawn,

This was due to the Outlook/Simple MAPI/CDO security patch
introduced by
microsoft when email script viruses would spread themselves
by reading
the outlook address book.

You have two options, either use CDO via interop on an
Exchange Server
machine to read the address book (this will come up with the
same
message if you run it on a normal outlook machine)

Or you can use Extended MAPI to do it as we do in our
product (bear in
mind that this is quite complicated and I've never tried
calling it from
a managed environment) - this will work in both a server and
workstation
environment.

For more information see MAPILogonEx(). I don't think if
interop will
work with this as there are no idl/tbl's to work with. Also
a lot of
extended mapi functions take special structures with
pointers to other
structures which may be a bit tricky to setup from within
the CLR.

Good luck!

Cheers

Kevin

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:ADVANCED-DOTNETDISCUSS.DEVELOP.COM] On Behalf Of Hevel,
Shawn
Sent: 25 July 2007 13:57
To: ADVANCED-DOTNETDISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] Outlook 2003 Question &
integration with
DotNet 1.1 Warning Message


I'm integrating the Outlook 11 COM object into my DotNet 1.1
Project.
I'm getting the following prompt:

 

"A program is trying to access e-mail addresses you
have stored in
Outlook.  Do you want to allow this?  If this is unexpected,
it may be a
virus and you should choose "No"."

 

There is also a check box to allow access for a set period
of time.

 

My question, Is there a way to avoid this message box?  

 

I'm trying to do the following:  I'd like to display a list
of email
address from our companies Information Technology group
alias.

 

Does anyone have any advice on ignoring and/or getting
around this
message?

 

Thanks,

 

 

Our vision is to develop an environment that will stimulate
the
transformation of data and information into knowledge and
wisdom.  Our
mission is to stay focused on the plans and goals with a
sense of
urgency necessary to improve the company's profitability and
market
share.

Shawn Hevel, API, AIT
Lead Programmer Analyst
Information Technology Department
South Carolina Farm Bureau Insurance Companies
Phone: (803) 936-4331
Fax: (803) 936-4629
Work Email: shawnhevelscfbins.com
Home Email: hevelhousesc.rr.com

 

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


Re: Outlook 2003 Question & integration with DotNet 1.1 Warning Message
user name
2007-07-25 13:03:07
> "A program is trying to access e-mail addresses
you have stored in
> Outlook.  Do you want to allow this?  If this is
unexpected, it may be a
> virus and you should choose "No"."
>
> There is also a check box to allow access for a set
period of time.
>
> My question, Is there a way to avoid this message box?

You need a trusted shim class... see this:

htt
p://msdn2.microsoft.com/en-us/library/Aa140152(office.10
).aspx


--
"It's not the quality of journalism that is sinking
e-media companies, it
the quality."  Thom Calandra - CBS Marketwatch

Marc C. Brooks
http://musingmarc.blog
spot.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


Re: Outlook 2003 Question & integration with DotNet 1.1 Warning Message
user name
2007-07-25 13:03:58
Tons of very useful information about dealing with Outlook
can be found here:

http://www.outlookcode.co
m/

--
"It's not the quality of journalism that is sinking
e-media companies, it
the quality."  Thom Calandra - CBS Marketwatch

Marc C. Brooks
http://musingmarc.blog
spot.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


Re: Outlook 2003 Question & integration with DotNet 1.1 Warning Message
user name
2007-07-25 13:03:07
> "A program is trying to access e-mail addresses
you have stored in
> Outlook.  Do you want to allow this?  If this is
unexpected, it may be a
> virus and you should choose "No"."
>
> There is also a check box to allow access for a set
period of time.
>
> My question, Is there a way to avoid this message box?

You need a trusted shim class... see this:

htt
p://msdn2.microsoft.com/en-us/library/Aa140152(office.10
).aspx


--
"It's not the quality of journalism that is sinking
e-media companies, it
the quality."  Thom Calandra - CBS Marketwatch

Marc C. Brooks
http://musingmarc.blog
spot.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


Re: Outlook 2003 Question & integration with DotNet 1.1 Warning Message
user name
2007-07-25 13:03:58
Tons of very useful information about dealing with Outlook
can be found here:

http://www.outlookcode.co
m/

--
"It's not the quality of journalism that is sinking
e-media companies, it
the quality."  Thom Calandra - CBS Marketwatch

Marc C. Brooks
http://musingmarc.blog
spot.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )