程序是调用SystemParametersInfo API函数完成。 先定义: Function uLong SystemParametersInfoA (ulong uAction, ulong uParam, ref any lpvParam, ulong fuWinIni) Library "user32.dll" Integer SPI_SCREENSAVERRUNNING = 97 //使Ctrl+Alt+Del失效: Integer i_ret any any_value i_ret = SystemParametersInfoA(SPI_SCREENSAVERRUNNING, 1, any_value, 0) //恢复Ctrl+Alt+Del作用: Integer i_ret any any_value i_ret = SystemParametersInfoA(SPI_SCREENSAVERRUNNING, 0, any_value, 0) |
05-13
4247
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-14
3079
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)