Fixed opening of some drivers.
[wine.git] / dlls / ttydrv / user.c
blob5af69b78dabcf1385f50fea07332454ec08f9c64
1 /*
2 * TTYDRV USER driver functions
4 * Copyright 1998 Patrik Stridvall
5 */
7 #include "dinput.h"
8 #include "gdi.h"
9 #include "ttydrv.h"
10 #include "debugtools.h"
12 DEFAULT_DEBUG_CHANNEL(ttydrv);
14 /***********************************************************************
15 * TTYDRV_Synchronize
17 void TTYDRV_Synchronize( void )
21 /***********************************************************************
22 * TTYDRV_CheckFocus
24 BOOL TTYDRV_CheckFocus(void)
26 return TRUE;
29 /***********************************************************************
30 * TTYDRV_UserRepaintDisable
32 void TTYDRV_UserRepaintDisable( BOOL bDisable )
37 /***********************************************************************
38 * TTYDRV_InitKeyboard
40 void TTYDRV_InitKeyboard(void)
44 /***********************************************************************
45 * TTYDRV_VkKeyScan
47 WORD TTYDRV_VkKeyScan(CHAR cChar)
49 return 0;
52 /***********************************************************************
53 * TTYDRV_MapVirtualKey
55 UINT16 TTYDRV_MapVirtualKey(UINT16 wCode, UINT16 wMapType)
57 return 0;
60 /***********************************************************************
61 * TTYDRV_GetKeyNameText
63 INT16 TTYDRV_GetKeyNameText( LONG lParam, LPSTR lpBuffer, INT16 nSize )
65 if(lpBuffer && nSize)
67 *lpBuffer = 0;
69 return 0;
72 /***********************************************************************
73 * TTYDRV_ToUnicode
75 INT TTYDRV_ToUnicode( UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
76 LPWSTR pwszBuff, int cchBuff, UINT flags )
78 return 0;
81 /***********************************************************************
82 * TTYDRV_GetBeepActive
84 BOOL TTYDRV_GetBeepActive(void)
86 return FALSE;
89 /***********************************************************************
90 * TTYDRV_SetBeepActive
92 void TTYDRV_SetBeepActive(BOOL bActivate)
96 /***********************************************************************
97 * TTYDRV_Beep
99 void TTYDRV_Beep(void)
103 /***********************************************************************
104 * TTYDRV_GetDIState
106 BOOL TTYDRV_GetDIState(DWORD len, LPVOID ptr)
108 return TRUE;
111 /***********************************************************************
112 * TTYDRV_GetDIData
114 BOOL TTYDRV_GetDIData( BYTE *keystate, DWORD dodsize, LPDIDEVICEOBJECTDATA dod,
115 LPDWORD entries, DWORD flags )
117 return TRUE;
120 /***********************************************************************
121 * TTYDRV_GetKeyboardConfig
123 void TTYDRV_GetKeyboardConfig(KEYBOARD_CONFIG *cfg)
127 /***********************************************************************
128 * TTYDRV_SetKeyboardConfig
130 extern void TTYDRV_SetKeyboardConfig(KEYBOARD_CONFIG *cfg, DWORD mask)
134 /***********************************************************************
135 * TTYDRV_InitMouse
137 void TTYDRV_InitMouse(LPMOUSE_EVENT_PROC proc)
141 /***********************************************************************
142 * TTYDRV_SetCursor
144 void TTYDRV_SetCursor( struct tagCURSORICONINFO *lpCursor )
148 /***********************************************************************
149 * TTYDRV_MoveCursor
151 void TTYDRV_MoveCursor(WORD wAbsX, WORD wAbsY)
155 /***********************************************************************
156 * TTYDRV_GetScreenSaveActive
158 * Returns the active status of the screen saver
160 BOOL TTYDRV_GetScreenSaveActive(void)
162 return FALSE;
165 /***********************************************************************
166 * TTYDRV_SetScreenSaveActive
168 * Activate/Deactivate the screen saver
170 void TTYDRV_SetScreenSaveActive(BOOL bActivate)
172 FIXME("(%d): stub\n", bActivate);
175 /***********************************************************************
176 * TTYDRV_GetScreenSaveTimeout
178 * Return the screen saver timeout
180 int TTYDRV_GetScreenSaveTimeout(void)
182 return 0;
185 /***********************************************************************
186 * TTYDRV_SetScreenSaveTimeout
188 * Set the screen saver timeout
190 void TTYDRV_SetScreenSaveTimeout(int nTimeout)
192 FIXME("(%d): stub\n", nTimeout);
195 /**********************************************************************
196 * TTYDRV_LoadOEMResource
198 HANDLE TTYDRV_LoadOEMResource(WORD resid, WORD type)
200 HBITMAP hbitmap;
201 switch(type)
203 case OEM_BITMAP:
204 hbitmap = CreateBitmap(1, 1, 1, 1, NULL);
205 TTYDRV_DC_CreateBitmap(hbitmap);
206 return hbitmap;
207 case OEM_CURSOR:
208 case OEM_ICON:
209 break;
210 default:
211 ERR("unknown type (%d)\n", type);
213 return 0;
216 /***********************************************************************
217 * TTYDRV_IsSingleWindow
219 BOOL TTYDRV_IsSingleWindow(void)
221 return TRUE;
224 /***********************************************************************
225 * TTYDRV_AcquireClipboard
227 void TTYDRV_AcquireClipboard(void)
231 /***********************************************************************
232 * TTYDRV_ReleaseClipboard
234 void TTYDRV_ReleaseClipboard(void)
238 /***********************************************************************
239 * TTYDRV_SetClipboardData
241 void TTYDRV_SetClipboardData(UINT wFormat)
245 /***********************************************************************
246 * TTYDRV_GetClipboardData
248 BOOL TTYDRV_GetClipboardData(UINT wFormat)
250 return FALSE;
253 /***********************************************************************
254 * TTYDRV_IsClipboardFormatAvailable
256 BOOL TTYDRV_IsClipboardFormatAvailable(UINT wFormat)
258 return FALSE;
261 /**************************************************************************
262 * TTYDRV_RegisterClipboardFormat
264 * Registers a custom clipboard format
265 * Returns: TRUE - new format registered, FALSE - Format already registered
267 BOOL TTYDRV_RegisterClipboardFormat( LPCSTR FormatName )
269 return TRUE;
272 /**************************************************************************
273 * TTYDRV_IsSelectionOwner
275 * Returns: TRUE - We(WINE) own the selection, FALSE - Selection not owned by us
277 BOOL TTYDRV_IsSelectionOwner(void)
279 return FALSE;
282 /***********************************************************************
283 * TTYDRV_ResetSelectionOwner
285 void TTYDRV_ResetSelectionOwner(struct tagWND *pWnd, BOOL bFooBar)