Groups | Search | Server Info | Login | Register


Groups > comp.os.os2.programmer.misc > #1600

Re: How do safe shutdown programmatically?

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Lars Erdmann <lars.erdmann@arcor.de>
Newsgroups comp.os.os2.programmer.misc
Subject Re: How do safe shutdown programmatically?
Date Sun, 5 Nov 2017 15:36:39 +0100
Organization solani.org
Lines 19
Message-ID <otn7ln$shq$1@solani.org> (permalink)
References <ot4c8i$nic$1@dont-email.me> <otdacn$cf0$1@news.albasani.net> <oti78c$34j$1@dont-email.me> <otmpae$kt2$1@dont-email.me> <otn0ro$9cg$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace solani.org 1509892599 29242 eJwFwYEBwDAIArCXiiKu78zh/ycsqRQ0TZVYW4u+6wskzDkjmkEcbfbnV+ktPhEG7FrlDwxwEKI= (5 Nov 2017 14:36:39 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sun, 5 Nov 2017 14:36:39 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46
X-NNTP-Posting-Host eJwNyckBwCAIBMCW5FqlHBC3/xKS+U4YBHc7Ah4M2skEtLDfaGofuqoMW59H8eb7f3FkdReMHxJ3EUI=
X-User-ID eJwNx8ERAEEEBMCUDmMQjqLkH8Jt/9qNwgnQCT+/Lok2FVPG2qxXwq02JeVD3by13jBNgeAP/acPvw==
In-Reply-To <otn0ro$9cg$1@dont-email.me>
Cancel-Lock sha1:+oS43y0QHpLeBwTsMkm2RzToWWQ=
Xref csiph.com comp.os.os2.programmer.misc:1600

Show key headers only | View raw


Just for the record:

if you want to have PM applications notified on shutdown you need to use 
"WinShutdownSystem" API function. That will also eventually call 
DosShutdown.

Lars


Andi B. schrieb:
> Andi B. schrieb:
>
> Even better -
>  object = WinQueryObject("<WP_DESKTOP>");
>  fSuccess = WinSetObjectData(object,"XSHUTDOWNNOW=POWEROFF,NOCONFIRM;");
>
> Andreas
>

Back to comp.os.os2.programmer.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How do safe shutdown programmatically? "Andi B." <andi.b@gmx.net> - 2017-10-29 12:58 +0100
  Re: How do safe shutdown programmatically? Andreas Schnellbacher <aschn@despammed.com> - 2017-11-01 21:21 +0100
    Re: How do safe shutdown programmatically? "Andi B." <andi.b@gmx.net> - 2017-11-03 17:58 +0100
      Re: How do safe shutdown programmatically? "Andi B." <andi.b@gmx.net> - 2017-11-05 11:31 +0100
        Re: How do safe shutdown programmatically? "Andi B." <andi.b@gmx.net> - 2017-11-05 13:40 +0100
          Re: How do safe shutdown programmatically? Lars Erdmann <lars.erdmann@arcor.de> - 2017-11-05 15:36 +0100
          Re: How do safe shutdown programmatically? Pete <losepete@losepete.plus.com> - 2019-02-06 02:14 +0000

csiph-web