Re: getting handle to a custom folder, say "ABC".
- From: "Dmitry Streblechenko" <dmitry@xxxxxxxxxxx>
- Date: Fri, 23 Dec 2005 10:17:01 -0700
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.
>
.
- References:
- getting handle to a custom folder, say "ABC".
- From: Surjya
- getting handle to a custom folder, say "ABC".
- Prev by Date: Re: getting the MIME type of message attachment in VC++
- Next by Date: Re: ?Delete recurrence appointment added in pst by MAPI, outlook delet
- Previous by thread: getting handle to a custom folder, say "ABC".
- Next by thread: Header Rows in MAPI Tables with MV/Categorized Sorts
- Index(es):
Relevant Pages
|