[ whitefrost.com | Account Manager 4 Product Page ]

Core.Util.Device.DeviceUtil Class Reference

Summary description for Device. More...

List of all members.

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()


Detailed Description

Summary description for Device.


Constructor & Destructor Documentation

Core.Util.Device.DeviceUtil.DeviceUtil (  ) 


Member Function Documentation

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]


Member Data Documentation

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]

Initial value:

 
                        ((FILE_DEVICE_HAL) << 16) | ((FILE_ANY_ACCESS) << 14) 
                        | ((21) << 2) | (METHOD_BUFFERED)


The documentation for this class was generated from the following file:
Stephen W. Cote, 2009, whitefrost.com