I have not written one myself, but I suppose the first thing you need to learn is how to write a
Windows Service program. You need a very solid knowlege of C or C++ to do that. If you already have a degree in computer science with a few courses in c and c++ then you might have enough background to start learning how to write a service program. This is pretty difficult stuff, so take your time to learn it well.