mirror of
https://github.com/reactos/reactos.git
synced 2026-06-09 17:33:50 +08:00
GPL sync + delete value implemented
svn path=/trunk/; revision=1419
This commit is contained in:
@@ -1,11 +1,23 @@
|
||||
/* $Id: RegistryExplorer.cpp,v 1.1 2000/10/04 21:04:30 ea Exp $
|
||||
/* $Id: RegistryExplorer.cpp,v 1.2 2000/10/24 20:17:41 narnaoud Exp $
|
||||
*
|
||||
* regexpl - Console Registry Explorer
|
||||
*
|
||||
* Copyright (c) 1999-2000 Nedko Arnaoudov <nedkohome@atia.com>
|
||||
* Copyright (C) 2000 Nedko Arnaoudov <nedkohome@atia.com>
|
||||
*
|
||||
* License: GNU GPL
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
// Registry Explorer.cpp : Defines the entry point for the console application.
|
||||
@@ -33,6 +45,7 @@
|
||||
#include "ShellCommandNewKey.h"
|
||||
#include "ShellCommandDeleteKey.h"
|
||||
#include "ShellCommandSetValue.h"
|
||||
#include "ShellCommandDeleteValue.h"
|
||||
|
||||
TCHAR pchCurrentKey[PROMPT_BUFFER_SIZE];
|
||||
|
||||
@@ -415,6 +428,9 @@ int main ()
|
||||
CShellCommandSetValue SetValueCommand(Tree);
|
||||
CommandsList.AddCommand(&SetValueCommand);
|
||||
|
||||
CShellCommandDeleteValue DeleteValueCommand(Tree);
|
||||
CommandsList.AddCommand(&DeleteValueCommand);
|
||||
|
||||
CArgumentParser Parser;
|
||||
|
||||
int nRetCode = 0;
|
||||
@@ -450,11 +466,12 @@ int main ()
|
||||
Tree.SetDesiredOpenKeyAccess(KEY_READ);
|
||||
|
||||
GetCommand:
|
||||
// prompt
|
||||
// TODO: make prompt user-customizable
|
||||
Console.EnableWrite();
|
||||
Console.Write(_T("["));
|
||||
_tcscpy(pchCurrentKey,Tree.GetCurrentPath());
|
||||
Console.Write(pchCurrentKey);
|
||||
Console.Write(_T("]"));
|
||||
Console.Write(_T("\n# "));
|
||||
Console.FlushInputBuffer();
|
||||
|
||||
blnCommandExecutionInProgress = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user