断开拨号连接

  • 主题发起人 主题发起人 import
  • 开始时间 开始时间
I

import

Unregistered / Unconfirmed
GUEST, unregistred user!
断开拨号连接 function DisconnectActiveConnection: Boolean;
var
RasEntry: TRasEntry;
EntryInfoSize: Cardinal;
DeviceInfoSize: Cardinal;
RasGetEntryPropertiesResult: Integer;
begin
ZeroMemory(@RasEntry, SizeOf(TRasEntry));
RasEntry.dwSize := SizeOf(TRasEntry);
EntryInfoSize := SizeOf(TRasEntry);
RasGetEntryPropertiesResult := RasGetEntryProperties(nil,
MyActiveEntryName), @RasEntry, EntryInfoSize, nil, DeviceInfoSize);
if (RasGetEntryPropertiesResult = 0) then
Result := DisconnectDevice(StrPas(RasEntry.szDeviceName));
end;
 

Similar threads

S
回复
0
查看
589
SUNSTONE的Delphi笔记
S
S
回复
0
查看
686
SUNSTONE的Delphi笔记
S
后退
顶部