Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
548 B

  1. #include "cmbattp.h"
  2. #include <basedef.h>
  3. #include <vmm.h>
  4. #include "vpowerd.h"
  5. VOID CmBattNotifyVPOWERDOfPowerChange (ULONG PowerSourceChange)
  6. {
  7. POWER_STATUS powerstatus;
  8. ULONG Device;
  9. Device = PowerSourceChange ? 38 : PDI_MANAGED_BY_APM_BIOS;
  10. _asm {
  11. lea eax, powerstatus
  12. push eax
  13. mov eax, Device
  14. push eax
  15. VMMCall (_VPOWERD_Get_Power_Status)
  16. add esp, 4*2
  17. }
  18. }