This includes the BMAPI functions, such as BMAPISendMail, which are typically exported by Simple MAPI implementations to allow Visual Basic programs to call them. The BMAPI functions use simpler structures that Visual Basic can understand. Hotmail does not implement any of the BMAPI functions. Any call to them returns with the MAPI_E_FAILURE (2) MAPI result code.
This causes the MAPI Stub Library (the Mapi32.dll file) to route Simple MAPI calls to the Hmmapi.dll file.
A client program can link directly to the functions in the Hmmapi.dll file by calling LoadLibrary. It is not recommended that you use this method.
The following list describes how each of the implemented Simple MAPI functions operate:
- MAPILogon: Sets lhSession to 1, and returns SUCCESS_SUCCESS.
- MAPILogoff: Always returns SUCCESS_SUCCESS
- MAPISendMail: Ignores lhSession. Ignores all flags, including MAPI_DIALOG. Invokes Internet Explorer to create a message in a compose window by using the passed in MapiMessage structure, including all recipients and attached files. The message is created and presented in the browser, but it is not automatically sent. You must manually send the message. Because this function invokes a user interface, do not use it from a service.
ID do Artigo: 315500 - Última Revisão: 23 de mar de 2009 - Revisão: 1