# Function Reference

# _WinAPI_CloseWindowStation

Closes an open window station handle

#include <WinAPISys.au3>
_WinAPI_CloseWindowStation ( $hStation )

## Parameters

$hStation | Handle to the window station to be closed.

## Return Value

Success: | True.
Failure: | False, call _WinAPI_GetLastError() to get extended error information.

## Remarks

The _WinAPI_CloseWindowStation() function will fail if the handle being closed is for the window station assigned to the calling process.

## Related

_WinAPI_CreateWindowStation, _WinAPI_OpenWindowStation

## See Also

Search CloseWindowStation in MSDN Library.