The NT service I've developed depends on the SQLServer 7.0 service
(SQLServerAgent) being started first. To implement this I specfied the
SQLServerAgent in the dependencies parameter of the CreateService() SCM
API call, see below:
hService = CreateService(
where the lpDepends is, SQLServerAgent\0\0, (the CreateService function
specifies it must be a double null terminated string).
Unfortuneatly this still doesn't work!
Any help on this problem would be greatly appreciated.