Added an unknown VxD error code.
[wine] / dlls / ttydrv / user.c
1 /*
2  * TTYDRV USER driver functions
3  *
4  * Copyright 1998 Patrik Stridvall
5  */
6
7 #include "dinput.h"
8 #include "gdi.h"
9 #include "ttydrv.h"
10 #include "debugtools.h"
11
12 DEFAULT_DEBUG_CHANNEL(ttydrv);
13
14
15 /***********************************************************************
16  *              TTYDRV_InitKeyboard
17  */
18 void TTYDRV_InitKeyboard(void)
19 {
20 }
21
22 /***********************************************************************
23  *              TTYDRV_VkKeyScan
24  */
25 WORD TTYDRV_VkKeyScan(CHAR cChar)
26 {
27   return 0;
28 }
29
30 /***********************************************************************
31  *              TTYDRV_MapVirtualKey
32  */
33 UINT16 TTYDRV_MapVirtualKey(UINT16 wCode, UINT16 wMapType)
34 {
35   return 0;
36 }
37
38 /***********************************************************************
39  *              TTYDRV_GetKeyNameText
40  */
41 INT16 TTYDRV_GetKeyNameText( LONG lParam, LPSTR lpBuffer, INT16 nSize )
42 {  
43   if(lpBuffer && nSize)
44     {
45       *lpBuffer = 0;
46     }
47   return 0;
48 }
49
50 /***********************************************************************
51  *              TTYDRV_ToUnicode
52  */
53 INT TTYDRV_ToUnicode( UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
54                       LPWSTR pwszBuff, int cchBuff, UINT flags )
55 {
56   return 0;
57 }
58
59 /***********************************************************************
60  *              TTYDRV_Beep
61  */
62 void TTYDRV_Beep(void)
63 {
64 }
65
66 /***********************************************************************
67  *              TTYDRV_GetDIState
68  */
69 BOOL TTYDRV_GetDIState(DWORD len, LPVOID ptr)
70 {
71   return TRUE;
72 }
73
74 /***********************************************************************
75  *              TTYDRV_GetDIData
76  */
77 BOOL TTYDRV_GetDIData( BYTE *keystate, DWORD dodsize, LPDIDEVICEOBJECTDATA dod,
78                        LPDWORD entries, DWORD flags )
79 {
80   return TRUE;
81 }
82
83 /***********************************************************************
84  *           TTYDRV_InitMouse
85  */
86 void TTYDRV_InitMouse(LPMOUSE_EVENT_PROC proc)
87 {
88 }
89
90 /***********************************************************************
91  *              TTYDRV_SetCursor
92  */
93 void TTYDRV_SetCursor( struct tagCURSORICONINFO *lpCursor )
94 {
95 }
96
97 /***********************************************************************
98  *              TTYDRV_MoveCursor
99  */
100 void TTYDRV_MoveCursor(WORD wAbsX, WORD wAbsY)
101 {
102 }
103
104 /***********************************************************************
105  *              TTYDRV_GetScreenSaveActive
106  *
107  * Returns the active status of the screen saver
108  */
109 BOOL TTYDRV_GetScreenSaveActive(void)
110 {
111     return FALSE;
112 }
113
114 /***********************************************************************
115  *              TTYDRV_SetScreenSaveActive
116  *
117  * Activate/Deactivate the screen saver
118  */
119 void TTYDRV_SetScreenSaveActive(BOOL bActivate)
120 {
121     FIXME("(%d): stub\n", bActivate);
122 }
123
124 /***********************************************************************
125  *              TTYDRV_GetScreenSaveTimeout
126  *
127  * Return the screen saver timeout
128  */
129 int TTYDRV_GetScreenSaveTimeout(void)
130 {
131     return 0;
132 }
133
134 /***********************************************************************
135  *              TTYDRV_SetScreenSaveTimeout
136  *
137  * Set the screen saver timeout
138  */
139 void TTYDRV_SetScreenSaveTimeout(int nTimeout)
140 {
141     FIXME("(%d): stub\n", nTimeout);
142 }
143
144 /**********************************************************************
145  *              TTYDRV_LoadOEMResource
146  */
147 HANDLE TTYDRV_LoadOEMResource(WORD resid, WORD type)
148 {
149   HBITMAP hbitmap;
150   switch(type)
151   {
152     case OEM_BITMAP:
153         hbitmap = CreateBitmap(1, 1, 1, 1, NULL);
154         TTYDRV_DC_CreateBitmap(hbitmap);
155         return hbitmap;
156     case OEM_CURSOR:
157     case OEM_ICON:
158         break;
159     default:
160       ERR("unknown type (%d)\n", type);
161   }
162   return 0;
163 }
164
165 /***********************************************************************
166  *              TTYDRV_AcquireClipboard
167  */
168 void TTYDRV_AcquireClipboard(void)
169 {
170 }
171
172 /***********************************************************************
173  *              TTYDRV_ReleaseClipboard
174  */
175 void TTYDRV_ReleaseClipboard(void)
176 {
177 }
178
179 /***********************************************************************
180  *              TTYDRV_SetClipboardData
181  */
182 void TTYDRV_SetClipboardData(UINT wFormat)
183 {
184 }
185
186 /***********************************************************************
187  *              TTYDRV_GetClipboardData
188  */
189 BOOL TTYDRV_GetClipboardData(UINT wFormat)
190 {
191   return FALSE;
192 }
193
194 /***********************************************************************
195  *              TTYDRV_IsClipboardFormatAvailable
196  */
197 BOOL TTYDRV_IsClipboardFormatAvailable(UINT wFormat)
198 {
199   return FALSE;
200 }
201
202 /**************************************************************************
203  *              TTYDRV_RegisterClipboardFormat
204  *
205  * Registers a custom clipboard format
206  * Returns: TRUE - new format registered, FALSE - Format already registered
207  */
208 BOOL TTYDRV_RegisterClipboardFormat( LPCSTR FormatName )
209 {
210   return TRUE;
211 }
212
213 /**************************************************************************
214  *              TTYDRV_IsSelectionOwner
215  *
216  * Returns: TRUE - We(WINE) own the selection, FALSE - Selection not owned by us
217  */
218 BOOL TTYDRV_IsSelectionOwner(void)
219 {
220     return FALSE;
221 }
222
223 /***********************************************************************
224  *              TTYDRV_ResetSelectionOwner
225  */
226 void TTYDRV_ResetSelectionOwner(struct tagWND *pWnd, BOOL bFooBar)
227 {
228 }