C++ Mailbox sample.

 

#include "AIRMail SDK.h" 

DWORD AIRMail SDKHandle = 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 (AIRMail SDKHandle);

}