Sha256: 7575d9117bf0b17c4db847831c581033eaa9372722d28ba504784078b26c5613

Contents?: true

Size: 877 Bytes

Versions: 15

Compression:

Stored size: 877 Bytes

Contents

# -*- coding: binary -*-
module Rex
module Platforms
module Windows



#
# Windows Registry Constants
#
  REG_NONE = 1
  REG_SZ = 1
  REG_EXPAND_SZ = 2
  REG_BINARY = 3
  REG_DWORD = 4
  REG_LITTLE_ENDIAN = 4
  REG_BIG_ENDIAN = 5
  REG_LINK = 6
  REG_MULTI_SZ = 7

  HKEY_CLASSES_ROOT = 0x80000000
  HKEY_CURRENT_USER = 0x80000001
  HKEY_LOCAL_MACHINE = 0x80000002
  HKEY_USERS = 0x80000003
  HKEY_PERFORMANCE_DATA = 0x80000004
  HKEY_CURRENT_CONFIG = 0x80000005
  HKEY_DYN_DATA = 0x80000006

  def registry_hive_lookup(hive)
    case hive
    when 'HKCR'
      HKEY_LOCAL_MACHINE
    when 'HKCU'
      HKEY_CURRENT_USER
    when 'HKLM'
      HKEY_LOCAL_MACHINE
    when 'HKU'
      HKEY_USERS
    when 'HKPD'
      HKEY_PERFORMANCE_DATA
    when 'HKCC'
      HKEY_CURRENT_CONFIG
    when 'HKDD'
      HKEY_DYN_DATA
    else
      HKEY_LOCAL_MACHINE
    end
  end

end
end
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
rex-2.0.13 lib/rex/platforms/windows.rb
rex-2.0.12 lib/rex/platforms/windows.rb
rex-2.0.11 lib/rex/platforms/windows.rb
rex-2.0.10 lib/rex/platforms/windows.rb
rex-2.0.9 lib/rex/platforms/windows.rb
rex-2.0.8 lib/rex/platforms/windows.rb
rex-2.0.7 lib/rex/platforms/windows.rb
rex-2.0.5 lib/rex/platforms/windows.rb
rex-2.0.4 lib/rex/platforms/windows.rb
dstruct-0.0.1 lib/rex/platforms/windows.rb
rex-2.0.3 lib/rex/platforms/windows.rb
librex-0.0.999 lib/rex/platforms/windows.rb
rex-2.0.2 lib/rex/platforms/windows.rb
librex-0.0.71 lib/rex/platforms/windows.rb
librex-0.0.70 lib/rex/platforms/windows.rb