Archive: SimpleSC SetServiceLogon fails with XYNTService


SimpleSC SetServiceLogon fails with XYNTService
I can use the SimpleSC::SetServiceLogon function with a service created by the Microsoft Resource Kit srvany.exe utility.

I'm trying to do the same with a service created by XYNT Service, but SetServiceLogon fails with error 87 (invalid parameter?) and GetErrorMessage doesn't return an error code.

XYNT Service has some useful features over srvany.exe so I would like to get it working.
Any ideas how to debug this? How does SetServiceLogon interact with Windows services?

Thanks


After a quick test, it looks like services that are set to interact with the desktop cause SetServiceLogon to throw error 87. Remove desktop interaction from the service and SerServiceLogon works fine.

Is this something that SimpleSC should deal with?