Mail Archives: cygwin-developers/2000/07/06/16:23:46
DJ Delorie wrote:
> > I used ftp.freesoftware.com as the mirror to download from and it gave
> > me an error because there was 750 people logged in and the maximum was
> > hit. Unfortunately, the error showed up *behind* the "Cygwin
> > Setup/Downloading/setup.ini/Connecting..." screen.
>
> Hmmm, it showed up in front on mine. I suppose I can force it with a
> suitable flag.
Chris is using W2K. Maybe that matters here. W2K has a
system variable which disallows for a configurable time
a switch to another apps window. Regardless if that app
tries to get a foreground window, it can't. You will
never see that behaviour on NT.
This is example code which disables that behaviour on W2K:
OSVERSIONINFO os_version_info;
os_version_info.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
GetVersionEx (&os_version_info);
if (os_version_info.dwPlatformId == VER_PLATFORM_WIN32_NT &&
os_version_info.dwMajorVersion >= 5) {
#ifndef SPI_SETFOREGROUNDLOCKTIMEOUT
#define SPI_SETFOREGROUNDLOCKTIMEOUT 0x2001
#endif
SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, 0, 0);
}
Hope, that helps,
Corinna
--
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company
- Raw text -