Public Member Functions | |
| DeviceUtil () | |
Static Public Member Functions | |
| static int | GetBatteryStatus () |
| static int | GetBackupBatteryStatus () |
| static string | GetDeviceName () |
| static string | GetDeviceID () |
Private Member Functions | |
| static bool | KernelIoControl (Int32 IoControlCode, IntPtr InputBuffer, Int32 InputBufferSize, byte[] OutputBuffer, Int32 OutputBufferSize, ref Int32 BytesReturned) |
| static uint | GetSystemPowerStatusEx (SYSTEM_POWER_STATUS_EX lpSystemPowerStatus, bool fUpdate) |
| static uint | GetSystemPowerStatusEx2 (SYSTEM_POWER_STATUS_EX2 lpSystemPowerStatus, uint dwLen, bool fUpdate) |
Static Private Attributes | |
| static Int32 | FILE_DEVICE_HAL = 0x00000101 |
| static Int32 | FILE_ANY_ACCESS = 0x0 |
| static Int32 | METHOD_BUFFERED = 0x0 |
| static Int32 | IOCTL_HAL_GET_DEVICEID |
| static SYSTEM_POWER_STATUS_EX | status = new SYSTEM_POWER_STATUS_EX() |
| static SYSTEM_POWER_STATUS_EX2 | status2 = new SYSTEM_POWER_STATUS_EX2() |
| Core.Util.Device.DeviceUtil.DeviceUtil | ( | ) |
| static bool Core.Util.Device.DeviceUtil.KernelIoControl | ( | Int32 | IoControlCode, | |
| IntPtr | InputBuffer, | |||
| Int32 | InputBufferSize, | |||
| byte[] | OutputBuffer, | |||
| Int32 | OutputBufferSize, | |||
| ref Int32 | BytesReturned | |||
| ) | [private] |
| static uint Core.Util.Device.DeviceUtil.GetSystemPowerStatusEx | ( | SYSTEM_POWER_STATUS_EX | lpSystemPowerStatus, | |
| bool | fUpdate | |||
| ) | [private] |
| static uint Core.Util.Device.DeviceUtil.GetSystemPowerStatusEx2 | ( | SYSTEM_POWER_STATUS_EX2 | lpSystemPowerStatus, | |
| uint | dwLen, | |||
| bool | fUpdate | |||
| ) | [private] |
| static int Core.Util.Device.DeviceUtil.GetBatteryStatus | ( | ) | [static] |
| static int Core.Util.Device.DeviceUtil.GetBackupBatteryStatus | ( | ) | [static] |
| static string Core.Util.Device.DeviceUtil.GetDeviceName | ( | ) | [static] |
| static string Core.Util.Device.DeviceUtil.GetDeviceID | ( | ) | [static] |
Int32 Core.Util.Device.DeviceUtil.FILE_DEVICE_HAL = 0x00000101 [static, private] |
Int32 Core.Util.Device.DeviceUtil.FILE_ANY_ACCESS = 0x0 [static, private] |
Int32 Core.Util.Device.DeviceUtil.METHOD_BUFFERED = 0x0 [static, private] |
Int32 Core.Util.Device.DeviceUtil.IOCTL_HAL_GET_DEVICEID [static, private] |
Initial value:
((FILE_DEVICE_HAL) << 16) | ((FILE_ANY_ACCESS) << 14)
| ((21) << 2) | (METHOD_BUFFERED)
SYSTEM_POWER_STATUS_EX Core.Util.Device.DeviceUtil.status = new SYSTEM_POWER_STATUS_EX() [static, private] |
SYSTEM_POWER_STATUS_EX2 Core.Util.Device.DeviceUtil.status2 = new SYSTEM_POWER_STATUS_EX2() [static, private] |