📄 dllforvc.h
字号:
// The following ifdef block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the DLLFORVC_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// DLLFORVC_API functions as being imported from a DLL, wheras this DLL sees symbols
// defined with this macro as being exported.
#ifdef DLLFORVC_EXPORTS
#define DLLFORVC_API __declspec(dllexport)
#else
#define DLLFORVC_API __declspec(dllimport)
#endif
//初始化gsm modem,并连接gsm modem
BOOL DLLFORVC_API __stdcall GSMModemInitNew(
char *device,
char *baudrate,
char *initstring,
char *charset,
bool swHandshake,
char *sn);
/*
断开连接并释放内存空间
*/
void DLLFORVC_API __stdcall GSMModemRelease();
/*
连接状态
*/
BOOL DLLFORVC_API __stdcall GSMModemIsConn();
/*
取得错误信息
*/
BSTR DLLFORVC_API __stdcall GSMModemGetErrorMsg();
/*
获取短信猫授权机器码
*/
//DLLFORVC_API char * GSMModemGetSnInfoNew( char *device, char *baudrate);
/*
发送短信息,自动处理了GB2312
*/
BOOL DLLFORVC_API __stdcall GSMModemSMSsend(
char *serviceCenterAddress,
int encodeval,
char *text,
int textlen,
char *phonenumber,
bool requestStatusReport);
/*
接收短信息返回字符串格式为:手机号码|短信内容||手机号码|短信内容||
*/
BSTR DLLFORVC_API __stdcall GSMModemSMSReadAll(
int RD_opt); //0 - 读取所有短信并删除 ,1 - 读取所有短信,不删除短信
//获取当前通讯端口
//DLLFORVC_API char * GSMModemGetDevice();
//获取当前通讯波特率
//DLLFORVC_API char * GSMModemGetBaudrate();
/**
* 获取短信猫新的序列号码
*/
BSTR DLLFORVC_API __stdcall GSMModemGetSnInfoNew(char *device, char *baudrate);
//获取当前通讯端口
BSTR DLLFORVC_API __stdcall GSMModemGetDevice();
//获取当前通讯波特率
BSTR DLLFORVC_API __stdcall GSMModemGetBaudrate();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -