I am attempting to find all open windows (using a console project) and output their hWnd, class, and captions in the console. However I attempted this and for some reason it gives me a compiler error on the callback and says "cannot change from BOOL to WNDENUMPROC. Every other example I find compiles perfectly and uses the exact same statement. I don't know what I'm doing wrong. I attempted to cast it explicitly and still nothing.

any ideas?