BatteryMonitor

main.cpp File Reference

#include "main.h"

Go to the source code of this file.

Namespaces

namespace  BatteryMonitor
 

Root namespace.


Functions

void BatteryMonitor::addNotifyIcon (HWND hwnd)
 Adds an icon to the taskbar.
void BatteryMonitor::cleanUp (HWND hwnd)
 Memory and handler cleanups, taskbar icon removal.
void BatteryMonitor::errOut (void)
 Error output.
BATTERY_INFORMATION BatteryMonitor::getBatteryInformation ()
 retrieves battery informations from the system.
void BatteryMonitor::initDevice (void)
 Retrieves the path of the battery device.
HWND BatteryMonitor::setupWindow (int nCmdShow)
 Shows the main window.
long BatteryMonitor::setupWindowClass (void)
 registers the window class stored in classname.
void BatteryMonitor::showBatteryInfo (HWND hwnd)
 Shows a balloon tip with battery information.
void BatteryMonitor::shutdown (void)
 Tries to shut down the computer.
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
 Program entry point.
LRESULT CALLBACK BatteryMonitor::wndProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
 The window procedure.

Function Documentation

int WINAPI WinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nCmdShow 
)

Program entry point.

Definition at line 14 of file main.cpp.