title: Hide and Show Process from task manager
body: <p>Delphi 2010</p>
  
  <p>I have a listbox which I fill with a list of all process IDs.</p>
  
  <pre><code>function EnumProcess(hHwnd: HWND;lParam : integer): boolean; stdcall;
  var
    pPid : DWORD;
    title, className : string;
  begin
    if(hHwnd=NULL) then
    begin
     result := false;
    end
    else
    begin
     GetWindowThreadProcessId(hHwnd,pPid);
     SetLength(className, 255);
     SetLength(className, GetClassName(hHwnd, PChar(className), Length(className)));
     SetLength(title, 255);
     SetLength(title, GetWindowText(hHwnd, PChar(title), Length(title)));
     //form1.ListBox1.Items.Add('Class Name = ' + className + '; Title = ' + title + '; HWND = ' + IntToStr(hHwnd) + '; Pid = ' + IntToStr(pPid));
     form1.ListBox1.Items.Add(IntToStr(pPid));
     result := true;
    end;
  end;
  </code></pre>
  
  <p>Is there a way to hide and show a PID? I need a function to Hide and a function to show or one that can handle both</p>
  
  <pre><code>function HidePID(Value: DWord): Boolean;
  
  function ShowPID(Value: DWord): Boolean;
  </code></pre>