るりまサーチ

最速Rubyリファレンスマニュアル検索!
1380件ヒット [1-100件を表示] (0.083秒)
トップページ > クエリ:C[x] > クエリ:win32/registry[x]

別のキーワード

  1. win32ole new
  2. win32ole ole_type
  3. win32ole to_s
  4. win32ole name
  5. win32ole ole_free

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

win32/registry (38050.0)

win32/registry は Win32 プラットフォームでレジストリをアクセスするための ライブラリです。Win32 API の呼び出しに Win32API を使います。

...win32/registry は Win32 プラットフォームでレジストリをアクセスするための
ライブラリです。Win32 API の呼び出しに Win32API を使います。

//emlist{
require 'win32/registry'

Win32::Registry::HKEY_CURRENT_USER.open('SOFTWARE\foo') do |reg|
value = reg['foo'...
...# 型指定付き値の書き込み
reg.write('foo', Win32::Registry::REG_SZ, 'bar') # 値の書き込み

reg.each_value { |name, type, data| ... } # 値の列挙
reg.each_key { |key, wtime| ... } # サブキーの列挙

reg.delete_value('foo')...
...を使って WScript.Shell オブジェクト経由でアクセスする方法もあります。

require 'win32ole'

wsh = WIN32OLE.new('WScript.Shell')
value = wsh.RegRead 'HKLM\Software\Microsoft\Windows\...'
wsh.RegWrite 'HKCU\Software\foo\barfile\shell\open\command\\', '"C:\..." "%1"',...

Win32::Registry.create(key, subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED) (14106.0)

@todo

...定します。
親のキーには定義済キー HKEY_* を使用できます (⇒Win32::Registry::Constants)

サブキーが既に存在していればキーはただ開かれ,Win32::Registry#created?
メソッドが false を返します。

ブロックが与えられると,キーは自動...

Win32::Registry.create(key, subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED) {|reg| ... } (14106.0)

@todo

...定します。
親のキーには定義済キー HKEY_* を使用できます (⇒Win32::Registry::Constants)

サブキーが既に存在していればキーはただ開かれ,Win32::Registry#created?
メソッドが false を返します。

ブロックが与えられると,キーは自動...

Win32::Registry#close (14100.0)

@todo

@todo

開かれているキーを閉じます。

閉じられた後では,多くのメソッドは例外を発生します。

Win32::Registry#create(subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED) (14100.0)

@todo

...@todo

Win32::Registry.create(self, subkey, desired, opt) と同じです。...

絞り込み条件を変える

Win32::Registry#created? (14100.0)

@todo

...@todo

キーが新しく作成された場合,真を返します。
(⇒Win32::Registry.create)...

Win32::Registry#descriptor_length (14100.0)

@todo

@todo

キー情報の個々の値を返します。

Win32::Registry#each {|name, type, value| ... } (14100.0)

@todo

@todo

キーが持つレジストリ値を列挙します。

Win32::Registry#each_key {|subkey, wtime| ... } (14100.0)

@todo

@todo

キーのサブキーを列挙します。

subkey はサブキーの名前を表す String です。
wtime は最終更新時刻を表す FILETIME (64-bit 整数) です。
(⇒Win32::Registry.wtime2time)
<< 1 2 3 ... > >>