Solved

RegisterServiceProcess in VB

Posted on 1998-10-07
3
436 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
Comment Utility
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 100 total points
Comment Utility
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
Comment Utility
Thanks SChild.  Worked like a charm.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now