Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Header File: sddl.h
Message
De
01/12/2000 09:41:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Header File: sddl.h
Divers
Thread ID:
00448011
Message ID:
00448011
Vues:
173
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. ;
)
Répondre
Fil
Voir

Click here to load this message in the networking platform