What\'s the difference between a Windows service and a standard exe?
If you're talking about implementing a background operation, here are the criteria I'd recommend to choose a service or a window-less .exe:
Choose an exe if:
Choose a service if:
Services can easily be security holes, so prefer .exe's to services. Sometimes you'll need both. A virus checker needs to be able to access every file on the filesystem (which the current user may not be able to do), but it also needs to provide info to the user in the form of notification dialogs/pop-ups and a tool tray icon. Services can't interact with the user's GUI directly. They can use the standard Windows IPC (inter-process communication) services such as pipes and shared memory regions. Such tools usually have both a service and a per-user windowless .exe that communicates with the service using Windows pipes or shared memory regions.
Get "Programming Windows Security" by Keith Brown if you want to dive into these topics.