Windows 7 taskbar state with minimal code
问题 What would be the shortest code to set the state of a Windows 7 taskbar button for a known window handle? The goal is to write a console utility that changes the progress and state (colour) of the console window taskbar item from a batch script. While the script performs different tasks, the taskbar item of its console window should represent the current state. I get the window handle with the GetConsoleWindow() function, but then it seems to require loads of COM and Shell API stuff that I