General information
Category:
Windows API functions
Title:
Header File: sddl.h
How can I get access to the header file SDDL.h that is associate with AdvApi32.dll?
I am trying to utilize the SetNamedSecurityInfo function from the AdvApi32.dll.
But, I don't know the constant values for this function...i.e. SE_REGISTRY_KEY, GROUP_SECURITY_INFORMATION, SDDL_EVERYONE, and DACL_SECURITY_INFORMATION.
CODE:
SET PATH TO C:\Program Files\Microsoft Visual Studio\VC98\Include
# INCLUDE AclApi.h
# INCLUDE Accctrl.h
# INCLUDE sddl.h
DECLARE INTEGER SetNamedSecurityInf IN AdvApi32.DLL ;
STRING pName ;
INTEGER nType ;
INTEGER SecurityFlag ;
INTEGER pOwner ;
INTEGER pGroup ;
INTEGER pDacl ;
INTEGER pSacl
SetNamedSecurity( ;
'\\MAURICEG\HKEY_LOCAL_MACHINE\ODBC\ODBC.INI\FwPubWeb', ;
SE_REGISTRY_KEY, ;
GROUP_SECURITY_INFORMATION, ;
.null., ;
SDDL_EVERYONE, ;
DACL_SECURITY_INFORMATION, ;
.null. ;
)
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only