71c88e12795a205ccfa49f591d9ffc77d413a5af
[reactos.git] / lib / user32 / windows / cursor.c
1 /*
2  *  ReactOS kernel
3  *  Copyright (C) 1998, 1999, 2000, 2001 ReactOS Team
4  *
5  *  This program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2 of the License, or
8  *  (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program; if not, write to the Free Software
17  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 /* $Id$
20  *
21  * PROJECT:         ReactOS user32.dll
22  * FILE:            lib/user32/windows/cursor.c
23  * PURPOSE:         Cursor
24  * PROGRAMMER:      Casper S. Hornstrup (chorns@users.sourceforge.net)
25  * UPDATE HISTORY:
26  *      09-05-2001  CSH  Created
27  */
28
29 /* INCLUDES ******************************************************************/
30
31 #include <windows.h>
32 #include <user32.h>
33 #include <debug.h>
34
35 /* FUNCTIONS *****************************************************************/
36
37 WINBOOL STDCALL
38 CreateCaret(HWND hWnd,
39             HBITMAP hBitmap,
40             int nWidth,
41             int nHeight)
42 {
43   return FALSE;
44 }
45
46 HCURSOR STDCALL
47 CreateCursor(HINSTANCE hInst,
48              int xHotSpot,
49              int yHotSpot,
50              int nWidth,
51              int nHeight,
52              CONST VOID *pvANDPlane,
53              CONST VOID *pvXORPlane)
54 {
55   
56   return (HCURSOR)0;
57 }
58
59 WINBOOL STDCALL
60 DestroyCaret(VOID)
61 {
62   return FALSE;
63 }
64
65 WINBOOL STDCALL
66 DestroyCursor(HCURSOR hCursor)
67 {
68   return FALSE;
69 }
70
71 UINT STDCALL
72 GetCaretBlinkTime(VOID)
73 {
74   return 0;
75 }
76
77 WINBOOL STDCALL
78 GetCaretPos(LPPOINT lpPoint)
79 {
80   return FALSE;
81 }
82
83 WINBOOL STDCALL
84 GetClipCursor(LPRECT lpRect)
85 {
86   return FALSE;
87 }
88
89 HCURSOR STDCALL
90 GetCursor(VOID)
91 {
92   return (HCURSOR)0;
93 }
94
95 WINBOOL STDCALL
96 GetCursorInfo(PCURSORINFO pci)
97 {
98   return FALSE;
99 }
100
101 WINBOOL STDCALL
102 GetCursorPos(LPPOINT lpPoint)
103 {
104   return FALSE;
105 }
106
107 WINBOOL STDCALL
108 HideCaret(HWND hWnd)
109 {
110   return FALSE;
111 }
112
113 HCURSOR STDCALL
114 LoadCursorA(HINSTANCE hInstance,
115             LPCSTR lpCursorName)
116 {
117   return(LoadImageA(hInstance, lpCursorName, IMAGE_CURSOR, 0, 0,
118                     LR_DEFAULTSIZE));
119 }
120
121 HCURSOR STDCALL
122 LoadCursorFromFileA(LPCSTR lpFileName)
123 {
124   UNICODE_STRING FileName;
125   HCURSOR Result;
126   RtlCreateUnicodeStringFromAsciiz(&FileName, (LPSTR)lpFileName);
127   Result = LoadImageW(0, FileName.Buffer, IMAGE_CURSOR, 0, 0, 
128                       LR_LOADFROMFILE | LR_DEFAULTSIZE);
129   RtlFreeUnicodeString(&FileName);
130   return(Result);
131 }
132
133 HCURSOR STDCALL
134 LoadCursorFromFileW(LPCWSTR lpFileName)
135 {
136   return(LoadImageW(0, lpFileName, IMAGE_CURSOR, 0, 0, 
137                     LR_LOADFROMFILE | LR_DEFAULTSIZE));
138 }
139
140 HCURSOR STDCALL
141 LoadCursorW(HINSTANCE hInstance,
142             LPCWSTR lpCursorName)
143 {
144   return(LoadImageW(hInstance, lpCursorName, IMAGE_CURSOR, 0, 0,
145                     LR_DEFAULTSIZE));
146 }
147
148 WINBOOL STDCALL
149 SetCaretBlinkTime(UINT uMSeconds)
150 {
151   return FALSE;
152 }
153
154 WINBOOL STDCALL 
155 SetCaretPos(int X,
156             int Y)
157 {
158   return FALSE;
159 }
160
161 HCURSOR STDCALL
162 SetCursor(HCURSOR hCursor)
163 {
164   return (HCURSOR)0;
165 }
166
167 WINBOOL STDCALL
168 SetCursorPos(int X,
169              int Y)
170 {
171   return FALSE;
172 }
173
174 WINBOOL STDCALL
175 SetSystemCursor(HCURSOR hcur,
176                 DWORD id)
177 {
178   return FALSE;
179 }
180
181 WINBOOL STDCALL
182 ShowCaret(HWND hWnd)
183 {
184   return FALSE;
185 }
186
187 int STDCALL
188 ShowCursor(WINBOOL bShow)
189 {
190   return 0;
191 }