冷
冷雨叶
Unregistered / Unconfirmed
GUEST, unregistred user!
我下面的代码没效果
RasEntry.dwfOptions := RasEntry.dwfOptions or (not RASEO_RemoteDefaultGateway);
MSDN上是这样讲的,
RASEO_RemoteDefaultGateway
If this flag is set, the default route for IP packets is through the dial-up adapter when the connection is active. If this flag is clear, the default route is not modified.
This flag corresponds to the Use default gateway on remote network check box in the TCP/IP settings dialog box.
RasEntry.dwfOptions := RasEntry.dwfOptions or (not RASEO_RemoteDefaultGateway);
MSDN上是这样讲的,
RASEO_RemoteDefaultGateway
If this flag is set, the default route for IP packets is through the dial-up adapter when the connection is active. If this flag is clear, the default route is not modified.
This flag corresponds to the Use default gateway on remote network check box in the TCP/IP settings dialog box.