RasDial 之后发送短信
我正在 Windows 下使用 C++ 开发一个小型 3G 连接管理器,我不明白如何在通过 RasDial 建立 3G 连接后发送短信。
我有访问串行端口的代码,并且我了解发送短信的 AT 命令。如果我可以打开串行端口,则效果很好。但是,在 RasDial 调用后,使用 CreateFile 打开串行端口失败,因为 RAS 似乎对其具有独占访问权限。
有谁知道其他连接管理器如何设法解决这个问题?
I'm developing a small 3G connection manager under Windows using C++ and I can't understand how to send an SMS once a 3G connection is established via RasDial.
I have code to access a serial port and I understand the AT commands to send an SMS. This works fine if I can open the serial port. However, after a RasDial call, opening the serial port with CreateFile fails, as RAS seems to have exclusive access to it.
Has anyone an idea how other connection managers manage to get around this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论