public static void SetProgressState(IntPtr hwnd, ThumbnailProgressState state) { if (Windows7OrGreater) TaskbarList.SetProgressState(hwnd, state); }