AttachRegistryKey
(
RegistryKeyPath As String,
[HostComputer] As Variant
);
Parameters
[in] String RegistryKeyPath
Path of the registry key ("HKLM\Software") whose audit is to be
read.
[in] Variant HostComputer
This is an optional parameter. The computer from where the registry
is to be read. If this is not specified, the local computer is
used.
Description
Initializes the AuditSecurity object with the specified registry
key's audit information.
Example
Dim AuditSec
As IAuditSecurity
Set AuditSec =
CreateObject("DirectScript.ObjectSecurity")
'Attach to the registrykey "HKEY_LOCAL_MACHINE\software\RemoteAccess" on the computer MOON.
AuditSec.AttachRegistryKey "HKEY_LOCAL_MACHINE\software\RemoteAccess", "MOON"
See Also