🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14819

[URG] ExitWindowsEx in Windows98

#14819
From: George
Date: Wed, 30 Jul 2003 18:08
24 lines
1790 bytes
I have a problem in ExitWindowsEx.
First of all I'm using that function in my program for about 4 years:

ExitWindowsEx(EWX_SHUTDOWN | EWX_FORCE | EWX_POWEROFF, NULL);

It works fine in 400 PC i tested (my software is popular :) ...

Well i've noticed that in a customer, in a large area of computers (20 pcs)
does not poweroff.
It tries to shutdown, it turns off monitor but the hdd seems to work because
if you try to access
files via network (\\pc001\c)) it works! Also if you ping the machine it
responds (network ping) !
It is not sleep or suspend because the only way to restore the machine is to
go and press the reset
button on the case.

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?
Technical Details
Message-ID: <3f280970@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,cfeb33c3e55ae87,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-30 11:10:38 PST
From: "George" <george@nospam.org>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: [URG] ExitWindowsEx in Windows98
Date: Wed, 30 Jul 2003 21:08:28 +0300
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 212.205.250.222
Message-ID: <3f280970@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1059588464 212.205.250.222 (30 Jul 2003 11:07:44 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail