Article View: borland.public.cppbuilder.nativeapi
Article #14824Re: [URG] ExitWindowsEx in Windows98
From: Vladimir Afanasyev
Date: Thu, 31 Jul 2003 08:49
Date: Thu, 31 Jul 2003 08:49
34 lines
2036 bytes
2036 bytes
Hi, "George" <george@nospam.org> wrote: >I have a problem in ExitWindowsEx. >... >If you ask to shutdown the pc via Windows, it works ! Only that code doesnt >work. I tried >all possible combinations of ExitWindowsEx and ExitWindows with all >parameters. It always >fails. > >Any suggestion? > It is problem of some Windows configuration, see: INFO: ExitWindowsEx() Does Not Shut Down or Restart Win 95/98/Me http://support.microsoft.com/default.aspx?scid=kb;en-us;220706 HOWTO: Programmatically Force Windows 95, Windows 98, and Windows Me to Log Off http://support.microsoft.com/default.aspx?scid=kb;EN-US;216638 Really Microsof doesn't give prescription how to be. So solution is absent. I remember that I did shutdown another way via Scriptable Shell objects but work depends from shell version and it also may not work in your cases: Using Shell objects for invoking Start Menu items and dialogs. http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=17093 Vladimir.
Technical Details
Message-ID:
<3f28d819$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f280970@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,cfeb33c3e55ae87 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-31 01:51:18 PST From: "Vladimir Afanasyev" <avv@systema.kiev.ua> Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua> Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua> Subject: Re: [URG] ExitWindowsEx in Windows98 Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 212.82.216.226 212.82.216.226 X-Forwarded-For: 192.168.0.147 References: <3f280970@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3f28d819$1@newsgroups.borland.com> Date: 31 Jul 2003 01:49:29 -0700 X-Trace: newsgroups.borland.com 1059641369 207.105.83.65 (31 Jul 2003 01:49:29 -0700) Lines: 34 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail