Compare the status of network card at every startup
I want to know how can we compare the status of our hardware components at every start-up and display if any change occurred to the previous condition .
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Roei BarRank #1,271 · 1.4K reputationPosted Aug 31, 2009, 9:10 PM EDT
hello mate, well i have been asked to write the same thing a few years ago here is a gr8 post i fuond in CodeProject http://www.codeproject.com/KB/cs/HardwareHelper.aspx it has a : case HardwareHelperLib.Native.WM_DEVICECHANGE: { if (m.WParam.ToInt32() == HardwareHelperLib.Native.DBT_DEVNODES_CHANGED) { listBox1.Items.Clear(); string[] HardwareList = hwh.GetAll(); foreach (string s in HardwareList) { listBox1.Items.Add(s); } label1.Text = listBox1.Items.Count.ToString() + " Devices Attached"; } break; }just for what you require
dont forget to mark this as "Accepted Answer"