The RegistryEvent class is an abstract class from which the RegistryKeyChangeEvent, RegistryTreeChangeEvent, and RegistryValueChangeEvent classes are derived. For more information about using the WMI registry event classes, see the Modifying the System Registry section. For code examples, see WMI Tasks: Registry.
The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties and methods are in alphabetic order, not MOF order.
Syntax
class RegistryEvent : __ExtrinsicEvent
{
uint8 SECURITY_DESCRIPTOR [];
uint64 TIME_CREATED;
};
Methods
The RegistryEvent class inherits from __ExtrinsicEvent.
Properties
The RegistryEvent class defines the following properties.
- SECURITY_DESCRIPTOR
-
- Data type: uint8 array
- Access type: Read-only
Descriptor that the event provider uses to determine which users can receive an event. This property is inherited from
__Event.
Windows 2000: Not available.
- TIME_CREATED
-
- Data type: uint64
- Access type: Read-only
Unique value that indicates the time when an event is generated. This is a 64-bit FILETIME value that represents the number of 100-nanosecond intervals after January 1, 1601. The information is in the Coordinated Universal Time (UTC) format. This property is inherited from
__Event. To convert this value to other time formats, use the SWbemDateTime methods SetFileTime and GetFileTime. For more information, see WMI Tasks: Dates and Times.
Windows 2000: Not available.
For more information about using uint64 values in scripts, see Scripting in WMI.
Examples
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
For C++ code examples, see WMI C++ Application Examples.
Requirements
| Minimum supported client | Windows 2000 Professional |
| Minimum supported server | Windows 2000 Server |
| MOF | Regevent.mof |
| DLL | Stdprov.exe |
| Namespace | \root\default |
Send comments about this topic to Microsoft
Build date: 6/15/2009