1
- using DellFanManagement . SmmIo ;
2
- using DellFanManagement . SmmIo . DellSmi ;
1
+ using DellFanManagement . DellSmbiosSmiLib ;
2
+ using DellFanManagement . DellSmbiosSmiLib . DellSmi ;
3
3
using System ;
4
4
using System . Collections . Generic ;
5
5
using System . Linq ;
@@ -23,7 +23,7 @@ static void Main(string[] args)
23
23
//ReadTokens();
24
24
//SetTokens();
25
25
26
- Console . WriteLine ( DellSmmIoLib . GetPasswordFormat ( SmiPassword . Admin ) ) ;
26
+ Console . WriteLine ( DellSmbiosSmi . GetPasswordFormat ( SmiPassword . Admin ) ) ;
27
27
}
28
28
catch ( Exception exception )
29
29
{
@@ -43,7 +43,7 @@ private static void ReadTokens()
43
43
foreach ( Token token in tokens )
44
44
{
45
45
Console . WriteLine ( token ) ;
46
- DellSmmIoLib . GetToken ( token ) ;
46
+ DellSmbiosSmi . GetToken ( token ) ;
47
47
Console . WriteLine ( ) ;
48
48
}
49
49
}
@@ -55,17 +55,17 @@ private static void SetTokens()
55
55
Token token = index % 2 == 0 ? Token . KeyboardIlluminationAuto50 : Token . KeyboardIlluminationAuto100 ;
56
56
uint value = ( uint ) ( index % 2 == 0 ? 6 : 8 ) ;
57
57
58
- DellSmmIoLib . GetToken ( token ) ;
59
- DellSmmIoLib . SetToken ( token , 1 ) ;
58
+ DellSmbiosSmi . GetToken ( token ) ;
59
+ DellSmbiosSmi . SetToken ( token , 1 ) ;
60
60
//DellSmmIoLib.SetToken(token, value, SelectToken.AC);
61
- DellSmmIoLib . GetToken ( token ) ;
61
+ DellSmbiosSmi . GetToken ( token ) ;
62
62
Thread . Sleep ( 1000 ) ;
63
63
}
64
64
}
65
65
66
66
private static void ThermalSetting ( )
67
67
{
68
- Console . WriteLine ( DellSmmIoLib . GetThermalSetting ( ) ) ;
68
+ Console . WriteLine ( DellSmbiosSmi . GetThermalSetting ( ) ) ;
69
69
Console . WriteLine ( ) ;
70
70
}
71
71
@@ -78,7 +78,7 @@ private static void RfInfo()
78
78
} ;
79
79
80
80
// RF information.
81
- DellSmmIoLib . ExecuteCommand ( ref message ) ;
81
+ DellSmbiosSmi . ExecuteCommand ( ref message ) ;
82
82
83
83
Console . WriteLine ( "{0}\t {1}\t {2}\t {3}" , message . Output1 , message . Output2 , message . Output3 , message . Output4 ) ;
84
84
@@ -89,7 +89,7 @@ private static void RfInfo()
89
89
Input1 = 2
90
90
} ;
91
91
92
- DellSmmIoLib . ExecuteCommand ( ref message ) ;
92
+ DellSmbiosSmi . ExecuteCommand ( ref message ) ;
93
93
94
94
Console . WriteLine ( "{0}\t {1}\t {2}\t {3}" , message . Output1 , message . Output2 , message . Output3 , message . Output4 ) ;
95
95
@@ -107,7 +107,7 @@ private static void KeyboardBacklightInfo()
107
107
Selector = Selector . KeyboardBacklight
108
108
} ;
109
109
110
- DellSmmIoLib . ExecuteCommand ( ref message ) ;
110
+ DellSmbiosSmi . ExecuteCommand ( ref message ) ;
111
111
112
112
Console . WriteLine ( "Modes: {0}" , message . Output2 & 0xFFFF ) ;
113
113
Console . WriteLine ( "Type: {0}" , ( message . Output2 >> 24 ) & 0xFF ) ;
@@ -139,7 +139,7 @@ private static void Enumerate()
139
139
140
140
try
141
141
{
142
- bool result = DellSmmIoLib . ExecuteCommand ( ref message ) ;
142
+ bool result = DellSmbiosSmi . ExecuteCommand ( ref message ) ;
143
143
if ( result )
144
144
{
145
145
Console . WriteLine ( "{0}\t {1}\t {2}\t {3}" , message . Output1 , message . Output2 , message . Output3 , message . Output4 ) ;
0 commit comments