2005-01-04 21:40:25 +00:00
|
|
|
/* $Id$
|
2000-10-04 21:04:31 +00:00
|
|
|
*
|
|
|
|
* regexpl - Console Registry Explorer
|
|
|
|
*
|
2005-01-04 21:40:25 +00:00
|
|
|
* Copyright (C) 2000-2005 Nedko Arnaudov <nedko@users.sourceforge.net>
|
2000-10-04 21:04:31 +00:00
|
|
|
*
|
2000-10-24 20:17:42 +00:00
|
|
|
* 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.
|
2000-10-04 21:04:31 +00:00
|
|
|
*
|
2000-10-24 20:17:42 +00:00
|
|
|
* 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.
|
2000-10-04 21:04:31 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
// ShellCommandSetValue.cpp: implementation of the CShellCommandSetValue class.
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "ph.h"
|
|
|
|
#include "ShellCommandSetValue.h"
|
|
|
|
#include "RegistryExplorer.h"
|
|
|
|
#include "RegistryTree.h"
|
|
|
|
#include "RegistryKey.h"
|
|
|
|
|
|
|
|
#define SET_VALUE_CMD _T("SV")
|
|
|
|
#define SET_VALUE_CMD_LENGTH COMMAND_LENGTH(SET_VALUE_CMD)
|
|
|
|
#define SET_VALUE_CMD_SHORT_DESC SET_VALUE_CMD _T(" command is used to set value.\n")
|
|
|
|
|
|
|
|
BOOL StringToDWORD(DWORD& rdwOut, const TCHAR *pszIn)
|
|
|
|
{
|
|
|
|
const TCHAR *pszDigits;
|
|
|
|
const TCHAR *pszOctalNumbers = _T("01234567");
|
|
|
|
const TCHAR *pszDecimalNumbers = _T("0123456789");
|
|
|
|
const TCHAR *pszHexNumbers = _T("0123456789ABCDEF");
|
|
|
|
const TCHAR *pszNumbers;
|
|
|
|
unsigned int nBase = 0;
|
|
|
|
if (*pszIn == _T('0'))
|
|
|
|
{
|
|
|
|
if ((*(pszIn+1) == _T('x'))||((*(pszIn+1) == _T('X'))))
|
|
|
|
{ // hex
|
|
|
|
nBase = 16;
|
|
|
|
pszDigits = pszIn+2;
|
|
|
|
pszNumbers = pszHexNumbers;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{ // octal
|
|
|
|
nBase = 8;
|
|
|
|
pszDigits = pszIn+1;
|
|
|
|
pszNumbers = pszOctalNumbers;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{ //decimal
|
|
|
|
nBase = 10;
|
|
|
|
pszDigits = pszIn;
|
|
|
|
pszNumbers = pszDecimalNumbers;
|
|
|
|
}
|
|
|
|
|
|
|
|
const TCHAR *pszDigit = pszDigits;
|
|
|
|
pszDigit += _tcslen(pszDigit);
|
|
|
|
|
|
|
|
DWORD nMul = 1;
|
|
|
|
rdwOut = 0;
|
|
|
|
DWORD dwAdd;
|
|
|
|
const TCHAR *pszNumber;
|
|
|
|
while (pszDigit > pszDigits)
|
|
|
|
{
|
|
|
|
pszDigit--;
|
|
|
|
pszNumber = _tcschr(pszNumbers,*pszDigit);
|
|
|
|
if (!pszNumber)
|
|
|
|
return FALSE; // wrong char in input string
|
|
|
|
|
|
|
|
dwAdd = (pszNumber-pszNumbers)*nMul;
|
|
|
|
|
|
|
|
if (rdwOut + dwAdd < rdwOut)
|
|
|
|
return FALSE; // overflow
|
|
|
|
rdwOut += dwAdd;
|
|
|
|
|
|
|
|
if (nMul * nBase < nMul)
|
|
|
|
return FALSE; // overflow
|
|
|
|
nMul *= nBase;
|
|
|
|
};
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
// Construction/Destruction
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
CShellCommandSetValue::CShellCommandSetValue(CRegistryTree& rTree):m_rTree(rTree)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CShellCommandSetValue::~CShellCommandSetValue()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
BOOL CShellCommandSetValue::Match(const TCHAR *pszCommand)
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
2001-01-10 01:25:29 +00:00
|
|
|
if (_tcsicmp(pszCommand,SET_VALUE_CMD) == 0)
|
2000-10-04 21:04:31 +00:00
|
|
|
return TRUE;
|
2001-01-10 01:25:29 +00:00
|
|
|
if (_tcsnicmp(pszCommand,SET_VALUE_CMD _T(".."),SET_VALUE_CMD_LENGTH+2*sizeof(TCHAR)) == 0)
|
2000-10-04 21:04:31 +00:00
|
|
|
return TRUE;
|
2001-01-10 01:25:29 +00:00
|
|
|
if (_tcsnicmp(pszCommand,SET_VALUE_CMD _T("/"),SET_VALUE_CMD_LENGTH+1*sizeof(TCHAR)) == 0)
|
2000-10-04 21:04:31 +00:00
|
|
|
return TRUE;
|
2001-01-10 01:25:29 +00:00
|
|
|
if (_tcsnicmp(pszCommand,SET_VALUE_CMD _T("\\"),SET_VALUE_CMD_LENGTH+1*sizeof(TCHAR)) == 0)
|
2000-10-04 21:04:31 +00:00
|
|
|
return TRUE;
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CShellCommandSetValue::Execute(CConsole &rConsole, CArgumentParser& rArguments)
|
|
|
|
{
|
2001-01-10 01:25:29 +00:00
|
|
|
LONG nError;
|
|
|
|
|
2000-10-04 21:04:31 +00:00
|
|
|
rArguments.ResetArgumentIteration();
|
2001-01-10 01:25:29 +00:00
|
|
|
TCHAR *pszCommandItself = rArguments.GetNextArgument();
|
2000-10-04 21:04:31 +00:00
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
TCHAR *pszParameter;
|
|
|
|
TCHAR *pszValueFull = NULL;
|
|
|
|
TCHAR *pszValueData = NULL;
|
2000-10-04 21:04:31 +00:00
|
|
|
BOOL blnBadParameter = FALSE;
|
|
|
|
BOOL blnHelp = FALSE;
|
|
|
|
DWORD dwValueSize = 0;
|
|
|
|
DWORD dwType = REG_NONE;
|
|
|
|
BYTE *pDataBuffer = NULL;
|
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
if ((_tcsnicmp(pszCommandItself,SET_VALUE_CMD _T(".."),SET_VALUE_CMD_LENGTH+2*sizeof(TCHAR)) == 0)||
|
|
|
|
(_tcsnicmp(pszCommandItself,SET_VALUE_CMD _T("\\"),SET_VALUE_CMD_LENGTH+1*sizeof(TCHAR)) == 0))
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
2001-01-10 01:25:29 +00:00
|
|
|
pszValueFull = pszCommandItself + SET_VALUE_CMD_LENGTH;
|
2000-10-04 21:04:31 +00:00
|
|
|
}
|
2001-01-10 01:25:29 +00:00
|
|
|
else if (_tcsnicmp(pszCommandItself,SET_VALUE_CMD _T("/"),SET_VALUE_CMD_LENGTH+1*sizeof(TCHAR)) == 0)
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
2001-01-10 01:25:29 +00:00
|
|
|
pszParameter = pszCommandItself + SET_VALUE_CMD_LENGTH;
|
2000-10-04 21:04:31 +00:00
|
|
|
goto CheckValueArgument;
|
|
|
|
}
|
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
while((pszParameter = rArguments.GetNextArgument()) != NULL)
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
|
|
|
CheckValueArgument:
|
|
|
|
blnBadParameter = FALSE;
|
2001-01-10 01:25:29 +00:00
|
|
|
if (((*pszParameter == _T('/'))||(*pszParameter == _T('-')))
|
|
|
|
&&(*(pszParameter+1) == _T('?')))
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
|
|
|
blnHelp = TRUE;
|
|
|
|
}
|
|
|
|
else if (dwType == REG_NONE)
|
|
|
|
{
|
2001-01-10 01:25:29 +00:00
|
|
|
if (_tcsicmp(pszParameter,_T("b")) == 0)
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
|
|
|
dwType = REG_BINARY;
|
|
|
|
}
|
2001-01-10 01:25:29 +00:00
|
|
|
else if (_tcsicmp(pszParameter,_T("dw")) == 0)
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
|
|
|
dwType = REG_DWORD;
|
|
|
|
}
|
2001-01-10 01:25:29 +00:00
|
|
|
else if (_tcsicmp(pszParameter,_T("dwle")) == 0)
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
|
|
|
dwType = REG_DWORD_LITTLE_ENDIAN;
|
|
|
|
}
|
2001-01-10 01:25:29 +00:00
|
|
|
else if (_tcsicmp(pszParameter,_T("dwbe")) == 0)
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
|
|
|
dwType = REG_DWORD_BIG_ENDIAN;
|
|
|
|
}
|
2001-01-10 01:25:29 +00:00
|
|
|
else if (_tcsicmp(pszParameter,_T("sz")) == 0)
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
|
|
|
dwType = REG_SZ;
|
|
|
|
}
|
2001-01-10 01:25:29 +00:00
|
|
|
else if (_tcsicmp(pszParameter,_T("esz")) == 0)
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
|
|
|
dwType = REG_EXPAND_SZ;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
blnBadParameter = TRUE;
|
|
|
|
}
|
|
|
|
}
|
2001-01-10 01:25:29 +00:00
|
|
|
else if (pszValueData == NULL)
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
2001-01-10 01:25:29 +00:00
|
|
|
pszValueData = pszParameter;
|
2000-10-04 21:04:31 +00:00
|
|
|
}
|
2001-01-10 01:25:29 +00:00
|
|
|
else if (!pszValueFull)
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
2001-01-10 01:25:29 +00:00
|
|
|
pszValueFull = pszParameter;
|
2000-10-04 21:04:31 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
blnBadParameter = TRUE;
|
|
|
|
}
|
|
|
|
if (blnBadParameter)
|
|
|
|
{
|
|
|
|
rConsole.Write(_T("Bad parameter: "));
|
2001-01-10 01:25:29 +00:00
|
|
|
rConsole.Write(pszParameter);
|
2000-10-04 21:04:31 +00:00
|
|
|
rConsole.Write(_T("\n"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
if (!pszValueData)
|
2000-10-04 21:04:31 +00:00
|
|
|
blnHelp = TRUE;
|
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
CRegistryKey Key;
|
|
|
|
TCHAR *pszValueName;
|
|
|
|
const TCHAR *pszPath;
|
2000-10-04 21:04:31 +00:00
|
|
|
|
|
|
|
if (blnHelp)
|
|
|
|
{
|
|
|
|
rConsole.Write(GetHelpString());
|
|
|
|
|
|
|
|
if (pDataBuffer)
|
|
|
|
delete pDataBuffer;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
if (pszValueFull)
|
2000-10-04 21:04:31 +00:00
|
|
|
{
|
2001-01-10 01:25:29 +00:00
|
|
|
if (_tcscmp(pszValueFull,_T("\\")) == 0)
|
2000-10-04 21:04:31 +00:00
|
|
|
goto CommandNAonRoot;
|
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
TCHAR *pchSep = _tcsrchr(pszValueFull,_T('\\'));
|
|
|
|
pszValueName = pchSep?(pchSep+1):(pszValueFull);
|
|
|
|
pszPath = pchSep?pszValueFull:_T(".");
|
2000-10-04 21:04:31 +00:00
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
//if (_tcsrchr(pszValueName,_T('.')))
|
2000-10-04 21:04:31 +00:00
|
|
|
//{
|
2001-01-10 01:25:29 +00:00
|
|
|
// pszValueName = _T("");
|
|
|
|
// pszPath = pszValueFull;
|
2000-10-04 21:04:31 +00:00
|
|
|
//}
|
|
|
|
//else
|
|
|
|
if (pchSep)
|
|
|
|
*pchSep = 0;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2001-01-10 01:25:29 +00:00
|
|
|
pszValueName = _T("");
|
|
|
|
pszPath = _T(".");
|
2000-10-04 21:04:31 +00:00
|
|
|
}
|
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
if (!m_rTree.GetKey(pszPath,KEY_SET_VALUE,Key))
|
|
|
|
{
|
|
|
|
rConsole.Write(m_rTree.GetLastErrorDescription());
|
|
|
|
goto SkipCommand;
|
|
|
|
}
|
2000-10-04 21:04:31 +00:00
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
if (Key.IsRoot())
|
|
|
|
goto CommandNAonRoot;
|
|
|
|
|
|
|
|
switch (dwType)
|
|
|
|
{
|
|
|
|
case REG_BINARY:
|
|
|
|
{
|
|
|
|
HANDLE hFile;
|
|
|
|
DWORD dwBytesReaded;
|
|
|
|
hFile = CreateFile(pszValueData,GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,0,NULL);
|
|
|
|
if (hFile == INVALID_HANDLE_VALUE)
|
|
|
|
{
|
|
|
|
rConsole.Write(_T("Cannot open file "));
|
|
|
|
rConsole.Write(pszValueData);
|
|
|
|
rConsole.Write(_T("\n"));
|
|
|
|
goto SkipCommand;
|
|
|
|
}
|
|
|
|
dwValueSize = GetFileSize(hFile,NULL);
|
|
|
|
if (dwValueSize == (DWORD)-1) // ok, that's right, we compare signed with unsigned here.
|
|
|
|
// GetFileSize is documented and declared to return DWORD.
|
|
|
|
// Error is indicated by checking if return is -1. Design->documentation bug ???
|
|
|
|
{
|
|
|
|
rConsole.Write(_T("Cannot get size of file "));
|
|
|
|
rConsole.Write(pszValueData);
|
|
|
|
rConsole.Write(_T("\n"));
|
|
|
|
VERIFY(CloseHandle(hFile));
|
|
|
|
goto SkipCommand;
|
|
|
|
}
|
|
|
|
pDataBuffer = new BYTE [dwValueSize];
|
|
|
|
if (!pDataBuffer)
|
|
|
|
{
|
|
|
|
rConsole.Write(_T("Cannot load file into memory. Out of memory.\n"));
|
|
|
|
VERIFY(CloseHandle(hFile));
|
|
|
|
goto SkipCommand;
|
|
|
|
}
|
|
|
|
if (!ReadFile(hFile,pDataBuffer,dwValueSize,&dwBytesReaded,NULL))
|
|
|
|
{
|
|
|
|
rConsole.Write(_T("Cannot load file into memory. Error reading file.\n"));
|
|
|
|
VERIFY(CloseHandle(hFile));
|
|
|
|
goto SkipCommand;
|
|
|
|
}
|
2000-10-04 21:04:31 +00:00
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
VERIFY(CloseHandle(hFile));
|
|
|
|
ASSERT(dwBytesReaded == dwValueSize);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case REG_DWORD_LITTLE_ENDIAN:
|
|
|
|
case REG_DWORD_BIG_ENDIAN:
|
|
|
|
dwValueSize = 4;
|
|
|
|
pDataBuffer = (BYTE *) new BYTE [dwValueSize];
|
|
|
|
if (!StringToDWORD(*(DWORD *)pDataBuffer,pszValueData))
|
|
|
|
{
|
|
|
|
rConsole.Write(_T("Cannot convert "));
|
|
|
|
rConsole.Write(pszValueData);
|
|
|
|
rConsole.Write(_T(" to DWORD \n"));
|
|
|
|
goto SkipCommand;
|
|
|
|
}
|
|
|
|
if (dwType == REG_DWORD_BIG_ENDIAN)
|
|
|
|
{
|
|
|
|
unsigned char nByte;
|
|
|
|
nByte = *pDataBuffer;
|
|
|
|
*pDataBuffer = *(pDataBuffer+3);
|
|
|
|
*(pDataBuffer+3) = nByte;
|
|
|
|
nByte = *(pDataBuffer+1);
|
|
|
|
*(pDataBuffer+1) = *(pDataBuffer+2);
|
|
|
|
*(pDataBuffer+2) = nByte;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case REG_SZ:
|
|
|
|
case REG_EXPAND_SZ:
|
|
|
|
dwValueSize = _tcslen(pszValueData)+1;
|
|
|
|
if (*pszValueData == _T('\"'))
|
|
|
|
{
|
|
|
|
dwValueSize -= 2;
|
|
|
|
*(pszValueData+dwValueSize) = 0;
|
|
|
|
pszValueData++;
|
|
|
|
}
|
|
|
|
dwValueSize *= sizeof(TCHAR);
|
|
|
|
pDataBuffer = (BYTE *) new BYTE [dwValueSize];
|
2001-04-16 05:09:51 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
const TCHAR *pchSrc = pszValueData;
|
|
|
|
TCHAR *pchDest = (TCHAR *)pDataBuffer;
|
|
|
|
while(*pchSrc)
|
|
|
|
{
|
2001-04-24 23:05:56 +00:00
|
|
|
if (pchSrc[0] == _T('^'))
|
2001-04-16 05:09:51 +00:00
|
|
|
{
|
|
|
|
if (pchSrc[1] == _T('a'))
|
|
|
|
*pchDest = _T('\a');
|
|
|
|
else if (pchSrc[1] == _T('b'))
|
|
|
|
*pchDest = _T('\b');
|
|
|
|
else if (pchSrc[1] == _T('f'))
|
|
|
|
*pchDest = _T('\f');
|
|
|
|
else if (pchSrc[1] == _T('n'))
|
|
|
|
*pchDest = _T('\n');
|
|
|
|
else if (pchSrc[1] == _T('r'))
|
|
|
|
*pchDest = _T('\r');
|
|
|
|
else if (pchSrc[1] == _T('t'))
|
|
|
|
*pchDest = _T('\t');
|
|
|
|
else
|
|
|
|
*pchDest = pchSrc[1];
|
|
|
|
|
|
|
|
pchSrc +=2;
|
|
|
|
pchDest++;
|
|
|
|
dwValueSize--;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
*pchDest = *pchSrc;
|
|
|
|
pchSrc++;
|
|
|
|
pchDest++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*pchDest = _T('\0');
|
|
|
|
}
|
2001-01-10 01:25:29 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
ASSERT(FALSE);
|
|
|
|
}
|
2000-10-04 21:04:31 +00:00
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
{
|
|
|
|
size_t s = _tcslen(pszValueName);
|
|
|
|
if (s && (pszValueName[0] == _T('\"'))&&(pszValueName[s-1] == _T('\"')))
|
|
|
|
{
|
|
|
|
pszValueName[s-1] = 0;
|
|
|
|
pszValueName++;
|
|
|
|
}
|
|
|
|
}
|
2000-10-04 21:04:31 +00:00
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
nError = Key.SetValue(pszValueName,dwType,pDataBuffer,dwValueSize);
|
|
|
|
if (nError != ERROR_SUCCESS)
|
|
|
|
{
|
|
|
|
char Buffer[254];
|
|
|
|
_stprintf(Buffer,_T("Cannot set value. Error is %u\n"),(unsigned int)nError);
|
|
|
|
rConsole.Write(Buffer);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
InvalidateCompletion();
|
|
|
|
}
|
2000-10-04 21:04:31 +00:00
|
|
|
|
2001-01-10 01:25:29 +00:00
|
|
|
SkipCommand:
|
2000-10-04 21:04:31 +00:00
|
|
|
if (pDataBuffer)
|
|
|
|
delete pDataBuffer;
|
|
|
|
return 0;
|
2001-01-10 01:25:29 +00:00
|
|
|
|
|
|
|
CommandNAonRoot:
|
|
|
|
rConsole.Write(SET_VALUE_CMD COMMAND_NA_ON_ROOT);
|
|
|
|
return 0;
|
2000-10-04 21:04:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const TCHAR * CShellCommandSetValue::GetHelpString()
|
|
|
|
{
|
|
|
|
return SET_VALUE_CMD_SHORT_DESC
|
|
|
|
_T("Syntax: ") SET_VALUE_CMD _T(" <TYPE> <VALUE> [<PATH>][<VALUE_NAME>] [/?]\n\n")
|
|
|
|
_T(" <TYPE> - Type of value to be set. Must be one of following:\n")
|
|
|
|
_T(" b - binary value.\n")
|
|
|
|
_T(" dw - A 32-bit number.\n")
|
|
|
|
_T(" dwle - A 32-bit number in little-endian format.\n")
|
|
|
|
_T(" dwbe - A 32-bit number in big-endian format.\n")
|
|
|
|
_T(" sz - A null-terminated string.\n")
|
|
|
|
_T(" esz - A null-terminated string that contains unexpanded\n")
|
|
|
|
_T(" references to environment variables.\n")
|
|
|
|
// _T(" msz - An array of null-terminated strings,\n")
|
|
|
|
// _T(" terminated by two null characters.\n")
|
|
|
|
_T(" <VALUE> - The data to be set. According to <TYPE>, <VALUE> means:\n")
|
|
|
|
_T(" b - name of file from which to read binary data.\n")
|
|
|
|
_T(" dw \\\n")
|
|
|
|
_T(" dwle - number with syntax: [0 [{ x | X }]] [digits]\n")
|
|
|
|
_T(" dwbe /\n")
|
|
|
|
_T(" sz \\\n")
|
|
|
|
_T(" esz - <VALUE> string is interpreted as string\n")
|
2001-04-24 23:05:56 +00:00
|
|
|
_T(" <PATH> - Optional relative path of key which value will be processed. ^ is the escape char\n")
|
2000-10-04 21:04:31 +00:00
|
|
|
_T(" <VALUE_NAME> - Name of key's value. Default is key's default value.\n")
|
|
|
|
_T(" /? - This help.\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
const TCHAR * CShellCommandSetValue::GetHelpShortDescriptionString()
|
|
|
|
{
|
|
|
|
return SET_VALUE_CMD_SHORT_DESC;
|
|
|
|
}
|