Solved

registering process loaded in the system

Posted on 1999-01-16
13
167 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
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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
QRReport  TQrmemo vertical stretching 1 53
Working with hours 3 65
Convert a string into a TDateTime 5 64
FMX TEdit KeyUp handler detecting  "enter" key 4 14
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 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