View Single Post
  #7  
Old September 4th 07, 02:34 PM posted to microsoft.public.outlook.program_addins
MON205
external usenet poster
 
Posts: 31
Default How can I get the active pst size mounted in outlook ?

Hi KAKA…
Don’t hesitate to post any question you want. This is a good forum to post
questions in it.
Ideas here are public to all, and this forum helps a lot of people in their
tasks. I’m not sure that I can respond faster if you contacted me directly.
Another thing, you can say that I’m beginner here. I’m asking questions just
like you. Here you can find professionals that may help you more than I can.
Just as I told you, post any question you want, and ask about any thing you
can’t understand. We are all here to share efforts and to support each other.



"KAKA" wrote:

Hi MON205, thaks for your guiding. May I have your mail address for
communicating directly ?

"MON205" wrote:

In your add-in, you have the "Outlook::_Application", from this point, use
the sequence below:
Outlook::_NameSpacePtr pMapi = spApp-GetNamespace( _bstr_t( "MAPI" ) );
_FoldersPtr pFoldersCollection = pMapi-get_Folders( & pFoldersCollection );
MAPIFolderPtr pFolder = NULL;
BSTR bstrStoreID;
long lFoldersCount = pFoldersCollection-GetCount( );
pFolder = pFoldersCollection-GetFirst( );
// Loop for PST's
for( long lIndex = 0; lIndex lFoldersCount; lIndex++ )
{
pFolder-get_StoreID( & bstrStoreID );
pFolder = pFoldersCollection-GetNext( );

// Here you have the StoreID for this PST
// Use the code in the web site I sent you to get the PST file path from
// thisStoreID
// Now after you have the file path, let it be strPSTFilePath
// Call OpenFile, then GetFileSizeEx, and don't forget calling
CloseHandle()
// to close the file handle
}

... I hope this helps you

"KAKA" wrote:

Hi, MON205, could you please give me a farther guide ? I'm in emergency. And
anybody could answer my question ?

"KAKA" wrote:

Hi, I had a question. How can I get the active pst size mounted in outlook ?
Using vbscript or add-in. I tried to get the size , but there is no such
parameter. Thanks.

Ads