The System.ServiceProcess
namespace belongs to System.ServiceProcess.dll
and it isn't added as a reference by default.
For this, in the solution window, right click on "References" and choose "Add Reference..". Go to the .NET tab, and double click on System.ServiceProcess.dll.
This assembly is probably in the folder C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
.