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;