LPSPropTagArray
(1)
Outlook
(1)
PFilePathTag
(1)
LpProviderAdmin
(1)
LpProfSect
(1)
OutlookSpy
(1)
UlPropTag
(1)
UlPropCnt
(1)

OST file path

Asked By skg
11-Nov-09 10:17 AM
I am able to retrieve pst file path configured in an outlook profile using
profile section successfully but unable to retrieve ost file path


hr =
lpProviderAdmin->OpenProfileSection((LPMAPIUID)pRow->lpProps[0].Value.bin.lpb,  NULL,  MAPI_MODIFY | MAPI_FORCE_ACCESS, &lpProfSect);
if (!FAILED(hr))
{
hr = lpProfSect -> GetProps((LPSPropTagArray)&pFilePathTag,  0,
&ulPropCnt,  &pProps);
if (!FAILED(hr) && pProps->ulPropTag == PR_PST_PATH)


can any one help me with a code snippet or advise how to retrieve the OST
file path ?

You need to open the global profile section and read

Dmitry Streblechenko replied to skg
11-Nov-09 11:58 AM
You need to open the global profile section and read the
PR_PROFILE_OFFLINE_STORE_PATH property.
Have you looked at the profile data?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool
-

thanks Dimitry, i am able to read the other pst files configured in

skg replied to Dmitry Streblechenko
11-Nov-09 02:53 PM
thanks Dimitry, i am able to read the other pst files configured in the
exchange profile using the code below.

i will try the  global profile section  and let you know
http://support.microsoft.com/default.aspx/kb/188482

thanks again
Post Question To EggHeadCafe