Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to Identify System Lock/Unlock in MFC

How to Identify System Lock/Unlock in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorial
4 Posts 3 Posters 0 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.
  • S Offline
    S Offline
    swamy Narasimha
    wrote on last edited by
    #1

    Hi, I have one application which needs to notified whenever the my windows system was locked or unlocked. so, can you plz give me the solution for this problem as soon as possible. Thanks & Regards swamy

    R D 2 Replies Last reply
    0
    • S swamy Narasimha

      Hi, I have one application which needs to notified whenever the my windows system was locked or unlocked. so, can you plz give me the solution for this problem as soon as possible. Thanks & Regards swamy

      R Offline
      R Offline
      Rajkumar R
      wrote on last edited by
      #2

      Hi, use "WTSRegisterSessionNotification()" to register your window to receive the notification "WM_WTSSESSION_CHANGE" which has "WTS_SESSION_LOCK" & "WTS_SESSION_UNLOCK" parameter to identify that. Best Regards Raj

      S 1 Reply Last reply
      0
      • R Rajkumar R

        Hi, use "WTSRegisterSessionNotification()" to register your window to receive the notification "WM_WTSSESSION_CHANGE" which has "WTS_SESSION_LOCK" & "WTS_SESSION_UNLOCK" parameter to identify that. Best Regards Raj

        S Offline
        S Offline
        swamy Narasimha
        wrote on last edited by
        #3

        Thank U Very Much Raj.. for giving this solution !! cheers swamy..

        1 Reply Last reply
        0
        • S swamy Narasimha

          Hi, I have one application which needs to notified whenever the my windows system was locked or unlocked. so, can you plz give me the solution for this problem as soon as possible. Thanks & Regards swamy

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          swamy Narasimha wrote:

          I have one application which needs to notified whenever the my windows system was locked or unlocked.

          Implement the ISensLogon interface. The DisplayLock() and DisplayUnLock() methods are of interest to you.


          "A good athlete is the result of a good and worthy opponent." - David Crow

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups