To make it work, you should add ByVal before 0& in the ChangeServiceConfig function call.
It should be :
errCode = ChangeServiceConfig(svcHandle, SERVICE_NO_CHANGE, SERVICE_NO_CHANGE, SERVICE_NO_CHANGE, _
vbNullString, vbNullString, ByVal 0&, vbNullString, vbNullString...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.