Marat Faskhiev
Marat Faskhiev

Reputation: 1302

Find window with variable caption

I'm using WinApi and C#. I need to find window with variable caption. Caption contains constant part. I think that I need to enumerate all windows. How I can do this?

Upvotes: 1

Views: 1125

Answers (2)

user224564
user224564

Reputation: 1323

Look for EnumWindows in MSDN - it accepts callback function, in which you get list of all windows

Upvotes: 1

Benny
Benny

Reputation: 8815

you have to use P/Invoke function: EnumWindows

Upvotes: 1

Related Questions