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#
  4. user32.dll

user32.dll

Scheduled Pinned Locked Moved C#
question
5 Posts 4 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.
  • R Offline
    R Offline
    realmontanakid
    wrote on last edited by
    #1

    Hi In user32.dll there is a function called LockWorkStation. Is there an complement to it?? Or is there any comparable in msgina.dll? thx

    S D 2 Replies Last reply
    0
    • R realmontanakid

      Hi In user32.dll there is a function called LockWorkStation. Is there an complement to it?? Or is there any comparable in msgina.dll? thx

      S Offline
      S Offline
      Stefan Troschuetz
      wrote on last edited by
      #2

      Don't know if there is a complement, but you could p/invoke the function. Search it on www.pinvoke.net/[^] to get the C# signature and a short example.


      www.troschuetz.de

      M 1 Reply Last reply
      0
      • S Stefan Troschuetz

        Don't know if there is a complement, but you could p/invoke the function. Search it on www.pinvoke.net/[^] to get the C# signature and a short example.


        www.troschuetz.de

        M Offline
        M Offline
        mav northwind
        wrote on last edited by
        #3

        Stefan, I think he wasn't searching for an equivalent, but for a complement ;) I guess there's no reverse function to unlock the workstation. Platform SDK states: "This function has the same result as pressing Ctrl+Alt+Del and clicking Lock Workstation. To unlock the workstation, the user must log in." Besides, what would be the point of LockWorkStation if you could unlock it programmatically? mav

        S 1 Reply Last reply
        0
        • M mav northwind

          Stefan, I think he wasn't searching for an equivalent, but for a complement ;) I guess there's no reverse function to unlock the workstation. Platform SDK states: "This function has the same result as pressing Ctrl+Alt+Del and clicking Lock Workstation. To unlock the workstation, the user must log in." Besides, what would be the point of LockWorkStation if you could unlock it programmatically? mav

          S Offline
          S Offline
          Stefan Troschuetz
          wrote on last edited by
          #4

          Your right :-O I guess my english skills were still in the weekend


          www.troschuetz.de

          1 Reply Last reply
          0
          • R realmontanakid

            Hi In user32.dll there is a function called LockWorkStation. Is there an complement to it?? Or is there any comparable in msgina.dll? thx

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            If, by "complement", you mean is there a function to unlock the workstation, no there isn't. The user has to hit Ctrl-Alt-Del and login again. It can't be remotely unlocked for security reasons. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            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