Advertisement

05.13.2008 at 10:27AM PDT, ID: 23398688
[x]
Attachment Details

vb6 enumerating windows?

Asked by troehm in Visual Basic Programming, Miscellaneous Programming, Microsoft Visual Basic.Net

Tags: , ,

Hi Guys,

I'm having a problem with some API. I'm executing a few programs and using FindWindow to detect it, however I only know the classname (#32770) since the window title changes with the version depending on what I'm launching. It normally works fine, but if I put it on certain machines and theres another program open with that same class then it finds that program only. I've been working all morning trying to figure out how to EnumWindows, and I think I understand everything but after I keep digging i'm just getting further and further into a hole. I looked at this last, http://support.microsoft.com/kb/183009 and it got me the furthest but I don't know what to do with all these windows it finds and how to get the one i'm looking for. I'm completely confused. Can anyone put me in the right direction please?Start Free Trial
 
Loading Advertisement...
 
[+][-]05.13.2008 at 01:10PM PDT, ID: 21558818

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Basic Programming, Miscellaneous Programming, Microsoft Visual Basic.Net
Tags: Microsoft, Visual Basic, 6
Sign Up Now!
Solution Provided By: TRobinJames
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628