Author: mnordell
Date: Tue Oct 16 12:52:09 2007
New Revision: 29626
URL:
http://svn.reactos.org/svn/reactos?rev=29626&view=rev
Log:
const-correctness cleanup. 'CONST UNICODE_STRING*' -> PCUNICODE_STRING
Modified:
trunk/reactos/lib/cmlib/hiveinit.c
trunk/reactos/ntoskrnl/cm/cm.h
trunk/reactos/ntoskrnl/cm/regfile.c
trunk/reactos/ntoskrnl/cm/regobj.c
trunk/reactos/ntoskrnl/config/cm.h
trunk/reactos/ntoskrnl/config/cmindex.c
trunk/reactos/ntoskrnl/config/cminit.c
trunk/reactos/ntoskrnl/config/cmname.c
trunk/reactos/ntoskrnl/config/cmsysini.c
trunk/reactos/ntoskrnl/config/cmvalche.c
Modified: trunk/reactos/lib/cmlib/hiveinit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/cmlib/hiveinit.c?rev=2…
==============================================================================
--- trunk/reactos/lib/cmlib/hiveinit.c (original)
+++ trunk/reactos/lib/cmlib/hiveinit.c Tue Oct 16 12:52:09 2007
@@ -440,7 +440,7 @@
PFILE_WRITE_ROUTINE FileWrite,
PFILE_SET_SIZE_ROUTINE FileSetSize,
PFILE_FLUSH_ROUTINE FileFlush,
- IN const UNICODE_STRING* FileName)
+ IN PCUNICODE_STRING FileName)
{
NTSTATUS Status;
PHHIVE Hive = RegistryHive;
Modified: trunk/reactos/ntoskrnl/cm/cm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cm/cm.h?rev=29626…
==============================================================================
--- trunk/reactos/ntoskrnl/cm/cm.h (original)
+++ trunk/reactos/ntoskrnl/cm/cm.h Tue Oct 16 12:52:09 2007
@@ -169,13 +169,13 @@
NTSTATUS
CmiScanKeyList(IN PKEY_OBJECT Parent,
- IN CONST UNICODE_STRING* KeyName,
+ IN PCUNICODE_STRING KeyName,
IN ULONG Attributes,
PKEY_OBJECT* ReturnedObject);
NTSTATUS
CmiLoadHive(POBJECT_ATTRIBUTES KeyObjectAttributes,
- CONST UNICODE_STRING* FileName,
+ PCUNICODE_STRING FileName,
ULONG Flags);
NTSTATUS
@@ -200,7 +200,7 @@
IN PCM_KEY_NODE KeyCell,
OUT PCM_KEY_NODE *SubKeyCell,
OUT HCELL_INDEX *BlockOffset,
- IN CONST UNICODE_STRING* KeyName,
+ IN PCUNICODE_STRING KeyName,
IN ACCESS_MASK DesiredAccess,
IN ULONG Attributes);
@@ -324,7 +324,7 @@
CmpFindSubKeyByName(
IN PHHIVE Hive,
IN PCM_KEY_NODE Parent,
- IN CONST UNICODE_STRING* SearchName
+ IN PCUNICODE_STRING SearchName
);
VOID
@@ -346,7 +346,7 @@
/* cm/cm.h and config/cm.h. TODO: Pick one single place to declare it. */
NTSTATUS
NTAPI
-CmpOpenHiveFiles(IN CONST UNICODE_STRING* BaseName,
+CmpOpenHiveFiles(IN PCUNICODE_STRING BaseName,
IN PCWSTR Extension OPTIONAL,
IN PHANDLE Primary,
IN PHANDLE Log,
@@ -359,7 +359,7 @@
NTSTATUS
NTAPI
-CmpInitHiveFromFile(IN CONST UNICODE_STRING* HiveName,
+CmpInitHiveFromFile(IN PCUNICODE_STRING HiveName,
IN ULONG HiveFlags,
OUT PEREGISTRY_HIVE *Hive,
IN OUT PBOOLEAN New,
Modified: trunk/reactos/ntoskrnl/cm/regfile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cm/regfile.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/cm/regfile.c (original)
+++ trunk/reactos/ntoskrnl/cm/regfile.c Tue Oct 16 12:52:09 2007
@@ -24,7 +24,7 @@
NTSTATUS
CmiLoadHive(IN POBJECT_ATTRIBUTES KeyObjectAttributes,
- IN CONST UNICODE_STRING* FileName,
+ IN PCUNICODE_STRING FileName,
IN ULONG Flags)
{
PEREGISTRY_HIVE Hive = NULL;
@@ -280,7 +280,7 @@
IN PCM_KEY_NODE KeyCell,
OUT PCM_KEY_NODE *SubKeyCell,
OUT HCELL_INDEX *BlockOffset,
- IN CONST UNICODE_STRING* KeyName,
+ IN PCUNICODE_STRING KeyName,
IN ACCESS_MASK DesiredAccess,
IN ULONG Attributes)
{
Modified: trunk/reactos/ntoskrnl/cm/regobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cm/regobj.c?rev=2…
==============================================================================
--- trunk/reactos/ntoskrnl/cm/regobj.c (original)
+++ trunk/reactos/ntoskrnl/cm/regobj.c Tue Oct 16 12:52:09 2007
@@ -756,7 +756,7 @@
/* Preconditions: Must be called with CmpRegistryLock held. */
NTSTATUS
CmiScanKeyList(PKEY_OBJECT Parent,
- CONST UNICODE_STRING* KeyName,
+ PCUNICODE_STRING KeyName,
ULONG Attributes,
PKEY_OBJECT* ReturnedObject)
{
Modified: trunk/reactos/ntoskrnl/config/cm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cm.h?rev=2…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cm.h (original)
+++ trunk/reactos/ntoskrnl/config/cm.h Tue Oct 16 12:52:09 2007
@@ -762,7 +762,7 @@
NTAPI
CmpFindValueByNameFromCache(
IN PKEY_OBJECT KeyObject,
- IN CONST UNICODE_STRING* Name,
+ IN PCUNICODE_STRING Name,
OUT PCM_CACHED_VALUE **CachedValue,
OUT ULONG *Index,
OUT PCM_KEY_VALUE *Value,
@@ -933,7 +933,7 @@
IN HANDLE Primary,
IN HANDLE Log,
IN HANDLE External,
- IN CONST UNICODE_STRING* FileName OPTIONAL,
+ IN PCUNICODE_STRING FileName OPTIONAL,
IN ULONG CheckFlags
);
@@ -958,7 +958,7 @@
NTSTATUS
NTAPI
CmpOpenHiveFiles(
- IN CONST UNICODE_STRING* BaseName,
+ IN PCUNICODE_STRING BaseName,
IN PCWSTR Extension OPTIONAL,
IN PHANDLE Primary,
IN PHANDLE Log,
@@ -1049,7 +1049,7 @@
LONG
NTAPI
CmpCompareCompressedName(
- IN CONST UNICODE_STRING* SearchName,
+ IN PCUNICODE_STRING SearchName,
IN PWCHAR CompressedName,
IN ULONG NameLength
);
@@ -1126,7 +1126,7 @@
CmpFindSubKeyByName(
IN PHHIVE Hive,
IN PCM_KEY_NODE Parent,
- IN CONST UNICODE_STRING* SearchName
+ IN PCUNICODE_STRING SearchName
);
HCELL_INDEX
@@ -1141,7 +1141,7 @@
NTAPI
CmpComputeHashKey(
IN ULONG Hash,
- IN CONST UNICODE_STRING* Name,
+ IN PCUNICODE_STRING Name,
IN BOOLEAN AllowSeparators
);
Modified: trunk/reactos/ntoskrnl/config/cmindex.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmindex.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmindex.c (original)
+++ trunk/reactos/ntoskrnl/config/cmindex.c Tue Oct 16 12:52:09 2007
@@ -30,7 +30,7 @@
static LONG
NTAPI
CmpDoCompareKeyName(IN PHHIVE Hive,
- IN CONST UNICODE_STRING* SearchName,
+ IN PCUNICODE_STRING SearchName,
IN HCELL_INDEX Cell)
{
PCM_KEY_NODE Node;
@@ -66,7 +66,7 @@
static LONG
NTAPI
CmpCompareInIndex(IN PHHIVE Hive,
- IN CONST UNICODE_STRING* SearchName,
+ IN PCUNICODE_STRING SearchName,
IN ULONG Count,
IN PCM_KEY_INDEX Index,
IN PHCELL_INDEX SubKey)
@@ -143,7 +143,7 @@
NTAPI
CmpFindSubKeyInRoot(IN PHHIVE Hive,
IN PCM_KEY_INDEX Index,
- IN CONST UNICODE_STRING* SearchName,
+ IN PCUNICODE_STRING SearchName,
IN PHCELL_INDEX SubKey)
{
ULONG High, Low = 0, i, ReturnIndex;
@@ -359,7 +359,7 @@
NTAPI
CmpFindSubKeyInLeaf(IN PHHIVE Hive,
IN PCM_KEY_INDEX Index,
- IN CONST UNICODE_STRING* SearchName,
+ IN PCUNICODE_STRING SearchName,
IN PHCELL_INDEX SubKey)
{
ULONG High, Low = 0, i;
@@ -473,7 +473,7 @@
ULONG
NTAPI
CmpComputeHashKey(IN ULONG Hash,
- IN CONST UNICODE_STRING* Name,
+ IN PCUNICODE_STRING Name,
IN BOOLEAN AllowSeparators)
{
LPWSTR Cp;
@@ -661,7 +661,7 @@
NTAPI
CmpFindSubKeyByHash(IN PHHIVE Hive,
IN PCM_KEY_FAST_INDEX FastIndex,
- IN CONST UNICODE_STRING* SearchName)
+ IN PCUNICODE_STRING SearchName)
{
ULONG HashKey, i;
PCM_INDEX FastEntry;
@@ -698,7 +698,7 @@
NTAPI
CmpFindSubKeyByName(IN PHHIVE Hive,
IN PCM_KEY_NODE Parent,
- IN CONST UNICODE_STRING* SearchName)
+ IN PCUNICODE_STRING SearchName)
{
ULONG i;
PCM_KEY_INDEX IndexRoot;
Modified: trunk/reactos/ntoskrnl/config/cminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cminit.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cminit.c (original)
+++ trunk/reactos/ntoskrnl/config/cminit.c Tue Oct 16 12:52:09 2007
@@ -25,7 +25,7 @@
IN HANDLE Primary,
IN HANDLE Log,
IN HANDLE External,
- IN CONST UNICODE_STRING* FileName OPTIONAL,
+ IN PCUNICODE_STRING FileName OPTIONAL,
IN ULONG CheckFlags)
{
#if 0
@@ -240,7 +240,7 @@
NTSTATUS
NTAPI
-CmpOpenHiveFiles(IN CONST UNICODE_STRING* BaseName,
+CmpOpenHiveFiles(IN PCUNICODE_STRING BaseName,
IN PCWSTR Extension OPTIONAL,
IN PHANDLE Primary,
IN PHANDLE Log,
Modified: trunk/reactos/ntoskrnl/config/cmname.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmname.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmname.c (original)
+++ trunk/reactos/ntoskrnl/config/cmname.c Tue Oct 16 12:52:09 2007
@@ -107,7 +107,7 @@
LONG
NTAPI
-CmpCompareCompressedName(IN CONST UNICODE_STRING* SearchName,
+CmpCompareCompressedName(IN PCUNICODE_STRING SearchName,
IN PWCHAR CompressedName,
IN ULONG NameLength)
{
Modified: trunk/reactos/ntoskrnl/config/cmsysini.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmsysini.c…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmsysini.c (original)
+++ trunk/reactos/ntoskrnl/config/cmsysini.c Tue Oct 16 12:52:09 2007
@@ -22,7 +22,7 @@
NTSTATUS
NTAPI
-CmpInitHiveFromFile(IN CONST UNICODE_STRING* HiveName,
+CmpInitHiveFromFile(IN PCUNICODE_STRING HiveName,
IN ULONG HiveFlags,
OUT PCMHIVE *Hive,
IN OUT PBOOLEAN New,
Modified: trunk/reactos/ntoskrnl/config/cmvalche.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cmvalche.c…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cmvalche.c (original)
+++ trunk/reactos/ntoskrnl/config/cmvalche.c Tue Oct 16 12:52:09 2007
@@ -186,7 +186,7 @@
VALUE_SEARCH_RETURN_TYPE
NTAPI
CmpFindValueByNameFromCache(IN PKEY_OBJECT KeyObject,
- IN CONST UNICODE_STRING* Name,
+ IN PCUNICODE_STRING Name,
OUT PCM_CACHED_VALUE **CachedValue,
OUT ULONG *Index,
OUT PCM_KEY_VALUE *Value,