How to create a MAPI profile from a service?



Hi, please help.

I am using MAPIAdminProfiles to get the Profile management interface and use
CreateProfile() and ConfigureMsgService() to create a MAPI profile to access
Exchange 2000. Everything works fine if I run my application interactively.
But it fails at ConfigureMsgService() when running as Windows Service.
Becaue the service is running as LocalSystem account, it seems that account
cannot call ConfigureMsgService().
What should I do? I know I can impersonate another user but I tend not to do
that. Is there any setting somewhere to let LocalSystem account to call
ConfigureMsgService()?

Thanks,
Chris


.