class Win32::Registry::PredefinedKey
预定义键
公共类方法
new(hkey, keyname) 点击切换源代码
# File win32/lib/win32/registry.rb, line 200 def initialize(hkey, keyname) @hkey = Fiddle::Pointer.new(hkey) @parent = nil @keyname = keyname @disposition = REG_OPENED_EXISTING_KEY end
公共实例方法
class() 点击切换源代码
为 Registry#open
, Registry#create
提供的伪造 class
方法
# File win32/lib/win32/registry.rb, line 213 def class Registry end
close() 点击切换源代码
预定义键无法关闭
# File win32/lib/win32/registry.rb, line 208 def close raise Error.new(5) ## ERROR_ACCESS_DENIED end