Solved

Using advapi32.dll's SetServiceObjectSecurity in Visual Basic 6

Posted on 2003-11-28
1
620 Views
Last Modified: 2013-11-25
I'm trying to implement a service control utility, that among others has to set an specific service's security descriptor so that users from the USERS group can PAUSE and CONTINUE the service. I'm having some trouble implementing the SetServiceObjectSecurity function from advapi32.dll (Windows API). Could somebody please post a code snippet that sets the DACL for a service?? (the same utility installs this service and is its owner, so it has permission to change its DACL).

 Thanks!
0
Comment
Question by:cacob
1 Comment
 
LVL 26

Accepted Solution

by:
EDDYKT earned 500 total points
ID: 9837352
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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 …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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 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…

706 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

12 Experts available now in Live!

Get 1:1 Help Now