VirtualBox

Changeset 13496 in vbox for trunk/src


Ignore:
Timestamp:
Oct 22, 2008 2:56:33 PM (16 years ago)
Author:
vboxsync
Message:

Call RTPowerSignalEvent when detecting a power state change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r13495 r13496  
    3838#include <iprt/process.h>
    3939#include <iprt/initterm.h>
     40#include <iprt/power.h>
    4041#include <VBox/log.h>
    4142
     
    539540        else
    540541            dprintf(("VBoxPowerDispatchCallback: resumed!\n"));
     542
     543        /* Inform any clients that have registered themselves with IPRT. */
     544        RTPowerSignalEvent(((unsigned)pArgument2 == 0) ? RTPOWEREVENT_SUSPEND : RTPOWEREVENT_RESUME);
    541545    }
    542546}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette