win9x下可以用 BOOL SystemParametersInfo( UINT uiAction, // system parameter to retrieve or set UINT uiParam, // depends on action to be taken PVOID pvParam, // depends on action to be taken UINT fWinIni // user profile update option ); 屏蔽系统键 ---------------------------------------- 试着在CSDN的全文搜索中用 屏蔽键盘 搜一下,有641 条
http://www.pconline.com.cn/pcedu/empolder/gj/delphi/0501/543927.html
BOOL SystemParametersInfo(
UINT uiAction, // system parameter to retrieve or set
UINT uiParam, // depends on action to be taken
PVOID pvParam, // depends on action to be taken
UINT fWinIni // user profile update option
);
屏蔽系统键
----------------------------------------
试着在CSDN的全文搜索中用
屏蔽键盘
搜一下,有641 条
我在98和2000系统上都试了,不行
win98很久不用了
BOOL i=SystemParametersInfo(SPI_SETKEYBOARDPREF,FALSE,NULL,0);
这样为什么不行?
//屏蔽键盘
BOOL bOld;
SystemParametersInfo(97,TRUE,&bOld,0);// SPI_SCREENSAVERRUNNING=97//取消屏蔽
BOOL bOld;
SystemParametersInfo(97,FALSE,&bOld,0);而且只能在98下。