Changing console application window icon at runtime!

Bored with the old black icon that you have on the main window. Here is a way to change it. There is an undocumented API called SetConsoleIcon and it’s in Kernel32.dll.  Here is how we use it… [sourcecode language=’cpp’]void ChangeIcon( const HICON hNewIcon ) {  // Load kernel 32 library  HMODULE hMod = LoadLibrary( _T( […]
Continue reading…