using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;
using System.Runtime.InteropServices;
namespace StationInspection.Util
{
class WiFiHelper
{
[DllImport("coredll.dll", SetLastError = true)]
public static extern int SetDevicePower(string pvDevice, int dwDeviceFlags, DevicePowerState DeviceState);
public enum DevicePowerState : int
{
Unspecified = -1,
D0 = 0, // Full On: full power, full functionality
D1, // Low Power On: fully functional at low power/performance
D2, // Standby: partially powered with automatic wake
D3, // Sleep: partially powered with device initiated wake
D4, // Off: unpowered
}
public const int POWER_NAME = 0x00000001;
public static string FindDriverKey()
{
string ret = string.Empty;
//#defin