-
June 12th, 2012, 08:42 AM
#1
MS Outlook automation connection warning issue - msoAutomationSecurityForceDisable
Hi,
Can anyone shed any light on how to set the security property from the outlook .olb file which has been class imported. I can't work out how to access set msoAutomationSecurityForceDisable any ideas?
msoutl.cpp does contain:-
enum MsoAutomationSecurity
{
msoAutomationSecurityLow = 1,
msoAutomationSecurityByUI = 2,
msoAutomationSecurityForceDisable = 3
};
my code:-
CoInitialize(NULL);
_Application app;
if (!app.CreateDispatch("Outlook.Application"))
{
return 1;
}
_NameSpace nmsp;
_MailItem mlitem;
nmsp=app.GetNamespace("MAPI");
mlitem=app.CreateItem(0);
mlitem.SetTo(to);
mlitem.SetBody(body);
mlitem.SetCc(cc);
mlitem.SetSubject(subject);
mlitem.Send();
nmsp.Logoff();
app.ReleaseDispatch();
app=NULL;
return 0;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|