From: syring@pollux.edv.agrar.tu-muenchen.de (Karl Martin Syring)
Subject: RE: Linking in InitiateSystemShutdown()...
25 Jan 1997 10:10:59 -0800
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <01BC0AED.FC5B2590.cygnus.gnu-win32@coyote.pnut.agrar.tu-muenchen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Original-To: "'rgordon@vnet.net'" <rgordon@vnet.net>,
        "gnu-win32@cygnus.com"
	 <gnu-win32@cygnus.com>
Original-Sender: owner-gnu-win32@cygnus.com

InitiateSystemShutdown() is NT only :-(

Regards
Karl

-----Original Message-----
From:	Ryan C. Gordon [SMTP:rgordon@vnet.net]
Sent:	Samstag, 25. Januar 1997 13:08
To:	gnu-win32@cygnus.com
Subject:	Linking in InitiateSystemShutdown()...

Ok, forgive a potentially stupid question, but in an attempt to 
figure out how the API InitiateSystemShutdown() works, I wrote an 
incredibly simplistic program...here it is:


#include <windows.h>

int main(void)
{
    InitiateSystemShutdown(NULL, "REBOOOOOOOT!", 5, FALSE, TRUE);
    return(0);
}


Now, when compiling, I get this:

C:\2\C>gcc testshutdown.c -o testshutdown.exe

C:\WINDOWS\TEMP/cc0010001.o(.text+0x26):testshutdown.c: undefined reference to `
InitiateSystemShutdownA@20'



How do I remedy this? Er...I'm running on a Win95 box, and I'm using 
version 17.1 of the development tools.

Much thanks,
--ryan.
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
