Does your source file include the <windows.h> header?