Fixed Issue 387. The new implementation does not try to start a ring 0 driver that already exists, but could not be opened. It tries to delete the driver and install it new. The driver is now stored temporarily in the application folder. The driver is not correctly removed on system shutdown.
3 This Source Code Form is subject to the terms of the Mozilla Public
4 License, v. 2.0. If a copy of the MPL was not distributed with this
5 file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 Copyright (C) 2012 Michael Möller <mmoeller@openhardwaremonitor.org>
11 namespace OpenHardwareMonitor.Hardware.Mainboard {
12 internal class Identification {
14 public static Manufacturer GetManufacturer(string name) {
17 return Manufacturer.Alienware;
19 return Manufacturer.Apple;
21 return Manufacturer.ASRock;
22 case "ASUSTeK Computer INC.":
23 case "ASUSTeK COMPUTER INC.":
24 return Manufacturer.ASUS;
26 return Manufacturer.Dell;
29 return Manufacturer.DFI;
31 return Manufacturer.ECS;
32 case "EPoX COMPUTER CO., LTD":
33 return Manufacturer.EPoX;
35 return Manufacturer.EVGA;
36 case "First International Computer, Inc.":
37 return Manufacturer.FIC;
39 case "FUJITSU SIEMENS":
40 return Manufacturer.Fujitsu;
41 case "Gigabyte Technology Co., Ltd.":
42 return Manufacturer.Gigabyte;
43 case "Hewlett-Packard":
44 return Manufacturer.HP;
46 return Manufacturer.IBM;
49 case "Intel Corporation":
50 case "INTEL Corporation":
51 return Manufacturer.Intel;
54 return Manufacturer.Lenovo;
55 case "Micro-Star International":
56 case "MICRO-STAR INTERNATIONAL CO., LTD":
57 case "MICRO-STAR INTERNATIONAL CO.,LTD":
59 return Manufacturer.MSI;
61 return Manufacturer.Shuttle;
63 return Manufacturer.Supermicro;
65 return Manufacturer.Toshiba;
67 return Manufacturer.XFX;
68 case "To be filled by O.E.M.":
69 return Manufacturer.Unknown;
71 return Manufacturer.Unknown;
75 public static Model GetModel(string name) {
78 return Model._880GMH_USB3;
79 case "ASRock AOD790GX/128M":
80 return Model.AOD790GX_128M;
82 return Model.P55_Deluxe;
83 case "Crosshair III Formula":
84 return Model.Crosshair_III_Formula;
85 case "M2N-SLI DELUXE":
86 return Model.M2N_SLI_DELUXE;
88 return Model.M4A79XTD_EVO;
90 return Model.P5W_DH_Deluxe;
94 return Model.P6X58D_E;
98 return Model.P8P67_EVO;
100 return Model.P8P67_PRO;
102 return Model.P8P67_M_PRO;
104 return Model.P8Z77_V;
107 case "Rampage Extreme":
108 return Model.Rampage_Extreme;
109 case "Rampage II GENE":
110 return Model.Rampage_II_GENE;
111 case "LP BI P45-T2RS Elite":
112 return Model.LP_BI_P45_T2RS_Elite;
113 case "LP DK P55-T3eH9":
114 return Model.LP_DK_P55_T3eH9;
116 return Model.A890GXM_A;
117 case "X58 SLI Classified":
118 return Model.X58_SLI_Classified;
120 return Model._965P_S3;
122 return Model.EP45_DS3R;
124 return Model.EP45_UD3R;
126 return Model.EX58_EXTREME;
128 return Model.EX58_UD3R;
130 return Model.G41M_Combo;
132 return Model.G41MT_S2;
134 return Model.G41MT_S2P;
135 case "GA-MA770T-UD3":
136 return Model.GA_MA770T_UD3;
137 case "GA-MA770T-UD3P":
138 return Model.GA_MA770T_UD3P;
139 case "GA-MA785GM-US2H":
140 return Model.GA_MA785GM_US2H;
141 case "GA-MA785GMT-UD2H":
142 return Model.GA_MA785GMT_UD2H;
143 case "GA-MA78LM-S2H":
144 return Model.GA_MA78LM_S2H;
145 case "GA-MA790X-UD3P":
146 return Model.GA_MA790X_UD3P;
148 return Model.H55_USB3;
150 return Model.H55N_USB3;
151 case "H61M-DS2 REV 1.2":
152 return Model.H61M_DS2_REV_1_2;
153 case "H61M-USB3-B3 REV 2.0":
154 return Model.H61M_USB3_B3_REV_2_0;
156 return Model.H67A_UD3H_B3;
158 return Model.H67A_USB3_B3;
160 return Model.P35_DS3;
162 return Model.P35_DS3L;
164 return Model.P55_UD4;
166 return Model.P55A_UD3;
168 return Model.P55M_UD4;
170 return Model.P67A_UD3_B3;
172 return Model.P67A_UD3R_B3;
174 return Model.P67A_UD4_B3;
176 return Model.P8Z68_V_PRO;
178 return Model.X38_DS5;
180 return Model.X58A_UD3R;
182 return Model.Z68A_D3H_B3;
184 return Model.Z68AP_D3;
186 return Model.Z68X_UD3H_B3;
188 return Model.Z68X_UD7_B3;
191 case "Base Board Product Name":
192 case "To be filled by O.E.M.":
193 return Model.Unknown;
195 return Model.Unknown;