System.Win.ComObj.GetRegStringValue
Delphi
function GetRegStringValue(const Key, ValueName: string; RootKey: HKEY): string;
C++
extern DELPHI_PACKAGE System::UnicodeString __fastcall GetRegStringValue(const System::UnicodeString Key, const System::UnicodeString ValueName, HKEY RootKey = (HKEY)(0x80000000));
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Win.ComObj.pas System.Win.ComObj.hpp |
System.Win.ComObj | System.Win.ComObj |
説明
HKEY_CLASSES_ROOT のサブキーに格納された値をシステムレジストリから取り出します。
GetRegStringValue は,Key で指定したキーに格納されている ValueName プロパティの値を返します。Key は RootKey(デフォルト値 HKEY_CLASSES_ROOT)のサブキーでなくてはなりません。システムレジストリに値が格納されていない場合,GetRegStringValue は空の文字列を返します。