VisualC++ Tips

Just another WordPress.com weblog

Get Icon of a process

Use ExtractIconEx function to get icon of a process. It will return both small and large icon of the specified process.

::ExtractIconEx( szProcessName, 0, &hSmallIcon, &hLargeIcon, 1 ) ;

You must destroy all icons extracted by ExtractIconEx by calling the DestroyIcon function.

July 8, 2008 Posted by afsalm | Uncategorized | | No Comments Yet