RtlCreateUnicodeString->RtlpCreateUnicodeString

svn path=/trunk/; revision=13383
This commit is contained in:
Gunnar Dalsnes 2005-02-01 17:53:55 +00:00
parent 2eaa151579
commit 6705201337
20 changed files with 41 additions and 43 deletions

View file

@ -196,12 +196,12 @@ CmImportSystemHive(PCHAR ChunkBase,
}
/* Set the hive filename */
RtlCreateUnicodeString (&RegistryHive->HiveFileName,
SYSTEM_REG_FILE);
RtlpCreateUnicodeString (&RegistryHive->HiveFileName,
SYSTEM_REG_FILE, NonPagedPool);
/* Set the log filename */
RtlCreateUnicodeString (&RegistryHive->LogFileName,
SYSTEM_LOG_FILE);
RtlpCreateUnicodeString (&RegistryHive->LogFileName,
SYSTEM_LOG_FILE, NonPagedPool);
return TRUE;
}

View file

@ -200,8 +200,7 @@ NtCreateKey(OUT PHANDLE KeyHandle,
}
else
{
RtlCreateUnicodeString(&KeyObject->Name,
Start);
RtlpCreateUnicodeString(&KeyObject->Name, Start, NonPagedPool);
RtlFreeUnicodeString(&RemainingPath);
}

View file

@ -863,11 +863,11 @@ CmiInitNonVolatileRegistryHive (PREGISTRY_HIVE RegistryHive,
RegistryHive, Filename);
/* Duplicate Filename */
Status = RtlCreateUnicodeString(&RegistryHive->HiveFileName,
Filename);
Status = RtlpCreateUnicodeString(&RegistryHive->HiveFileName,
Filename, NonPagedPool);
if (!NT_SUCCESS(Status))
{
DPRINT("RtlCreateUnicodeString() failed (Status %lx)\n", Status);
DPRINT("RtlpCreateUnicodeString() failed (Status %lx)\n", Status);
return(Status);
}

View file

