Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Delphi > How to do proce...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1103 of 1133
Post > Topic >>

How to do process list without ours app????

by "losthook" <losthook@[EMAIL PROTECTED] > Feb 2, 2007 at 02:33 AM

Hi

I need help i do program that is listing a runing process and add it
to the listbox but how to do it without my app on this list?

i do not want a my app to bee on this lists of running apps  can you
help me?

procedure GetProcessList(var List: TstringList);
var
  ovi: TOSVersionInfo;
begin
  if List = nil then Exit;
  ovi.dwOSVersionInfoSize := SizeOf(TOSVersionInfo);
  GetVersionEx(ovi);
  case ovi.dwPlatformId of
    VER_PLATFORM_WIN32_WINDOWS: CreateWin9xProcessList(List);
    VER_PLATFORM_WIN32_NT: CreateWinNTProcessList(List);
  end

end;

procedure TForm1.ADD(Sender: TObject);
var
  i: Integer;
  MyProcList: TstringList;
  a1:string;
begin
  MyProcList := TStringList.Create;
  try
    GetProcessList(MyProcList);
    if MyProcList = nil then Exit;
    for i := 0 to MyProcList.Count - 1 do
      ListBox1.Items.Add(MyProcList.Strings[i]);
       a1:=IntToStr(MyProcList.Count - 1);
    Label2.Caption:=a1;
  finally
    MyProcList.Free;

  end;
  end;
 




 2 Posts in Topic:
How to do process list without ours app????
"losthook" <  2007-02-02 02:33:17 
Re: How to do process list without ours app????
Rob Kennedy <me3@[EMAI  2007-02-02 17:01:30 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 19:58:20 CDT 2008.