When you build an Win32 Application - then in template you had included important classes and librarys for GUI in Windows. So you should look in these files (headers, librarys) then you should find the differences between console application (service) and win32 applications...
Please add here your code - perhaps i find the right place/code for your problem...
Best Regards