EnumDesktopProc

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
);
 

Parameters

lpszDesktop
Pointer to the null-terminated name of a desktop.
lParam
Specifies the application-defined value given in the EnumDesktops function.

Return Values

To continue enumeration, the callback function must return TRUE. To stop enumeration, it must return FALSE.

Remarks

An application registers an EnumDesktopProc function by passing its address to the EnumDesktops function.

QuickInfo

  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.

See Also

Window Stations and Desktops Overview, Window Station and Desktop Functions, EnumDesktops