Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MAPI - Determine Outlook Profile Connection Method TCP/RPC

9 views
Skip to first unread message

Neeraj Sathe

unread,
Apr 14, 2010, 7:36:59 AM4/14/10
to
I want to know if there is any way to detect outlook profiles
connection status, I am using mapi to create outlook profile for
scanning exchange mailboxes.

I wanted to know whether there is any interface / method / way
available in mapi to know the connection mode TCP/IP or RPC once the
profile is properly configured and connected to exchange server
server.

Thanks,
Neeraj

Dmitry Streblechenko

unread,
Apr 15, 2010, 2:10:24 AM4/15/10
to
Do you mean ROH (RPC-over-HTTP) vs regular RPC?
Look for the PR_ROH_xys properties in the global
(pbGlobalProfileSectionGuid) profile section.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Neeraj Sathe" <neeraj....@gmail.com> wrote in message
news:0182b0fa-c53c-451e...@z4g2000yqa.googlegroups.com...

Neeraj Sathe

unread,
Apr 15, 2010, 3:37:45 AM4/15/10
to
On Apr 15, 11:10 am, "Dmitry Streblechenko" <dmi...@dimastr.com>
wrote:

> Do you mean ROH (RPC-over-HTTP) vs regular RPC?
> Look for the PR_ROH_xys properties in the global
> (pbGlobalProfileSectionGuid) profile section.
>
> --
> Dmitry Streblechenko (MVP)http://www.dimastr.com/

> OutlookSpy  - Outlook, CDO
> and MAPI Developer Tool
> -"Neeraj Sathe" <neeraj.p.sa...@gmail.com> wrote in message

>
> news:0182b0fa-c53c-451e...@z4g2000yqa.googlegroups.com...
>
> >I want to know if there is any way to detect outlook profiles
> > connection status, I am using mapi to create outlook profile for
> > scanning exchange mailboxes.
>
> > I wanted to know whether there is any interface / method / way
> > available in mapi to know the connection mode TCP/IP or RPC once the
> > profile is properly configured and connected to exchange server
> > server.
>
> > Thanks,
> > Neeraj

Yes, my application can create both type of profiles RPC / ROH but the
real issue is sometimes even after setting ROH flags in the profile
the connection falls back to RPC automatically.

My question is how do I determine if the profile in execution is
connected to exchange server using RPC/ROH. Is there any interface /
function available in mapi through which I can query some property
which can tell me the connection mode.

Are you saying that I should look into the global profile section for
PR_ROH_xxx flag values once the profile is successfully connected to
exchange server. Is there any specific PR_ROH property which can tell
me exactly if the profile is connected using ROH and not RPC.

Thanks,
Neeraj

Dmitry Streblechenko

unread,
Apr 15, 2010, 12:49:01 PM4/15/10
to
I don't think you can determine the active connection mode - it is dynamic
and can change while the profile is beign used.
Why is it important?

--
Dmitry Streblechenko (MVP)


http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-

"Neeraj Sathe" <neeraj....@gmail.com> wrote in message

news:346d087f-2a06-4704...@e7g2000yqf.googlegroups.com...

Neeraj Sathe

unread,
Apr 16, 2010, 1:36:37 AM4/16/10
to
On Apr 15, 9:49 pm, "Dmitry Streblechenko" <dmi...@dimastr.com> wrote:
> I don't think you can determine the active connection mode - it is dynamic
> and can change while the profile is beign used.
> Why is it important?
>
> --

I want to provide "Connection Status" functionality same as MS Outlook
provides in my application. Is there any way by which I can poll for
connection mode of the profile that is being used so that I can report
the connection mode changes that occur dynamically to the application
user.

0 new messages