Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

RegisterServiceProcess in VB

Posted on 1998-10-07
3
Medium Priority
?
475 Views
Last Modified: 2012-05-07
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.
0
Comment
Question by:jtest
3 Comments
 

Expert Comment

by:sjrl
ID: 1438650
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
 
LVL 2

Accepted Solution

by:
schild earned 400 total points
ID: 1438651
Try This

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

Good Luck
Schild
0
 

Author Comment

by:jtest
ID: 1438652
Thanks SChild.  Worked like a charm.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question