Re: How to use Impersonation with MAPI.
- From: "Stephen Griffin [MSFT]" <sgriffin@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 26 Jun 2006 09:23:44 -0400
That "important link" was pulled because it doesn't work.
You have three choices:
1 - Run the service as the user you're trying to impersonate
2 - Use CreateProcessAsUser to launch a worker process as the user you're
trying to impersonate
3 - Grant permissions to the account your process runs as.
"Dipak" <dipakgpatil77@xxxxxxxxx> wrote in message
news:1150788940.355231.96360@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks for reply.
Yeah I did see the link before I post this issue. The page has good
information but some of the important links e.g
http://support.microsoft.com/kb/199190 are not working.
Even I tried
http://www.mapi33.adexsolutions.com/kb/MAPIImpersonation_eng.htm link
but the solution given there not worked for me. I still get same error.
Henry Gusakovsky wrote:
see that link for additional info
http://blogs.msdn.com/stephen_griffin/archive/2005/04/13/407925.aspx
Dipak wrote:
Hi All,
Using CDO and MAPI I discover whole exchange server.
My program runs as a NT service. If I start service under
administrative privileges then everything works fine. However, if I
start service in local system account and impersonate administrator
user then MAPI call IMsgServiceAdmin::ConfigureMsgService fails with an
error 0x80040115 (network error).
I did not find any concrete documentation on MAPI impersonation.
Can anybody please help for the same ?
Regards,
Dipak.
.
- References:
- How to use Impersonation with MAPI.
- From: Dipak
- Re: How to use Impersonation with MAPI.
- From: Henry Gusakovsky
- Re: How to use Impersonation with MAPI.
- From: Dipak
- How to use Impersonation with MAPI.
- Prev by Date: How to send email using default email client installed on system
- Next by Date: Re: Fetching the content of Appointment, Contact and Journal
- Previous by thread: Re: How to use Impersonation with MAPI.
- Next by thread: Re: MAPISendMail and Outlook as mail client
- Index(es):
Relevant Pages
|