C++/VB - 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 ?
LPSPropTagArray
(1)
Outlook
(1)
PFilePathTag
(1)
LpProviderAdmin
(1)
LpProfSect
(1)
OutlookSpy
(1)
UlPropTag
(1)
UlPropCnt
(1)
  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
-
  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
Create New Account
help
0x80029C4A Error loading type library / DLL. Related to Outlook.Application. C++ / VB I have a customer getting the above error in a program that uses the "Outlook.Application" object. I have verified the registry looks ok (see the information below). How can more information about the problem so that it can be solved? Thanks, Frank - -- -- -- -- -- -- -- -- -- -- -- - Subject: Re: Outlook.Application HKEY_CLASSES_ROOT \ Outlook.Application = Microsoft Outlook 10.0 Object Library HKEY_CLASSES_ROOT \ Outlook.Application \ CLSID = {0006F03A-0000-0000-C000-000000000046} HKEY_CLASSES_ROOT \ Outlook.Application = Outlook.Application.10 HKEY_CLASSES_ROOT \ Outlook.Application.10 = Microsoft Outlook 10.0 Object Library HKEY_CLASSES_ROOT \ Outlook.Application
Outlook Automation Problem utilizing Microsoft.Office.Interop.Outl C++ / VB Development Tool VB.Net 2005, Outlook Object 11.0. Reading Emails into a DataGridView. Utilizing the Interop. Receiving the following message (not from vb.net), from Outlook. outlook \ . . ." could not be installed or loaded. This message comes up usually after about 200 emails appear, problem is too slow. Some of the code: Dim oAppm As Microsoft.Office.Interop.Outlook.Application = New Microsoft.Office.Interop.Outlook.Application Dim oInboxm As Microsoft.Office.Interop.Outlook.MAPIFolder Dim oItemsm As Microsoft.Office.Interop.Outlook.Items Dim oNSm As Microsoft.Office.Interop.Outlook.NameSpace = oAppm.GetNamespace("MAPI") oInboxm = oNSm.GetDefaultFolder
Dim objShell objShell.Run("del / F / Q ""C: \ Documents and Settings \ amaltais \ Application Data \ Microsoft \ Outlook \ Outlook.NK2""") VB Syntax Discussions Outlook (1) Specifies (1) ObjShell (1) Medicalintelligence (1) Acuralex54 (1) Attributes (1) Directory (1) Plz (1 Dim objShell objShell.Run(del / F / Q C: \ Documents and Settings \ amaltais \ Application Data \ Microsoft \ Outlook \ Outlook.NK2)
Extracting Embedded images in Outlook 2007 C++ / VB In Outlook 2003 I had a macro to extract embedded images. This is it Sub SaveAttachment() Dim objCurrentItem As Outlook.MailItem Dim colAttachments As Outlook.Attachments Dim objAttachment As Outlook.Attachment Set objCurrentItem = Application.ActiveInspector.CurrentItem Set colAttachments = objCurrentItem.Attachments Set strFolderpath = CreateObject("WScript.Shell Nothing End Sub I do not know VB. However when I put this macro in Outlook 2007 I get this error message Can someone help me? Regards Doug VB COM Discussions Application.ActiveInspector.CurrentItem (1) Outlook 2007 (1) Outlook 2003 (1) Outlook.MailItem (1) WScript.Shell (1) VBA (1) VB (1) ObjAttachment.SaveAsFile (1