Exemplo n.º 1
0
        public static void ResetAdapter(string adapterName)
        {
            INTF_ENTRY_EX intf = new INTF_ENTRY_EX();

            intf.Guid = adapterName;
            INTF_FLAGS flags = 0;

            try
            {
                WZCSetInterfaceEx(null, INTF_FLAGS.INTF_PREFLIST, ref intf, out flags);
            }
            catch (MissingMethodException)
            {
                throw new PlatformNotSupportedException("The required OS components for this method are not present.");
            }
        }
Exemplo n.º 2
0
 WZCSetInterfaceEx(
     string pSrvAddr,
     INTF_FLAGS dwInFlags,
     ref INTF_ENTRY_EX pIntf,
     out INTF_FLAGS pdwOutFlags);