Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

registering process loaded in the system

Posted on 1999-01-16
13
Medium Priority
?
172 Views
Last Modified: 2011-09-20
How i can register all the process loaded in the system??
(With the respective directory and origin .exe)

                          IN WINDOWS NT
0
Comment
Question by:kort77
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
13 Comments
 
LVL 10

Expert Comment

by:viktornet
ID: 1362208
What do u mean by registering all the processes?
0
 
LVL 17

Expert Comment

by:inthe
ID: 1362209
do you mean get all active processes???
If so under Windows NT this kind of information is under the HKEY_PERFORMANCE_DATA section of the registry.if you have the sdk there is an example of how to do this called tlist,
(dont ask for it i dont have it) which produces a list of all the active processes and their handle.
Once you have the module handle you can call "GetModuleFileName"
to retrieve the full path name.
Regards Barry

0
 
LVL 20

Accepted Solution

by:
Madshi earned 1200 total points
ID: 1362210
Hi kort77,

if you've Delphi4, simply download my unit "enumStuff" from my homepage "http://www.madshi.com", there's all you need for win95/98 and winNT.
If you don't have Delphi4, say something and I will convert the process enumeration to Delphi3 for you.
Hmmm. For winNT4 you can either use the HKEY_PERFORMANCE_DATA section in the registry (see Barry's comment) or you can use the Microsoft dll "psApi.dll". I'm currently working on the HKEY_PERFORMANCE_DATA solution, but it isn't ready yet. In the moment I can offer you "only" the "psApi.dll" solution. But it works fine. If you don't have the "psApi.dll" file on your harddisk, download it from Microsoft or give me your eMail address.

Regards, Madshi.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:kort77
ID: 1362211
I download your unit (enumStuff) and it works wonderfull, but the component that I need dosen´t works for NT (?)...
What can I do? What about the HKEY_PERFORMANCE_DATA solution... Maybe you can send me a little clue about it?

                                                Thanks a lot for your time...  
0
 

Author Comment

by:kort77
ID: 1362212
I download your unit (enumStuff) and it works wonderfull, but the component that I need
(GetProcessList)  dosen´t works for NT (?)...
What can I do? What about the HKEY_PERFORMANCE_DATA solution... Maybe you can send me a little clue about it?

                                                Thanks a lot for your time...  
0
 
LVL 20

Expert Comment

by:Madshi
ID: 1362213
The HKEY_PERFORMANCE_DATA solution is still not ready. I fear, that will last some weeks...  :-(
However, the process enumeration works with NT right now. But it needs the "psApi.dll" to be in your program's directory (or in the windows directory).
Do you have the "psApi.dll"? If not, please download it from Microsoft. If you don't find it there, then give me your eMail address - then I'll send it to you...

Regards, Madshi.
0
 

Author Comment

by:kort77
ID: 1362214
I already download "psApi.dll" ... Now, what i have to do?

My e-mail is :  camilo_ortega@hotmail.com
0
 
LVL 20

Expert Comment

by:Madshi
ID: 1362215
Just put it in your program's directory. Then GetProcessList *should* work. If not: Please tell me, what happens? Does your program crash or is the list just empty or does my function produce an error message/exception?

Regards, Madshi.
0
 
LVL 20

Expert Comment

by:Madshi
ID: 1362216
Any progress?
0
 

Author Comment

by:kort77
ID: 1362217
Madshi, I´ve been busy
Sorry if i answer you to late...  :( ...

I tried the psApi.dll but it isn´t work... What about the HKEY_PERFORMANCE_DATA solution??? Any progress??, maybe we can work on it... Just tell me, i´ll be happy to help whit it.

Please, contact me if you find any answer...

Thanks A LOT      - kort77 -  camilo_ortega@hotmail.com -
0
 
LVL 20

Expert Comment

by:Madshi
ID: 1362218
Hi again, in the meanwhile the HKEY_PERFORMANCE_DATA solution is ready...   :-)

But there's one big problem: It doesn't tell us the process executable's path, only the filename! I tried it under winNT5.  But I'm sure it will be the same with NT4. Then I tried the other method in winNT5 - you can use the same method in NT5 as in win95/98 - and it didn't give me the path, either...
The PsApi.dll does it! So if you really need the complete path, we will have to make PsApi working for you!

If you can live without the path, you can download the new version of "enumStuff" from my homepage (www.madshi.com). If you like it, please don't forget to accept my answer here at Experts-Exchange...   :-)

Regards, Madshi.
0
 
LVL 20

Expert Comment

by:Madshi
ID: 1362219
Hello???
0
 

Author Comment

by:kort77
ID: 1362220
We must talk trourgth e-mail  :)    

Thanks a lot ...   100 points more  :)   :)   :)
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question