Fixed some typos
[reactos.git] / reactos / lib / user32 / windows / class.c
1 /* $Id: class.c,v 1.11 2002/06/14 18:55:09 jfilby Exp $
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS user32.dll
5 * FILE: lib/user32/windows/class.c
6 * PURPOSE: Window classes
7 * PROGRAMMER: Casper S. Hornstrup (chorns@users.sourceforge.net)
8 * UPDATE HISTORY:
9 * 09-05-2001 CSH Created
10 */
11 #include <windows.h>
12 #include <user32.h>
13 #include <debug.h>
14
15
16 WINBOOL
17 STDCALL
18 GetClassInfoA(
19 HINSTANCE hInstance,
20 LPCSTR lpClassName,
21 LPWNDCLASS lpWndClass)
22 {
23 return FALSE;
24 }
25
26 WINBOOL
27 STDCALL
28 GetClassInfoExA(
29 HINSTANCE hinst,
30 LPCSTR lpszClass,
31 LPWNDCLASSEX lpwcx)
32 {
33 return FALSE;
34 }
35
36 WINBOOL
37 STDCALL
38 GetClassInfoExW(
39 HINSTANCE hinst,
40 LPCWSTR lpszClass,
41 LPWNDCLASSEX lpwcx)
42 {
43 return FALSE;
44 }
45
46 WINBOOL
47 STDCALL
48 GetClassInfoW(
49 HINSTANCE hInstance,
50 LPCWSTR lpClassName,
51 LPWNDCLASS lpWndClass)
52 {
53 return FALSE;
54 }
55
56 DWORD
57 STDCALL
58 GetClassLongA(
59 HWND hWnd,
60 int nIndex)
61 {
62 return 0;
63 }
64
65 DWORD
66 STDCALL
67 GetClassLongW(
68 HWND hWnd,
69 int nIndex)
70 {
71 return 0;
72 }
73
74 int
75 STDCALL
76 GetClassNameA(
77 HWND hWnd,
78 LPSTR lpClassName,
79 int nMaxCount)
80 {
81 return 0;
82 }
83
84 int
85 STDCALL
86 GetClassNameW(
87 HWND hWnd,
88 LPWSTR lpClassName,
89 int nMaxCount)
90 {
91 return 0;
92 }
93
94 WORD
95 STDCALL
96 GetClassWord(
97 HWND hWnd,
98 int nIndex)
99 /*
100 * NOTE: Obsoleted in 32-bit windows
101 */
102 {
103 return 0;
104 }
105
106 LONG
107 STDCALL
108 GetWindowLongA(
109 HWND hWnd,
110 int nIndex)
111 {
112 return 0;
113 }
114
115 LONG
116 STDCALL
117 GetWindowLongW(
118 HWND hWnd,
119 int nIndex)
120 {
121 return 0;
122 }
123
124 UINT
125 STDCALL
126 RealGetWindowClass(
127 HWND hwnd,
128 LPSTR pszType,
129 UINT cchType)
130 {
131 return 0;
132 }
133
134 UINT
135 STDCALL
136 RealGetWindowClassA(
137 HWND hwnd,
138 LPSTR pszType,
139 UINT cchType)
140 {
141 return 0;
142 }
143
144 UINT
145 STDCALL
146 RealGetWindowClassW(
147 HWND hwnd,
148 LPWSTR pszType,
149 UINT cchType)
150 {
151 return 0;
152 }
153
154 ATOM STDCALL
155 RegisterClassA(CONST WNDCLASS *lpWndClass)
156 {
157 WNDCLASSEX Class;
158
159 RtlMoveMemory(&Class.style, lpWndClass, sizeof(WNDCLASS));
160 Class.cbSize = sizeof(WNDCLASSEX);
161 Class.hIconSm = INVALID_HANDLE_VALUE;
162 return RegisterClassExA(&Class);
163 }
164
165 ATOM STDCALL
166 RegisterClassExA(CONST WNDCLASSEX *lpwcx)
167 {
168 UNICODE_STRING MenuName;
169 UNICODE_STRING ClassName;
170 WNDCLASSEX Class;
171 RTL_ATOM Atom;
172
173 if (!RtlCreateUnicodeStringFromAsciiz(&MenuName, (PCSZ)lpwcx->lpszMenuName))
174 {
175 SetLastError(ERROR_NOT_ENOUGH_MEMORY);
176 return (ATOM)0;
177 }
178
179 if (!RtlCreateUnicodeStringFromAsciiz(&ClassName, (PCSZ)lpwcx->lpszClassName))
180 {
181 SetLastError(ERROR_NOT_ENOUGH_MEMORY);
182 return (ATOM)0;
183 }
184
185 RtlMoveMemory(&Class, lpwcx, sizeof(WNDCLASSEX));
186 Class.lpszMenuName = (LPCTSTR)MenuName.Buffer;
187 Class.lpszClassName = (LPCTSTR)ClassName.Buffer;
188
189 Atom = NtUserRegisterClassExWOW(&Class,
190 FALSE,
191 0,
192 0,
193 0,
194 0);
195
196 RtlFreeUnicodeString(&ClassName);
197
198 RtlFreeUnicodeString(&MenuName);
199
200 return (ATOM)Atom;
201 }
202
203 ATOM STDCALL
204 RegisterClassExW(CONST WNDCLASSEX *lpwcx)
205 {
206 RTL_ATOM Atom;
207
208 Atom = NtUserRegisterClassExWOW((WNDCLASSEX*)lpwcx,
209 TRUE,
210 0,
211 0,
212 0,
213 0);
214
215 return (ATOM)Atom;
216 }
217
218 ATOM STDCALL
219 RegisterClassW(CONST WNDCLASS *lpWndClass)
220 {
221 WNDCLASSEX Class;
222
223 RtlMoveMemory(&Class.style, lpWndClass, sizeof(WNDCLASS));
224 Class.cbSize = sizeof(WNDCLASSEX);
225 Class.hIconSm = INVALID_HANDLE_VALUE;
226 return RegisterClassExW(&Class);
227 }
228
229 DWORD
230 STDCALL
231 SetClassLongA(
232 HWND hWnd,
233 int nIndex,
234 LONG dwNewLong)
235 {
236 return 0;
237 }
238
239 DWORD
240 STDCALL
241 SetClassLongW(
242 HWND hWnd,
243 int nIndex,
244 LONG dwNewLong)
245 {
246 return 0;
247 }
248
249 WORD
250 STDCALL
251 SetClassWord(
252 HWND hWnd,
253 int nIndex,
254 WORD wNewWord)
255 /*
256 * NOTE: Obsoleted in 32-bit windows
257 */
258 {
259 return 0;
260 }
261
262 LONG
263 STDCALL
264 SetWindowLongA(
265 HWND hWnd,
266 int nIndex,
267 LONG dwNewLong)
268 {
269 return 0;
270 }
271
272 LONG
273 STDCALL
274 SetWindowLongW(
275 HWND hWnd,
276 int nIndex,
277 LONG dwNewLong)
278 {
279 return 0;
280 }
281
282 WINBOOL
283 STDCALL
284 UnregisterClassA(
285 LPCSTR lpClassName,
286 HINSTANCE hInstance)
287 {
288 return FALSE;
289 }
290
291 WINBOOL
292 STDCALL
293 UnregisterClassW(
294 LPCWSTR lpClassName,
295 HINSTANCE hInstance)
296 {
297 return FALSE;
298 }
299
300 /* EOF */