Suoritettu

Get open file path from window handle

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]'

Taidot: C++ -ohjelmointi, C# -ohjelmointi, x86/x64 Assembler, C-ohjelmointi

Näytä lisää: windows current active window file path, open file autocad, open file autocad older version, how to tell who has a file open windows 10, getfinalpathnamebyhandle, windows api get file path, list open files windows, createfile, how to tell who has a file open on a shared drive, windows show open files command line, how to find out what program is using a file windows 10, window handle file name, file path handle, file handle window handle, file path open handle windows, open file path, executable path window handle, path window handle, open file handle file, winword open file path

Tietoa työnantajasta:
( 0 arvostelua ) Taipei, Taiwan

Projektin tunnus: #27496360

Myönnetty käyttäjälle:

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 Lisää

$30 USD 2 päivässä
(2 Arvostelua)
2.4

9 freelancers are bidding on average $175 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 1 päivässä
(91 arvostelua)
5.6
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++, Lisää

$100 USD 1 päivässä
(5 arvostelua)
4.2
anmol2701

Hi, Thanks for sharing the details. It seems doable to me - I have sound experience into MFC programming. Waiting for affirmative response to start with. Regards

$83 USD 2 päivässä
(5 arvostelua)
4.2
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 Lisää

$750 USD 3 päivässä
(9 arvostelua)
3.8
Kaihatsusha

Greetings, I have taken good interest developing your application. It is quite simple and straightforward. I reckon it will take no more than 3 working days. I have reviewed the code as well, I will be basing from thi Lisää

$150 USD 3 päivässä
(7 arvostelua)
2.9
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 7 päivässä
(1 arvostelu)
1.2
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 Lisää

$100 USD 1 päivässä
(0 arvostelua)
0.0
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 3 päivässä
(0 arvostelua)
0.0