A quick and dirty way is to apply a command line switch to the entry in the registry under HKLM\System\CurrentControlSet\services\MyService\ImagePath and then check for that switch in your main function.
You then know if you were started by services.exe or not. Yeah it's a hack.