Hi all,
How is the default interface to start scanning is persisted?
I need to specify an interface, so that the program would automatically start scanning.
I've found the code that does that:
Code:
NetworkInterface netInterface = InterfaceManager.Instance.LastInterface;
if (netInterface != null)
{
Debug.WriteLine("We have a last interface, start scanning with it.");
//Set the interface
scanner.Interface = netInterface;
if (Settings.Default.scanLastEnabled)
scanner.StartScanning();
}
But where was that "LastInterface" saved?
How do I specify my own?
Any help is appreciated,
Thank you,
Gene


Reply With Quote




Bookmarks