@ -315,7 +315,7 @@ CmInitializeRegistry(VOID)
RootKey->NumberOfSubKeys = 0;
RootKey->SubKeys = NULL;
RootKey->SizeOfSubKeys = 0;
Status = RtlCreateUnicodeString(&RootKey->Name, L"Registry");
Status = RtlpCreateUnicodeString(&RootKey->Name, L"Registry", NonPagedPool);
ASSERT(NT_SUCCESS(Status));
#if 0
@ -662,12 +662,12 @@ CmiConnectHive(IN POBJECT_ATTRIBUTES KeyObjectAttributes,
DPRINT ("SubName %S\n", SubName);
Status = RtlCreateUnicodeString(&NewKey->Name,
SubName);
Status = RtlpCreateUnicodeString(&NewKey->Name,
SubName, NonPagedPool);
RtlFreeUnicodeString(&RemainingPath);
if (!NT_SUCCESS(Status))
{
DPRINT1("RtlCreateUnicodeString() failed (Status %lx)\n", Status);
DPRINT1("RtlpCreateUnicodeString() failed (Status %lx)\n", Status);
if (NewKey->SubKeys != NULL)
{
ExFreePool (NewKey->SubKeys);

View file

@ -160,8 +160,8 @@ CmiObjectParse(PVOID ParsedObject,
FoundObject->KeyCell = SubKeyCell;
FoundObject->KeyCellOffset = BlockOffset;
FoundObject->RegistryHive = ParsedKey->RegistryHive;
RtlCreateUnicodeString(&FoundObject->Name,
KeyName.Buffer);
RtlpCreateUnicodeString(&FoundObject->Name,
KeyName.Buffer, NonPagedPool);
CmiAddKeyToList(ParsedKey, FoundObject);
DPRINT("Created object 0x%x\n", FoundObject);
}
@ -248,8 +248,8 @@ CmiObjectCreate(PVOID ObjectBody,
Start = RemainingPath;
if(*Start == L'\\')
Start++;
RtlCreateUnicodeString(&KeyObject->Name,
Start);
RtlpCreateUnicodeString(&KeyObject->Name,
Start, NonPagedPool);
}
else
{

View file

@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/
/* $Id:$
/* $Id$
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -715,7 +715,7 @@ KdbpSymAddCachedFile(IN PUNICODE_STRING FileName,
RtlZeroMemory(CacheEntry, sizeof (IMAGE_SYMBOL_INFO_CACHE));
/* fill entry */
RtlCreateUnicodeString(&CacheEntry->FileName, FileName->Buffer);
RtlpCreateUnicodeString(&CacheEntry->FileName, FileName->Buffer, NonPagedPool);
ASSERT(CacheEntry->FileName.Buffer);
CacheEntry->RefCount = 1;
CacheEntry->FileBuffer = SymbolInfo->FileBuffer;

View file

@ -54,7 +54,7 @@ ExpInitializeEventImplementation(VOID)
{
ExEventObjectType = ExAllocatePool(NonPagedPool,sizeof(OBJECT_TYPE));
RtlCreateUnicodeString(&ExEventObjectType->TypeName, L"Event");
RtlpCreateUnicodeString(&ExEventObjectType->TypeName, L"Event", NonPagedPool);
ExEventObjectType->Tag = TAG('E', 'V', 'T', 'T');
ExEventObjectType->PeakObjects = 0;

View file

@ -60,7 +60,7 @@ ExpInitializeEventPairImplementation(VOID)
{
ExEventPairObjectType = ExAllocatePool(NonPagedPool,sizeof(OBJECT_TYPE));
RtlCreateUnicodeString(&ExEventPairObjectType->TypeName, L"EventPair");
RtlpCreateUnicodeString(&ExEventPairObjectType->TypeName, L"EventPair", NonPagedPool);
ExEventPairObjectType->Tag = TAG('E', 'v', 'P', 'a');
ExEventPairObjectType->PeakObjects = 0;
ExEventPairObjectType->PeakHandles = 0;

View file

@ -65,7 +65,7 @@ ExpInitializeMutantImplementation(VOID)
{
ExMutantObjectType = ExAllocatePool(NonPagedPool,sizeof(OBJECT_TYPE));
RtlCreateUnicodeString(&ExMutantObjectType->TypeName, L"Mutant");
RtlpCreateUnicodeString(&ExMutantObjectType->TypeName, L"Mutant", NonPagedPool);
ExMutantObjectType->Tag = TAG('M', 'T', 'N', 'T');
ExMutantObjectType->PeakObjects = 0;

View file

@ -68,7 +68,7 @@ ExpInitializeProfileImplementation(VOID)
ExProfileObjectType = ExAllocatePool(NonPagedPool,sizeof(OBJECT_TYPE));
RtlCreateUnicodeString(&ExProfileObjectType->TypeName, L"Profile");
RtlpCreateUnicodeString(&ExProfileObjectType->TypeName, L"Profile", NonPagedPool);
ExProfileObjectType->Tag = TAG('P', 'R', 'O', 'F');
ExProfileObjectType->PeakObjects = 0;

View file

@ -53,7 +53,7 @@ ExpInitializeSemaphoreImplementation(VOID)
{
ExSemaphoreObjectType = ExAllocatePool(NonPagedPool, sizeof(OBJECT_TYPE));
RtlCreateUnicodeString(&ExSemaphoreObjectType->TypeName, L"Semaphore");
RtlpCreateUnicodeString(&ExSemaphoreObjectType->TypeName, L"Semaphore", NonPagedPool);
ExSemaphoreObjectType->Tag = TAG('S', 'E', 'M', 'T');
ExSemaphoreObjectType->PeakObjects = 0;

View file

@ -119,7 +119,7 @@ ExpInitializeTimerImplementation(VOID)
ASSERT(!ExTimerType)
ExTimerType = ExAllocatePool(NonPagedPool, sizeof(OBJECT_TYPE));
RtlCreateUnicodeString(&ExTimerType->TypeName, L"Timer");
RtlpCreateUnicodeString(&ExTimerType->TypeName, L"Timer", NonPagedPool);
ExTimerType->Tag = TAG('T', 'I', 'M', 'T');
ExTimerType->PeakObjects = 0;

View file

@ -1,4 +1,4 @@
/* $Id:$
/* $Id$
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -84,7 +84,7 @@ ExpWinStaObjectCreate(PVOID ObjectBody,
DPRINT("Creating window station (0x%X) Name (%wZ)\n", WinSta, &UnicodeString);
Status = RtlCreateUnicodeString(&WinSta->Name, UnicodeString.Buffer);
Status = RtlpCreateUnicodeString(&WinSta->Name, UnicodeString.Buffer, NonPagedPool);
if (!NT_SUCCESS(Status))
{
return Status;
@ -247,7 +247,7 @@ ExpDesktopObjectCreate(PVOID ObjectBody,
&Desktop->ListEntry,
&Desktop->WindowStation->Lock);
return RtlCreateUnicodeString(&Desktop->Name, UnicodeString.Buffer);
return RtlpCreateUnicodeString(&Desktop->Name, UnicodeString.Buffer, NonPagedPool);
}
VOID STDCALL

View file

@ -147,8 +147,8 @@ IopCreateFile(PVOID ObjectBody,
DeviceObject = DeviceObject->Vpb->DeviceObject;
DPRINT("FsDeviceObject %lx\n", DeviceObject);
}
RtlCreateUnicodeString(&(FileObject->FileName),
RemainingPath);
RtlpCreateUnicodeString(&(FileObject->FileName),
RemainingPath, NonPagedPool);
}
}
else
@ -165,8 +165,8 @@ IopCreateFile(PVOID ObjectBody,
FileObject->RelatedFileObject = (PFILE_OBJECT)Parent;
RtlCreateUnicodeString(&(FileObject->FileName),
RemainingPath);
RtlpCreateUnicodeString(&(FileObject->FileName),
RemainingPath, NonPagedPool);
}
DPRINT("FileObject->FileName %wZ\n",

View file

@ -794,8 +794,7 @@ IopCreateGroupListEntry(PWSTR ValueName,
RtlZeroMemory(Group, sizeof(SERVICE_GROUP));
if (!RtlCreateUnicodeString(&Group->GroupName,
(PWSTR)ValueData))
if (!RtlpCreateUnicodeString(&Group->GroupName, (PWSTR)ValueData, NonPagedPool))
{
ExFreePool(Group);
return(STATUS_INSUFFICIENT_RESOURCES);
@ -1864,7 +1863,7 @@ NtLoadDriver(IN PUNICODE_STRING DriverServiceName)
Start = DriverServiceName->Buffer;
else
Start++;
RtlCreateUnicodeString(&DeviceNode->ServiceName, Start);
RtlpCreateUnicodeString(&DeviceNode->ServiceName, Start, NonPagedPool);
/*
* Initialize the driver module

View file

@ -1,4 +1,4 @@
/* $Id:$
/* $Id$
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -119,7 +119,7 @@ IopInitIoCompletionImplementation(VOID)
{
ExIoCompletionType = ExAllocatePool(NonPagedPool, sizeof(OBJECT_TYPE));
RtlCreateUnicodeString(&ExIoCompletionType->TypeName, L"IoCompletion");
RtlpCreateUnicodeString(&ExIoCompletionType->TypeName, L"IoCompletion", NonPagedPool);
ExIoCompletionType->Tag = IOC_TAG;
ExIoCompletionType->PeakObjects = 0;

View file

@ -195,7 +195,7 @@ ObpAddEntryDirectory(PDIRECTORY_OBJECT Parent,
{
KIRQL oldlvl;
RtlCreateUnicodeString(&Header->Name, Name);
RtlpCreateUnicodeString(&Header->Name, Name, NonPagedPool);
Header->Parent = Parent;
KeAcquireSpinLock(&Parent->Lock, &oldlvl);

View file

@ -439,7 +439,7 @@ ObFindObject(POBJECT_ATTRIBUTES ObjectAttributes,
}
if (current)
RtlCreateUnicodeString (RemainingPath, current);
RtlpCreateUnicodeString (RemainingPath, current, NonPagedPool);
RtlFreeUnicodeString (&PathString);
*ReturnedObject = CurrentObject;

View file

@ -377,8 +377,8 @@ RtlAddAtomToAtomTable(IN PRTL_ATOM_TABLE AtomTable,
}
InsertTailList(&AtomTable->Slot[Hash], &Entry->List);
RtlCreateUnicodeString (&Entry->Name,
AtomName);
RtlpCreateUnicodeString (&Entry->Name,
AtomName, NonPagedPool);
Entry->RefCount = 1;
Entry->Locked = FALSE;

View file

@ -547,8 +547,8 @@ SepInitializeTokenImplementation(VOID)
SepTokenObjectType->Create = NULL;
SepTokenObjectType->DuplicationNotify = NULL;
RtlCreateUnicodeString(&SepTokenObjectType->TypeName,
L"Token");
RtlpCreateUnicodeString(&SepTokenObjectType->TypeName,
L"Token", NonPagedPool);
ObpCreateTypeObject (SepTokenObjectType);
}