Error while dynamically loading mapi32.dll
问题 Our application uses Simple MAPI to send e-mails. One of our clients has problems sending e-mail from a session on his terminal server. The mapi32.dll is loaded with a call to LoadLibrary which succeeds, but then our application tries to get the addresses of the functions MAPILogon , MAPILogOff , MAPISendMail , MAPIFreeBuffer and MAPIResolveName . The problem is that GetProcAddress fails for those functions with an ERROR_ACCESS_DENIED (code: 5) except for MAPIFreeBuffer . It looks like some