Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to tell when user locks computer (windows)?
Forum Updated to NodeBB v4.3 + New Features

How to tell when user locks computer (windows)?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    ThaRez
    wrote on 23 Oct 2011, 12:30 last edited by
    #1

    Hello I'm wondering how to tell when the user locks the computer (windows xp, vista & 7). My intention is to create a small app that that logs the time the computer is locked and unlocked. So I need to know how to tell when the user locks the computer so it can log the time. Thank you!
    Best regards
    Richard

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on 24 Oct 2011, 06:01 last edited by
      #2

      You will have to use platform-specific code. Take a look at "WTSRegisterSessionNotification":http://goo.gl/NyRd6 and "WM_WTSSESSION_CHANGE":http://goo.gl/TebEK.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maxvanceffer
        wrote on 31 Oct 2011, 12:59 last edited by
        #3

        Lukas can u provide simple example how to use it, pls ?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved