Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "WinAPI";
Текущий архив: 2002.09.05;
Скачать: [xml.tar.bz2];

Вниз

Можно ли зная 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 вся ветка

Форум: "WinAPI";
Текущий архив: 2002.09.05;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.007 c
3-13883
kinder
2002-08-14 11:03
2002.09.05
Выпадающий список в DBGrid


1-14147
RV
2002-08-24 20:28
2002.09.05
кнопка на панели задач


1-14025
Alex4444444444
2002-08-22 11:43
2002.09.05
Сортировка фолдера


14-14215
AL2002
2002-08-07 19:17
2002.09.05
Хочу сделать мп3 чарт на своём сайте


14-14249
Ksion
2002-08-11 11:49
2002.09.05
У меня скоро бошка лопнетот того что я не знаю.





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский