Solved

Start/Stop Windows 2000 Service

Posted on 2001-09-18
4
207 Views
Last Modified: 2010-05-02
Hello experts,

I am having API to Start/Stop Windows NT Services from VB. But the same is not working with Windows 2000 Server/Professional. Is there any API to start/stop Windows 2000 Service in VB?. If yes, please give me the solution.

Siva
0
Comment
Question by:NellaiSiva
4 Comments
 
LVL 15

Accepted Solution

by:
lyonst earned 100 total points
ID: 6492007
Hi,

Is this what you are looking for ?

http://www.vb2themax.com/Item.asp?PageID=CodeBank&ID=392

Cheers,

T.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 6492107
0
 
LVL 50

Expert Comment

by:Ryan Chong
ID: 6492167
<listening..>
0
 

Author Comment

by:NellaiSiva
ID: 6492579
The code is working but I am looking for without Active DS Type library.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…

815 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

10 Experts available now in Live!

Get 1:1 Help Now