How do I get a propertyvalue from a mapitable

  • Thread starter Thread starter davidgtalk
  • Start date Start date
D

davidgtalk

I have a profile MapiTable from a call to LPPROFADMIN->GetProfileTable.
Calls to pHrQueryAllRows works.

I want to get the profile names from the table.

How do I do this?

I'm thinking it has something to do with HrGetOneProp and
PR_PROFILE_NAME but I cannot work out how to use properties.

Thanks
 
No, you need to call IMAPITable::SetColumns first to set the appropriate
column(s), e.g. PR_DISPLAY_NAME, then call IMAPITable::QueryRows.
Or you can combine the two calls using HrQueryAllRows()

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top