I need to be able to get the current open path of a Windows Explorer window from the window handle. I found shell code but can't find anything in C++
Asked
Active
Viewed 31 times
0
-
`GetShellWindow` + `GetWindowThreadProcessId` + `OpenProcess` + `QueryFullProcessImageNameW` + `CloseHandle` – RbMm Jul 08 '22 at 22:08
-
@RbMm That will get the path to the Shell process itself (ie, `explorer.exe`), not the path that a given Windows Explorer window is displaying to the user. – Remy Lebeau Jul 08 '22 at 22:19
-
@RemyLebeau yes, i misunderstand question. you are right – RbMm Jul 08 '22 at 22:22