The EnumDesktopProc function is an application-defined callback function used with the EnumDesktops function. It receives a desktop name. The DESKTOPENUMPROC type defines a pointer to this callback function. EnumDesktopProc is a placeholder for the application-defined function name.
BOOL CALLBACK EnumDesktopProc(
LPTSTR lpszDesktop, // name of a desktop
LPARAM lParam // value specified in EnumDesktops call
);
To continue enumeration, the callback function must return TRUE. To stop enumeration, it must return FALSE.
An application registers an EnumDesktopProc function by passing its address to the EnumDesktops function.
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, EnumDesktops