从句柄获取Windows Explorer路径

Get Windows Explorer Path from Handle

本文关键字:Explorer 路径 Windows 获取 句柄      更新时间:2023-10-16

我有一个问题:有没有办法从Windows Explorer Intance中指向该路径,我已经有了一些数据,例如HWND,Process ID和该过程的句柄?

我在Visual Studio 2012中使用C 和Winapi/MFC。

使用getWindowThreadProcessID,OpenProcess,然后使用GetProcessimageFilename。文档https://msdn.microsoft.com/en-us/library/windows/desktop/mms683217(V=VS.85).aspx显示您需要在OpenProcess Call中请求的权限。