Removed a number of direct accesses to the window structure.
[wine/hacks.git] / dlls / ttydrv / user.c
blobecd107a30a32ff8e2b068358756ced4d8c9ecccc
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);
15 /***********************************************************************
16 * InitKeyboard (TTYDRV.@)
18 void TTYDRV_InitKeyboard(void)
22 /***********************************************************************
23 * VkKeyScan (TTYDRV.@)
25 WORD TTYDRV_VkKeyScan(CHAR cChar)
27 return 0;
30 /***********************************************************************
31 * MapVirtualKey (TTYDRV.@)
33 UINT16 TTYDRV_MapVirtualKey(UINT16 wCode, UINT16 wMapType)
35 return 0;
38 /***********************************************************************
39 * GetKeyNameText (TTYDRV.@)
41 INT16 TTYDRV_GetKeyNameText( LONG lParam, LPSTR lpBuffer, INT16 nSize )
43 if(lpBuffer && nSize)
45 *lpBuffer = 0;
47 return 0;
50 /***********************************************************************
51 * ToUnicode (TTYDRV.@)
53 INT TTYDRV_ToUnicode( UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
54 LPWSTR pwszBuff, int cchBuff, UINT flags )
56 return 0;
59 /***********************************************************************
60 * Beep (TTYDRV.@)
62 void TTYDRV_Beep(void)
66 /***********************************************************************
67 * GetDIState (TTYDRV.@)
69 BOOL TTYDRV_GetDIState(DWORD len, LPVOID ptr)
71 return TRUE;
74 /***********************************************************************
75 * GetDIData (TTYDRV.@)
77 BOOL TTYDRV_GetDIData( BYTE *keystate, DWORD dodsize, LPDIDEVICEOBJECTDATA dod,
78 LPDWORD entries, DWORD flags )
80 return TRUE;
83 /***********************************************************************
84 * InitMouse (TTYDRV.@)
86 void TTYDRV_InitMouse(LPMOUSE_EVENT_PROC proc)
90 /***********************************************************************
91 * SetCursor (TTYDRV.@)
93 void TTYDRV_SetCursor( struct tagCURSORICONINFO *lpCursor )
97 /***********************************************************************
98 * GetScreenSaveActive (TTYDRV.@)
100 * Returns the active status of the screen saver
102 BOOL TTYDRV_GetScreenSaveActive(void)
104 return FALSE;
107 /***********************************************************************
108 * SetScreenSaveActive (TTYDRV.@)
110 * Activate/Deactivate the screen saver
112 void TTYDRV_SetScreenSaveActive(BOOL bActivate)
114 FIXME("(%d): stub\n", bActivate);
117 /***********************************************************************
118 * GetScreenSaveTimeout (TTYDRV.@)
120 * Return the screen saver timeout
122 int TTYDRV_GetScreenSaveTimeout(void)
124 return 0;
127 /***********************************************************************
128 * SetScreenSaveTimeout (TTYDRV.@)
130 * Set the screen saver timeout
132 void TTYDRV_SetScreenSaveTimeout(int nTimeout)
134 FIXME("(%d): stub\n", nTimeout);
137 /**********************************************************************
138 * LoadOEMResource (TTYDRV.@)
140 HANDLE TTYDRV_LoadOEMResource(WORD resid, WORD type)
142 HBITMAP hbitmap;
143 switch(type)
145 case OEM_BITMAP:
146 hbitmap = CreateBitmap(1, 1, 1, 1, NULL);
147 TTYDRV_DC_CreateBitmap(hbitmap);
148 return hbitmap;
149 case OEM_CURSOR:
150 case OEM_ICON:
151 break;
152 default:
153 ERR("unknown type (%d)\n", type);
155 return 0;
158 /***********************************************************************
159 * AcquireClipboard (TTYDRV.@)
161 void TTYDRV_AcquireClipboard(void)
165 /***********************************************************************
166 * ReleaseClipboard (TTYDRV.@)
168 void TTYDRV_ReleaseClipboard(void)
172 /***********************************************************************
173 * SetClipboardData (TTYDRV.@)
175 void TTYDRV_SetClipboardData(UINT wFormat)
179 /***********************************************************************
180 * GetClipboardData (TTYDRV.@)
182 BOOL TTYDRV_GetClipboardData(UINT wFormat)
184 return FALSE;
187 /***********************************************************************
188 * IsClipboardFormatAvailable (TTYDRV.@)
190 BOOL TTYDRV_IsClipboardFormatAvailable(UINT wFormat)
192 return FALSE;
195 /**************************************************************************
196 * RegisterClipboardFormat (TTYDRV.@)
198 * Registers a custom clipboard format
199 * Returns: TRUE - new format registered, FALSE - Format already registered
201 BOOL TTYDRV_RegisterClipboardFormat( LPCSTR FormatName )
203 return TRUE;
206 /**************************************************************************
207 * IsSelectionOwner (TTYDRV.@)
209 * Returns: TRUE - We(WINE) own the selection, FALSE - Selection not owned by us
211 BOOL TTYDRV_IsSelectionOwner(void)
213 return FALSE;