SetWindowLong(Application.Handle,GWL_EXSTYLE,WS_EX_TOOLWINDOW);

解决方案 »

  1.   

    用EnumWindows() & ShowWindow() 就可以了。
      

  2.   

    如果说得是在任务条中隐藏
    在dpr文件中代码第一行 SetWindowLong(Application.Handle,GWL_EXSTYLE,WS_EX_TOOLWINDOW);
    如是在ctrl+alt+del后出现的任务窗口中隐藏我只会在9x/me下做,因为nt/2k有什么安全限制...
    在uses下声明
      function RegisterServiceProcess(dwProcessID,dwType: Integer):Integer; stdcall; external 'Kernel32.dll' name 'RegisterServiceProcess';
    call它就可以了