示例#1
0
        public static bool WritePciConfig(uint pciAddress, uint regAddress, uint value)
        {
            if (_driver == null || (regAddress & 3) != 0)
                return false;


            WritePciConfigInput input = new WritePciConfigInput { PciAddress = pciAddress, RegAddress = regAddress, Value = value };
            return _driver.DeviceIOControl(Interop.Ring0.IOCTL_OLS_WRITE_PCI_CONFIG, input);
        }
示例#2
0
        public static bool WritePciConfig(uint pciAddress, uint regAddress, uint value)
        {
            if (driver == null || (regAddress & 3) != 0)
            {
                return(false);
            }

            WritePciConfigInput input = new WritePciConfigInput();

            input.PciAddress = pciAddress;
            input.RegAddress = regAddress;
            input.Value      = value;

            return(driver.DeviceIOControl(IOCTL_OLS_WRITE_PCI_CONFIG, input));
        }