Outlook 2007 userpermission

  • Thread starter Thread starter Fuubah
  • Start date Start date
F

Fuubah

Hi,

im trying to get the permission of a user, who is editing a appointment in
an others persons calendar.

After debugging the outlook appointment model i tryed it with

((Microsoft.Office.Interop.Outlook.ExplorerClass)(this._appointment.Application.ActiveExplorer())).CurrentFolder.UserPermissions

but my problem is, that this attribute is always null.
Any idea what i am doing wrong?

Or would it be better, to get the information over the exchange by getting
the url over the session objekt.

Or is there a much better way?

thanks for your help
 
That property is hidden and you can't rely on it. You can use the
PropertyAccessor object for that Folder and the DASL property tag
"http://schemas.microsoft.com/mapi/proptag/0x0FF40003" to get the PR_ACCESS
MAPI property for that folder. You can then take that Long and parse it as a
set of flags indicating the permissions. You would use the MAPI header files
in the Windows SDK to interpret the permission flags.
 
Back
Top