Вниз
Скачать: CL | DM;

Можно ли зная Handle окна узнать путь к программе   Найти похожие ветки 

← →
Lamer86 ©   (2002-07-04 09:24) [0]

Например зная handle Notepad"а получить путь "C:\Windows\Notepad.exe"


← →
Игорь Шевченко ©   (2002-07-04 09:25) [1]

GetWindowModuleFileName


← →
Lamer86 ©   (2002-07-04 09:52) [2]

Не могли бы Вы мне как полному ламеру написать с какими параметрами использовать эту функцию (в Help"е Delphi этого нет)


← →
Игорь Шевченко ©   (2002-07-04 10:02) [3]

GetWindowModuleFileName Function

--------------------------------------------------------------------------------

The GetWindowModuleFileName function retrieves the full path and file name of the module associated with the specified window handle.

Syntax

UINT GetWindowModuleFileName( HWND hwnd,
LPTSTR lpszFileName,
UINT cchFileNameMax
);
Parameters

hwnd
[in] Handle to the window whose module file name will be retrieved.
lpszFileName
[out] Pointer to a buffer that receives the path and file name.
cchFileNameMax
[in] Specifies the maximum number of TCHAR that can be copied into the lpszFileName buffer.
Return Value

The return value is the total number of TCHAR copied into the buffer.




Function Information

Header Declared in Winuser.h, include Windows.h
Import library User32.lib
Minimum operating systems Included in Windows 95, Windows NT 4.0 SP3

See Also

Windows Overview



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.011 c
14-14263
MBo
2002-08-09 09:55
2002.09.05
Еще задачки ;)


3-13959
Igoryan
2002-08-16 10:09
2002.09.05
Доступ к данным.


3-13978
Виктор12345567
2002-08-15 08:42
2002.09.05
Подключение DOS FOXPRO таблиц к Delphi


3-13955
atmospheric
2002-08-15 02:19
2002.09.05
номер строки столбца ?


14-14210
Olivka
2002-08-02 23:08
2002.09.05
Как я скучаю!




   Наверх