I'm developing a winform application that can retrieve the names of running excel document. I can retrieve it locally but I can't figure out how can I retrieve it from a remote pc.
The way I did on local pc was searching for the EXCEL.exe process then from there I'll find the active window and child of it.
I was wondering if there's any way that I can get the title of active window and its child's on a remote pc.
I was using the code below to find the process from local and remote.
w = GetObject("winmgmts:{impersonationLevel=impersonate}\\" & pc & "\root\cimv2")
processQ = "SELECT * FROM win32_process WHERE name = 'EXCEL.EXE'"
I've search the internet and I couldn't find any method to do so.
Please help :(
ps. I don't even know what tags should I add for this question, sorry.