Re: getting handle to a custom folder, say "ABC".



You must work your way down through the folders hierarchy tables, starting
with the root IPM folder.
BTW, where did you see the value of entry id returned by OutlookSpy being
0xF01E? Entry id is really a byte array and you are supposed to apss a
pointer to that array when calling OpenEntry.

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

"Surjya" <surjyasahoo@xxxxxxxxx> wrote in message
news:1135338429.156419.265750@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I have absolutely no clue. I tried OutlookSpy, to get the entry id of
> the folder "ABC". And pass that entry id through
> ULONG rgTags[]={ 1, << retrieved entry id from outlook spy >> };
> HRESULT hr = S_OK;
>
>
> if ( ( NULL != m_pFolder ) || ( NULL != m_pMsgStore ) )
> {
> hr = m_pMsgStore->GetProps( ( LPSPropTagArray ) rgTags,
> cm_nMAPICode,
> &cValues,
> &props
> );
>
> hr = m_pMsgStore->OpenEntry( props[0].Value.bin.cb,
> ( LPENTRYID ) 0xF01E, // Entry id retrieved from Outlook Spy
> ULL,
> MAPI_MODIFY,
> &dwObjType,
> ( LPUNKNOWN* )&pOutBoxFolder
> );
> ...
> ...
> ...
> }
> But it is crhashing when I call OpenEntry with the second param being
> the Entry Id retrieved from Outlook spy, the error being Invalid Args.
>
> Any little help will be appreciated
> ~Surjya.
>


.



Relevant Pages

  • Re: Curiosity: Folder pop-up on boot-up
    ... The last entry is missing quotes. ... After you extract the files from the zip folder run ... look under Startup for an entry titled CCC.lnk. ... Windows XP Startup Tracker ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Curiosity: Folder pop-up on boot-up
    ... The last entry is missing quotes. ... After you extract the files from the zip folder run ... look under Startup for an entry titled CCC.lnk. ... Copy the information under each of the Registry entries ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: FindRow on Exchange
    ... You can request PR_STORE_ENTRYID from the parent folder just before ... OutlookSpy - Outlook, CDO ... I forgot that you can't compare entry ids directly. ...
    (microsoft.public.win32.programmer.messaging)
  • Re: FindRow on Exchange
    ... You can request PR_STORE_ENTRYID from the parent folder just before ... OutlookSpy - Outlook, CDO ... I forgot that you can't compare entry ids directly. ...
    (microsoft.public.win32.programmer.messaging)
  • Re: FindRow on Exchange
    ... EX provider returns short term entry ids from the folder contents table. ... folder in every data store and do a FindRow for my property. ... mean that it does not match the ENTRYID of the item that I am looking for. ...
    (microsoft.public.win32.programmer.messaging)