python在windows鎖屏的程式碼

pythontab發表於2014-07-30
C:\Users\wangmingjie>python
Python 2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> user32 = windll.LoadLibrary('user32.dll')
>>> user32.LockWorkStation()
1
>>>

python在windows鎖屏的程式碼

相關文章