RegisterServiceProcess in VB

How can I use RegisterServiceProcess in VB to keep my app running between logins, on a network?  MS KD article Q125714 discusses this in C, but not VB.  I don't find the RegisterServiceProcess item in the VB Win API.
jtestAsked:
Who is Participating?
 
schildConnect With a Mentor Commented:
Try This

Declare Function RegisterServiceProcess Lib "KERNEL32" Alias "RegisterServiceProcess" (ByVal dwProcessId As Long, ByVal dwType as Long) As Long

Good Luck
Schild
0
 
sjrlCommented:
Try searching MSDN for NTService. There is an OCX control that you can place on a form. It allows you to run your program as a service.
0
 
jtestAuthor Commented:
Thanks SChild.  Worked like a charm.
0
All Courses

From novice to tech pro — start learning today.