user32: Add a test for an invalid DEVMODE passed to ChangeDisplaySettings, make it...
[wine/multimedia.git] / include / msvcrt / conio.h
blob0c958dff1b053f47b4c950dd3561b2288d256b63
1 /*
2 * Console I/O definitions
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Jon Griffiths and Francois Gouget.
6 * This file is in the public domain.
7 */
8 #ifndef __WINE_CONIO_H
9 #define __WINE_CONIO_H
10 #ifndef __WINE_USE_MSVCRT
11 #define __WINE_USE_MSVCRT
12 #endif
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
18 char* _cgets(char*);
19 int _cprintf(const char*,...);
20 int _cputs(const char*);
21 int _cscanf(const char*,...);
22 int _getch(void);
23 int _getche(void);
24 int _kbhit(void);
25 int _putch(int);
26 int _ungetch(int);
28 #ifdef _M_IX86
29 int _inp(unsigned short);
30 unsigned long _inpd(unsigned short);
31 unsigned short _inpw(unsigned short);
32 int _outp(unsigned short, int);
33 unsigned long _outpd(unsigned short, unsigned long);
34 unsigned short _outpw(unsigned short, unsigned short);
35 #endif
37 #ifdef __cplusplus
39 #endif
42 static inline char* cgets(char* str) { return _cgets(str); }
43 static inline int cputs(const char* str) { return _cputs(str); }
44 static inline int getch(void) { return _getch(); }
45 static inline int getche(void) { return _getche(); }
46 static inline int kbhit(void) { return _kbhit(); }
47 static inline int putch(int c) { return _putch(c); }
48 static inline int ungetch(int c) { return _ungetch(c); }
49 #ifdef _M_IX86
50 static inline int inp(unsigned short i) { return _inp(i); }
51 static inline unsigned short inpw(unsigned short i) { return _inpw(i); }
52 static inline int outp(unsigned short i, int j) { return _outp(i, j); }
53 static inline unsigned short outpw(unsigned short i, unsigned short j) { return _outpw(i, j); }
54 #endif
56 #if defined(__GNUC__) && (__GNUC__ < 4)
57 extern int cprintf(const char*,...) __attribute__((alias("_cprintf"),format(printf,1,2)));
58 extern int cscanf(const char*,...) __attribute__((alias("_cscanf"),format(scanf,1,2)));
59 #else
60 #define cprintf _cprintf
61 #define cscanf _cscanf
62 #endif /* __GNUC__ */
64 #endif /* __WINE_CONIO_H */