Group:  Microsoft Outlook ยป microsoft.public.outlook.program_forms
Thread: OL2007: TablePtr->ColumnsPtr->Add() triggering Outlook Security Pr

OL2007: TablePtr->ColumnsPtr->Add() triggering Outlook Security Pr
AMcMillan 12/29/2008 3:31:01 PM
On some systems (not all, and I am not sure yet what makes them different)
every time I add a column to the columns collection, it triggers the Outlook
Security Prompt.

Here is the code I am using...nothing fancy:
----------------------------------------------
pColumns = pTable->GetColumns();
pColumns->RemoveAll();
pColumns->Add(L"EntryID");
pColumns->Add(L"http://schemas.microsoft.com/mapi/proptag/0x66700102"); //
PR_LONGTERM_ENTRYID_FROM_TABLE (0x66700102)
pColumns->Add(L"Subject");
pColumns->Add(L"LastModificationTime");
pColumns->Add(L"MessageClass");
pTable->MoveToStart();
----------------------------------------------

Any idea why this is happening only on some systems, and is there any way
for me to make it stop prompting them?

Thanks,
Andrew
Re: OL2007: TablePtr->ColumnsPtr->Add() triggering Outlook Security Pr
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 12/29/2008 6:05:35 PM
Is this an Outlook addin or a standalone program? What version of Outlook?

If it's an addin it should be trusted, assuming you are deriving all your
Outlook objects from the Application object passed to you in OnConnection()
or Startup().

If it's a standalone program then it's only trusted if the user has an
up-to-date AV running. In those cases you will get the prompts unless you
use something not under the Outlook object model guard such as Redemption
(www.dimastr.com/redemption) or Extended MAPI.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"AMcMillan" <AMcMillan[ at ]discussions.microsoft.com> wrote in message
news:3E4E4713-A69A-4FEB-9A0C-4F15EE03CDDF[ at ]microsoft.com...
[Quoted Text]
> On some systems (not all, and I am not sure yet what makes them different)
> every time I add a column to the columns collection, it triggers the
> Outlook
> Security Prompt.
>
> Here is the code I am using...nothing fancy:
> ----------------------------------------------
> pColumns = pTable->GetColumns();
> pColumns->RemoveAll();
> pColumns->Add(L"EntryID");
> pColumns->Add(L"http://schemas.microsoft.com/mapi/proptag/0x66700102"); //
> PR_LONGTERM_ENTRYID_FROM_TABLE (0x66700102)
> pColumns->Add(L"Subject");
> pColumns->Add(L"LastModificationTime");
> pColumns->Add(L"MessageClass");
> pTable->MoveToStart();
> ----------------------------------------------
>
> Any idea why this is happening only on some systems, and is there any way
> for me to make it stop prompting them?
>
> Thanks,
> Andrew

Re: OL2007: TablePtr->ColumnsPtr->Add() triggering Outlook Securit
AMcMillan 12/29/2008 6:41:01 PM
It is a stand alone program, and the problem is occuring in Outlook 2007
(12.0.6316.5000) SP1 MSO (12.0.6320.5000)...but not on a different computer
with the exact same version.

The AV explains it, I think. This is on a testlab computer that does not
have any AV on it.

"Ken Slovak - [MVP - Outlook]" wrote:

