'INPUT' was not declared in this scope
===

I am trying to compile a program I wrote a few years ago that simulates mouse clicks and key strokes. I've reduced it to this minimal example:

    #include "Windows.h"
    
    int main(){
    	INPUT foo;
    	return 0;
    }

It gives me this error:

    C:\projects\clicker>g++ minimaltest.cpp
    minimaltest.cpp: In function 'int main()':
    minimaltest.cpp:4:2: error: 'INPUT' was not declared in this scope
    minimaltest.cpp:4:8: error: expected ';' before 'foo'

MSDN's page on [INPUT](http://msdn.microsoft.com/en-us/library/windows/desktop/ms646270%28v=vs.85%29.aspx) says it's defined in Windows.h, so I don't know why it doesn't recognize the type.

Another stackoverflow user had a similar problem [here](http://stackoverflow.com/questions/3268252/strange-compiler-errors-with-codeblocks), but their solution, adding `#define _WIN32_WINNT 0x0500`, didn't fix the errors.

I was able to build the program years ago on windows XP. Could it be that INPUT doesn't work on Windows 7 the way it did on XP? Or maybe I forgot to supply a flag to the compiler?