In Files

  • Win32API/lib/win32/registry.rb

Parent

Methods

Win32::Registry::Error

Constants

FormatMessageA

Attributes

code[R]

Public Class Methods

new(code) click to toggle source
 
               # File Win32API/lib/win32/registry.rb, line 338
def initialize(code)
  @code = code
  msg = "\00"" * 1024
  len = FormatMessageA.call(0x1200, 0, code, 0, msg, 1024, 0)
  super msg[0, len].tr("\r", '').chomp
end