# Function Reference

# _WinAPI_EnumWindowStations

Enumerates all window stations in the current session

#include <WinAPISys.au3>
_WinAPI_EnumWindowStations ( )

## Return Value

Success: | The array of the window station names. The zeroth array element contains the number of window station.
Failure: | Sets the @error flag to non-zero.

## Remarks

The _WinAPI_EnumWindowStations() enumerates only those window stations for which the calling process has the
$WINSTA_ENUMERATE access right.

## See Also

Search EnumWindowStations in MSDN Library.

## Example

    #include <Array.au3>
    #include <WinAPISys.au3>

    Local $aData = _WinAPI_EnumWindowStations()

    _ArrayDisplay($aData, '_WinAPI_EnumWindowStations')