home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5472 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.7 KB  |  47 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: chris@chrism.demon.co.uk (Chris Marriott)
  3. Path: 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
  4. Subject: Re: send restart message 
  5. Distribution: world
  6. References: <RIETH.93Jan24120629@namu02.gwdg.de>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 32
  11. Date: Wed, 27 Jan 1993 23:02:45 +0000
  12. Message-ID: <728175765snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <RIETH.93Jan24120629@namu02.gwdg.de> rieth@namu01.gwdg.de writes:
  16.  
  17. >i am looking for the possibility to restart windows from an application. 
  18. >I know that i just have to send some kind of a message to windows and 
  19. >that it (ofcourse) has something to do with the number 42 in the parameters
  20. >or something like that.
  21. >
  22. >does anyone know the exact message followup with parametervalues for windows
  23. >and if special for BorlandC++3.1 ???
  24. >
  25. > any kind of message to me would be nice
  26. >   i say 42, BrainMan 
  27. >
  28.  
  29. The function call you need is:
  30.  
  31.     ExitWindows( EW_RESTARTWINDOWS, 0 );
  32.  
  33. where, as you suggested, EW_RESTARTWINDOWS is a constant (defined in WINDOWS.H
  34. which has the value 0x42.
  35.  
  36. Best wishes,
  37.  
  38. Chris
  39. -- 
  40. --------------------------------------------------------------------------
  41. | Chris Marriott                           | chris@chrism.demon.co.uk    |
  42. | Warrington, UK                           | BIX: cmarriott              |
  43. |                                          | CIX: cmarriott              |
  44. | Save the whales.  Collect the whole set. | CompuServe: 100113,1140     |
  45. --------------------------------------------------------------------------
  46.  
  47.