How do I check how many windows are opened in Windows at the moment.

  • Thread starter Thread starter Kai Zhang
  • Start date Start date
K

Kai Zhang

I want to write a VB.NET application to display current running applications
and total number of windows opened, however, I don't know how to start this
project. Can anyone give soem hints? Do I have to win32 functions?

Thanks,

Kai
 
Kai,
I want to write a VB.NET application to display current running
applications and total number of windows opened, however, I don't know how
to start this project. Can anyone give soem hints? Do I have to win32
functions?

Yes, I am curious, is there a reason that you want to check that?

Cor
 
Kai,

Kai Zhang said:
I want to write a VB.NET application to display current running
applications and total number of windows opened, however, I don't know how
to start this project. Can anyone give soem hints? Do I have to win32
functions?

Yes, you can use p/invoke with 'EnumWindows'.
 
Not really a serious reason. I just want to write a program to automatically
turn off the machine after all the applications and windows are shut down,
so I don't need to wait during the machine shutting down:').

BTW, my machine is S L O W.
 
Thanks Herfried, I am not fully following what you suggested, but I will
Google "use p/invoke with 'EnumWindows'".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top