Pascal- Advanced Power Management Support

I would like to write a Pascal program that would track my laptop's
battery percentage and AC power status.  How can I take advatage of APM
features in Pascal?

Pleae email me!

Thanks!