如题
调用API GetSystemMetrics试验一下,我今天没有时间验证了. 休息了. :)
GetSystemMetrics(SM_NETWORK)
use the DDK to do this.
Try SetupDiGetClassDevs() and SetupDiEnumDeviceInterfaces() to get the
device you want, and then look at the SP_DEVICE_INTERFACE_DATA returned by
the latter function to see if the device is active.