private void GetInterfaces(bool sta, int timeout)
{
Thread timeout_thread = new Thread(ExitProcessThread);
timeout_thread.Start(timeout);
if (sta)
{
RunGetInterfaces();
}
else
{
Thread th = null;
th = new Thread(MTAEnumThread);
th.Start();
th.Join();
}
}