Working of EnumWindows



I am working in VC++ and i want to enumerate the application windows .
Plz give me an example how to use and call this function in a simple main fn.
Thanks
.