authentication dialog pops up when calling GetItemFromID

N

Navin

Does anyone know why would Outlook XP pop up an authentication dialog
whenever I call GetItemFromID on the namespace object?
Following is the scenario :-
A seperate process is running under the admin credentials and
impersonating a non admin user. The process then launches outlook under
the credentials of the non admin user. Using MAPI it looks for items in
default message store with a certain message class. Whenever it finds
one, it resets the message class, saves the item then tries to get a
pointer to the outlook item using GetItemFromID. (We need this in order
to be able to set some outlook user properties which cannot be done
through MAPI). At this point GetItemFromID pops up an authentication
dialog. Also after this, any attempt to launch outlook by the non admin
user pops up the authentication dialog as long as this process is
running. Only when I quit this process am I able to launch outlook.
This same code works just fine if the process is running under admin
credentials, for the admin user and is not impersonating another user.

Any help, tips, pointers would be greatly appreciated.
Thanks
Navin.
 

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

Top