mirror of
https://github.com/reactos/reactos.git
synced 2024-09-08 11:50:08 +00:00
![Hermès Bélusca-Maïto](/assets/img/avatar_default.png)
- Introduce a CONSOLE_PROPS structure to hold console properties such as its title or startup attributes it should have. Initialized at console application launch time. I have to see how could it be possible to merge this structure with some parts of the GUI_CONSOLE_DATA structure and of the ConsoleInfo structure from console.dll (in /dll/cpl). - Use a helper function to initialize the CONSOLE_PROPS structure in kernel32, at console app start or when calling AllocConsole. - In BasepInitConsole, do initialization of CONSOLE_PROPS and related only if we are about to launch a console app. [CONSRV] - Adapt CONSOLE_CONNECTION_INFO and CONSOLE_ALLOCCONSOLE structures to take into account CONSOLE_PROPS. - Fix the way we are setting console titles. - Add experimental support for loading console properties and title and icon from shell links, thanks to the helper LoadShellLinkInfo. However I'm using there Shell COM facility to extract link properties (I could do it "the RAW way", however I would then know the format of link files, that I don't know and that I don't want to mix up with the console code). Therefore I must add dependencies to uuid and ole32 libraries. Note that icons are used in GUI consoles only (use the PrivateExtractIconExW function to retrieve both handles to the big and small icons at the same time). Part 1/2 [CONSRV] - Remove an unuseful xxxInitScreenBuffer function in the virtual functions console table. - In GUI_CONSOLE_DATA structure and related functions, temporarily explicitely mark which members may be used for both GUI and TUI consoles (for a future simplification). - Add temporary debug prints when we are setting console icon, to see the flow of calls (will be removed just before merging back to trunk). - Add temporary debug prints in ConSrvInitConsoleScreenBuffer and ConioDeleteScreenBuffer, to figure out how SBs are initialized. svn path=/branches/ros-csrss/; revision=58305
24 lines
696 B
C
24 lines
696 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS Console Server DLL
|
|
* FILE: win32ss/user/consrv/guiconsole.h
|
|
* PURPOSE: Interface to gui-mode consoles
|
|
* PROGRAMMERS:
|
|
*/
|
|
|
|
#include "conio.h"
|
|
|
|
#define CONGUI_MIN_WIDTH 10
|
|
#define CONGUI_MIN_HEIGHT 10
|
|
#define CONGUI_UPDATE_TIME 0
|
|
#define CONGUI_UPDATE_TIMER 1
|
|
|
|
NTSTATUS FASTCALL GuiInitConsole(PCONSOLE Console,
|
|
LPCWSTR AppPath,
|
|
WORD ShowWindow,
|
|
LPCWSTR IconPath,
|
|
INT IconIndex);
|
|
VOID FASTCALL GuiConsoleHandleScrollbarMenu(VOID);
|
|
|
|
/*EOF*/
|