using System;
using Microsoft.Win32;
namespace ConsoleApplication7
{
/// Class1 の概要の説明です。
///</summary> class Class1
{
/// アプリケーションのメイン エントリ ポイントです。
///</summary> [STAThread]
staticvoid Main(string[] args)
{
RegistryKey rk = Registry.LocalMachine.OpenSubKey("SOFTWARE");
PrintKeys(rk);
Console.ReadLine();
} staticvoid PrintKeys(RegistryKey rkey)
{
// Retrieve all the subkeys for the specified key. String [] names = rkey.GetSubKeyNames();
// Print the contents of the array to the console. foreach (String s in names)
{
Console.WriteLine(s);
} } } }