1. The compiler error message is self explanatory. You are missing an include.
2. This is a Windows API C programming question and nothing to do with Qt. You should start with the relevant documentation
3. According to your profile you do Qt work on Linux/UNIX, where Windows API is clearly not used.