Namespace
Methods
N
Constants
FormatMessageW = Kernel32.extern "int FormatMessageW(int, void *, int, int, void *, int, void *)", :stdcall
 
Attributes
[R] code
Class Public methods
new(code)
# File ext/win32/lib/win32/registry.rb, line 174
def initialize(code)
  @code = code
  msg = WCHAR_NUL * 1024
  len = FormatMessageW.call(0x1200, 0, code, 0, msg, 1024, 0)
  msg = msg[0, len].encode(LOCALE)
  super msg.tr("\r".encode(msg.encoding), '').chomp
end