To download NI software, including the products shown below, visit ni.com/downloads.
1. Overview
This VI shows how to lock a windows workstation programmatically
2. Description
This example VI calls the function LockWorkstation from the Microsoft Windows' dynamic link library (DLL) User32 whenever a boolean control is activated.
3. Requirements
4. Steps to Implement or Execute Code
5. Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines.**
Description-Separate-2Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
This is fantastic. I will now use this and save 0.1seconds instead of locking my screen via my keyboard everyday! Thats more than half a minute a year!!! Thanks!