Solved

Using advapi32.dll's SetServiceObjectSecurity in Visual Basic 6

Posted on 2003-11-28
1
625 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

920 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

13 Experts available now in Live!

Get 1:1 Help Now