只找到了几个,以前我记得有很多的。[
]
下面的过程可以使系统键生效或失效:
type
TKeyState = ( kbOn, kbOff );
procedure SetSystemKey( value : TKeyState );
var
NoUse : integer;
begin
case value of
kbOn : SystemParametersInfo( SPI_SCREENSAVERRUNNING, 0, @NoUse, 0);
kbOff : SystemParametersInfo( SPI_SCREENSAVERRUNNING, 1, @NoUse, 0);
end;
end;
用API改变键盘速度
systemParametersInfo(SPI_SETKEYBOARDSPEED,16,Nil,SPIF_UPDATEINIFILE)
16为设置的速度,它的取值范围为0-31
pvpram设为nil就行;
fwinini有三个值
SPIF_UPDATEINIFILE Writes the new system-wide parameter setting to the user profile.
SPIF_SENDCHANGE Broadcasts the WM_SETTINGCHANGE message after updating the user profile.
SPIF_SENDWININICHANGE Same as SPIF_SENDCHANGE.
刷新Windows的桌面
SystemParametersInfo(SPI_SETDESKWALLPAPER,0,nil,SPIF_SENDWININICHANGE)