I have an issue and do not exactly know the best way to solve it.
I have a windows service that will be running in the background, using WCF to receive requests to update software I will have installed on each machine. As part of the update, it will need to close windows services, which is fine. But I also need to close down any applications that are running that I wish to update. Also I will need to let a user know (if someone is logged on) that something is happening.
Basically, how do I see who is logged on, and then from my windows service, close down possible running applications on the users session, and display a front end gui screen that I will be creating as a WPF form.
I've read that there are certain things like using netapi32.dll with NetWkstaUserEnum, to possibly get user names, and things like WTSEnumerateSessions. Although I am not 100% sure which if any of these I should/need to use.
View Complete Post