This function finds the handles of child windows that belong to a specified window and have window identities within a specified range.
#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HWND hwndParent; /* Parent-window handle. */ PHWND prghwnd; /* Window handles. */ ULONG idFirst; /* First window identity value in the range (inclusive). */ ULONG idLast; /* Last window identity value in the range (inclusive). */ LONG lWindows; /* Number of window handles returned. */ lWindows = WinMultWindowFromIDs(hwndParent, prghwnd, idFirst, idLast);