Article View: comp.os.ms-windows.programmer.misc
Article #2424Re: send restart message
From: Chris Marriott
Date: Wed, 27 Jan 1993 23:02
Date: Wed, 27 Jan 1993 23:02
32 lines
1803 bytes
1803 bytes
In article <RIETH.93Jan24120629@namu02.gwdg.de> rieth@namu01.gwdg.de writes:
>i am looking for the possibility to restart windows from an application.
>I know that i just have to send some kind of a message to windows and
>that it (ofcourse) has something to do with the number 42 in the parameters
>or something like that.
>
>does anyone know the exact message followup with parametervalues for windows
>and if special for BorlandC++3.1 ???
>
> any kind of message to me would be nice
> i say 42, BrainMan
>
The function call you need is:
ExitWindows( EW_RESTARTWINDOWS, 0 );
where, as you suggested, EW_RESTARTWINDOWS is a constant (defined in WINDOWS.H
which has the value 0x42.
Best wishes,
Chris
--
--------------------------------------------------------------------------
| Chris Marriott | chris@chrism.demon.co.uk |
| Warrington, UK | BIX: cmarriott |
| | CIX: cmarriott |
| Save the whales. Collect the whole set. | CompuServe: 100113,1140 |
--------------------------------------------------------------------------
Technical Details
Message-ID:
<728175765snz@chrism.demon.co.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.eng.gtefsd.com!emory!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!agate!doc.ic.ac.uk!pipex!demon!chrism.demon.co.uk!chrisReferences:
<RIETH.93Jan24120629@namu02.gwdg.de>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc From: chris@chrism.demon.co.uk (Chris Marriott) Path: arc1-ca.pugleaf.net!sparky!uunet!europa.eng.gtefsd.com!emory!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!agate!doc.ic.ac.uk!pipex!demon!chrism.demon.co.uk!chris Subject: Re: send restart message Distribution: world References: <RIETH.93Jan24120629@namu02.gwdg.de> Organization: None Reply-To: chris@chrism.demon.co.uk X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19) Lines: 32 Date: Wed, 27 Jan 1993 23:02:45 +0000 Message-ID: <728175765snz@chrism.demon.co.uk> Sender: usenet@demon.co.uk