2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Console Utilities Library
4 * FILE: sdk/lib/conutils/pager.h
5 * PURPOSE: Console/terminal paging functionality.
6 * PROGRAMMERS: - Hermes Belusca-Maito (for the library);
7 * - All programmers who wrote the different console applications
8 * from which I took those functions and improved them.
15 #error The ConUtils library at the moment only supports compilation with _UNICODE defined!
23 // #include <wincon.h>
26 typedef struct _CON_PAGER
30 // TODO: Add more properties. Maybe those extra parameters
31 // of PAGE_PROMPT could go there?
33 /* Used to count number of lines since last pause */
35 } CON_PAGER
, *PCON_PAGER
;
37 #define INIT_CON_PAGER(pScreen) {(pScreen), 0}
39 #define InitializeConPager(pPager, pScreen) \
41 (pPager)->Screen = (pScreen); \
42 (pPager)->LineCount = 0; \
46 typedef BOOL (__stdcall
*PAGE_PROMPT
)(IN PCON_PAGER
, IN DWORD
, IN DWORD
);
51 IN PAGE_PROMPT PagePrompt
,
59 IN PAGE_PROMPT PagePrompt
,
66 IN PAGE_PROMPT PagePrompt
,
68 IN HINSTANCE hInstance OPTIONAL
,
74 IN PAGE_PROMPT PagePrompt
,
81 #endif /* __PAGER_H__ */