The EnumWindowStationProc function is an application-defined callback function used with the EnumWindowStations function. It receives a window station name. The WINSTAENUMPROC type defines a pointer to this callback function. EnumWindowStationProc is a placeholder for the application-defined function name.
BOOL CALLBACK EnumWindowStationProc(
LPTSTR lpszWindowStation
// name of a window station
LPARAM lParam // value specified in EnumWindowStations call
);
To continue enumeration, the callback function must return TRUE. To stop enumeration, it must return FALSE.
An application must register this callback function by passing its address to EnumWindowStations.
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Import Library: User-defined.
Unicode: Defined as Unicode and ANSI prototypes.
Window Stations and Desktops Overview, Window Station and Desktop Functions, EnumWindowStations