The ExtractAssociatedIcon function returns the handle of an indexed icon found in a file or an icon found in an associated executable file.
HICON ExtractAssociatedIcon(
HINSTANCE hInst, |
// application instance handle |
LPTSTR lpIconPath, |
// path and filename of file for which icon is wanted |
LPWORD lpiIcon |
// pointer to icon index |
); |
If the icon handle is obtained from an executable file, the function stores
the full path and filename of that executable in the string pointed to by lpIconPath.
If the icon handle is obtained from an executable file, the function stores the icon’s identifier in the WORD pointed to by lpiIcon.
If the function succeeds, the return value is an icon handle. If the icon is extracted from an associated executable file, the function stores the full path and filename of the executable file in the string pointed to by lpIconPath, and stores the icon’s identifier in the WORD pointed to by lpiIcon.
If the function fails, the return value is NULL.
The ExtractAssociatedIcon function first looks for the indexed icon in the file specified by lpIconPath. If the function cannot obtain the icon handle from that file, and the file has an associated executable file, it looks in that executable file for an icon. Associations with executable files are based on filename extensions, are stored in the per-user part of the registry, and can be defined using File Manager’s Associate command.
file: /Techref/os/win/api/win32/func/src/f23_7.htm, 3KB, , updated: 2000/4/7 12:19, local time: 2024/8/17 00:31,
3.133.111.29:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/TECHREF/os/win/api/win32/func/src/f23_7.htm"> ExtractAssociatedIcon</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.