question

sunilmarulasiddaiah-7880 avatar image
0 Votes"
sunilmarulasiddaiah-7880 asked JackJJun-MSFT commented

Need event to be raised in my .net application when process(Games) got focus, process(game) lost focus and switch between proceess(games).

Hi Team,

I Need event to be raised in my .net application when process(Games) got focus, process(game) lost focus and switch between proceess(games).

My requirement should work as how ManagementEventWatcher supports for process starts and stops.

Best Regards,
Sunil

dotnet-csharp
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Could you please provide answer for the above requirement?

0 Votes 0 ·

@sunilmarulasiddaiah-7880, Welcome to Microsoft Q&A, based on my research, there is no related event about get focus and lost focus in WMI. Maybe you could try to use the Windows messages and the WinAPI to do it. Please refer to the link Fire event when user changes active process to know more about it.


0 Votes 0 ·

0 Answers