Base for writing Windows services in C++