首页  编辑  

开始菜单

Tags: /超级猛料/OS.操作系统/开始菜单/   Date Created:
禁止任务栏:
EnableWindow(FindWindowEx(FindWindow('Shell_TrayWnd', nil)))
隐藏开始按钮:
var
rgn:hrgn;
Rgn := CreateRectRgn(0, 0, 0, 0);
 SetWindowRgn(FindWindowEx(FindWindow('Shell_TrayWnd', nil),0,'Button',nil),Rgn, true);
显示开始按钮:
{Turn the start button back on}
 SetWindowRgn(FindWindowEx(FindWindow('Shell_TrayWnd', nil),0,'Button',nil),0,true);
禁止开始按钮:
{Disable the start button}
 EnableWindow(FindWindowEx(FindWindow('Shell_TrayWnd', nil),0, 'Button', nil),false);
允许开始按钮:
{Enable the start button}
 EnableWindow(FindWindowEx(FindWindow('Shell_TrayWnd', nil),0,'Button',nil),true);
  //屏蔽 Alt-Tab
  SystemParametersInfo( SPI_SETFASTTASKSWITCH, 1, @tmp, 0);
  //屏蔽 Ctrl-Alt-Del
  SystemParametersInfo( SPI_SCREENSAVERRUNNING, 1, @tmp, 0);