Make regexpl build again. (I know I really should fix this to be unicode)

BTW this is a kick ass tool that does work over the network. I just tested it
editing the registry on the wifes box.

svn path=/trunk/; revision=11268
This commit is contained in:
Steven Edwards 2004-10-11 01:24:22 +00:00
parent ee08f03b99
commit e9542274b4
6 changed files with 21 additions and 19 deletions

View file

@ -1,4 +1,4 @@
/* $Id: ShellCommandDACL.cpp,v 1.4 2001/01/13 23:55:36 narnaoud Exp $ /* $Id: ShellCommandDACL.cpp,v 1.5 2004/10/11 01:24:22 sedwards Exp $
* *
* regexpl - Console Registry Explorer * regexpl - Console Registry Explorer
* *
@ -172,7 +172,7 @@ CheckDACLArgument:
DWORD nACECount = sd.GetDACLEntriesCount(); DWORD nACECount = sd.GetDACLEntriesCount();
rConsole.Write(_T("DACL has ")); rConsole.Write(_T("DACL has "));
TCHAR Buffer[256]; TCHAR Buffer[256];
rConsole.Write(_itot(nACECount,Buffer,10)); rConsole.Write(_itoa(nACECount,Buffer,10));
rConsole.Write(_T(" ACEs.\n")); rConsole.Write(_T(" ACEs.\n"));
if (nACECount == 0) if (nACECount == 0)
{ {
@ -184,7 +184,7 @@ CheckDACLArgument:
{ {
rConsole.Write(_T("\n")); rConsole.Write(_T("\n"));
rConsole.Write(_T("\tACE Index: ")); rConsole.Write(_T("\tACE Index: "));
rConsole.Write(_itot(i,Buffer,10)); rConsole.Write(_itoa(i,Buffer,10));
rConsole.Write(_T("\n")); rConsole.Write(_T("\n"));
rConsole.Write(_T("\tACE Type: ")); rConsole.Write(_T("\tACE Type: "));
switch (sd.GetDACLEntry(i)) switch (sd.GetDACLEntry(i))
@ -217,7 +217,7 @@ CheckDACLArgument:
ASSERT(dwError != ERROR_INSUFFICIENT_BUFFER); ASSERT(dwError != ERROR_INSUFFICIENT_BUFFER);
rConsole.Write(_T("Error ")); rConsole.Write(_T("Error "));
TCHAR Buffer[256]; TCHAR Buffer[256];
rConsole.Write(_itot(dwError,Buffer,10)); rConsole.Write(_itoa(dwError,Buffer,10));
rConsole.Write(_T("\nGetting string representation of SID\n")); rConsole.Write(_T("\nGetting string representation of SID\n"));
} }
else else
@ -238,7 +238,7 @@ CheckDACLArgument:
{ {
rConsole.Write(_T("Error ")); rConsole.Write(_T("Error "));
TCHAR Buffer[256]; TCHAR Buffer[256];
rConsole.Write(_itot(GetLastError(),Buffer,10)); rConsole.Write(_itoa(GetLastError(),Buffer,10));
rConsole.Write(_T("\n")); rConsole.Write(_T("\n"));
} }
else else
@ -358,7 +358,7 @@ AbortDumpDACL:
{ {
rConsole.Write(_T("Error ")); rConsole.Write(_T("Error "));
TCHAR Buffer[256]; TCHAR Buffer[256];
rConsole.Write(_itot(dwError,Buffer,10)); rConsole.Write(_itoa(dwError,Buffer,10));
rConsole.Write(_T("\n")); rConsole.Write(_T("\n"));
if (pchName) delete [] pchName; if (pchName) delete [] pchName;
if (pchDomainName) delete [] pchDomainName; if (pchDomainName) delete [] pchDomainName;

View file

@ -1,4 +1,4 @@
/* $Id: ShellCommandDir.cpp,v 1.4 2001/01/13 23:55:37 narnaoud Exp $ /* $Id: ShellCommandDir.cpp,v 1.5 2004/10/11 01:24:22 sedwards Exp $
* *
* regexpl - Console Registry Explorer * regexpl - Console Registry Explorer
* *
@ -269,7 +269,7 @@ CheckDirArgument:
{ {
rConsole.Write(_T("Error ")); rConsole.Write(_T("Error "));
TCHAR Buffer[256]; TCHAR Buffer[256];
rConsole.Write(_itot(nError,Buffer,10)); rConsole.Write(_itoa(nError,Buffer,10));
rConsole.Write(_T("\n")); rConsole.Write(_T("\n"));
} }

View file

@ -1,4 +1,4 @@
/* $Id: ShellCommandOwner.cpp,v 1.4 2001/01/13 23:55:37 narnaoud Exp $ /* $Id: ShellCommandOwner.cpp,v 1.5 2004/10/11 01:24:22 sedwards Exp $
* *
* regexpl - Console Registry Explorer * regexpl - Console Registry Explorer
* *
@ -176,7 +176,7 @@ CheckOwnerArgument:
ASSERT(dwError != ERROR_INSUFFICIENT_BUFFER); ASSERT(dwError != ERROR_INSUFFICIENT_BUFFER);
rConsole.Write(_T("Error ")); rConsole.Write(_T("Error "));
TCHAR Buffer[256]; TCHAR Buffer[256];
rConsole.Write(_itot(dwError,Buffer,10)); rConsole.Write(_itoa(dwError,Buffer,10));
rConsole.Write(_T("\nGetting string representation of SID\n")); rConsole.Write(_T("\nGetting string representation of SID\n"));
} }
else else
@ -222,7 +222,7 @@ CheckOwnerArgument:
{ {
rConsole.Write(_T("Error ")); rConsole.Write(_T("Error "));
TCHAR Buffer[256]; TCHAR Buffer[256];
rConsole.Write(_itot(dwError,Buffer,10)); rConsole.Write(_itoa(dwError,Buffer,10));
rConsole.Write(_T("\n")); rConsole.Write(_T("\n"));
if (pchName) delete [] pchName; if (pchName) delete [] pchName;
if (pchDomainName) delete [] pchDomainName; if (pchDomainName) delete [] pchDomainName;

View file

@ -1,4 +1,4 @@
/* $Id: ShellCommandSACL.cpp,v 1.4 2001/01/13 23:55:37 narnaoud Exp $ /* $Id: ShellCommandSACL.cpp,v 1.5 2004/10/11 01:24:22 sedwards Exp $
* *
* regexpl - Console Registry Explorer * regexpl - Console Registry Explorer
* *
@ -255,7 +255,7 @@ CheckSACLArgument:
nACECount = sd.GetSACLEntriesCount(); nACECount = sd.GetSACLEntriesCount();
rConsole.Write(_T("SACL has ")); rConsole.Write(_T("SACL has "));
TCHAR Buffer[256]; TCHAR Buffer[256];
rConsole.Write(_itot(nACECount,Buffer,10)); rConsole.Write(_itoa(nACECount,Buffer,10));
rConsole.Write(_T(" ACEs.\n")); rConsole.Write(_T(" ACEs.\n"));
ASSERT(sizeof(ACL) == 8); ASSERT(sizeof(ACL) == 8);
rConsole.Write(_T("\n")); rConsole.Write(_T("\n"));
@ -263,7 +263,7 @@ CheckSACLArgument:
{ {
rConsole.Write(_T("\n")); rConsole.Write(_T("\n"));
rConsole.Write(_T("\tACE Index: ")); rConsole.Write(_T("\tACE Index: "));
rConsole.Write(_itot(i,Buffer,10)); rConsole.Write(_itoa(i,Buffer,10));
rConsole.Write(_T("\n")); rConsole.Write(_T("\n"));
rConsole.Write(_T("\tAudit Type: ")); rConsole.Write(_T("\tAudit Type: "));
BOOL blnFailed, blnSuccessful; BOOL blnFailed, blnSuccessful;
@ -306,7 +306,7 @@ CheckSACLArgument:
ASSERT(dwError != ERROR_INSUFFICIENT_BUFFER); ASSERT(dwError != ERROR_INSUFFICIENT_BUFFER);
rConsole.Write(_T("Error ")); rConsole.Write(_T("Error "));
TCHAR Buffer[256]; TCHAR Buffer[256];
rConsole.Write(_itot(dwError,Buffer,10)); rConsole.Write(_itoa(dwError,Buffer,10));
rConsole.Write(_T("\nGetting string representation of SID\n")); rConsole.Write(_T("\nGetting string representation of SID\n"));
} }
else else
@ -342,7 +342,7 @@ CheckSACLArgument:
{ {
rConsole.Write(_T("Error ")); rConsole.Write(_T("Error "));
TCHAR Buffer[256]; TCHAR Buffer[256];
rConsole.Write(_itot(GetLastError(),Buffer,10)); rConsole.Write(_itoa(GetLastError(),Buffer,10));
rConsole.Write(_T("\n")); rConsole.Write(_T("\n"));
} }
else else

View file

@ -1,4 +1,4 @@
/* $Id: ShellCommandValue.cpp,v 1.4 2001/01/13 23:55:37 narnaoud Exp $ /* $Id: ShellCommandValue.cpp,v 1.5 2004/10/11 01:24:22 sedwards Exp $
* *
* regexpl - Console Registry Explorer * regexpl - Console Registry Explorer
* *
@ -399,7 +399,7 @@ CheckValueArgument:
{ {
rConsole.Write(_T("Error ")); rConsole.Write(_T("Error "));
TCHAR Buffer[256]; TCHAR Buffer[256];
rConsole.Write(_itot(nError,Buffer,10)); rConsole.Write(_itoa(nError,Buffer,10));
rConsole.Write(_T("\n")); rConsole.Write(_T("\n"));
if (nError == ERROR_FILE_NOT_FOUND) if (nError == ERROR_FILE_NOT_FOUND)
{ {

View file

@ -1,4 +1,4 @@
/* $Id: ph.h,v 1.4 2002/09/09 22:48:03 sedwards Exp $ */ /* $Id: ph.h,v 1.5 2004/10/11 01:24:22 sedwards Exp $ */
// ph.h : include file for standard system include files, // ph.h : include file for standard system include files,
// or project specific include files that are used frequently, but // or project specific include files that are used frequently, but
@ -24,6 +24,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <wchar.h> #include <wchar.h>
#include <assert.h> #include <assert.h>
#include <ctype.h>
#include <tchar.h>
#define ASSERT assert #define ASSERT assert
#ifdef _DEBUG #ifdef _DEBUG
#define VERIFY ASSERT #define VERIFY ASSERT