/
dgrigorev
/
MicroNT
Обзор
Документация
Войти
/
dgrigorev
/
MicroNT
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
kernel/include/session.h
38 строк
845 B
Дмитрий Григорьев
Add Session 0 service control plane
19 май 2026, 08:17
19 май 2026, 08:17
5efd857
Код
Авторство
О чём код?
#pragma once // session.h -- MicroNT session/logon/shell bootstrap layer. // // This is intentionally modeled after the Windows boot-to-desktop order: // SMSS creates the interactive session, Winlogon owns logon, Userinit loads // user context, and the shell process owns the desktop. #include "ntdef.h" #include "process.h" namespace SM { struct ShellImageConfig { const u8* NtdllImage; usize NtdllSize; u64 NtdllBase; const u8* ShellImage; usize ShellSize; u64 ShellBase; }; struct InteractiveSession { u32 SessionId; KProcess* ShellProcess; KThread* ShellThread; }; struct SystemSession { u32 SessionId; bool ServicesReady; bool CoreServicesStarted; }; void Init(); InteractiveSession* StartInteractiveSession(const ShellImageConfig& cfg); } // namespace SM