Solved

Using advapi32.dll's SetServiceObjectSecurity in Visual Basic 6

Posted on 2003-11-28
1
638 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
[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
1 Comment
 
LVL 26

Accepted Solution

by:
EDDYKT earned 500 total points
ID: 9837352
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help me. 3 71
Interview questions for support of a legacy ASP.NET site 4 72
Remove Exif Orientation before adding image to db 9 43
Assign a value in Excel V-Basic 3 30
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

730 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