The code worked all along. Somehow I manage to get Visual C++ Express not hit the break point on the final return statement and it appeared to run for ever.
In the e
From the documentation:
EnumWindows continues until the last top-level window is enumerated or the callback function returns FALSE. To continue enumeration, the callback function must return TRUE; to stop enumeration, it must return FALSE.
EnumWindows continues until the last top-level window is enumerated or the callback function returns FALSE.
To continue enumeration, the callback function must return TRUE; to stop enumeration, it must return FALSE.