/
dgrigorev
/
MicroNT
Обзор
Документация
Войти
/
dgrigorev
/
MicroNT
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
kernel/include/shellcommands.h
35 строк
688 B
Дмитрий Григорьев
Add shell command entrypoint model
19 май 2026, 13:50
19 май 2026, 13:50
ded2200
Код
Авторство
О чём код?
#pragma once // shellcommands.h -- MicroNT shell command entrypoint model. #include "shellstart.h" #include "ntdef.h" namespace SHELLCOMMANDS { enum class CommandKind : u32 { Search, Run, }; struct ShellCommand { CommandKind Kind; const char* Label; const char* Target; bool Enabled; bool DialogReady; }; struct CommandState { u32 SessionId; ShellCommand Commands[8]; u32 CommandCount; u32 DefaultCommandIndex; bool Published; }; void Init(); bool BuildCommandState(CommandState& commands, const SHELLSTART::StartMenuState& menu); bool PublishCommandState(CommandState& commands); } // namespace SHELLCOMMANDS