470,849 Members | 1,102 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

how to use c++ to get the system process in windows?

I have a TV-card installed on my computer, which has a remote
controller.

so when I go to sleep, I can close the TV-programm via the remote
controller, but the computer is still on. I have to leave my bed and
shutdown the computer ...

I just want to write a small program that if the TV-programm is closed,
this small programm should then shut down my computer automatically.

I think the only way is to read the process name of this TV-programm
from the Windows Task-Manager. But how?

ps: I have VC++ at hand. maybe there is already some nice function
provided.

May 16 '06 #1
2 2585
cdrsir wrote:
I have a TV-card installed on my computer, which has a remote
controller.

so when I go to sleep, I can close the TV-programm via the remote
controller, but the computer is still on. I have to leave my bed and
shutdown the computer ...

I just want to write a small program that if the TV-programm is closed,
this small programm should then shut down my computer automatically.

I think the only way is to read the process name of this TV-programm
from the Windows Task-Manager. But how?

ps: I have VC++ at hand. maybe there is already some nice function
provided.


Your question is not concerned with the C++ language and libraries
proper. Please post in a Microsoft newsgroup. For what is on-topic in
this group and for a list of better places to post, see this FAQ:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

May 16 '06 #2
On Tue, 16 May 2006 11:25:43 UTC, "cdrsir" <cd****@gmail.com> wrote:
I have a TV-card installed on my computer, which has a remote
controller.

so when I go to sleep, I can close the TV-programm via the remote
controller, but the computer is still on. I have to leave my bed and
shutdown the computer ...


Why not use the Windows power save options? You could allow the
monitor and perhaps the whole system to shutdown when there is
no activity. No need to write anything.

David
May 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Giovanni Bajo | last post: by
7 posts views Thread by Peter Afonin | last post: by
4 posts views Thread by Liverpool fan | last post: by
5 posts views Thread by Saya | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.