Hardware.dll: evOffACPower

Discussion in 'Questions (Windows Mobile)' started by mjcoon, Aug 24, 2009.

  1. mjcoon

    mjcoon Well-Known Member Licensed User

    I was recently using my PDA when it accidentally lost external power without my realising it. So I wondered if I could write a simple program to alert me in this circumstance.

    The Hardware.dll with RunAppAtEvent citing evOffACPower seemed to be the right one but I cannot make it work. Testing shows my "Beeping.exe" running for timed events but not this one.

    Does anyone know what "AC power" is meant to mean? Since portable devices do not accept AC directly I hoped it meant "external power" but perhaps not. Has anyone made this event occur? My PDA is a Pocket Loox N520 using WM5.1.19 and I think may be made by HTC.

    Alternatively, is there another way of detecting loss of external power (apart from waiting for the battery to discharge!)?

  2. ghale

    ghale Active Member Licensed User

    please give a look here and see if can be interesting: http://www.basic4ppc.com/forum/additional-libraries/4686-powernotify-beta.html
  3. mjcoon

    mjcoon Well-Known Member Licensed User

    Thank you - that looks highly relevant!

    Fast response too...

    Cheers, Mike.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice