Neither this function nor the WinRemoveSwitchEntry function are required if the main window is created with the frame creation flags FCF_TASKLIST or FCF_STANDARD, because these flags automatically update the Window List when the main window is created or destroyed.