VirtualBox

Changeset 47973 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Aug 21, 2013 2:25:52 PM (11 years ago)
Author:
vboxsync
Message:

VBoxService/VBoxTray: User idle detection: Lower last input time granularity from milliseconds to seconds in order to also support periods > 49 days in a row.

Location:
trunk/src/VBox/Additions/WINNT/VBoxTray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxIPC.cpp

    r47960 r47973  
    128128        {
    129129            VBOXTRAYIPCRES_USERLASTINPUT ipcRes;
    130             ipcRes.uLastInputMs = GetTickCount() - lastInput.dwTime;
     130            ipcRes.uLastInput = (GetTickCount() - lastInput.dwTime) / 1000;
    131131            fLastInputAvailable = true;
    132132        }
     
    138138    {
    139139        /* No last input available. */
    140         ipcRes.uLastInputMs = UINT32_MAX;
     140        ipcRes.uLastInput = UINT32_MAX;
    141141    }
    142142
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTrayMsg.h

    r47234 r47973  
    9191typedef struct VBOXTRAYIPCRES_USERLASTINPUT
    9292{
    93     /** Last occurred user input event (in ms). */
    94     uint32_t uLastInputMs;
     93    /** Last occurred user input event (in seconds). */
     94    uint32_t uLastInput;
    9595} VBOXTRAYIPCRES_USERLASTINPUT, *PVBOXTRAYIPCRES_USERLASTINPUT;
    9696
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