def __init__(<EOL>self, name, class_name=None, key_path='<STR_LIT>', last_written_time=None,<EOL>offset=None, subkeys=None, values=None):
super(FakeWinRegistryKey, self).__init__(key_path=key_path)<EOL>self._class_name = class_name<EOL>self._last_written_time = last_written_time<EOL>self._name = name<EOL>self._offset = offset<EOL>self._subkeys = collections.OrderedDict()<EOL>self._values = collections.OrderedDict()<EOL>self._BuildKeyHierarchy(subkeys, values)<EOL>
Initializes a Windows Registry key.

        Subkeys and values with duplicate names are silently ignored.

        Args:
          name (str): name of the Windows Registry key.
          key_path (Optional[str]): Windows Registry key path.
          class_name (Optional[str]): class name of the Windows Registry key.
          last_written_time (Optional[int]): last written time, formatted as
              a FILETIME timestamp.
          offset (Optional[int]): offset of the key within the Windows Registry
              file.
          subkeys (Optional[list[FakeWinRegistryKey]]): list of subkeys.
          values (Optional[list[FakeWinRegistryValue]]): list of values.