Click to See Complete Forum and Search --> : develope NT Service using VB
delhisudhakar
Nov 14th, 2000, 01:18 AM
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
SmackAttack
Nov 15th, 2000, 01:23 PM
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.
Chris
Nov 16th, 2000, 07:55 AM
Hope this is what you looking for...
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 maexchen@kabelnet.at and i'll send you the control back (for NT- Service)
aturner
Nov 22nd, 2000, 07:37 AM
would this OCX thing be able to change the password that the service tries to use.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.