Dharmen Dhulla wrote:
I am working on a Installation program.I need to run that program on Laptop only if it is on power mode and terminate it if it is on Battery mode.How can I detect the mode of Laptop in VC++.
On acpi: cat /proc/acpi/ac_adapter/AC/state bye chris