In Files

  • fiddle/win32/lib/win32/registry.rb

Win32::Registry::PredefinedKey

Predefined Keys

Public Class Methods

new(hkey, keyname) click to toggle source
 
               # File fiddle/win32/lib/win32/registry.rb, line 182
def initialize(hkey, keyname)
  @hkey = hkey
  @parent = nil
  @keyname = keyname
  @disposition = REG_OPENED_EXISTING_KEY
end
            

Public Instance Methods

class() click to toggle source

Fake class method for Win32::Registry#open, Win32::Registry#create

 
               # File fiddle/win32/lib/win32/registry.rb, line 195
def class
  Registry
end
            
close() click to toggle source

Predefined keys cannot be closed

 
               # File fiddle/win32/lib/win32/registry.rb, line 190
def close
  raise Error.new(5) ## ERROR_ACCESS_DENIED
end