Solved

Administrative power to an application

Posted on 1998-12-20
3
195 Views
Last Modified: 2010-05-03
I have developed a VB5 application, now I want to run the programme as a Windows-NT service so that the programme gets the administrative power irrespective of the fact that who is running the programme. The idea is that any user can access a data file which is only accessable to administrator through the programme.
0
Comment
Question by:kishor33
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
cognition earned 10 total points
Comment Utility
There is a utility that MS supplies that will allow this.
Alternatively search the MS site for :
"An OLE Control for Creating Windows NT Services in Visual Basic"
and also the following article.

Q175948
0
 

Author Comment

by:kishor33
Comment Utility
Your solution seems to be alright but from where i can get the NTService control.
0
 
LVL 3

Expert Comment

by:cognition
Comment Utility
The control is provided as part of MSDN.
The second article includes code that will allow you to program the service in VB.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…

743 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