Release 960928
[wine/multimedia.git] / win32 / console.c
blobec866f5619b1ea9140cb608ff1e0f510a2feea1a
1 /*
2 * Win32 kernel functions
4 * Copyright 1995 Martin von Loewis and Cameron Heide
5 */
7 #include <stdio.h>
8 #include "windows.h"
9 #include "winerror.h"
10 #include "wincon.h"
11 #include "stddebug.h"
12 #include "debug.h"
14 static CONSOLE_SCREEN_BUFFER_INFO dummyinfo =
16 {80, 24},
17 {0, 0},
19 {0, 0, 79, 23},
20 {80, 24}
23 /***********************************************************************
24 * SetConsoleCtrlHandler (KERNEL32.459)
26 BOOL SetConsoleCtrlHandler(HANDLER_ROUTINE * func, BOOL a)
28 return 0;
31 /***********************************************************************
32 * GetConsoleScreenBufferInfo (KERNEL32.190)
34 BOOL32 GetConsoleScreenBufferInfo( HANDLE32 hConsoleOutput,
35 LPCONSOLE_SCREEN_BUFFER_INFO csbi )
37 csbi->dwSize.x = 80;
38 csbi->dwSize.y = 24;
39 csbi->dwCursorPosition.x = 0;
40 csbi->dwCursorPosition.y = 0;
41 csbi->wAttributes = 0;
42 csbi->srWindow.Left = 0;
43 csbi->srWindow.Right = 79;
44 csbi->srWindow.Top = 0;
45 csbi->srWindow.Bottom = 23;
46 csbi->dwMaximumWindowSize.x = 80;
47 csbi->dwMaximumWindowSize.y = 24;
48 return TRUE;
51 /***********************************************************************
52 * GetLargestConsoleWindowSize (KERNEL32.226)
54 COORD GetLargestConsoleWindowSize( HANDLE32 hConsoleOutput )
56 return dummyinfo.dwMaximumWindowSize;