На главную

On-line справка по Win32 API

Написать письмо
БЕСПЛАТНАЯ ежедневная online лотерея! Выигрывай каждый день БЕСПЛАТНО!
Список всех статей A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W-X-Y-Z | Скачать Вниз

ExtractIconEx



The ExtractIconEx function retrieves the handle of an icon from the specified executable file, dynamic-link library (DLL), or icon file.

HICON ExtractIconEx(

LPCSTR lpszFile,
int nIconIndex,
HICON FAR * phiconLarge,
HICON FAR * phiconSmall,
UINT nIcons
);


Parameters

lpszFile

Pointer to a null-terminated string specifying the name of an executable file, DLL, or icon file.

nIconIndex

Specifies the index of the icon to retrieve. If this value is 0, the function returns the handle of the first icon in the specified file. If this value is -1 and phIconLargeand phiconSmall are both NULL, the function returns the total number of icons in the specified file.

phiconLarge

Pointer to an array of handles of large icons returned. This parameter can be NULL.

phiconSmall

Pointer to an array of handles of small icons returned. This parameter can be NULL.

nIcons

Specifies the count of the number of icons to extract.



Return Values

If the function succeeds, the return value is the handle to an icon. If the file specified was not an executable file, DLL, or icon file, the return value is 1. If no icons were found in the file, the return value is NULL.

See Also

ExtractIcon


Пригласи друзей и счет твоего мобильника всегда будет положительным!
Предыдущая статья
 
Сайт Народ.Ру Интернет
Следующая статья
Пригласи друзей и счет твоего мобильника всегда будет положительным!

ExtractIconEx



Функция ExtractIconEx извлекает ручке иконы с определенной выполняемой файловой, динамической связи библиотеки (DLL), или иконного файла.

HICON ExtractIconEx(

LPCSTR lpszFile, int nIconIndex, HICON ЗНАЧИТЕЛЬНО * phiconLarge, HICON ЗНАЧИТЕЛЬНО * phiconSmall, UINT nIcons
);


Параметры

lpszFile

Указатель в недействительный расторгнутую строку, определяющую имя выполняемого файла, DLL, или иконный файл.

nIconIndex

Определяет индекс иконы, чтобы извлекаться. Если эта величина - 0, функция возвращает ручку первой иконы в определенный файл. Если эта величина - -1 и phIconLargeand phiconSmall - оба НЕДЕЙСТВИТЕЛЬНЫХ, функция возвращает общее число икон в определенный файл.

phiconLarge

Указатель в массив ручек больших икон возвращался. Этот параметр может быть НЕДЕЙСТВИТЕЛЕН.

phiconSmall

Указатель в массив ручек небольших икон возвращался. Этот параметр может быть НЕДЕЙСТВИТЕЛЕН.

nIcons

Определяет счет количества икон, чтобы извлекаться.



Обратные Величины

Если функция добивается успеха, обратная величина является ручкой на икону. Если определенный файл был не выполняемым файлом, DLL, или иконный файл, обратная величина - 1. Если никакие иконы не были обнаружены в файле, обратная величина НЕДЕЙСТВИТЕЛЬНА.

Смотри Также

ExtractIcon


Вверх Version 1.3, Oct 26 2010 © 2007, 2010, mrhx Вверх
 mrhx software  Русский перевод OpenGL  Русский перевод Win32 API
 
Используются технологии uCoz