I have a question: is there a way to get the path pointed from a Windows Explorer istance of which I already have some data like HWND, process id, and a handle to the process?
I am using C++ and WINAPI / MFC in Visual Studio 2012.
I have a question: is there a way to get the path pointed from a Windows Explorer istance of which I already have some data like HWND, process id, and a handle to the process?
I am using C++ and WINAPI / MFC in Visual Studio 2012.
Use GetWindowThreadProcessId, OpenProcess, then GetProcessImageFileName. The documentation https://msdn.microsoft.com/en-us/library/windows/desktop/ms683217(v=vs.85).aspx shows what permissions you need to request in your OpenProcess call.