调用Windows API锁定计算机
本来想用Python32直接调用,可是没有发现Python32有Windows API LockWorkStation();
因此,就直接调用Windows DLL了
#!/usr/bin/env python
#-*- coding:cp936 -*-
"调用WindowAPI锁定计算机"
import ctypes;
dll = ctypes.WinDLL('user32.dll');
dll.LockWorkStation();
调用Windows API锁定计算机
本来想用Python32直接调用,可是没有发现Python32有Windows API LockWorkStation();
因此,就直接调用Windows DLL了
#!/usr/bin/env python
#-*- coding:cp936 -*-
"调用WindowAPI锁定计算机"
import ctypes;
dll = ctypes.WinDLL('user32.dll');
dll.LockWorkStation();

2023-03-16
0万阅读

2023-03-16
0万阅读

2023-03-16
0万阅读

2023-03-16
0万阅读

2023-03-16
0万阅读

2023-03-16
0万阅读

2023-03-15
0万阅读

2023-03-15
0万阅读

2023-03-15
0万阅读

2023-03-15
0万阅读

2023-03-16
0万阅读

2023-03-16
0万阅读

2023-03-16
0万阅读

2023-03-16
0万阅读

2023-03-16
0万阅读

2023-03-16
0万阅读

2023-03-15
0万阅读

2023-03-15
0万阅读

2023-03-15
0万阅读

2023-03-15
0万阅读