Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Header File: sddl.h
Message
From
01/12/2000 09:41:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Header File: sddl.h
Miscellaneous
Thread ID:
00448011
Message ID:
00448011
Views:
169
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
Map
View

Click here to load this message in the networking platform