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

x
?
Solved

Administrative power to an application

Posted on 1998-12-20
3
Medium Priority
?
233 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
[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
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
cognition earned 20 total points
ID: 1451527
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
ID: 1451528
Your solution seems to be alright but from where i can get the NTService control.
0
 
LVL 3

Expert Comment

by:cognition
ID: 1451529
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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 …
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

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