###User Defined Function###
_WinAPI_CloseDesktop

###Description###
Closes an open handle to a desktop object.

###Syntax###
#include <WinAPISys.au3>
_WinAPI_CloseDesktop ( $hDesktop )


###Parameters###
@@ParamTable@@
$hDesktop
	Handle to the desktop to be closed.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success 	True.
Failure 	False, call <a href="_WinAPI_GetLastError.htm">_WinAPI_GetLastError()</a> to get extended error information.
@@End@@


###Remarks###
The _WinAPI_CloseDesktop() function will fail if any thread in the calling process is using the specified desktop
handle or if the handle refers to the initial desktop of the calling process.


###Related###


###See Also###
@@MsdnLink@@ CloseDesktop


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