###User Defined Function###
_WinAPI_SetActiveWindow

###Description###
Activates the specified window.

###Syntax###
#include <WinAPISys.au3>
_WinAPI_SetActiveWindow ( $hWnd )


###Parameters###
@@ParamTable@@
$hWnd
	Handle to the top-level window to be activated.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success 	Handle to the window that was previously active.
Failure 	0, call <a href="_WinAPI_GetLastError.htm">_WinAPI_GetLastError()</a> to get extended error information.
@@End@@


###Remarks###
None


###Related###


###See Also###
@@MsdnLink@@ SetActiveWindow
