Fix cast type.
[reactos.git] / reactos / win32ss / user / winsrv / consrv / popup.h
1 /*
2 * LICENSE: GPL - See COPYING in the top level directory
3 * PROJECT: ReactOS Console Server DLL
4 * FILE: win32ss/user/winsrv/consrv/popup.h
5 * PURPOSE: Console popup windows
6 * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
7 */
8
9 #pragma once
10
11 typedef
12 VOID
13 (NTAPI *PPOPUP_INPUT_ROUTINE)(VOID);
14
15 typedef struct _POPUP_WINDOW
16 {
17 LIST_ENTRY ListEntry; /* Entry in console's list of popups */
18 PTEXTMODE_SCREEN_BUFFER ScreenBuffer; /* Associated screen-buffer */
19
20 // SMALL_RECT Region; /* The region the popup occupies */
21 COORD Origin; /* Origin of the popup window */
22 COORD Size; /* Size of the popup window */
23
24 PCHAR_INFO OldContents; /* The data under the popup window */
25 PPOPUP_INPUT_ROUTINE PopupInputRoutine; /* Routine called when input is received */
26 } POPUP_WINDOW, *PPOPUP_WINDOW;
27
28
29 PPOPUP_WINDOW
30 CreatePopupWindow(PCONSRV_CONSOLE Console,
31 PTEXTMODE_SCREEN_BUFFER Buffer,
32 SHORT xLeft,
33 SHORT yTop,
34 SHORT Width,
35 SHORT Height);
36 VOID
37 DestroyPopupWindow(PPOPUP_WINDOW Popup);