/// <summary>
/// 初始化群发器
/// </summary>
/// <param name="comport">端口</param>
/// <param name="baud">波特率</param>
/// <returns></returns>
[DllImport("mysms.dll", EntryPoint="InitModem", ExactSpelling=false, CharSet=System.Runtime.InteropServices.CharSet.Ansi, SetLastError=true)]
public static extern bool InitModem(int comport, int baud);
/// <summary>
/// 发送消息
/// </summary>
/// <param name="comport">串口</param>
/// <param name="baud">波特率</param>
/// <param name="sMessage">发送的消息</param>
/// <param name="sto">接收方</param>
/// <param name="bEnglish">是否是英文(如果是,则不支持中文字符)</param>
/// <param name="bAlert">是否免提信息(如果是,则不能包含英文字符)</param>
/// <param name="bSr">是否有状态报告</param>
/// <returns>成功</returns>
[DllImport("mysms.dll", EntryPoint="SendSms", ExactSpelling=false, CharSet=System.Runtime.InteropServices.CharSet.Ansi, SetLastError=true)]
public static extern bool SendSms(int comport, int baud, string sMessage, string sto, bool bEnglish, bool bAlert,ref bool bSr);