DIM hWindow AS Window

FOR EACH hWindow IN Windows
  ...
NEXT

Enumerates each window created by your application.