Get The Battery Status of Your Notebook
Version Compatibility: Visual Basic 6, Visual Basic 5
The included function retrieves the current battery status on a mobile computer. It may also implicitly be used to determine if the computer is a laptop since the return status will be greater than 0. There is a Form_Load() function so this code can be tested as is.
Instructions: Copy the declarations and code below and paste directly into your VB project.