method

QueryValue

v1_9_3_392 - Show latest stable - Class: Win32::Registry::API
QueryValue(hkey, name)
public

No documentation available.

# File ext/dl/win32/lib/win32/registry.rb, line 281
      def QueryValue(hkey, name)
        type = packdw(0)
        size = packdw(0)
        check RegQueryValueExA.call(hkey, name, 0, type, 0, size)
        data = ' ' * unpackdw(size)
        check RegQueryValueExA.call(hkey, name, 0, type, data, size)
        [ unpackdw(type), data[0, unpackdw(size)] ]
      end