In a function I call I use the structure SYSTEM_POWER_STATUS. Under that stucture each different piece of information has a different data type. When I go to call it once it recieved the data it says im trying to pass a byte to argument two of MessageBox which lacks a cast. Here is a example. ACLineStatus is a byte in the structure.
thanks for your helpCode:int getsysdata() { SYSTEM_POWER_STATUS sysdata; GetSystemPowerStatus(&sysdata); MessageBox(NULL,sysdata.ACLineStatus, "System Data", MB_OK); return 0; }





Reply With Quote