Solved

Process Status

Posted on 1998-07-10
11
188 Views
Last Modified: 2013-11-19
How can we know the status of a process, like whether it is runnig, and if it is running which application is using it. similar to this how can we know whether  afile is in use, if in use which application/user is using it
0
Comment
Question by:Abbas071098
11 Comments
 

Expert Comment

by:kashif063098
ID: 1318984
I think you should increase points otherwise noone will try to help you


0
 

Author Comment

by:Abbas071098
ID: 1318985
OK kashif I am increasing the point by four times!
0
 

Author Comment

by:Abbas071098
ID: 1318986
Adjusted points to 100
0
 
LVL 3

Expert Comment

by:shaig
ID: 1318987
The file issue is eazy:
Try to open it, the system will tell you why it fails if it does.
About proccesses:
you have a few things mixed up. a process is a process only if it is running (processing!).
When you creat a process, through the CreateProcess function, you get a structure full with information about it.
0
 

Author Comment

by:Abbas071098
ID: 1318988
Shaig, I am sorry I think u didn't get my query clearly. Its ok how to open a file. I wanted to know if a file is in use, which application is using it. A sort of I want to create a log of all files in the system any time, say by running my utility. Another reagrding processes, I want to obtain the deatils of the process. How to get it will? u please explain with some sort of example. Here also I am not going to create a new process. I want to look at a nd obtain the details of a process in existence.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 23

Expert Comment

by:chensu
ID: 1318989
0
 

Author Comment

by:Abbas071098
ID: 1318990
Thanx chensu, for giving me the site address, but I am sorry, I have read about the filemon. I want the implementation details and that article hardly gives any helful information. It gives only the working details of that particular utility.
Regarding the other site for processess I haven't seen it,For the time being I am opening the question to get more information. If I get some useful information from the site provided by you you will surely deserve some points. Thanx for considering my query. More comments are invited
0
 

Author Comment

by:Abbas071098
ID: 1318991
I'd like to award 50 pts to chensu since I got some answer to my query reagrding process details
0
 
LVL 23

Expert Comment

by:chensu
ID: 1318992
Since this question is of 100 Points, you need to ask the customer service to delete this question and post another 50 points question.
0
 

Author Comment

by:Abbas071098
ID: 1318993
Chensu, I have made arrangements to award you 50 pts, so u please post an answer for this.
Also please if u can tell me more details regarding process details. The site that u told me speaks of psapi.dll, . Implementing that I could find the exe file name of the process. Windows NT speaks of a private object table for every process in memory, which keeps the record of all the objects (files, threads, process, port, access token,semaphore etc. all are objects) that the process uses. Is there any mechanism of getting to that private object table and obtain the details of each object?

0
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1318994
Thank you.

For more information about PSAPI.DLL, see the latest Platform SDK documentation Platform SDK\Windows Base Services\Windows NT Features\Process Status Helper.

For the private object table, I would suggest you look into Platform SDK\Windows Base Services\Windows NT Features\Performance Data Helper and Windows NT Performance Counters. Also, http://www.sysinternals.com/winobj.htm. I am not sure whether it helps.

Good luck.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Separate into files by filename 12 76
Change owner from userA to server Local Administrators 7 59
zeroFront challenge 7 80
Problem to App 4 40
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now