Get open file path from window handle
$30-250 USD
Paid on delivery
Hi. All
I want to get C function about Get opened file path from window handle.
(not file handle and not executable path)
for example,
If c:\abc\[login to view URL] is opened using [login to view URL], and if we know winword's main window handle,
I want to get 'c:\abc\[login to view URL]'.
caution :
1) it is support that when read-only file is opened, and if we know window handle.
we get opened file path from window handle
2) it is support MDI Child window (like excel or powerpnt or openoffice or wps office or Autocad or Solidworks....)
3) WIn 7, Win 8 , WIn 10 support (32 bits and 64bit)
4) I need source file and project files
target function :
Bool GetOpenFilePath(HWND, wchar *filepathvar)
if true, opened file path is saved to filepathvar, and return true.
if false, return false
test scenario.
1. create c:\[login to view URL], and open c:\[login to view URL] using [login to view URL],
if winword's window handle is 0x1234,
We get opened file path using below function
==> GetOpenFilePath(0x1234, filepathvar)
if true, filepathvar is 'c:\[login to view URL];
2. create c:\readonly\[login to view URL], and set c:\readonly\[login to view URL] file as readonly,
and open c:\readonly\[login to view URL] using [login to view URL],
if winword's window handle is 0x5678,
We get opened file(read only file) path using below function
==> GetOpenFilePath(0x5678, filepathvar)
if true, filepathvar is 'c:\readonly\[login to view URL]'
3. create c:\[login to view URL], c:\[login to view URL] 2 files. (c:\[login to view URL] is normal file, and c:\[login to view URL] is readonly file)
and open c:\[login to view URL], c:\[login to view URL] (using [login to view URL])
Now, Excel window have 2 child windows ([login to view URL], [login to view URL])
assume that we know child window handle
([login to view URL] => 0x1000 child window handle, [login to view URL] => 0x2000 child window handle)
if we use GetOpenFilePath(0x1000, filepathvar)
if true, filepathvar is 'c:\[login to view URL]'
if we use GetOpenFilePath(0x2000, filepathvar)
if true, filepathvar is 'c:\[login to view URL]'
Project ID: #27496360
About the project
Awarded to:
MATLAB I have extensive experience in the domains of Neural Network, Python, Matlab, Natural Language Processing, Asterisks PBX, Linux, Image Recognition & Artificial Intelligence, Recommender Systems, Machine learnin More
7 freelancers are bidding on average $191 for this job
Hello, I've got quite some experience with WinApi and reverse engineering in Windows so I think I can help you out here. May I get some more details over the chat?
I have more than 20 years experience of Debugging, Reverse Engineering, Assembly, C,C++ Developer. I have experience in Windows API, Network API,System programming,... I can do it very fast and reliable. Please contac More
Dear I am well experienced and skilful C and C++ programmer, OOP. I am very proficient in data structure and algorithm. I have read your description and I am so interested in your project. I am confident in your projec More
Hi I have read your requirements and can do this project for you within mentioned time. I am an experienced programmer having more tha n 10 years of experience. Please consider me to start it asap.
Hi, Windows & MFC expert here. I will get you file path from Windows handle. Will provide you full source code in C# as well. Best, Ata