Here is my attempt to disable/enable network adapters on Windows:
void EnableNetDevice(bool aState, int index) { HDEVINFO NetPnPHandle; SP_PROPCHANGE_PAR
It's simply a requirement to call the function from a 64-bit process on x64 OS. See http://msdn.microsoft.com/en-us/library/windows/hardware/ff541255(v=vs.85).aspx