[ale] Don't flame me -- More Info

Dan Mount danmail at bubber.com
Mon Jun 11 17:16:09 EDT 2001


I haven't tried this, but I found this in the Win32API definitions file.

If you can make api calls under cygwin, investigate the
'InitiateSystemShutdown' call (the declaration is below). The user
running the program will have to have permission to shutdown the system,
it may even prompt them as well.

DM

Declare Function InitiateSystemShutdown Lib "advapi32.dll" Alias
"InitiateSystemShutdownA" (ByVal lpMachineName As String, ByVal
lpMessage As String, ByVal dwTimeout As Long, ByVal bForceAppsClosed As
Long, ByVal bRebootAfterShutdown As Long) As Long


-----Original Message-----
From: Chris Fowler [mailto:ChrisF at computone.com]
To: ale at ale.org
Sent: Monday, June 11, 2001 10:24 AM
To: 'Vernard Martin'; Cade Thacker
Cc: Eric Z. Ayers; 'ale at ale.org'
Subject: RE: [ale] Don't flame me -- More Info


I've tried this and it does not work! 
I like the cygwin environment.  In fact, I don't think I'll port to
win32 at all! 
How can I issue a shutdown in W2K in cygwin?  I want to do it in code. 
Chris 


-----Original Message----- 
From: Vernard Martin [mailto:vernard at cc.gatech.edu] 
To: ale at ale.org
Sent: Monday, June 11, 2001 10:13 AM 
To: Cade Thacker 
Cc: Eric Z. Ayers; 'ale at ale.org' 
Subject: Re: [ale] Don't flame me -- More Info 


> How do I compile this file, so that my prof can run it on her computer

> that does not have the cywin dll? 
Hrm. I don't think that is possible under windows. What you effectively
want is 
a "static" executable that includes the code itself and all the
libraries that 
it needs to run. you can do that under unix usually with some compiler
option 
such as "-static" or somesuch. I would check to see if the compiler you
are 
using with cygwin (mostly likely gcc) has this option and what it does
under 
the windows platform. 
hope this helps 
V 
-- 
Vernard Martin (vernard at cc.gatech.edu)
http://www.cc.gatech.edu/~vernard/     
        "Anything worth fighting over is worth fighting dirty over" 
-- 
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message
body. 
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list