include vmm.inc include power.inc mov ebx, 0 mov esi, Event ; event notification message mov edi, OFFSET32 Return ; points 4-byte return value mov eax, Power_Event |
The Power_Event message notifies the virtual device that a power event has just occurred.
Event
Specifies the type of power event. This parameter can be one of the following values:
Value | Meaning |
PWR_CRITICALRESUME | Resume critical operations after suspension. |
PWR_SUSPENDREQUEST | Suspend operation. |
PWR_SUSPENDRESUME | Resume operation after suspension. |
Return
Points to the doubleword to receive the return value. The return value can be one of the following values:
Value | Meaning |
PWR_FAIL | Virtual device failed to process the event. |
PWR_OK | Virtual device processed the event successfully. |
All other values are reserved.
The carry flag is clear and the doubleword pointed to by the Return parameter contains the return value.
The EBX register must be zero on entry. The EDX register is reserved; its value must be preserved.
Flags