Programmatically accessing Local Security Settings

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p align=left><font face=Arial size=2></font> 
Hi anyone who will read this post,
<p align=left>I am new here so please excuse some possible mistakes that I could have done.
<p align=left> 
<p align=left>What im trying to do is getting/setting local security settings from code(the recomended way is loading secpol.msc into mmc and set them from there), but i need to be able to access them from code.
<p align=left> 
<p align=left>Now, I can get/set almost all of them using different methods(registry, secedit, wmi, running commands capturing the output and parsing it, windows apis, and so on) but the thing is that there is no rule to tell me for a certain setting what method to use, i had to try for every setting one of the methods above and find the one that works(not to mention that many of those methods dont work on a computer having the locale different than en_us(1033)).
<p align=left>I searched the internet trying to find a way that will allow me to access all of the settings in the same way - which is also independent from the locale - when a certain dll came to my attention: scecli.dll. I didnt find any documentation of the exported functions, i tried manually to see functions signatures(using Dependency Walker, or PE explorer, or other tools like those), but I wasnt able to get the signatures and use those functions.
<p align=left> 
<p align=left>Could anyone help me regarding this issue? or if im not on the right track, could anyone indicate the right one?
<p align=left> 
<p align=left> 
<p align=left>thank you in advance,
<p align=left>cristi. 

View the full article
 
Back
Top