Hardware/LPC/Chip.cs
Fixed an UnauthorizedAccessException in the StartupManager. The exception occurred when the application was running without administrator rights. A task for the current user could be created manually, but RegisterTaskDefinition somehow always throws an UnauthorizedAccessException. The current fix restricts the TaskScheduler startup method to accounts with administrator rights.
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at OpenHardwareMonitor.TaskScheduler.ITaskFolder.RegisterTaskDefinition(String Path, ITaskDefinition pDefinition, Int32 flags, Object UserId, Object password, TASK_LOGON_TYPE LogonType, Object sddl)
at OpenHardwareMonitor.GUI.StartupManager.CreateSchedulerTask()
at OpenHardwareMonitor.GUI.StartupManager.set_Startup(Boolean value)
at OpenHardwareMonitor.GUI.MainForm.runOnWindowsStartupToolStripMenuItem_CheckedChanged(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnCheckedChanged(EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.set_CheckState(CheckState value)
at System.Windows.Forms.ToolStripMenuItem.set_Checked(Boolean value)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
moel@1
|
1 |
|
moel@1
|
2 |
using System;
|
moel@1
|
3 |
using System.Collections.Generic;
|
moel@1
|
4 |
using System.Text;
|
moel@1
|
5 |
|
moel@1
|
6 |
namespace OpenHardwareMonitor.Hardware.LPC {
|
moel@1
|
7 |
|
moel@1
|
8 |
public enum Chip : ushort {
|
moel@1
|
9 |
Unknown = 0,
|
moel@93
|
10 |
IT8712F = 0x8712,
|
moel@21
|
11 |
IT8716F = 0x8716,
|
moel@21
|
12 |
IT8718F = 0x8718,
|
moel@21
|
13 |
IT8720F = 0x8720,
|
moel@21
|
14 |
IT8726F = 0x8726,
|
moel@7
|
15 |
W83627DHG = 0xA020,
|
moel@19
|
16 |
W83627DHGP = 0xB070,
|
moel@108
|
17 |
W83627EHF = 0x8800,
|
moel@31
|
18 |
W83627HF = 0x5200,
|
moel@54
|
19 |
W83627THF = 0x8283,
|
moel@34
|
20 |
W83667HG = 0xA510,
|
moel@34
|
21 |
W83667HGB = 0xB350,
|
moel@67
|
22 |
W83687THF = 0x8541,
|
moel@68
|
23 |
F71858 = 0x0507,
|
moel@16
|
24 |
F71862 = 0x0601,
|
moel@16
|
25 |
F71869 = 0x0814,
|
moel@16
|
26 |
F71882 = 0x0541,
|
moel@103
|
27 |
F71889ED = 0x0909,
|
moel@103
|
28 |
F71889F = 0x0723
|
moel@1
|
29 |
}
|
moel@1
|
30 |
|
moel@1
|
31 |
}
|