C++ Mailbox sample |
Top Previous Next |
C++ Mailbox sample.
#include "MCore.h" DWORD MCoreHandle = 0; int _tmain(int argc, _TCHAR* argv[]) { TMString oe_folder; GetOEMailbox (&oe_folder); DWORD res = OpenMailbox (oe_folder); if (res < OMS_NOERROR) { printf ("OpenMailbox box failed with an error code %d\n",res); return (1); }; CloseMailbox (McoreHandle); } |