Office VBA Tips

Saturday, July 25, 2020

How to lock a Windows user session

Private Declare PtrSafe Function LockWorkStation Lib "user32" () As Long
Sub LockTest()
    LockWorkStation
End Sub
Posted by Akihito Yamashiro at 5:13 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2020 (7)
    • ▼  July (7)
      • How to get the contents of MessageBox of other pro...
      • How to lock a Windows user session
      • How to set FormulaArray property to a formula with...
      • How to use a function pointer in VBA #4 (ANSI func...
      • How to use a function pointer in VBA #3 (Unicode f...
      • How to use a function pointer in VBA #2 (function ...
      • How to use a function pointer in VBA #1 (function ...
  • ►  2018 (2)
    • ►  May (2)
  • ►  2012 (2)
    • ►  September (2)
  • ►  2010 (1)
    • ►  May (1)
  • ►  2008 (2)
    • ►  October (2)

About Me

Akihito Yamashiro
View my complete profile
Simple theme. Powered by Blogger.