Link to home
Start Free TrialLog in
Avatar of ILPowerSoft
ILPowerSoft

asked on

Api func

Hello how can I find all windows handels
and names that are active?
Avatar of halapaya
halapaya

use this API function


BOOL EnumWindows( WNDENUMPROC lpEnumFunc,  LPARAM lParam   defined value
);

write ur own call back function for WNDENUMPRC[lpenumfunc]in this function

BOOL CALLBACK EnumWindowsProc(
  HWND hwnd,      // handle to parent window
  LPARAM lParam   // application-defined value
);

from call bck function, for each time itgets called.. u can get the window handle (hwnd) and based on that u can get any attributes for that window
Avatar of ILPowerSoft

ASKER

Can you be more Specific I wont the function to add all the names to a viewlist.
Can you give my a full exmp that will add all name to a list!
ASKER CERTIFIED SOLUTION
Avatar of inthe
inthe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok
thanx