windows-nt/Source/XPSP1/NT/base/busdrv/acpi/cmbatt/vxd.c

25 lines
548 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#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
}
}