public void CancelFanDustRemoval() { FanCtrl ctrl = new FanCtrl { ControlType = 6, DataCount = 1, Data = 0 }; object input = ctrl; object output = null; if (DoDeviceIoControl(0x831020c0, input, ref output)) { Console.WriteLine("CancelFanDustRemoval applied"); Console.WriteLine("Status: {0}", GetFanDustRemovalStatus()); return; } object[] args = new object[] { Marshal.GetLastWin32Error() }; Console.WriteLine("DeviceIoControl failed with error code {0} ", args); }
private void OnFanFunc(object obj) { FanCtrl.OnFanFunc(obj); }
private void OnFanDecelerateFunc(object obj) { FanCtrl.OnFanDecelerateFunc(obj); }