8 #define DPRINT1(args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0);
9 #define CHECKPOINT1 do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0);
11 #define DPRINT(args...)
15 extern HANDLE ProcessHeap
;
28 ReadConsoleOutputCharacters(LPSTR lpCharacter
,
31 PULONG lpNumberOfCharsRead
);
34 ReadConsoleOutputAttributes(PUSHORT lpAttribute
,
37 PULONG lpNumberOfAttrsRead
);
40 WriteConsoleOutputCharacters(LPCSTR lpCharacter
,
45 WriteConsoleOutputAttributes(CONST USHORT
*lpAttribute
,
48 PULONG lpNumberOfAttrsWritten
);
52 SetConsoleMode(HANDLE hConsoleHandle
,
57 ConInKey(PINPUT_RECORD Buffer
);
63 ConOutPuts(LPSTR szText
);
66 ConOutPrintf(LPSTR szFormat
, ...);
75 GetScreenSize(SHORT
*maxx
,
80 SetCursorType(BOOL bInsert
,
92 SetStatusText(PCHAR Text
);
95 SetTextXY(SHORT x
, SHORT y
, PCHAR Text
);
98 PrintTextXY(SHORT x
, SHORT y
, char* fmt
,...);
100 #endif /* __CONSOLE_H__*/