classes will be allocated from the shared heap */
UserRegisterSystemClasses();
- while(TRUE)
+ while (TRUE)
{
Ret = co_IntGetPeekMessage(&Msg, 0, 0, 0, PM_REMOVE, TRUE);
if (Ret)
TRACE("IntMapDesktopView called for desktop object 0x%p\n", pdesk);
ppi = PsGetCurrentProcessWin32Process();
- PrevLink = &ppi->HeapMappings.Next;
/* Find out if another thread already mapped the desktop heap */
+ PrevLink = &ppi->HeapMappings.Next;
HeapMapping = *PrevLink;
while (HeapMapping != NULL)
{
return STATUS_SUCCESS;
}
- PrevLink = &HeapMapping->Next;
+ PrevLink = &HeapMapping->Next;
HeapMapping = HeapMapping->Next;
}
static
NTSTATUS
-CreateProcessInfo(PEPROCESS Process)
+UserCreateProcessInfo(PEPROCESS Process)
{
PPROCESSINFO ppiCurrent;
NTSTATUS Status;
TRACE_CH(UserProcess,"Allocated ppi 0x%p for PID:0x%lx\n", ppiCurrent, HandleToUlong(Process->UniqueProcessId));
- /* map the global heap into the process */
+ /* Map the global heap into the process */
Offset.QuadPart = 0;
Status = MmMapViewOfSection(GlobalUserHeapSection,
PsGetCurrentProcess(),
KeInitializeEvent(ppiCurrent->InputIdleEvent, NotificationEvent, FALSE);
-
- /* map the gdi handle table to user land */
+ /* Map the gdi handle table to user land */
Process->Peb->GdiSharedHandleTable = GDI_MapHandleTable(Process);
Process->Peb->GdiDCAttributeList = GDI_BATCH_LIMIT;
pParams = Process->Peb->ProcessParameters;
ppiCurrent->peProcess = Process;
- /* setup process flags */
+ /* Setup process flags */
ppiCurrent->W32PF_flags = W32PF_THREADCONNECTED;
if ( pParams &&
ppiCurrent->W32PF_flags |= W32PF_SCREENSAVER;
}
- // Fixme check if this process is allowed.
+ // FIXME: check if this process is allowed.
ppiCurrent->W32PF_flags |= W32PF_ALLOWFOREGROUNDACTIVATE; // Starting application it will get toggled off.
/* Create pools for GDI object attributes */
static
NTSTATUS
-DestroyProcessInfo(PEPROCESS Process)
+UserDestroyProcessInfo(PEPROCESS Process)
{
PPROCESSINFO ppiCurrent, *pppi;
if (Create)
{
- Status = CreateProcessInfo(Process);
+ Status = UserCreateProcessInfo(Process);
}
else
{
- Status = DestroyProcessInfo(Process);
+ Status = UserDestroyProcessInfo(Process);
}
UserLeave();