Azathoth #1 Your c file is including the headers right?Try putting '#include <windows.h>' at the top in the c file.