summaryrefslogtreecommitdiff
path: root/ext/win32
diff options
context:
space:
mode:
-rw-r--r--ext/win32/lib/win32/registry.rb20
-rw-r--r--ext/win32/win32-registry.gemspec29
2 files changed, 42 insertions, 7 deletions
@@ -69,11 +69,7 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr
WCHAR_NUL = "\0".encode(WCHAR).freeze
WCHAR_CR = "\r".encode(WCHAR).freeze
WCHAR_SIZE = WCHAR_NUL.bytesize
- begin
- LOCALE = Encoding.find(Encoding.locale_charmap)
- rescue ArgumentError
- LOCALE = Encoding::UTF_8
- end
class Registry
@@ -567,9 +563,16 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr
end
#
- # Enumerate values.
#
def each_value
index = 0
while true
begin
@@ -600,13 +603,16 @@ For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/pr
end
#
- # Enumerate subkeys.
#
# subkey is String which contains name of subkey.
# wtime is last write time as FILETIME (64-bit integer).
# (see Registry.wtime2time)
#
def each_key
index = 0
while true
begin
@@ -0,0 +1,29 @@