WinXNewACL


SECURITY_ATTRIBUTES sa = WinXNewACL (ssd$, inherit)

Creates and initialises a new SECURITY_ATTRIBUTES structure. This can be used for setting the security of registry keys and files amoungst other objects.

Parameter Description
ssd$ A string security descriptor. See the Win32 documentation for more information. This parameter can be "" if you do not want to specify any access control
inherit $$TRUE if the security attributes can be inherited, $$FALSE otherwise.

Returns

A filled out SECURITY_ATTRIBUTES structure

Remarks

WinX defines some ssd$ strings for you.

$$ACL_REG_STANDARD
For registry keys, gives normal users the ability to read the key and change its values. Gives administrators all permissions

Examples

SECURITY_ATTRIBUTES sa

...

' Create a SECURITY_ATTRIBUTES structure for creating a registry key
sa = WinXNewACL ($$ACL_REG_STANDARD, $$TRUE)

Related Links

WinXRegistry_ReadInt
WinXRegistry_WriteInt