Commit accb8e1 1 parent e01df60 commit accb8e1 Copy full SHA for accb8e1
File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 12
12
using GHelper . Peripherals . Mouse ;
13
13
using GHelper . UI ;
14
14
using GHelper . USB ;
15
- using System ;
16
15
using System . Diagnostics ;
17
16
using System . Timers ;
18
- using static NativeMethods ;
19
17
20
18
namespace GHelper
21
19
{
@@ -435,7 +433,7 @@ protected override void WndProc(ref Message m)
435
433
if ( m . Msg == NativeMethods . WM_POWERBROADCAST && m . WParam == ( IntPtr ) NativeMethods . PBT_POWERSETTINGCHANGE )
436
434
{
437
435
var settings = ( NativeMethods . POWERBROADCAST_SETTING ) m . GetLParam ( typeof ( NativeMethods . POWERBROADCAST_SETTING ) ) ;
438
- if ( settings . PowerSetting == PowerSettingGuid . LIDSWITCH_STATE_CHANGE )
436
+ if ( settings . PowerSetting == NativeMethods . PowerSettingGuid . LIDSWITCH_STATE_CHANGE )
439
437
{
440
438
switch ( settings . Data )
441
439
{
You can’t perform that action at this time.
0 commit comments