Author Topic: A handy ONE-LINER to temporarily lock your OS  (Read 859 times)

GSAC3

  • Newbie
  • *
  • Posts: 40
    • View Profile
A handy ONE-LINER to temporarily lock your OS
« on: April 09, 2021, 11:04:46 AM »
Here is a very simple one line BCX program that you may find useful. I am sure the "old timers" are probably aware of it but maybe some of the newer BCX users are not . It is actually a single line of C code (courtesy of Microsoft) inserted into a BCX program using the in-line C code operator , "!".  When activated, it immediately locks the current user workstation activity on a Windows PC system until the computer's Windows system access password is entered.

!LockWorkStation();

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1896
    • View Profile
Re: A handy ONE-LINER to temporarily lock your OS
« Reply #1 on: April 09, 2021, 12:34:58 PM »
Don ... The "!" and ";" are not needed. 

LockWorkStation()


You're welcome  ;D

GSAC3

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: A handy ONE-LINER to temporarily lock your OS
« Reply #2 on: April 09, 2021, 12:59:43 PM »
Kevin -- that's even better!