Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Process Status

Posted on 1998-07-10
Medium Priority
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
Question by:Abbas071098
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

Expert Comment

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


Author Comment

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

Author Comment

ID: 1318986
Adjusted points to 100
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Expert Comment

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.

Author Comment

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.

Author Comment

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

Author Comment

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

Expert Comment

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.

Author Comment

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?

LVL 23

Accepted Solution

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.


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

636 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