Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.09.05;
Скачать: 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 вся ветка

Текущий архив: 2002.09.05;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.016 c
1-14077
Лохматый
2002-08-27 11:33
2002.09.05
Не модальные ShowMessage


14-14240
Razpizdyi
2002-08-10 14:48
2002.09.05
MSDN - Что это за справка, и где ее искать?


1-14056
Ahmad
2002-08-27 02:29
2002.09.05
НУЖНО ПРИСОБАЧИТЬ СВОЙСТВО Alignment TEdit у


3-13875
PD
2002-08-16 23:51
2002.09.05
работа с BLOB-полями


1-14010
Olezhka
2002-08-24 23:26
2002.09.05
Подразделы реестра