[SYSDM]
[reactos.git] / reactos / dll / cpl / console / console.h
1 #ifndef CONSOLE_H__
2 #define CONSOLE_H__
3
4 #include "ntstatus.h"
5 #define WIN32_NO_STATUS
6 #include <windows.h>
7 #include <commctrl.h>
8 #include <cpl.h>
9 #include <tchar.h>
10 #include <stdio.h>
11 #include <limits.h>
12 #include "resource.h"
13
14 typedef struct
15 {
16 int idIcon;
17 int idName;
18 int idDescription;
19 APPLET_PROC AppletProc;
20 } APPLET, *PAPPLET;
21
22 typedef struct TAGConsoleInfo
23 {
24 HWND hConsoleWindow;
25 WCHAR szProcessName[MAX_PATH];
26 BOOLEAN AppliedConfig;
27 DWORD UseRasterFonts;
28 DWORD FontSize;
29 DWORD FontWeight;
30 FONTSIGNATURE FontSignature;
31 DWORD CursorSize;
32 DWORD NumberOfHistoryBuffers;
33 DWORD HistoryBufferSize;
34 DWORD HistoryNoDup;
35 DWORD FullScreen;
36 DWORD QuickEdit;
37 DWORD InsertMode;
38 DWORD ScreenBuffer;
39 DWORD WindowSize;
40 DWORD WindowPosition;
41 DWORD ActiveStaticControl;
42 COLORREF ScreenText;
43 COLORREF ScreenBackground;
44 COLORREF PopupText;
45 COLORREF PopupBackground;
46 COLORREF Colors[16];
47 } ConsoleInfo, *PConsoleInfo;
48
49 void ApplyConsoleInfo(HWND hwndDlg, PConsoleInfo pConInfo);
50 void PaintConsole(LPDRAWITEMSTRUCT drawItem, PConsoleInfo pConInfo);
51 void PaintText(LPDRAWITEMSTRUCT drawItem, PConsoleInfo pConInfo);
52
53 #define PM_APPLY_CONSOLE_INFO (WM_APP + 100)
54
55
56 //globals
57 extern HINSTANCE hApplet;
58
59 #endif /* CONSOLE_H__ */