I've already past-ed the sample function to you.
Could you tell me why're you passing "this" ?
If you don't need it then pass NULL as a second param.
The error appears because your "EnumWindowsProc()" does not appropriate to the expected one.
The prototype I've already shown to you, will repeat below:
PHP Code:
BOOL CALLBACK EnumWindowCallBack(HWND hwnd, LPARAM lParam)