⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 u_typedef.~pas

📁 用于在串口上开发手机短信的工具包
💻 ~PAS
字号:
unit U_typedef;

interface

const
  dllpath = 'SMSCom.dll';

type
  SM_PARAM = record
    SCA : array[0..15] of char;
    TPA : array[0..15] of char;
    TP_PID : char;
    TP_DCS : char;
    TP_SCTS : array[0..15] of char;
    TP_UD : array[0..160] of char;
    index : char;
  end;

  SM_RCV_STRU = record
    iSmsTotal : integer;
    SMS : array[0..49] of SM_PARAM;
  end;
  pSM_RCV_STRU = ^SM_RCV_STRU;

  STRUCommInfo = record
    iBaudRate : integer;
    szSCA : array[0..15] of char;
  end;
  pSTRUCommInfo = ^STRUCommInfo;

  HANDLE = thandle;

  procedure GetVerInfo(szRetVer:string);stdcall;external dllpath;
  function iSetSerialNo(szCrop,szInputSN:string):integer;stdcall;external dllpath;
  function hOpenComm(szPort:string):HANDLE;stdcall;external dllpath;
  function bCloseComm(hComm:HANDLE):boolean;stdcall;external dllpath;
  function bAutoInit(hComm:HANDLE;CommInfo:pSTRUCommInfo;szErrInfo:string):boolean;stdcall;external dllpath;
  function bSendMsg(hComm:HANDLE;szMsg:string;szPhNbr:pchar;szSCA:string;szNextMsg:string;szErrInfo:array of char):boolean;stdcall;external dllpath;
//  function bSendMsg(hComm:HANDLE;szMsg:string;szPhNbr:string;szSCA:string;szNextMsg:string;szErrInfo:array of char):boolean;stdcall;external dllpath;
  function iRecvMsg(hComm:HANDLE;RcvSMS:pSM_RCV_STRU;szErrInfo:string):integer;stdcall;external dllpath;


implementation

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -