Since you can create programs using the Windows Platform SDK (or what it's called today) using MinGW, you can create Win32 services.
Services are simply Win32 programs with specific protocols used to register them in the system and interact with the service controller of the operating system.
source share