Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试编写自动 VPN 连接,我看到代码使用 Rasdial.exe 和 DotRAS 连接/断开 VPN 连接。如果我需要我的应用程序从 Windows XP 运行到 Windows 10,只是想确定哪个是首选?
谢谢你的想法!
这实际上完全取决于您想对您的应用程序做什么。RasDial.exe 会让您的应用程序拨号连接,但除此之外不会给您太多控制权。
DotRas 授予您对 Win32 API 的更多控制权,但我尚未更新已发布的版本以支持 Windows 10。
此外,您可能需要考虑放弃对 Windows XP 的支持,因为 Microsoft 不再支持它,并且大多数跨操作系统兼容 VPN 连接的新功能都在 Windows 7 或更高版本中(Microsoft 几乎不支持)。