cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Get process execution?
Get process execution?
Oct 25, 2013 at 11:15am UTC
mekkatorqu
(416)
how do I wait with my app till there's some new process and check it's name? do I have to use timer and list processes (I know how to do this) or is there a function for this?
Oct 25, 2013 at 12:07pm UTC
modoran
(2077)
From user mode the only way to be notified is through WMI:
http://msdn.microsoft.com/en-us/library/aa390425%28VS.85%29.aspx
From kernel mode there is PsSetCreateProcessNotifyRoutine():
http://msdn.microsoft.com/en-us/library/windows/hardware/ff559951(v=vs.85).aspx
Oct 25, 2013 at 12:11pm UTC
mekkatorqu
(416)
since that's kinda confusing for me, would it be really inefficient to set timer to every 10 sec and
1. get all the processes
2. list thru them
3. find specific process
4. if found, do stuff, if not, do nothing
Topic archived. No new replies allowed.