Get open file path from window handle

Completed Posted 3 years ago Paid on delivery
Completed 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]'

C++ Programming C# Programming x86/x64 Assembler C Programming

Project ID: #27496360

About the project

7 proposals Remote project Active 3 years ago

Awarded to:

writiqueproject

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

$30 USD in 2 days
(3 Reviews)
2.5

7 freelancers are bidding on average $191 for this job

harshdaga

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?

$100 USD in 1 day
(98 Reviews)
5.8
EkoLike

Hello. in desktop application, i am very excellent. java, c++, c#, vba, python etc. and also i am good at algorithm project just DFS, BFS, A*, Uniform, Greedy Algorightm before I was in many desktop app such as c++, More

$100 USD in 1 day
(18 Reviews)
5.4
BestDevGod

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

$750 USD in 3 days
(12 Reviews)
4.9
ionutpoterasu18

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

$100 USD in 1 day
(2 Reviews)
3.1
syedbasitali2012

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.

$170 USD in 7 days
(1 Review)
1.2
TheGDs

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

$90 USD in 3 days
(0 Reviews)
0.0