###Function###
Shutdown

###Description###
Shuts down the system.

###Syntax###
Shutdown ( code )


###Parameters###
@@ParamTable@@
code
	A combination of shutdown codes.  See "remarks".
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	1.
Failure:	0 and sets the @error flag to Windows API GetLastError().
@@End@@


###Remarks###
$SD_* constants require #include <AutoItConstants.au3>
The shutdown code is a combination of the following values:
	$SD_LOGOFF (0) = Logoff
	$SD_SHUTDOWN (1) = Shutdown
	$SD_REBOOT (2) = Reboot
	$SD_FORCE (4) = Force
	$SD_POWERDOWN (8) = Power down
	$SD_FORCEHUNG (16) = Force if hung
	$SD_STANDBY (32) = Standby
	$SD_HIBERNATE (64) = Hibernate


Required values should be <a href="BitOR.htm">BitOR()</a>'ed together. To shutdown and power down, for example, the code would be <a href="BitOR.htm">BitOR</a>($SD_SHUTDOWN, $SD_POWERDOWN).

Standby or Hibernate are ignored if other codes are set.


###Related###
ProcessClose


###Example###
@@IncludeExample@@
