The FindWindowEx
function will not "drill down" into the window hierarchy - it will only look at the child windows of whatever you ask it to search. With that said, and from quickly looking at a screenshot of the Microsoft Security Essentials user interface, I am 99% certain that the "Scan now" button you are looking for isn't a direct child window of the main Microsoft Security Essentials Window. And that's why your FindWindowEx
call fails.
I don't have access to the Microsoft Security Essentials software, but wit access to Spy++
it should be easy to find who the parent of the "Scan now" button is: the Microsoft Security Essentials window or another window that is, itself, the child of the Microsoft Security Essentials window.