Solved

RegisterServiceProcess in VB

Posted on 1998-10-07
3
447 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 100 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

734 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