modify the code for windows service, .pro is important