Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 364 of file tuiconsole.c.
Referenced by CsrInitConsole().
{ HANDLE ThreadHandle; if (! ConsInitialized) { ConsInitialized = TRUE; if (! TuiInit(Console->CodePage)) { ConsInitialized = FALSE; return STATUS_UNSUCCESSFUL; } } Console->Vtbl = &TuiVtbl; Console->hWindow = NULL; Console->Size = PhysicalConsoleSize; Console->ActiveBuffer->MaxX = PhysicalConsoleSize.X; Console->ActiveBuffer->MaxY = PhysicalConsoleSize.Y; ThreadHandle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) TuiConsoleThread, Console, 0, NULL); if (NULL == ThreadHandle) { DPRINT1("CSR: Unable to create console thread\n"); return STATUS_UNSUCCESSFUL; } CloseHandle(ThreadHandle); EnterCriticalSection(&ActiveConsoleLock); if (NULL != ActiveConsole) { Console->Prev = ActiveConsole; Console->Next = ActiveConsole->Next; ActiveConsole->Next->Prev = Console; ActiveConsole->Next = Console; } else { Console->Prev = Console; Console->Next = Console; } ActiveConsole = Console; LeaveCriticalSection(&ActiveConsoleLock); return STATUS_SUCCESS; }