Solved

registering process loaded in the system

Posted on 1999-01-16
13
168 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 300 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Spellcheck in Webbrowser 1 76
Performance of SQL statement 37 147
Delphi problems to abort a printjob 9 49
IP without any Dots 1 99
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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