creating a timeout
-
I have a Visual C++6 project for extracting WMI information from machines across the network. I am using the IWbemLocator::ConnectServer method with the WBEM_FLAG_CONNECT_USE_MAX_WAIT flag. The flag prevents the app from hanging and will timeout the call if not sucuessful after 2mins. But this flag only works for XP pcs and no other like 2000 etc and also is fixed at 2mins. how can a timeout be implemented so i can kill the ConnectServer method say after 20seconds.
-
I have a Visual C++6 project for extracting WMI information from machines across the network. I am using the IWbemLocator::ConnectServer method with the WBEM_FLAG_CONNECT_USE_MAX_WAIT flag. The flag prevents the app from hanging and will timeout the call if not sucuessful after 2mins. But this flag only works for XP pcs and no other like 2000 etc and also is fixed at 2mins. how can a timeout be implemented so i can kill the ConnectServer method say after 20seconds.
Hi, This is kind of thing I would use another thread for ... Regards Ray "Je Suis Mort De Rire" Blogging @ Keratoconus Watch