hi all,
i need u r help.
We developed an tcpserver program , which is an exe file. now we want run that exe as a ntservice.
Thx in advance.
sudhakar
Printable View
hi all,
i need u r help.
We developed an tcpserver program , which is an exe file. now we want run that exe as a ntservice.
Thx in advance.
sudhakar
It's possible via the NTService OCX provided by Microsoft. However, this OCX is **extremely** hard to find (you can't even find it on the MS site itself). I have used this OCX myself and it seems to work very well indeed, so I dunno why it's not more widely available.
You can check out this article:
http://vbwire.com/advanced/howto/service2.asp
And if you need the OCX, send me an email, I still have it.
Hope this is what you looking for...
Code:Private Sub Command1_Click()
With NTService1
.StartMode = svcStartAutomatic
.DisplayName = "My Service"
.ServiceName = "My Service"
.Install
End With
End Sub
Private Sub Command2_Click()
With NTService1
.ServiceName = "My Service"
.Uninstall
End With
End Sub
Send me a email to [email protected] and i'll send you the control back (for NT- Service)
would this OCX thing be able to change the password that the service tries to use.