diff -r d32fc5f2e822 -r 51c2f209da6d Hardware/WinRing0.cs --- a/Hardware/WinRing0.cs Sun Jan 31 19:30:00 2010 +0000 +++ b/Hardware/WinRing0.cs Sun Jan 31 20:57:18 2010 +0000 @@ -90,6 +90,8 @@ ushort deviceId, byte index); public delegate bool ReadPciConfigDwordExDelegate(uint pciAddress, uint regAddress, out uint value); + public delegate bool WritePciConfigDwordExDelegate(uint pciAddress, + uint regAddress, uint value); private static InitializeOlsDelegate InitializeOls; private static DeinitializeOlsDelegate DeinitializeOls; @@ -103,6 +105,8 @@ public static SetPciMaxBusIndexDelegate SetPciMaxBusIndex; public static FindPciDeviceByIdDelegate FindPciDeviceById; public static ReadPciConfigDwordExDelegate ReadPciConfigDwordEx; + public static WritePciConfigDwordExDelegate WritePciConfigDwordEx; + private static void GetDelegate(string entryPoint, out T newDelegate) where T : class @@ -127,6 +131,7 @@ GetDelegate("SetPciMaxBusIndex", out SetPciMaxBusIndex); GetDelegate("FindPciDeviceById", out FindPciDeviceById); GetDelegate("ReadPciConfigDwordEx", out ReadPciConfigDwordEx); + GetDelegate("WritePciConfigDwordEx", out WritePciConfigDwordEx); try { if (InitializeOls != null && InitializeOls())