Just little help ..... with Distribution list members from IMessage ... THANK YOU !

Just little help ..... with Distribution list members from IMessage ... THANK YOU !

Post by Maulik Pate » Mon, 14 Jul 2003 16:56:44

Dear Experts ,

While scanning a Folder ,  i get IMessage ....

when Checking it's class  (PR_MESSAGE_CLASS) :

After that i am trying to retrieve all distribution list members from that
IMessage ...

Dimitry said : "You can retrieve all the members of a distribution lists in
contacts folders using
the regular IMessage interface - entry ids of all the dist list members
are stored in the named property with id = 0x8054 and GUID =
{00062004-0000-0000-C000-000000000046}. It is a PT_MV_BINARY property, just
retrieve each element and call IAddrBook::OpenEntry() - you will get back
IMailUser of that member. "

I am doing this :

ULONG my_Get_Dlist_Items(IMessage* a_pMess)

  LPSPropTagArray    lpPropTags  = NULL;

  MAPINAMEID     nameid   = {0}; //0
  HRESULT      hr    = S_OK;
  ULONG      nPropTag  = 0;

  GUID sd2; // {00062004-0000-0000-C000-000000000046} , it's for D-Lists
  sd2.Data1=0x00062004; sd2.Data2=0x0000; sd2.Data3=0x0000;
  sd2.Data4[0]=0xC0; sd2.Data4[1]=0x00; sd2.Data4[2]=0x00;
  sd2.Data4[4]=0x00; sd2.Data4[5]=0x00; sd2.Data4[6]=0x00;

  nameid.lpguid  = (GUID*)&sd2;
  nameid.ulKind  = MNID_ID;
  nameid.Kind.lID  = 0x00008054;  // for D-list

  MAPINAMEID *    rgpnameid[1]={&nameid};

  hr = a_pMess->GetIDsFromNames(1,rgpnameid,0,&lpPropTags);
   return 0;

   ULONG ulObjType=0;
  //IABContainer *lpContainer=NULL;

  IAddrBook* pAddrBook=NULL;
   LPSPropValue    pProp   = NULL;

  nPropTag = lpPropTags->aulPropTag[0] | PT_MV_BINARY;
  hr = HrGetOneProp(a_pMess,nPropTag,&pProp);

  long m_size=0;
  mapi_TEntryid eid;


  ULONG mCB=0;

  for(int k=0;k<m_size;k++) {

    if (pProp[k].ulPropTag==PR_ENTRYID) {

        if(!eid.isempty()) { ;;;;;;; }


  return nPropTag;


When i click on property 0x00008054 , i can see it's named property in right
hand side box in OutlookSpy.
and the "Value" box contains , EntryIDs of all Distribution list members ...

i above function , i think , there is very change is required to get those
EntryIDs of D-List members ...

I just need help on that one ...!!!

there is some thing i am doing wrong here ...

After that ,,, i am done ....Thank you very much .....


Maulik Patel


1. Distribution list members and site conatiner members invisible

Hi All,

 since some days, our users cannot longer see the members of distribution
lists and in the addressbooks, our site containsers are invisible for the
users of our site. Other sites administrators can see the members of the DLs
and even our sites containers. As beeing the (new) exchange admin here, I do
not have the problem.

 Even users beeing the owner of the DL cannot see the members and do not
see, that they are the owner. I have not changed the permissions at any
point, but removed the account from the old admin. I made a simple test:Gave
the owner of a DL the additional right "serach" and now, he is able to see
and modify the list!!! But, so far as I know, we never changed that right in
the past and it looks not appropriate to make that for all users. It looks
more like a permission inheritance problem.

 Any thoughts, tips or hints to further information would be really very

Manfred Braun
SCA Packging Deutschland
Headoffice Information Systems

(Please remove the "anti-spam-underscore" to mail me)

2. X400 connector behind a Proxy

3. thanks but i need a little more help

4. OWA behind ISA-Server

5. All distribution lists missing members, HELP!!!

6. Users cannot change their own Passwords...

7. programmatic modification of members of a distribution list (DL) on the global address list (GAL)

8. Generator fail after installing SP2

9. Getting a list of Distribution Lists and their members

10. Distribution List - Member list? How to produce

11. member of distribution list not receiving emails sent to list

12. Distribution List - Members of List get mail too

13. List Members of a Distribution List ?