Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Shankar Unni Subject: Re: SetSystemPowerState(), Where are you? Date: Tue, 01 Jun 2004 12:14:29 -0700 Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Gmane-NNTP-Posting-Host: adsl-68-120-146-125.dsl.snfc21.pacbell.net User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) In-Reply-To: news.gosonic.com wrote: > I am recently intrigued by the command shudown, which doesn't > work properly on my Windows NT. "Doesn't work properly"? What happens? Is it ignored? Does it shut down but not power off? Hang? What? What version (4.0?) and Service Pack are you running? > 4. Where is the source code of SetSystemPowerState()? Microsoft NT internals. Anyway, your best bet is to help the forum and maintainers by writing a trivial program that calls SetSystemPowerState() and see if it has the "same problem" (whatever it is). If it is, then: * It's a Microsoft problem. * You can try getting the latest SP if you don't have it. * You can also help by investigating if there's some other NT API (there are many ways to skin this particular feline :-/) that works for you in terms of shutting down your box the way you expect it to, and reporting that here. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/