FindWindow() won't find the handle I'm looking for

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2008
Posts: 4
Reputation: SpecialeW is an unknown quantity at this point 
Solved Threads: 0
SpecialeW SpecialeW is offline Offline
Newbie Poster

FindWindow() won't find the handle I'm looking for

 
0
  #1
May 15th, 2008
Hi everyone,

I'm having some trouble with my computer lately. When my computer boots, i want a lot of programs to load, half of them normally makes a tray icon, but my computer is so slow, the tray icons won't be created.
So I've found a way to work around this problem, by making each program start one after another myself, in stead of letting windows take care of it.
But to do so I've only disabled the programs which were located in the start\all programs\startup folder.
Now everything works fine except for one program, which is NOD 32.
This program starts as a service and is then hidden (the gui isn't showed).
For the tray icon to show, i only need it to restore the gui and then hide it again.
I'd like to do it in my program, which I created anyway (for the rest of the startup programs)
So in order to make it work I need to find the handle of NOD32.
But FindWindow() won't get my handle. Is there anyone who knows the handle to nod32kui.exe or how to get it?

Thnx
Willem

  1. HWND nod = FindWindow(NULL, "nod32kui.exe");
  2. ShowWindow(nod, SW_RESTORE);
  3. ShowWindow(nod, SW_HIDE);
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 751
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: FindWindow() won't find the handle I'm looking for

 
0
  #2
May 15th, 2008
Keep a diary of which programs you actually use in any session.
Then delete all the crap from your startup which you don't consistently use in every session.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC