Fixed the behavior for SHGetFileInfo when the SHGFI_USEFILEATTRIBUTES
[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  *              VkKeyScan (TTYDRV.@)
17  */
18 WORD TTYDRV_VkKeyScan(CHAR cChar)
19 {
20   return 0;
21 }
22
23 /***********************************************************************
24  *              MapVirtualKey (TTYDRV.@)
25  */
26 UINT16 TTYDRV_MapVirtualKey(UINT16 wCode, UINT16 wMapType)
27 {
28   return 0;
29 }
30
31 /***********************************************************************
32  *              GetKeyNameText (TTYDRV.@)
33  */
34 INT16 TTYDRV_GetKeyNameText( LONG lParam, LPSTR lpBuffer, INT16 nSize )
35 {  
36   if(lpBuffer && nSize)
37     {
38       *lpBuffer = 0;
39     }
40   return 0;
41 }
42
43 /***********************************************************************
44  *              ToUnicode (TTYDRV.@)
45  */
46 INT TTYDRV_ToUnicode( UINT virtKey, UINT scanCode, LPBYTE lpKeyState,
47                       LPWSTR pwszBuff, int cchBuff, UINT flags )
48 {
49   return 0;
50 }
51
52 /***********************************************************************
53  *              Beep (TTYDRV.@)
54  */
55 void TTYDRV_Beep(void)
56 {
57 }
58
59 /***********************************************************************
60  *              SetCursor (TTYDRV.@)
61  */
62 void TTYDRV_SetCursor( struct tagCURSORICONINFO *lpCursor )
63 {
64 }
65
66 /***********************************************************************
67  *              GetScreenSaveActive (TTYDRV.@)
68  *
69  * Returns the active status of the screen saver
70  */
71 BOOL TTYDRV_GetScreenSaveActive(void)
72 {
73     return FALSE;
74 }
75
76 /***********************************************************************
77  *              SetScreenSaveActive (TTYDRV.@)
78  *
79  * Activate/Deactivate the screen saver
80  */
81 void TTYDRV_SetScreenSaveActive(BOOL bActivate)
82 {
83     FIXME("(%d): stub\n", bActivate);
84 }
85
86 /***********************************************************************
87  *              GetScreenSaveTimeout (TTYDRV.@)
88  *
89  * Return the screen saver timeout
90  */
91 int TTYDRV_GetScreenSaveTimeout(void)
92 {
93     return 0;
94 }
95
96 /***********************************************************************
97  *              SetScreenSaveTimeout (TTYDRV.@)
98  *
99  * Set the screen saver timeout
100  */
101 void TTYDRV_SetScreenSaveTimeout(int nTimeout)
102 {
103     FIXME("(%d): stub\n", nTimeout);
104 }
105
106 /**********************************************************************
107  *              LoadOEMResource (TTYDRV.@)
108  */
109 HANDLE TTYDRV_LoadOEMResource(WORD resid, WORD type)
110 {
111   HBITMAP hbitmap;
112   switch(type)
113   {
114     case OEM_BITMAP:
115         hbitmap = CreateBitmap(1, 1, 1, 1, NULL);
116         TTYDRV_DC_CreateBitmap(hbitmap);
117         return hbitmap;
118     case OEM_CURSOR:
119     case OEM_ICON:
120         break;
121     default:
122       ERR("unknown type (%d)\n", type);
123   }
124   return 0;
125 }
126
127 /***********************************************************************
128  *              AcquireClipboard (TTYDRV.@)
129  */
130 void TTYDRV_AcquireClipboard(void)
131 {
132 }
133
134 /***********************************************************************
135  *              ReleaseClipboard (TTYDRV.@)
136  */
137 void TTYDRV_ReleaseClipboard(void)
138 {
139 }
140
141 /***********************************************************************
142  *              SetClipboardData (TTYDRV.@)
143  */
144 void TTYDRV_SetClipboardData(UINT wFormat)
145 {
146 }
147
148 /***********************************************************************
149  *              GetClipboardData (TTYDRV.@)
150  */
151 BOOL TTYDRV_GetClipboardData(UINT wFormat)
152 {
153   return FALSE;
154 }
155
156 /***********************************************************************
157  *              IsClipboardFormatAvailable (TTYDRV.@)
158  */
159 BOOL TTYDRV_IsClipboardFormatAvailable(UINT wFormat)
160 {
161   return FALSE;
162 }
163
164 /**************************************************************************
165  *              RegisterClipboardFormat (TTYDRV.@)
166  *
167  * Registers a custom clipboard format
168  * Returns: TRUE - new format registered, FALSE - Format already registered
169  */
170 BOOL TTYDRV_RegisterClipboardFormat( LPCSTR FormatName )
171 {
172   return TRUE;
173 }
174
175 /**************************************************************************
176  *              IsSelectionOwner (TTYDRV.@)
177  *
178  * Returns: TRUE - We(WINE) own the selection, FALSE - Selection not owned by us
179  */
180 BOOL TTYDRV_IsSelectionOwner(void)
181 {
182     return FALSE;
183 }