Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

RegisterServiceProcess in VB

Posted on 1998-10-07
3
Medium Priority
?
461 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 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Suggested Courses

721 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