function DisconnectActiveConnection
var
RasEntry: TRasEntry;
EntryInfoSize: Cardinal;
DeviceInfoSize: Cardinal;
RasGetEntryPropertiesResul
begin
ZeroMemory(@RasEntry, SizeOf(TRasEntry));
RasEntry.dwSize := SizeOf(TRasEntry);
EntryInfoSize := SizeOf(TRasEntry);
RasGetEntryPropertiesResul
MyActiveEntryName), @RasEntry, EntryInfoSize, nil, DeviceInfoSize);
if (RasGetEntryPropertiesResu
Result := DisconnectDevice(StrPas(Ra
end;
 
Main Topics
Browse All Topics





by: DaFoxPosted on 2003-11-12 at 08:58:01ID: 9732737
Hi,
>> Hook function RasDialA in RASAPI32.DLL but unsuccessful because if a program was packed, it doesn't effect.
Just hook LoadLibrary and/or GetProcAddress to get notified when a process loads RasDial API. Or patch the IAT of the *running* process.
Markus