[Quoted Text]
> Is this an Outlook addin or a standalone program? What version of Outlook?
>
> If it's an addin it should be trusted, assuming you are deriving all your
> Outlook objects from the Application object passed to you in OnConnection()
> or Startup().
>
> If it's a standalone program then it's only trusted if the user has an
> up-to-date AV running. In those cases you will get the prompts unless you
> use something not under the Outlook object model guard such as Redemption
> (www.dimastr.com/redemption) or Extended MAPI.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "AMcMillan" <AMcMillan[ at ]discussions.microsoft.com> wrote in message
> news:3E4E4713-A69A-4FEB-9A0C-4F15EE03CDDF[ at ]microsoft.com...
> > On some systems (not all, and I am not sure yet what makes them different)
> > every time I add a column to the columns collection, it triggers the
> > Outlook
> > Security Prompt.
> >
> > Here is the code I am using...nothing fancy:
> > ----------------------------------------------
> > pColumns = pTable->GetColumns();
> > pColumns->RemoveAll();
> > pColumns->Add(L"EntryID");
> > pColumns->Add(L"http://schemas.microsoft.com/mapi/proptag/0x66700102"); //
> > PR_LONGTERM_ENTRYID_FROM_TABLE (0x66700102)
> > pColumns->Add(L"Subject");
> > pColumns->Add(L"LastModificationTime");
> > pColumns->Add(L"MessageClass");
> > pTable->MoveToStart();
> > ----------------------------------------------
> >
> > Any idea why this is happening only on some systems, and is there any way
> > for me to make it stop prompting them?
> >
> > Thanks,
> > Andrew
>
>
Re: OL2007: TablePtr->ColumnsPtr->Add() triggering Outlook Securit
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 12/29/2008 7:43:30 PM
Without active AV and with a standalone program you will be subject to all
the restrictions of the Outlook object model guard.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"AMcMillan" <AMcMillan[ at ]discussions.microsoft.com> wrote in message
news:863A92BF-8BD3-4283-9EDF-0F34265FAC62[ at ]microsoft.com...
[Quoted Text]
> It is a stand alone program, and the problem is occuring in Outlook 2007
> (12.0.6316.5000) SP1 MSO (12.0.6320.5000)...but not on a different
> computer
> with the exact same version.
>
> The AV explains it, I think. This is on a testlab computer that does not
> have any AV on it.

Re: OL2007: TablePtr->ColumnsPtr->Add() triggering Outlook Security Pr
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 12/29/2008 8:52:02 PM
Are you sure the prompt comes from that particular code snippet? Nothign
there is blocked by the security patch.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"AMcMillan" <AMcMillan[ at ]discussions.microsoft.com> wrote in message
news:3E4E4713-A69A-4FEB-9A0C-4F15EE03CDDF[ at ]microsoft.com...
[Quoted Text]
> On some systems (not all, and I am not sure yet what makes them different)
> every time I add a column to the columns collection, it triggers the
> Outlook
> Security Prompt.
>
> Here is the code I am using...nothing fancy:
> ----------------------------------------------
> pColumns = pTable->GetColumns();
> pColumns->RemoveAll();
> pColumns->Add(L"EntryID");
> pColumns->Add(L"http://schemas.microsoft.com/mapi/proptag/0x66700102"); //
> PR_LONGTERM_ENTRYID_FROM_TABLE (0x66700102)
> pColumns->Add(L"Subject");
> pColumns->Add(L"LastModificationTime");
> pColumns->Add(L"MessageClass");
> pTable->MoveToStart();
> ----------------------------------------------
>
> Any idea why this is happening only on some systems, and is there any way
> for me to make it stop prompting them?
>
> Thanks,
> Andrew


Re: OL2007: TablePtr->ColumnsPtr->Add() triggering Outlook Securit
AMcMillan 12/29/2008 9:25:01 PM
I am positive it is happening on the pColumns->Add() calls. I used the good
old fashion dialog box debugging to figure it out. Also, when it pops up, if
you just click the button to allow it, then the dialog will popup 5
times...one for each Add() call.

I installed AntiVirus onto the system, and the prompt stopped showing up.


"Dmitry Streblechenko" wrote:

[Quoted Text]
> Are you sure the prompt comes from that particular code snippet? Nothign
> there is blocked by the security patch.
>
> --
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
> -
> "AMcMillan" <AMcMillan[ at ]discussions.microsoft.com> wrote in message
> news:3E4E4713-A69A-4FEB-9A0C-4F15EE03CDDF[ at ]microsoft.com...
> > On some systems (not all, and I am not sure yet what makes them different)
> > every time I add a column to the columns collection, it triggers the
> > Outlook
> > Security Prompt.
> >
> > Here is the code I am using...nothing fancy:
> > ----------------------------------------------
> > pColumns = pTable->GetColumns();
> > pColumns->RemoveAll();
> > pColumns->Add(L"EntryID");
> > pColumns->Add(L"http://schemas.microsoft.com/mapi/proptag/0x66700102"); //
> > PR_LONGTERM_ENTRYID_FROM_TABLE (0x66700102)
> > pColumns->Add(L"Subject");
> > pColumns->Add(L"LastModificationTime");
> > pColumns->Add(L"MessageClass");
> > pTable->MoveToStart();
> > ----------------------------------------------
> >
> > Any idea why this is happening only on some systems, and is there any way
> > for me to make it stop prompting them?
> >
> > Thanks,
> > Andrew
>
>
>

Home | Search | Terms | Imprint
Newsgroups Reader