I am trying to close a folder window from vb.net. It is a network folder,
and I can open it with Process.Start("Y:") without problem. But the folder
does not list as a process and so I can't kill it. See, I need to close it
even if I didn't open it with code. I need to check if a window titled "Y:\"
is open, and if so close it. I can get a handle using the user32 FindWindow,
but I am not able to close it. I pass that handle to PostMessage,
DestroyWindow, and no result. Besides, why wouldn't there be a way in .net
to do this without calling APIs? Folders shows up in the Applications tab of
Task Manager, but not in the Processes. I suspect there may be a way to
access that list? I don't know. Any help would be appreciated.