Đang Thực Hiện

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\[url removed, login to view] is opened using [url removed, login to view], and if we know winword's main window handle,

I want to get 'c:\abc\[url removed, login to view]'.

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...)

3) Win XP, WIn 7, WIn VISTA support (32 bits)

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:\[url removed, login to view], and open c:\[url removed, login to view] using [url removed, login to view],

if winword's window handle is 0x1234,

We get opened file path using below function

==> GetOpenFilePath(0x1234, filepathvar)

if true, filepathvar is 'c:\[url removed, login to view];

2. create c:\readonly\[url removed, login to view], and set c:\readonly\[url removed, login to view] file as readonly,

and open c:\readonly\[url removed, login to view] using [url removed, login to view],

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\[url removed, login to view]'

3. create c:\[url removed, login to view], c:\[url removed, login to view] 2 files. (c:\[url removed, login to view] is normal file, and c:\[url removed, login to view] is readonly file)

and open c:\[url removed, login to view], c:\[url removed, login to view] (using [url removed, login to view])

Now, Excel window have 2 child windows ([url removed, login to view], [url removed, login to view])

assume that we know child window handle

([url removed, login to view] => 0x1000 child window handle, [url removed, login to view] => 0x2000 child window handle)

if we use GetOpenFilePath(0x1000, filepathvar)

if true, filepathvar is 'c:\[url removed, login to view]'

if we use GetOpenFilePath(0x2000, filepathvar)

if true, filepathvar is 'c:\[url removed, login to view]'

Kỹ năng: Lập trình C

Xem thêm: file path handle, executable path window handle, path window handle, path file handle, getopenfilepath, handle path, excel getopenfilepath, windows handle path, main window handle exe, window handle exe path, file path file handle, file path windows handle, path windows handle, winword open file path, path handle, open file handle file, read path, file path using window handle, vista 10 programming, test scenario, set bits, return path, open source programming, get c programming, c programming get

Về Bên Thuê:
( 22 nhận xét ) Seoul, Korea, Republic of

Mã Dự Án: #1053924

7 freelancer đang chào giá trung bình $600 cho công việc này

srinichal

I would like to work on the project

$700 USD trong 8 ngày
(46 Đánh Giá)
5.7
waterwood

please check PM. Thanks.

$750 USD trong 0 ngày
(10 Đánh Giá)
5.5
thandadude

Hi, fairly possible. need to use Import Address [url removed, login to view] PM me for more details. Angad.

$500 USD trong 5 ngày
(3 Đánh Giá)
4.2
jasminjx

Hello. I have already made this function. If you want, i can provide screenshot about this. If you choose me, i want to chat with you for details. Looking forward to your response. Thanks.

$250 USD trong 1 ngày
(3 Đánh Giá)
3.3
mars8246

Hello. How are you? I know what you want and how to do it. I have techniques of windows process management and hooking. This project is in my power. Best regards.

$750 USD trong 3 ngày
(1 Đánh Giá)
0.0
keies

Hi,please see PM

$500 USD trong 0 ngày
(0 Đánh Giá)
0.0
ankasoftware

Please have a look at PMB.

$750 USD trong 3 ngày
(0 Đánh Giá)
0.0