Solved

Process Status

Posted on 1998-07-10
11
189 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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
 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ORA-01403: no data found 43 98
NotAlone Challenge 20 83
Use of condition with 'serial' in ansible 2 58
wordmultiple challenge 12 131
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. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

815 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

8 Experts available now in Live!

Get 1:1 Help Now