Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 4:18 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ]  Bookmark and Share
Author Message
 Post subject: Running processes
PostPosted: Fri Dec 05, 2008 12:48 pm 
Offline

Joined: Fri Dec 05, 2008 12:27 pm
Posts: 0
I need some tip on how to crate program that will check if a running process is still running every few seconds or. all the time, like you can see it in windows task manager...

I know how to run a program and have control of it when I start the program at the same time. But it is a problem when I need to check process witch is already running, before I start checking it .

I can paste code when I start the process and controll it. But it is question how to controll already running process .
Actually I'm gona paste my example anyway.

Example :

lPid = Shell("c:\working\wrk.exe", vbNormalFocus)
If lPid <> 0 Then
lHnd = OpenProcess(SYNCHRONIZE, 0, lPid) 'Get a handle to the shelled process.
If lHnd <> 0 Then 'If successful, wait for the
lRet = WaitForSingleObject(lHnd, INFINITE) ' application to end.
CloseHandle (lHnd) 'Close the handle.
End If

.
.
.


Please help.
Thank you .


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley