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.
 
 
 
 
 
 

25 lines
548 B

#include "cmbattp.h"
#include <basedef.h>
#include <vmm.h>
#include "vpowerd.h"
VOID CmBattNotifyVPOWERDOfPowerChange (ULONG PowerSourceChange)
{
POWER_STATUS powerstatus;
ULONG Device;
Device = PowerSourceChange ? 38 : PDI_MANAGED_BY_APM_BIOS;
_asm {
lea eax, powerstatus
push eax
mov eax, Device
push eax
VMMCall (_VPOWERD_Get_Power_Status)
add esp, 4*2
}
}