none
identify columns in mapi SRow RRS feed

  • Question

  • Hi,

    How do I identify which columns in an SRow contain which data?  For example, I figured out how to read the profile table and get an SRowSet.  I can loop through that table and dump the contents of each row and column by inspecting the column type and formatting the ouput accordingly.

    I can plainly see, in this case, that the first column is the profile name and the second is the "default" flag.  What I want to understand is how I would know that in general.  That is, I want my code to do something like:

       if (row.lpProps [COLUMN_DEFAULT_PROFILE]) // this is the default profile
          return row.lpProps [COLUMN_PROFILE_NAME]; // return profile name string

    Thanks.

    Monday, February 6, 2012 11:45 PM

Answers

  • You need to explicilty set the table columns first using IMAPITable::SetColumns()


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.2 is now available!

    • Marked as answer by perih Tuesday, February 7, 2012 4:30 PM
    Tuesday, February 7, 2012 1:50 PM

All replies