Re: [Algorithms] Can I do this?
Brought to you by:
vexxed72
From: Adam W. <ad...@ar...> - 2000-07-25 20:56:59
|
You can request other apps to quit with WM_QUIT (much like windows does when it performs a shutdown), but you can't force them short of a TerminateProcess (which leaves all sorts of loose ends). Most well behaved apps will comply, some of them performing their "Unsaved work" type dialogs. Some ignore you though. Depends on the app. adamw ----- Original Message ----- From: "Giovanni Bajo" <ba...@pr...> To: <gda...@li...> Sent: Tuesday, July 25, 2000 9:48 PM Subject: RE: [Algorithms] Can I do this? > apart "moral" aspects, can someone confirm that an application can shutdown > (via WM_QUIT) other apps running under Win2K? > --- > Giovanni Bajo > Lead Programmer > > Protonic Interactive > www.protonic.net > > a brand of Prograph Research S.r.l. > www.prograph.it > > > > -----Original Message----- > > From: gda...@li... > > [mailto:gda...@li...]On Behalf Of jason > > watkins > > Sent: Tuesday, July 25, 2000 10:46 PM > > To: gda...@li... > > Subject: Re: [Algorithms] Can I do this? > > > > > > Bad.. bad.. bad.. > > > > you quickly need to get out of the frame of mind that you and your program > > know what to do better than the user. the role of your program is to be > > subserviant to the users wishes and demands. > > > > picture this.. I'm a 28.8k modem user, downloaded the lastest 250+meg demo > > in the background.. I fire up your game to pass the time, since > > the download > > will take all day. Your game spots my "save as" as a resource hog > > because it > > keeps doing lots of GDI stuff to make the little animation go on, > > and so on. > > So, it sends a WM_QUIT to it, and my Save As prompted dies, > > leaving me with > > nothing to show for the last 5 hours my download ran. > > > > at this point, i'd do 3 things: uninstall your game, tell every website in > > the universe just how crappy it is, and then research the feasability of > > comming and killing you. after all, I could accomplish all that > > in less time > > than it'll take me to redownload 1/2 of that danged demo. > > > > now, as for things useful.. what you *can* do is inform the > > user.. if you're > > really worried about the situation, throw up a error or a simple notices > > that says "it appears system resources are low due to many background > > applications. please close some of them and running mygame.exe again for > > better performance." > > > > then the user knows what's going on, and can make the call. > > > > > > _______________________________________________ > > GDAlgorithms-list mailing list > > GDA...@li... > > http://lists.sourceforge.net/mailman/listinfo/gdalgorithms-list > > > > > > > > _______________________________________________ > GDAlgorithms-list mailing list > GDA...@li... > http://lists.sourceforge.net/mailman/listinfo/gdalgorithms-list |