Kira
Kira

Reputation: 1207

Hooking Outlook, privileges issue

I'm capturing some Outlook events using a MFC application. The problem is that I can't write data into a file unless I'm running both Outlook and my App as an administrator. How can I solve this.

Upvotes: 1

Views: 67

Answers (1)

Dmitry Streblechenko
Dmitry Streblechenko

Reputation: 66286

And where is that file located? If you cannot write that to that file unless you an admin, that means Outlook also needs to run as an admin otherwise you cannot connect to it due to different security contexts.

Can you split your app in two? The first one (it can be an Outlook addin) writes the file in a user accessible folder. The second app (running as an admin), picks the file from the user accessible directory and copies/modifies the file in the restricted directory.

Upvotes: 1

Related Questions