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( 31 IN PCONSRV_CONSOLE Console, 32 IN PCONSOLE_SCREEN_BUFFER ScreenBuffer, 33 IN SHORT xLeft, 34 IN SHORT yTop, 35 IN SHORT Width, 36 IN SHORT Height); 37 38 VOID 39 DestroyPopupWindow( 40 IN PPOPUP_WINDOW Popup); 41