VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Lock your workstation with this simple API call

by http://www.coderhq.com (4 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 9th January 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Lock your workstation with this simple API call

Rate Lock your workstation with this simple API call



Public Declare Function LockWorkStation Lib "user32.dll" () As Long
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

' ~~~~~~~~~~~~~~~~~~~~
' Paste the method below into
' your form with a Command
' button named Command1
' ~~~~~~~~~~~~~~~~~~~~

Private Sub Command1_Click()
    Dim retval As Long
retval = LockWorkStation()
End Sub


Download this snippet    Add to My Saved Code

Lock your workstation with this simple API call Comments

No comments have been posted about Lock your workstation with this simple API call. Why not be the first to post a comment about Lock your workstation with this simple API call.

Post your comment

Subject:
Message:
0/1000 characters