expand_environ

expand_environ(str) Class Public methods Replace %w+% into the environment value of what is contained between the %'s This method is used for REG_EXPAND_SZ. For detail, see expandEnvironmentStrings Win32 API.

open

open(hkey, subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED) Class Public methods â ::open(key, subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED) â ::open(key, subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED) { |reg| ⦠} Open the registry key subkey under key. key is Win32::Registry object of parent key. You can use predefined key HKEY_* (see Constants) desired and opt is access mask and key option. For detail, see the MSDN. If block is given, the key is closed aut

time2wtime

time2wtime(time) Class Public methods Convert Time object or Integer object into 64-bit FILETIME.

type2name

type2name(type) Class Public methods Convert registry type value to readable string.

wtime2time

wtime2time(wtime) Class Public methods Convert 64-bit FILETIME integer into Time object.

[]

[](name, *rtype) Instance Public methods Read a registry value named name and return its value data. The class of value is same as read method returns. If the value type is REG_EXPAND_SZ, returns value data whose environment variables are replaced. If the value type is neither REG_SZ, REG_MULTI_SZ, REG_DWORD, REG_DWORD_BIG_ENDIAN, nor REG_QWORD, TypeError is raised. The meaning of rtype is same as read method.

[]=

[]=(name, rtype, value = nil) Instance Public methods Write value to a registry value named name. If wtype is specified, the value type is it. Otherwise, the value type is depend on class of value: :Integer REG_DWORD :String REG_SZ :Array REG_MULTI_SZ

_dump

_dump(depth) Instance Public methods marshalling is not allowed

close

close() Instance Public methods Close key. After close, most method raise an error.

create 2

create(subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED, &blk) Instance Public methods Same as ::create (self, subkey, desired, opt)