7b2ae3aed9cbb6073e4bf51304b4a47f64865a79
[reactos.git] / reactos / ChangeLog
1 2003-07-16 Royce Mitchell III <royce3@ev1.net>
2
3 * modifed strtok & wcstok in msvcrt so that crtdll can use it.
4 * new private support functions _lasttoken and _wlasttoken to support
5 strtok and wcstok respectively.
6 * fixed lib/msvcrt/stdio/vfscanf.c to remove unnecessary globals.
7 * changed crtdll to use msvcrt's stdio/scanf.c
8
9 2003-07-16 Royce Mitchell III <royce3@ev1.net>
10
11 * fixed warnings at lib/msvcrt/stdio/fputs.c:79
12 and lib/msvcrt/stdlib/errno.c:14
13 and lib/msvcrt/stdlib/wputenv.c:24
14
15 2003-07-16 Royce Mitchell III <royce3@ev1.net>
16
17 * integrated Art Yerkes' _ftime implementation at
18 lib/msvcrt/time/ftime.c
19 * fixed ungetc warning in lib/msvcrt/stdio/vfscanf.c (also
20 renamed ungetc macro to UNGETC for clarity)
21
22 2003-07-15 Royce Mitchell III <royce3@ev1.net>
23
24 * fixed references to errno in MSVCRT to use __set_errno() and
25 _errno() respectively.
26 * Fixed warning (args 3 & 6 in call to CreateThread) in
27 lib/msvcrt/process/threadx.c
28
29 2003-07-15 Royce Mitchell III <royce3@ev1.net>
30
31 * modified crtdll to forward most of it's CTYPE, STRING
32 and WSTRING entries to NTDLL or MSVCRT.
33
34 2003-07-14 James Tabor <jimtabor@adsl-64-217-116-74.dsl.hstntx.swbell.net>
35
36 * lib/gdi32/misc/stubs.c Remove FillRgn.
37 * lib/gdi32/objects/region.c Add FillRng.
38 It looks okay.
39
40 2003-07-12 Casper S. Hornstrup <chorns@users.sourceforge.net>
41
42 Changes for compiling with w32api
43
44 * include/ddk/extypes.h (NPAGED_LOOKASIDE_LIST, PAGED_LOOKASIDE_LIST):
45 Match w32api fields.
46 * include/ddk/halfuncs.h (HalReturnToFirmware, HalReleaseDisplayOwnership,
47 HalQueryDisplayOwnership): Move ...
48 * include/ntos/halfuncs.h: ... here.
49 * include/ntos/rtl.h: (PopEntrySList, PushEntrySList): Move to
50 ntoskrnl/ex/lookas.c.
51 * include/ntos/zw.h (NtAccessCheckAndAuditAlarm, NtCancelTimer,
52 NtCreatePagingFile, NtCreateThread, NtFlushInstructionCache,
53 NtFlushVirtualMemory, NtGetTickCount, NtLoadKey, NtLockVirtualMemory,
54 NtOpenObjectAuditAlarm, NtProtectVirtualMemory, NtQueryDirectoryObject,
55 NtQueryIntervalProfile, NtQueryVirtualMemory, NtRaiseHardError,
56 NtSetInformationKey, NtSetInformationObject, NtSetTimer, NtUnloadKey,
57 NtUnlockVirtualMemory, NtWaitForMultipleObjects, NtCreateProfile,
58 NtDelayExecution, NtExtendSection, NtQuerySection): Include for w32api.
59 * ntoskrnl/ntoskrnl.def (ExInterlockedAddUlong,
60 ExInterlockedInsertHeadList, ExInterlockedInsertTailList,
61 ExInterlockedPopEntryList, ExInterlockedPushEntryList,
62 ExInterlockedRemoveHeadList): Make FASTCALL.
63 * ntoskrnl/ntoskrnl.edf: Ditto.
64 * ntoskrnl/ex/list.c: Ditto.
65 * include/ddk/exfuncs.h: Ditto.
66 (InterlockedPopEntrySList, InterlockedPushEntrySList,
67 ExAllocateFromPagedLookasideList, ExFreeToPagedLookasideList): Add.
68 * ntoskrnl/ex/interlck.c (ExInterlockedDecrementLong,
69 ExInterlockedAddUlong, ExInterlockedIncrementLong): Undefine if defined.
70 * ntoskrnl/ex/lookas.c (PopEntrySList, PushEntrySList,
71 LookasideListLock): Add.
72 * drivers/dd/blue/blue.c: Include <roskrnl.h>.
73 * drivers/dd/videoprt/videoprt.c: Ditto.
74
75 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
76
77 * lib/user32/controls/edit.c (EDIT_EM_SetLimitText,
78 EDIT_WM_StyleChanged): Fix unsigned/signed warning.
79
80 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
81
82 * config (DBG): Default to 0.
83
84 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
85
86 * regtests: New directory.
87 * regtests/kmregtests: Ditto.
88 * regtests/kmrtint: Ditto.
89 * regtests/regtests: Ditto.
90 * regtests/shared: Ditto.
91 * regtests/win32base: Ditto.
92 * include/roskrnl.h: New file.
93 * regtests/Makefile: Ditto.
94 * regtests/kmregtests/.cvsignore: Ditto.
95 * regtests/kmregtests/driver.c: Ditto.
96 * regtests/kmregtests/kmregtests.h: Ditto.
97 * regtests/kmregtests/Makefile: Ditto.
98 * regtests/kmrtint/.cvsignore: Ditto.
99 * regtests/kmrtint/kmrtint.c: Ditto.
100 * regtests/kmrtint/kmrtint.def: Ditto.
101 * regtests/kmrtint/kmrtint.edf: Ditto.
102 * regtests/kmrtint/Makefile: Ditto.
103 * regtests/regtests/.cvsignore: Ditto.
104 * regtests/regtests/Makefile: Ditto.
105 * regtests/regtests/regtests.c: Ditto.
106 * regtests/shared/.cvsignore: Ditto.
107 * regtests/shared/Makefile: Ditto.
108 * regtests/shared/regtests.c: Ditto.
109 * regtests/shared/regtests.h: Ditto.
110 * regtests/win32base/.cvsignore: Ditto.
111 * regtests/win32base/driver.c: Ditto.
112 * regtests/win32base/file-1.c: Ditto.
113 * regtests/win32base/Makefile: Ditto.
114 * regtests/win32base/win32base.def: Ditto.
115 * regtests/win32base/win32base.edf: Ditto.
116 * tools/regtests.c: Ditto.
117 * Makefile: Add target regtests.
118 * config: Add SEH option.
119 * rules.mak: Add tool REGTESTS.
120 * bootdata/hivesys.inf: Add service kmregtests.
121 * include/win32k/bitmaps.h (DIB_BitmapInfoSize): Correct prototype.
122 * ntoskrnl/ke/i386/exp.c (KiKernelTrapHandler): Reverse wrong boolean
123 expression.
124 * ntoskrnl/ke/i386/usertrap.c (KiUserTrapHandler): Ditto.
125 * tools/Makefile: Add tool regtests.
126 * tools/config.mk: Handle SEH option.
127 * tools/helper.mk: Support regression tests.
128
129 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
130
131 * apps/tests/bitblt/bitblt.c (MainWndProc): Declare variables
132 before any statements are processed in the scope.
133 * apps/tests/icontest/icontest.c (WinMain): Ditto.
134 * apps/tests/wm_paint/wm_paint.c (WinMain, MainWndProc): Ditto.
135
136 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
137
138 * lib/user32/controls/button.c (PB_Paint, GB_Paint): Declare variables
139 before any statements are processed in the scope.
140 * lib/user32/controls/combo.c (CBPaintButton): Ditto.
141 * lib/user32/windows/accel.c (TranslateAcceleratorA): Ditto.
142 * subsys/win32k/include/class.h (W32kGetClassLong): Fix prototype.
143 * subsys/win32k/ntuser/class.c (W32kGetClassLong): Match prototype.
144 * subsys/win32k/ntuser/windc.c (DceAllocDCE): Ditto.
145 * subsys/win32k/ntuser/window.c (DestroyThreadWindows): Ditto.
146
147 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
148
149 * tools/rgenstat/rgenstat.c (process_directory): Fix building on Windows.
150
151 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
152
153 * tools/rgenstat/rgenstat.c (API_INFO): Add filename field.
154 (path_to_url, get_filename): New functions.
155 (parse_file, process_directory): Build cvs path.
156 (generate_xml_for_component): Set file attribute on a function.
157 * tools/rgenstat/web/rapistatus.css (.h): New class.
158 * tools/rgenstat/web/rapistatus.js (clickHandler): Go to the file in
159 ViewCVS on click on a function.
160 * tools/rgenstat/web/rapistatus.xsl: Handle file attribute.
161
162 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
163
164 * subsys/win32k/objects/region.c (W32kFillRgn): Fix syntax error.
165
166 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
167
168 * tools/rgenstat/rgenstat.c (get_previous_identifier): Skip end-of-line
169 characters when searching for identifier.
170 (parse_file): Print a warning if no identifier is found.
171
172 2003-07-10 James Tabor <jimtabor@adsl-64-217-116-74.dsl.hstntx.swbell.net>
173
174 * subsys/win32k/objects/region.c: (W32kFillRgn) Implement.
175
176 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
177
178 * lib/winspool/stubs.c: Add @implemented and @unimplemented to APIs.
179
180 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
181
182 * lib/wsock32/stubs.c: Add @implemented and @unimplemented to APIs.
183
184 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
185
186 * lib/ws2_32/misc/bsd.c: Add @implemented and @unimplemented to APIs.
187 * lib/ws2_32/misc/dllmain.c: Ditto.
188 * lib/ws2_32/misc/event.c: Ditto.
189 * lib/ws2_32/misc/ns.c: Ditto.
190 * lib/ws2_32/misc/sndrcv.c: Ditto.
191 * lib/ws2_32/misc/stubs.c: Ditto.
192 * lib/ws2_32/misc/upcall.c: Ditto.
193
194 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
195
196 * drivers/dd/videoprt/videoprt.c: Add @implemented and @unimplemented
197 to APIs.
198
199 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
200
201 * lib/version/misc/stubs.c: Add @implemented and @unimplemented to APIs.
202
203 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
204
205 * lib/user32/misc/dde.c: Add @implemented and @unimplemented to APIs.
206 * lib/user32/misc/desktop.c: Ditto.
207 * lib/user32/misc/display.c: Ditto.
208 * lib/user32/misc/exit.c: Ditto.
209 * lib/user32/misc/object.c: Ditto.
210 * lib/user32/misc/resources.c: Ditto.
211 * lib/user32/misc/sprintf.c: Ditto.
212 * lib/user32/misc/stubs.c: Ditto.
213 * lib/user32/misc/timer.c: Ditto.
214 * lib/user32/misc/winhelp.c: Ditto.
215 * lib/user32/misc/winsta.c: Ditto.
216 * lib/user32/windows/accel.c: Ditto.
217 * lib/user32/windows/bitmap.c: Ditto.
218 * lib/user32/windows/class.c: Ditto.
219 * lib/user32/windows/clipboard.c: Ditto.
220 * lib/user32/windows/cursor.c: Ditto.
221 * lib/user32/windows/dc.c: Ditto.
222 * lib/user32/windows/defwnd.c: Ditto.
223 * lib/user32/windows/dialog.c: Ditto.
224 * lib/user32/windows/draw.c: Ditto.
225 * lib/user32/windows/font.c: Ditto.
226 * lib/user32/windows/hook.c: Ditto.
227 * lib/user32/windows/icon.c: Ditto.
228 * lib/user32/windows/input.c: Ditto.
229 * lib/user32/windows/mdi.c: Ditto.
230 * lib/user32/windows/menu.c: Ditto.
231 * lib/user32/windows/message.c: Ditto.
232 * lib/user32/windows/messagebox.c: Ditto.
233 * lib/user32/windows/nonclient.c: Ditto.
234 * lib/user32/windows/paint.c: Ditto.
235 * lib/user32/windows/prop.c: Ditto.
236 * lib/user32/windows/rect.c: Ditto.
237 * lib/user32/windows/text.c: Ditto.
238 * lib/user32/windows/window.c: Ditto.
239
240 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
241
242 * drivers/net/tdi/cte/string.c: Add @implemented and @unimplemented to
243 APIs.
244 * drivers/net/tdi/cte/stubs.c: Ditto.
245 * drivers/net/tdi/tdi/dereg.c: Ditto.
246 * drivers/net/tdi/tdi/handler.c: Ditto.
247 * drivers/net/tdi/tdi/obsolete.c: Ditto.
248 * drivers/net/tdi/tdi/stubs.c: Ditto.
249
250 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
251
252 * lib/snmpapi/snmpapi.c: Add @implemented and @unimplemented to APIs.
253
254 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
255
256 * lib/secur32/lsa.c: Add @implemented and @unimplemented to APIs.
257
258 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
259
260 * drivers/storage/scsiport/scsiport.c: Add @implemented and
261 @unimplemented to APIs.
262
263 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
264
265 * drivers/net/ndis/ndis/40gone.c: Add @implemented and @unimplemented
266 to APIs.
267 * drivers/net/ndis/ndis/50gone.c: Ditto.
268 * drivers/net/ndis/ndis/buffer.c: Ditto.
269 * drivers/net/ndis/ndis/cl.c: Ditto.
270 * drivers/net/ndis/ndis/cm.c: Ditto.
271 * drivers/net/ndis/ndis/co.c: Ditto.
272 * drivers/net/ndis/ndis/control.c: Ditto.
273 * drivers/net/ndis/ndis/hardware.c: Ditto.
274 * drivers/net/ndis/ndis/io.c: Ditto.
275 * drivers/net/ndis/ndis/memory.c: Ditto.
276 * drivers/net/ndis/ndis/miniport.c: Ditto.
277 * drivers/net/ndis/ndis/protocol.c: Ditto.
278 * drivers/net/ndis/ndis/string.c: Ditto.
279 * drivers/net/ndis/ndis/stubs.c: Ditto.
280 * drivers/net/ndis/ndis/time.c: Ditto.
281
282 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
283
284 * lib/kernel32/debug/break.c: Add @implemented and @unimplemented
285 to APIs.
286 * lib/kernel32/debug/debugger.c: Ditto.
287 * lib/kernel32/debug/output.c: Ditto.
288 * lib/kernel32/except/except.c: Ditto.
289 * lib/kernel32/file/backup.c: Ditto.
290 * lib/kernel32/file/cnotify.c: Ditto.
291 * lib/kernel32/file/copy.c: Ditto.
292 * lib/kernel32/file/create.c: Ditto.
293 * lib/kernel32/file/curdir.c: Ditto.
294 * lib/kernel32/file/delete.c: Ditto.
295 * lib/kernel32/file/deviceio.c: Ditto.
296 * lib/kernel32/file/dir.c: Ditto.
297 * lib/kernel32/file/dosdev.c: Ditto.
298 * lib/kernel32/file/file.c: Ditto.
299 * lib/kernel32/file/find.c: Ditto.
300 * lib/kernel32/file/iocompl.c: Ditto.
301 * lib/kernel32/file/lfile.c: Ditto.
302 * lib/kernel32/file/lock.c: Ditto.
303 * lib/kernel32/file/mailslot.c: Ditto.
304 * lib/kernel32/file/move.c: Ditto.
305 * lib/kernel32/file/npipe.c: Ditto.
306 * lib/kernel32/file/pipe.c: Ditto.
307 * lib/kernel32/file/rw.c: Ditto.
308 * lib/kernel32/file/tape.c: Ditto.
309 * lib/kernel32/file/volume.c: Ditto.
310 * lib/kernel32/mem/global.c: Ditto.
311 * lib/kernel32/mem/heap.c: Ditto.
312 * lib/kernel32/mem/isbad.c: Ditto.
313 * lib/kernel32/mem/local.c: Ditto.
314 * lib/kernel32/mem/procmem.c: Ditto.
315 * lib/kernel32/mem/section.c: Ditto.
316 * lib/kernel32/mem/virtual.c: Ditto.
317 * lib/kernel32/misc/atom.c: Ditto.
318 * lib/kernel32/misc/comm.c: Ditto.
319 * lib/kernel32/misc/computername.c: Ditto.
320 * lib/kernel32/misc/console.c: Ditto.
321 * lib/kernel32/misc/env.c: Ditto.
322 * lib/kernel32/misc/error.c: Ditto.
323 * lib/kernel32/misc/errormsg.c: Ditto.
324 * lib/kernel32/misc/handle.c: Ditto.
325 * lib/kernel32/misc/ldr.c: Ditto.
326 * lib/kernel32/misc/mbchars.c: Ditto.
327 * lib/kernel32/misc/muldiv.c: Ditto.
328 * lib/kernel32/misc/perfcnt.c: Ditto.
329 * lib/kernel32/misc/profile.c: Ditto.
330 * lib/kernel32/misc/res.c: Ditto.
331 * lib/kernel32/misc/stubs.c: Ditto.
332 * lib/kernel32/misc/sysinfo.c: Ditto.
333 * lib/kernel32/misc/time.c: Ditto.
334 * lib/kernel32/misc/toolhelp.c: Ditto.
335 * lib/kernel32/process/cmdline.c: Ditto.
336 * lib/kernel32/process/create.c: Ditto.
337 * lib/kernel32/process/proc.c: Ditto.
338 * lib/kernel32/process/session.c: Ditto.
339 * lib/kernel32/string/lstring.c: Ditto.
340 * lib/kernel32/synch/critical.c: Ditto.
341 * lib/kernel32/synch/event.c: Ditto.
342 * lib/kernel32/synch/intrlck.c: Ditto.
343 * lib/kernel32/synch/mutex.c: Ditto.
344 * lib/kernel32/synch/sem.c: Ditto.
345 * lib/kernel32/synch/timer.c: Ditto.
346 * lib/kernel32/synch/wait.c: Ditto.
347 * lib/kernel32/thread/fiber.c: Ditto.
348 * lib/kernel32/thread/fls.c: Ditto.
349 * lib/kernel32/thread/thread.c: Ditto.
350 * lib/kernel32/thread/tls.c: Ditto.
351
352 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
353
354 * lib/iphlpapi/iphlpapi.c: Add @implemented and @unimplemented
355 to APIs.
356
357 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
358
359 * lib/gdi32/main/dllmain.c: Add @implemented and @unimplemented
360 to APIs.
361 * lib/gdi32/misc/stubs.c: Ditto.
362 * lib/gdi32/misc/stubsa.c: Ditto.
363 * lib/gdi32/misc/stubsw.c: Ditto.
364 * lib/gdi32/objects/bitblt.c: Ditto.
365 * lib/gdi32/objects/brush.c: Ditto.
366 * lib/gdi32/objects/clip.c: Ditto.
367 * lib/gdi32/objects/dc.c: Ditto.
368 * lib/gdi32/objects/fillshap.c: Ditto.
369 * lib/gdi32/objects/line.c: Ditto.
370 * lib/gdi32/objects/pen.c: Ditto.
371 * lib/gdi32/objects/region.c: Ditto.
372 * lib/gdi32/objects/text.c: Ditto.
373
374 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
375
376 * drivers/storage/class2/class2.c: Add @implemented and @unimplemented
377 to APIs.
378
379 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
380
381 * lib/advapi32/misc/shutdown.c: Add @implemented and @unimplemented
382 to APIs.
383 * lib/advapi32/misc/stubs.c: Ditto.
384 * lib/advapi32/misc/sysfunc.c: Ditto.
385 * lib/advapi32/reg/reg.c: Ditto.
386 * lib/advapi32/sec/ac.c: Ditto.
387 * lib/advapi32/sec/misc.c: Ditto.
388 * lib/advapi32/sec/sec.c: Ditto.
389 * lib/advapi32/sec/sid.c: Ditto.
390 * lib/advapi32/service/scm.c: Ditto.
391 * lib/advapi32/service/sctrl.c: Ditto.
392 * lib/advapi32/token/privilege.c: Ditto.
393 * lib/advapi32/token/token.c: Ditto.
394
395 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
396
397 * tools/rgenstat/rgenstat.c (parse_file): Be silent.
398
399 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
400
401 * rules.mak (XSLTPROC): Add.
402 * tools/Makefile: Add rgenstat.
403 * apistatus.lst: New file.
404 * tools/rgenstat: New directory.
405 * tools/rgenstat/.cvsignore: New file.
406 * tools/rgenstat/llmosrt.c: Ditto.
407 * tools/rgenstat/Makefile: Ditto.
408 * tools/rgenstat/rgenstat.c: Ditto.
409 * tools/rgenstat/web: New directory.
410 * tools/rgenstat/web/*.gif: New files.
411 * tools/rgenstat/web/.cvsignore: New file.
412 * tools/rgenstat/web/rapistatus.css: Ditto.
413 * tools/rgenstat/web/rapistatus.js: Ditto.
414 * tools/rgenstat/web/rapistatus.xsl: Ditto.
415
416 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
417
418 * drivers/fs/vfat/misc.c (VfatLockControl): Move it so it is placed
419 before it is referenced.
420 * include/win32k/ntuser.h (NtUserQueryWindow): Correct prototype.
421 * lib/winedbgc/debug.c (default_dbg_vlog): Use wine_dbg_vprintf, not
422 __wine_dbg_vprintf.
423 * ntoskrnl/nt/vdm.c (NtEarlyInitVdm): Work around GCC 3.4 trying to be
424 smart.
425
426 2003-07-07 James Tabor <jimtabor@adsl-64-217-116-74.dsl.hstntx.swbell.net>
427
428 * subsys/win32k/ntuser/window.c: (NtUserQueryWindow) Implement.
429 * include/win32k/ntuser.h: Ditto.
430 * lib/user32/windows/window.c: (GetWindowThreadProcessId) Implement.
431
432 2003-07-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
433
434 * lib/user32/windows/defwnd.c (DefWndHandleLButtonUpNC,
435 User32DefWindowProc): Only send WM_SYSCOMMAND message, not WM_CLOSE.
436 (DefWndHandleSysCommand): Handle SC_CLOSE message.
437
438 2003-07-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
439
440 * include/win32k/ntuser.h (NtUserSetFocus): Correct prototype.
441 * lib/user32/misc/stubs.c (SetFocus): Remove.
442 * lib/user32/windows/defwnd.c (KEYDATA_ALT): New.
443 (User32DefWindowProc): Handle WM_SYSKEYDOWN.
444 * lib/user32/windows/input.c (SetFocus): New.
445 * subsys/win32k/include/msgqueue.h (USER_MESSAGE_QUEUE): Document
446 FocusWindow field.
447 * subsys/win32k/include/window.h (W32kSetFocusWindow): Change return type
448 to HWND.
449 * subsys/win32k/include/winsta.h (W32kGetFocusMessageQueue): New.
450 * subsys/win32k/ntuser/input.c (KeyboardThreadMain): Handle system keys.
451 * subsys/win32k/ntuser/keyboard.c (NtUserSetFocus): New.
452 * subsys/win32k/ntuser/msgqueue.c (MsqPostKeyboardMessage): Implement.
453 * subsys/win32k/ntuser/stubs.c (NtUserSetFocus): Remove.
454 * subsys/win32k/ntuser/window.c (W32kSetFocusWindow): Implement.
455 (NtUserGetClientRect, W32kGetWindowProc, NtUserCreateWindowEx): Release
456 window reference on error.
457 (W32kDestroyWindow): Remove focus from window tree before destroying it
458 if needed.
459 * subsys/win32k/ntuser/winpos.c (WinPosChangeActiveWindow): Implement.
460 (WinPosShowWindow): Activate window if needed.
461 * subsys/win32k/ntuser/winsta.c (W32kGetFocusMessageQueue): New.
462
463 2003-06-27 Casper S. Hornstrup <chorns@users.sourceforge.net>
464
465 * lib/user32/controls/button.c (ButtonWndProc_common): Fix unsigned/signed
466 warning.
467
468 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
469
470 * include/ddk/dbgfuncs.h: Move ...
471 * include/ntos/dbgfuncs.h: ... here.
472 * include/basetsd.h (LONG32): Make it a long.
473 * include/ntos.h: Include ntos/dbgfuncs.h.
474 * include/ddk/dbgfuncs.h (DBG_STATUS_*, DBG_GET_SHOW_*): Move to
475 include/ntos/dbgfuncs.h.
476 * include/ddk/exfuncs.h (ExNotifyCallback): Match w32api prototype.
477 (*BinaryTree, *SplayTree, *HashTable): Move to include/ntos/zw.h.
478 * include/ddk/extypes.h (TRAVERSE_METHOD, PKEY_COMPARATOR,
479 PTRAVERSE_ROUTINE, _BINARY_TREE_NODE, BINARY_TREE, SPLAY_TREE_NODE,
480 SPLAY_TREE, HASH_TABLE): Move to include/ntos/zwtypes.h.
481 * include/ddk/status.h (STATUS_PATH_SYNTAX_BAD): Rename to
482 STATUS_OBJECT_PATH_SYNTAX_BAD.
483 * apps/utils/objdir/objdir.c (StatusToName): Change
484 STATUS_PATH_SYNTAX_BAD to STATUS_OBJECT_PATH_SYNTAX_BAD.
485 * ntoskrnl/dbg/errinfo.c: Use STATUS_OBJECT_PATH_SYNTAX_BAD.
486 * include/ntos/rtl.h (RtlQueryRegistryValues, RtlWriteRegistryValue,
487 RtlDeleteRegistryValue): Match w32api prototypes.
488 * include/ntos/zw.h (ZwQuerySystemTime): Ditto.
489 * lib/kernel32/file/cnotify.c (FindFirstChangeNotificationW): Use
490 STATUS_OBJECT_PATH_SYNTAX_BAD.
491 * lib/ntdll/rtl/registry.c (RtlDeleteRegistryValue,
492 RtlQueryRegistryValues, RtlWriteRegistryValue): Match w32api prototypes.
493 * ntoskrnl/cm/cm.h, ntoskrnl/cm/ntfunc.c, ntoskrnl/cm/regfile.c: Change
494 FILETIME to LARGE_INTEGER.
495 * ntoskrnl/cm/rtlfunc.c (RtlDeleteRegistryValue, RtlQueryRegistryValues,
496 RtlWriteRegistryValue): Match w32api prototypes.
497 * ntoskrnl/ex/callback.c (ExNotifyCallback): Ditto.
498 * ntoskrnl/ex/time.c (NtQuerySystemTime): Ditto.
499
500 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
501
502 * hal/halx86/dma.c (AdapterObjects): Don't put braces on scalar
503 initializers.
504
505 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
506
507 Changes for compiling with w32api
508
509 * include/ddk/obfuncs.h (ObCreateObject): Remove.
510 * include/ntos/zwtypes.h (ObRosCreateObject): Add.
511 * ntoskrnl/ntoskrnl.def, ntoskrnl/ntoskrnl.edf: Export ObCreateObject@36
512 and ObRosCreateObject@20.
513 * ntoskrnl/cm/ntfunc.c, ntoskrnl/cm/registry.c, ntoskrnl/cm/regobj.c,
514 ntoskrnl/io/create.c, ntoskrnl/io/device.c, ntoskrnl/io/iocomp.c,
515 ntoskrnl/lpc/connect.c, ntoskrnl/lpc/create.c, ntoskrnl/mm/section.c,
516 ntoskrnl/nt/evtpair.c, ntoskrnl/nt/mutant.c, ntoskrnl/nt/ntevent.c,
517 ntoskrnl/nt/ntsem.c, ntoskrnl/nt/nttimer.c, ntoskrnl/nt/profile.c,
518 ntoskrnl/ob/dirobj.c, ntoskrnl/ob/namespc.c, ntoskrnl/ob/symlink.c,
519 ntoskrnl/ps/create.c, ntoskrnl/ps/process.c, ntoskrnl/se/token.c,
520 subsys/win32k/ntuser/winsta.c: Use ObRosCreateObject, not ObCreateObject.
521 * ntoskrnl/ob/object.c (ObRosCreateObject): Rename from ObCreateObject.
522 (ObCreateObject): Add stub.
523
524 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
525
526 Changes for compiling with w32api
527
528 * include/ddk/cctypes.h (PREACTOS_COMMON_FCB_HEADER): Remove.
529 (FSRTL_COMMON_FCB_HEADER): Add.
530 * include/ddk/iotypes.h (FILE_OBJECT): Rename field
531 SectionObjectPointers to SectionObjectPointer.
532 * ntoskrnl/cc/copy.c, ntoskrnl/cc/misc.c, ntoskrnl/cc/pin.c,
533 ntoskrnl/cc/view.c, ntoskrnl/io/rawfs.c, ntoskrnl/mm/section.c,
534 drivers/fs/cdfs/cleanup.c, drivers/fs/cdfs/fcb.c,
535 drivers/fs/cdfs/fsctl.c, drivers/fs/ntfs/fcb.c, drivers/fs/ntfs/fsctl.c,
536 drivers/fs/vfat/close.c, drivers/fs/vfat/create.c,
537 drivers/fs/vfat/finfo.c, drivers/fs/vfat/fcb.c, drivers/fs/vfat/fsctl.c:
538 Use new FILE_OBJECT structure.
539 * drivers/fs/cdfs/cdfs.h, drivers/fs/ntfs/ntfs.h, drivers/fs/vfat/vfat.h:
540 Use new FSRTL_COMMON_FCB_HEADER structure.
541 * drivers/net/afd/include/afd.h (FSRTL_COMMON_FCB_HEADER): Remove.
542 * include/ddk/ketypes.h (KQUEUE): Match w32api structure.
543 * ntoskrnl/ke/queue.c, ntoskrnl/ke/wait.c: Use new structure.
544 * ntoskrnl/ke/spinlock.c (KeAcquireSpinLockAtDpcLevel,
545 KeReleaseSpinLockFromDpcLevel): Undefine before declaring.
546
547 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
548
549 Changes for compiling with w32api
550
551 * include/ddk/ketypes.h (KSPIN_LOCK, PKSPIN_LOCK): Match w32api
552 structures.
553 * ntoskrnl/ke/spinlock.c: Use new structures.
554
555 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
556
557 Changes for compiling with w32api
558
559 * include/ddk/service.h: Move ...
560 * include/ntos/service.h: ... here.
561 * include/ddk/kdfuncs.h: Move ...
562 * include/ntos/kdfuncs.h: ... here.
563 * include/ntos/halfuncs.h: New file.
564 * ntoskrnl/include/internal/hal/hal.h,
565 ntoskrnl/include/internal/hal/bus.h,
566 ntoskrnl/include/internal/hal/mps.h: Remove.
567 * hal/halx86/include/hal.h: Remove disabled code.
568 * include/ntos.h: Include ntos/service.h, ntos/halfuncs.h, and
569 ntos/kdfuncs.h.
570 * include/ddk/fstypes.h (FILE_LOCK_TOC): Move ...
571 * include/ntos/file.h: ... here.
572 * include/ddk/halfuncs.h (HalAllProcessorsStarted,
573 HalBeginSystemInterrupt, HalDisableSystemInterrupt,
574 HalEnableSystemInterrupt, HalEndSystemInterrupt,
575 HalInitializeProcessor, HalInitSystem, HalReportResourceUsage): Move to
576 include/ntos/halfuncs.h.
577 * include/ddk/iofuncs.h (IoAssignDriveLetters): Ditto.
578 * include/ddk/kefuncs.h (KeInitializeApc): Match w32api prototype.
579 (KeRaiseIrqlToSynchLevel): Move to include/ntos/halfuncs.h.
580 * include/ddk/ketypes.h (KAPC_ENVIRONMENT): Move to include/ntos/types.h.
581 (KDEVICE_QUEUE, KDEVICE_QUEUE_ENTRY): Match w32api prototype.
582 (KINTERRUPT): Move to include/ntos/zwtypes.h.
583 * include/ddk/mmtypes.h (PAGE_ROUND_UP, PAGE_ROUND_DOWN): Move ...
584 * include/ntos/mm.h: ... here.
585 * include/ddk/ntddk.h: Don't include ddk/kdfuncs.h.
586 * include/ddk/pstypes.h (PKTHREAD, PRKTHREAD): Add.
587 (PsInitialSystemProcess, PsProcessType, PsThreadType): Move ...
588 include/ntos/ps.h: ... here.
589 * lib/ntdll/rtl/i386/exception.c (SehpContinue): New.
590 * ntoskrnl/rtl/i386/exception.c (SehpContinue): Ditto.
591 * ntoskrnl/include/internal/ke.h: Include <ddk/ntifs.h>.
592 * ntoskrnl/include/internal/ntoskrnl.h: Include internal/ke.h.
593 * ntoskrnl/ex/napi.c: Use new structure SSDT_ENTRY.
594 * ntoskrnl/ke/apc.c (KeInitializeApc): Match w32api prototype.
595 * ntoskrnl/ke/kqueue.c: Use fields of new structures KDEVICE_QUEUE
596 and KDEVICE_QUEUE_ENTRY.
597
598 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
599
600 * ntoskrnl/cm/regfile.c (CmiCopyKey): Fix unsigned/signed warning.
601
602 2003-06-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
603
604 * lib/user32/windows/icon.c (CURSORICON_FindBestCursor,
605 CURSORICON_FindBestIcon): Fix unsigned/signed warning.
606
607 2003-06-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
608
609 Changes for compiling with w32api
610
611 * ntoskrnl/include/internal/i386/ps.h (KPCR_TSS): Redefine as 0x3C.
612 (KPCR_TIB): New structure.
613 (IKPCR): Ditto.
614 (KPCR): Match w32api structure fieldnames.
615 * ntoskrnl/ke/main.c (ExpInitializeExecutive): Adjust for changes to KPCR.
616 * ntoskrnl/ke/i386/kernel.c: Ditto.
617 * ntoskrnl/ps/thread.c: Ditto.
618
619 2003-06-01 Casper S. Hornstrup <chorns@users.sourceforge.net>
620
621 Changes for compiling with w32api
622
623 * include/ntos/zwtypes.h (SYSTEM_MODULES): Rename to
624 SYSTEM_MODULE_INFORMATION. Match w32api structure fieldnames.
625 (SYSTEM_MODULE_INFORMATION): Rename to SYSTEM_MODULE_INFORMATION_ENTRY.
626 Match w32api structure fieldnames.
627 * include/epsapi.h: Include <ntos.h>.
628 (PSYSMOD_ENUM_ROUTINE, PsaCaptureSystemModules, PsaWalkSystemModules,
629 PsaWalkFirstSystemModule, PsaWalkNextSystemModule): Use
630 SYSTEM_MODULE_INFORMATION_ENTRY and SYSTEM_MODULE_INFORMATION structures.
631 * lib/epsapi/enum/drivers.c: Use SYSTEM_MODULE_INFORMATION_ENTRY and
632 SYSTEM_MODULE_INFORMATION structures.
633 * lib/psapi/misc/win32.c: Ditto.
634 * ntoskrnl/ldr/loader.c: Ditto.
635 * lib/epsapi/enum/modules.c: Include <ntos.h>.
636 * lib/ntdll/rtl/thread.c: Ditto.
637 * lib/rosrtl/thread/context.c: Ditto.
638 * lib/rosrtl/thread/create.c: Ditto.
639 * lib/rosrtl/thread/stack.c: Ditto.
640 * include/ntos.h: Include "rosrtl/thread.h".
641 * include/structs.h (_BLOB_DEFINED): Rename to __BLOB_T_DEFINED.
642 * include/winsock2.h: Ditto.
643 * include/ntos/obtypes.h (POBJECT_TYPE): Make a pointer to struct
644 _OBJECT_TYPE.
645 (PHANDLE_TABLE): Make a pointer to struct _HANDLE_TABLE.
646 * ntoskrnl/include/internal/mm.h (PSECTION_OBJECT): Make a pointer to
647 struct _SECTION_OBJECT.
648 * ntoskrnl/include/internal/i386/ps.h (PKPCR): Make a pointer to struct
649 _KPCR.
650
651 2003-05-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
652
653 * Makefile: Update bootcd target.
654
655 2003-05-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
656
657 * subsys/system/usetup/progress.c (ProgressNextStep): Check if NewPos
658 is odd.
659
660 2003-05-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
661
662 Changes for compiling with w32api
663
664 * include/ddk/haltypes.h: Move ...
665 * include/ntos/haltypes.h: ... here.
666 * include/ddk/obtypes.h: Move ...
667 * include/ntos/obtypes.h: ... here.
668 * include/ddk/i386/tss.h: Move ...
669 * include/ntos/tss.h: ... here.
670 * include/errors.h, include/windows.h: #include_next <windows.h>.
671 * include/ntos.h: Include "ntos/haltypes.h", "ntos/obtypes.h", and
672 "ntos/tss.h".
673 * include/ddk/defines.h (EXPORTED, IMPORTED): Move to
674 include/ntos/types.h.
675 * include/ddk/exfuncs.h, include/ddk/mmtypes.h, include/ntos/except.h,
676 include/ntos/file.h, include/ole32/guiddef.h, include/win32k/color.h,
677 lib/msafd/include/debug.h, lib/user32/include/debug.h,
678 lib/ws2_32/include/debug.h, lib/ws2help/debug.h,
679 ntoskrnl/include/internal/debug.h, ntoskrnl/ke/i386/bthread.S,
680 ntoskrnl/rtl/error.c: Don't define macros if previously defined.
681 * include/ddk/halfuncs.h: Include <ntos/haltypes.h>.
682 * include/ddk/iotypes.h: Include <ntos/obtypes.h>.
683 * include/ddk/ketypes.h (MB_FLAGS_*, LOADER_MODULE, ADDRESS_RANGE,
684 LOADER_PARAMETER_BLOCK): Move to include/ntos/types.h.
685 * include/ddk/ntddk.h: #include_next <ddk/ntddk.h>.
686 * include/ddk/ntifs.h: #include_next <ddk/ntifs.h>.
687 * include/napi/shared_data.h (SharedUserData): Undefine before defining.
688 * include/ntos/rtl.h (RtlUpcaseUnicodeString): Correct prototype.
689 * include/ntos/zwtypes.h (THREAD_STATE): Add.
690 * lib/ntdll/rtl/unicode.c (RtlUpcaseUnicodeString): Match new prototype.
691 * ntoskrnl/rtl/unicode.c (RtlUpcaseUnicodeString): Ditto.
692 * lib/string/Makefile: Include Makefile.$(ARCH). Don't include
693 makefile.$(ARCH).
694 * ntoskrnl/ex/sysinfo.c, ntoskrnl/include/internal/ntoskrnl.h,
695 * ntoskrnl/include/internal/ob.h, ntoskrnl/ob/handle.c: Include <ntos.h>.
696 * ntoskrnl/ke/i386/syscall.S: Don't include <ddk/defines.h>.
697 (KernelMode, UserMode): Define.
698 * ntoskrnl/ke/i386/stkswitch.S, ntoskrnl/ke/i386/tskswitch.S,
699 ntoskrnl/ke/i386/v86m_sup.S: Include <ntos/tss.h>
700
701 2003-05-25 Casper S. Hornstrup <chorns@users.sourceforge.net>
702
703 * Makefile: Fix typo.
704
705 2003-05-25 Casper S. Hornstrup <chorns@users.sourceforge.net>
706
707 * Makefile: Don't install system.hiv. Install fonts and nls directory.
708 * tools/rcopy.c (copy_file, copy_directory, is_directory): New functions.
709
710 2003-05-17 Casper S. Hornstrup <chorns@users.sourceforge.net>
711
712 * ntoskrnl/io/irp.c (IofCallDriver): Don't reference FileObject.
713
714 2003-05-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
715
716 * ntoskrnl/io/cleanup.c (IopCompleteRequest1, IoSecondStageCompletion):
717 Don't dereference Irp->UserEvent here.
718 * ntoskrnl/io/irp.c (IofCallDriver): Reference FileObject.
719 * ntoskrnl/io/rw.c (IopReadWriteIoComplete): New function.
720 * (NtReadFile, NtWriteFile): Set I/O completion routine if using an
721 event that is under object manager control.
722
723 2003-05-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
724
725 * ntoskrnl/Makefile (OBJECTS_IO): Add io/rawfs.o.
726 * ntoskrnl/cm/registry.c (CmiInitHives): Check status using NT_SUCCESS().
727 * ntoskrnl/include/internal/io.h (RawFsIsRawFileSystemDeviceObject,
728 RawFsDriverEntry): Add prototypes.
729 * ntoskrnl/include/internal/ntoskrnl.h (IoInit2): Add prototype.
730 * ntoskrnl/io/device.c (IopCreateDriverObject): Handle unnamed services.
731 * ntoskrnl/io/fs.c (IoMountVolume): Handle mounting of raw volumes.
732 (IoRegisterFileSystem): Add registered filesystem device objects at the
733 head of the list.
734 * ntoskrnl/io/iomgr.c (IoInit2): New function.
735 * ntoskrnl/ke/main.c (ExpInitializeExecutive): Call IoInit2().
736 * ntoskrnl/mm/section.c (MmQuerySectionView): Check return value of call
737 to MmFindRegion().
738 * ntoskrnl/io/rawfs.c: New file.
739
740 2003-05-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
741
742 * lib/fslib/vfatlib/vfatlib.c (VfatFormat): Set hidden sectors.
743 * ntoskrnl/io/xhaldrv.c (xHalIoWritePartitionTable): Implement support
744 for primary partitions.
745 * subsys/system/usetup/partlist.c (CreateSelectedPartition): Compute
746 hidden sectors.
747 * subsys/system/usetup/usetup.c (SelectPartitionPage,
748 DrawFileSystemList, FormatPartitionPage): Don't use conditional define
749 ENABLE_FORMAT.
750 (CreateFileSystemList): Don't draw "Keep current file system" option if
751 formatting is needed.
752 (SelectFileSystemPage): Figure out if partition must be formatted.
753 * subsys/system/usetup/usetup.h (ENABLE_FORMAT): Remove.
754 (FILE_SYSTEM_LIST): Add ForceFormat field.
755
756 2003-05-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
757
758 * lib/user32/windows/font.c (TEXT_PathEllipsify, TEXT_Reprefix): Fix
759 unsigned/signed warning.
760 * ntoskrnl/mm/pagefile.c (MmWriteToSwapPage, MmReadFromSwapPage,
761 NtCreatePagingFile): Ditto.
762
763 2003-05-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
764
765 * tools/helper.mk: Kill implicit rule ".o".
766
767 2003-04-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
768
769 * Makefile (DLLS): Add epsapi, psapi and wsock32.
770 * lib/ntdll/ldr/utils.c (LdrPerformRelocations): Handle the case where a
771 relocation crosses a page boundary.
772 (LdrFixupImports): Use image load address in calculatation of import
773 address list.
774
775 2003-04-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
776
777 * lib/fslib/vfatlib/vfatlib.h: New file.
778 * subsys/system/usetup/format.c: Ditto.
779 * subsys/system/usetup/format.h: Ditto.
780 * lib/fslib/vfatlib/vfatlib.c (GetShiftCount): Define.
781 (VfatWriteBootSector, VfatWriteFsInfo, VfatWriteFAT,
782 VfatWriteRootDirectory): New function.
783 (VfatFormat): Implement.
784 * subsys/system/usetup/bootsup.c: (InstallFat32BootCodeToFile): Use
785 0x0000 as marker to disable backup boot sector.
786 (InstallFat32BootCodeToDisk): Add lower 8-bit to BackupBootSector.
787 Also treat 0x0000 as no backup boot sector is available.
788 * subsys/system/usetup/makefile (TARGET_SDKLIBS): Define.
789 (TARGET_OBJECTS): Add format.o.
790 * subsys/system/usetup/partlist.c (AddPartitionList): Initialize
791 PartNumber field.
792 (GetSelectedPartition): Set PartEntryNumber correctly.
793 (CreateSelectedPartition): Write partition information to disk.
794 (DeleteSelectedPartition): New function.
795 * subsys/system/usetup/partlist.h (PARTDATA): Add field CreatePartition.
796 (DeleteSelectedPartition): Prototype.
797 * subsys/system/usetup/usetup.c (ConfirmDeletePartition): New function.
798 (SelectPartitionPage): Support deletion of partition.
799 (FormatPartitionPage): Support formatting of partition.
800
801 2003-04-27 Casper S. Hornstrup <chorns@users.sourceforge.net>
802
803 * tools/helper.mk (TARGET_ASFLAGS): Add -march and define MK_ARCH_ID.
804 * lib/ntdll/makefile (TARGET_ASFLAGS): Define as
805 "-I $(PATH_TO_TOP)/include".
806 (TARGET_OBJECTS): Add ldr/entry.o.
807 * lib/ntdll/ldr/startup.c: Move inline assembly code...
808 * lib/ntdll/ldr/entry.S: ...here. New file.
809
810 2003-04-27 Casper S. Hornstrup <chorns@users.sourceforge.net>
811
812 * include/kernel32/kernel32.h (assert): Define.
813 * tools/mkhive/.cvsignore: New file.
814
815 2003-04-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
816
817 * subsys/system/usetup/partlist.c (AddPartitionList): Create
818 unpartitioned areas.
819 (CreatePartitionListNoGUI): Save disk geometry.
820 (PrintDiskData): Do not print hidden partition list entries.
821 (ScrollDownPartitionList, ScrollUpPartitionList): Skip hidden partition
822 list entries.
823 (GetActiveBootPartition): Use CurrentDisk as index.
824 (CreateSelectedPartition): New function.
825 * subsys/system/usetup/partlist.h (PARTDATA): Add field NewPartSize.
826 (PARTENTRY): Add fields StartingOffset and HidePartEntry.
827 (DISKENTRY): Add fields Cylinders, TracksPerCylinder, SectorsPerTrack,
828 and BytesPerSector;
829 (CreateSelectedPartition): Add Prototype.
830 * subsys/system/usetup/usetup.c (PAGE_NUMBER): Add CREATE_PARTITION_PAGE
831 and FORMAT_PARTITION_PAGE
832 (CurrentPartitionList, CurrentFileSystemList): New globals.
833 (SelectPartitionPage): Set CurrentPartitionList.
834 (PARTITION_SIZE_INPUT_FIELD_LENGTH): Define as 6.
835 (DrawInputField, ShowPartitionSizeInputBox, CreatePartitionPage,
836 CreateFileSystemList, DestroyFileSystemList, DrawFileSystemList,
837 ScrollDownFileSystemList, ScrollUpFileSystemList, FormatPartitionPage):
838 New functions.
839 (SelectFileSystemPage): Draw partition screen.
840 (CheckFileSystemPage): Handle CREATE_PARTITION_PAGE and
841 FORMAT_PARTITION_PAGE.
842 * subsys/system/usetup/usetup.h (FILE_SYSTEM, FILE_SYSTEM_LIST): Add enums.
843
844 2003-04-17 Casper S. Hornstrup <chorns@users.sourceforge.net>
845
846 * tools/mkhive/infcache.c (InfpCacheFindSection, InfpCacheFindKeyLine,
847 InfFindFirstLine, InfFindFirstMatchLine, InfFindNextMatchLine,
848 InfGetLineCount): Change call to stricmp() to strcasecmp().
849 * tools/mkhive/reginf.c (GetRootKey): Ditto.
850 * tools/mkhive/registry.c (RegSetValue, RegQueryValue): Ditto.
851
852 2003-04-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
853
854 * ntoskrnl/kd/gdbstub.c (KdEnterDebuggerException): Fix signed/unsigned
855 comparison warning.
856 * ntoskrnl/ke/i386/exp.c (KiKernelTrapHandler): Ditto.
857 * ntoskrnl/ke/i386/usertrap.c (KiUserTrapHandler): Ditto.
858 * tools/helper.mk: Do not install static libraries.
859
860 2003-04-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
861
862 * tools/Makefile: Fix rule for mkflpimg.
863
864 2003-04-12 Casper S. Hornstrup <chorns@users.sourceforge.net>
865
866 * tools/cdmake/Makefile: Use HOST_CC.
867 * tools/cdmake/cdmake.c (MAX_PATH, DIR_SEPARATOR_CHAR,
868 DIR_SEPARATOR_STRING): Define.
869 (directory_record): Add fields name_on_cd and extension_on_cd.
870 (error_exit): Make a macro. Avoid using vfprintf and fprintf.
871 (write_directory_record, new_directory_record, compare_directory_order,
872 pass): Use name_on_cd and extension_on_cd.
873 (make_directory_records, get_file_specifications): Use DIR_SEPARATOR_CHAR.
874 (new_directory_record, make_directory_records): Linux implementations.
875 (main): Use DIR_SEPARATOR_CHAR.
876
877 2003-04-06 Casper S. Hornstrup <chorns@users.sourceforge.net>
878
879 * lib/freetype/.cvsignore: Ignore nul.
880
881 2003-04-06 Casper S. Hornstrup <chorns@users.sourceforge.net>
882
883 * drivers/storage/atapi/atapi.c (AtapiReadWrite): Expect an interrupt a
884 bit sooner.
885 * hal/halx86/isa.c (HalpGetIsaInterruptVector): Compute vector for MP.
886 * hal/halx86/pci.c (HalpGetPciInterruptVector): Ditto.
887 * hal/halx86/sysbus.c (HalpGetSystemInterruptVector): Ditto.
888 * hal/halx86/mp.c (AssignIrqVector): Rewrite.
889 (MpsTimerHandler): Disable for now.
890 (MpsSpuriousHandler): Do not acknowledge interrupt.
891 (HalAllProcessorsStarted): Only boot 1 CPU for now.
892 (RescheduleDpcRoutine): New function.
893 (RescheduleDpc): New variable.
894 (HalpInitMPS): Initialize RescheduleDpc. Fix bug in call to memset.
895 * hal/halx86/mpsirql.c: Rewrite.
896 * hal/halx86/include/mps.h (VECTOR2IRQ, IRQ2VECTOR, VECTOR2IRQL,
897 IRQL2VECTOR): New macros.
898 * ntoskrnl/ntoskrnl.def: Add KeRescheduleThread@0.
899 * ntoskrnl/ntoskrnl.edf: Ditto.
900 * ntoskrnl/include/internal/ke.h (KeRescheduleThread): Prototype.
901 * ntoskrnl/ke/kthread.c (KeRescheduleThread): New function.
902 * ntoskrnl/ke/i386/exp.c (KeInitExceptions): Remove unneeded call to
903 set_trap_gate().
904 * ntoskrnl/ke/i386/irq.c (VECTOR2IRQ, IRQ2VECTOR, VECTOR2IRQL): Correct.
905 (IRQ_BASE): Define as FIRST_DEVICE_VECTOR.
906 (NR_IRQS): Define using IRQ_BASE.
907 (KeInitInterrupts): Use IRQ_BASE.
908 (KiInterruptDispatch2): Rewrite.
909 (KiInterruptDispatch): Ditto.
910 (KeConnectInterrupt): Pass Vector to HalEnableSystemInterrupt() for MP.
911 (KeDisconnectInterrupt): Pass Vector to HalDisableSystemInterrupt() for MP.
912 * ntoskrnl/ke/i386/trap.s (_KiTrapProlog): Change 0x124 to KPCR_CURRENT_THREAD.
913
914 2003-04-06 Casper S. Hornstrup <chorns@users.sourceforge.net>
915
916 * Makefile: Add format.
917 * include/fslib/vfatlib.h (VfatFormat): Prototype.
918 * lib/fmifs/format.c (VfatFormat): Add stub.
919 * lib/fmifs/makefile (TARGET_LIBS): Add vfatlib.a.
920 * lib/fslib/vfatlib/vfatlib.c (VfatFormat): Add stub.
921 * tools/helper.mk: Do not install .sym files for static libraries.
922 * subsys/system/format: New directory.
923 * subsys/system/format/makefile: New file.
924 * subsys/system/format/format.c: Ditto.
925
926 2003-04-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
927
928 * include/fslib: New directory.
929 * lib/fslib: Ditto.
930 * lib/fslib/vfatlib: Ditto.
931 * include/fslib/vfatlib.h: New file.
932 * lib/fslib/vfatlib/.cvsignore: Ditto.
933 * lib/fslib/vfatlib/Makefile: Ditto.
934 * lib/fslib/vfatlib/vfatlib.c: Ditto.
935 * Makefile: Support file system libraries
936 * lib/zlib/Makefile: Remove nostrip target.
937 * tools/helper.mk: Add nostrip target.
938
939 2003-04-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
940
941 * tools/.cvsignore: Ignore rline.
942
943 2003-04-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
944
945 * bootcd.bat: Install dosmbr.bin.
946 * drivers/storage/disk/disk.c (DiskClassDeviceControl): Pass physical
947 device object to IoWritePartitionTable().
948 * ntoskrnl/io/xhaldrv.c (xHalReadMBR): New function.
949 (xHalWriteMBR): Ditto.
950 (xHalExamineMBR): Use xHalReadMBR() to read MBR.
951 (xHalIoWritePartitionTable): Partial implement.
952 * subsys/system/usetup/bootsup.c (InstallMBRBootCodeToDisk): New function.
953 * subsys/system/usetup/bootsup.h (InstallMBRBootCodeToDisk): Prototype.
954 * subsys/system/usetup/partlist.c (CreatePartitionListNoGUI): New function.
955 (CreatePartitionList): Use CreatePartitionListNoGUI() to create partition
956 list.
957 (GetPartitionInformation): New function.
958 (MarkPartitionActive): Ditto.
959 * subsys/system/usetup/partlist.h (MarkPartitionActive): Prototype.
960 * subsys/system/usetup/usetup.c (SelectPartitionPage): Make SystemRootPath
961 point to the selected partition if no partitions are active.
962 (BootLoaderPage): If no partitions are active, then install a DOS MBR and
963 mark the selected partition active.
964
965 2003-04-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
966
967 * Makefile: Add bootcd target.
968 (BOOTCD_INSTALL): Set for bootcd install.
969 * rules.mak (TOPDIR): Define on windows.
970 (BOOTCD_DIR): Define.
971 (RLINE): Define.
972 * apps/tests/lpc/makefile: Handle BOOTCD_INSTALL.
973 * apps/tests/mstest/Makefile: Ditto.
974 * apps/tests/nptest/Makefile: Ditto.
975 * apps/tests/shm/makefile: Ditto.
976 * ntoskrnl/Makefile: Handle BOOTCD_INSTALL. Add bootcd target.
977 * drivers/dd/vga/makefile: Add bootcd target.
978 * drivers/dd/blue/makefile (TARGET_BOOTSTRAP): Define as yes.
979 * drivers/dd/floppy/Makefile: Ditto.
980 * drivers/fs/cdfs/makefile: Ditto.
981 * drivers/fs/ntfs/makefile: Ditto.
982 * drivers/fs/vfat/makefile: Ditto.
983 * drivers/input/keyboard/makefile: Ditto.
984 * drivers/storage/atapi/makefile: Ditto.
985 * drivers/storage/cdrom/makefile: Ditto.
986 * drivers/storage/class2/makefile: Ditto.
987 * drivers/storage/disk/makefile: Ditto.
988 * drivers/storage/scsiport/makefile: Ditto.
989 * hal/halx86/Makefile: Ditto.
990 * lib/ntdll/makefile: Ditto.
991 * subsys/system/usetup/makefile (TARGET_BOOTSTRAP): Define as yes.
992 (TARGET_BOOTSTRAP_NAME): Define as smss.exe.
993 * tools/Makefile: Add rline executable.
994 * tools/helper.mk: Support bootcd targets.
995 * tools/rline.c: New file.
996
997 2003-04-04 Casper S. Hornstrup <chorns@users.sourceforge.net>
998
999 * lib/freetype/builds/compiler/gcc.mk (CC): Comment out; use CC from
1000 rules.mak instead.
1001 * lib/freetype/README.ROS: Note this in porting guide.
1002
1003 2003-03-29 Casper S. Hornstrup <chorns@users.sourceforge.net>
1004
1005 * ntoskrnl/ex/sysinfo.c (SystemProcessInformation): Fix warning.
1006
1007 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1008
1009 * include/ntos/rtltypes.h (PRTL_BASE_PROCESS_START_ROUTINE): Define.
1010 * lib/kernel32/process/create.c (RtlBaseProcessStartRoutine): Import.
1011 (KlCreateFirstThread): Support images with native subsystem ID.
1012 * lib/ntdll/def/ntdll.def (RtlBaseProcessStartRoutine): Export.
1013 * lib/ntdll/def/ntdll.edf (RtlBaseProcessStartRoutine): Ditto.
1014 * lib/ntdll/rtl/exception.c (RtlBaseProcessStart): Forward declare.
1015 (RtlBaseProcessStartRoutine, RtlBaseProcessStart): Add.
1016
1017 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1018
1019 * include/defines.h (VS_FFI_SIGNATURE, VS_FFI_STRUCVERSION): Define.
1020
1021 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1022
1023 * ntoskrnl/ke/i386/exp.c (KiKernelTrapHandler): Use exception code
1024 STATUS_ACCESS_VIOLATION for exception 14.
1025
1026 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1027
1028 * ntoskrnl/fs/util.c (FsRtlGetFileSize): Implement.
1029
1030 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1031
1032 * lib/ntdll/rtl/nls.c (RtlCustomCPToUnicodeN, RtlMultiByteToUnicodeN,
1033 RtlOemToUnicodeN, RtlUnicodeToCustomCPN, RtlUnicodeToMultiByteN,
1034 RtlUnicodeToMultiByteSize, RtlUnicodeToOemN,
1035 RtlUpcaseUnicodeToCustomCPN, RtlUpcaseUnicodeToMultiByteN,
1036 RtlUpcaseUnicodeToOemN): Assert when unimplemented code is reached.
1037
1038 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1039
1040 * include/ntos/zwtypes.h (FILE_BASIC_INFORMATION): Use LARGE_INTEGER,
1041 not TIME type for time fields.
1042 * lib/kernel32/file/copy.c (SetLastWriteTime): Adjust for new type.
1043 (CopyFileExW): Ditto.
1044
1045 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1046
1047 * include/ntos/types.h (FALSE): Protect with #ifndef FALSE.
1048 (TRUE): Protect with #ifndef TRUE.
1049
1050 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1051
1052 * include/napi/i386/segment.h (put_user, get_user,
1053 bad_user_access_length, __segment_dummy, __sd, __const_sd, __put_user,
1054 __get_user, __generic_memcpy_tofs, __constant_memcpy_tofs, COMMON,
1055 __generic_memcpy_fromfs, __constant_memcpy_fromfs, memcpy_fromfs,
1056 memcpy_tofs, get_fs_byte, get_fs_word, get_fs_long, put_fs_byte,
1057 put_fs_word, put_fs_long, get_user_word, get_user_byte, get_user_long,
1058 put_user_byte, put_user_word, put_user_long, get_fs, get_ds, set_fs,
1059 set_ds): Remove.
1060
1061 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1062
1063 * include/ddk/pstypes.h (TLS_OUT_OF_INDEXES): Define.
1064
1065 2003-02-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
1066
1067 * ntoskrnl/cc/view.c (CcRosFlushDirtyPages): Treat a write attempt with
1068 a return value of STATUS_END_OF_FILE as a successful write.
1069 * ntoskrnl/cc/copy.c (WriteCacheSegment): Ditto.
1070
1071 2003-02-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
1072
1073 * ntoskrnl/cm/regfile.c (CmiRemoveSubKey): Kill warnings.
1074 (CmiMergeFree): Ditto.
1075
1076 2003-02-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
1077
1078 * include/structs.h (OSVERSIONINFOEXA): Expand definition of
1079 OSVERSIONINFOA.
1080 (OSVERSIONINFOEXW): Expand definition of OSVERSIONINFOW.
1081 * lib/msafd/misc/helpers.c (LocateHelperDLL): Cast AddressFamily,
1082 SocketType, and Protocol to INT.
1083 * lib/ws2_32/misc/catalog.c (LocateProvider): Ditto.
1084
1085 2003-01-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1086
1087 * ntoskrnl/dbg/profile.c (KdbProfilerThreadMain): Make STDCALL.
1088
1089 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1090
1091 * drivers/net/tcpip/makefile (TCP_OBJECTS): Add transport/tcp/tcpcore.o,
1092 transport/tcp/tcp_input.o, transport/tcp/tcp_ipv4.o,
1093 transport/tcp/tcp_output.o, and transport/tcp/tcp_timer.o.
1094 * drivers/net/tcpip/transport/tcp/tcp.c (TCPStartup): Call tcp_init().
1095 * drivers/net/tcpip/include/linux.h: New file.
1096 * drivers/net/tcpip/include/tcpcore.h: Ditto.
1097 * drivers/net/tcpip/include/tcpdef.h: Ditto.
1098 * drivers/net/tcpip/transport/tcp/tcp_input.c: Ditto.
1099 * drivers/net/tcpip/transport/tcp/tcp_ipv4.c: Ditto.
1100 * drivers/net/tcpip/transport/tcp/tcp_output.c: Ditto.
1101 * drivers/net/tcpip/transport/tcp/tcp_timer.c: Ditto.
1102 * drivers/net/tcpip/transport/tcp/tcpcore.c: Ditto.
1103
1104 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1105
1106 * lib/kernel32/k32.h: New file.
1107 * lib/kernel32/makefile (TARGET_CFLAGS): Add -I./.
1108 (TARGET_PCH): Set to k32.h.
1109 * lib/kernel32/except/except.c: Use <k32.h>.
1110 * lib/kernel32/file/backup.c: Ditto.
1111 * lib/kernel32/file/cnotify.c: Ditto.
1112 * lib/kernel32/file/copy.c: Ditto.
1113 * lib/kernel32/file/create.c: Ditto.
1114 * lib/kernel32/file/curdir.c: Ditto.
1115 * lib/kernel32/file/delete.c: Ditto.
1116 * lib/kernel32/file/deviceio.c: Ditto.
1117 * lib/kernel32/file/dir.c: Ditto.
1118 * lib/kernel32/file/dosdev.c: Ditto.
1119 * lib/kernel32/file/file.c: Ditto.
1120 * lib/kernel32/file/find.c: Ditto.
1121 * lib/kernel32/file/iocompl.c: Ditto.
1122 * lib/kernel32/file/lfile.c: Ditto.
1123 * lib/kernel32/file/lock.c: Ditto.
1124 * lib/kernel32/file/mailslot.c: Ditto.
1125 * lib/kernel32/file/move.c: Ditto.
1126 * lib/kernel32/file/npipe.c: Ditto.
1127 * lib/kernel32/file/pipe.c: Ditto.
1128 * lib/kernel32/file/rw.c: Ditto.
1129 * lib/kernel32/file/tape.c: Ditto.
1130 * lib/kernel32/file/volume.c: Ditto.
1131 * lib/kernel32/mem/global.c: Ditto.
1132 * lib/kernel32/mem/heap.c: Ditto.
1133 * lib/kernel32/mem/isbad.c: Ditto.
1134 * lib/kernel32/mem/local.c: Ditto.
1135 * lib/kernel32/mem/procmem.c: Ditto.
1136 * lib/kernel32/mem/section.c: Ditto.
1137 * lib/kernel32/mem/virtual.c: Ditto.
1138 * lib/kernel32/misc/atom.c: Ditto.
1139 * lib/kernel32/misc/comm.c: Ditto.
1140 * lib/kernel32/misc/console.c: Ditto.
1141 * lib/kernel32/misc/debug.c: Ditto.
1142 * lib/kernel32/misc/dllmain.c: Ditto.
1143 * lib/kernel32/misc/env.c: Ditto.
1144 * lib/kernel32/misc/error.c: Ditto.
1145 * lib/kernel32/misc/handle.c: Ditto.
1146 * lib/kernel32/misc/ldr.c: Ditto.
1147 * lib/kernel32/misc/profile.c: Ditto.
1148 * lib/kernel32/misc/res.c: Ditto.
1149 * lib/kernel32/misc/stubs.c: Ditto.
1150 * lib/kernel32/misc/sysinfo.c: Ditto.
1151 * lib/kernel32/misc/time.c: Ditto.
1152 * lib/kernel32/process/cmdline.c: Ditto.
1153 * lib/kernel32/process/create.c: Ditto.
1154 * lib/kernel32/process/proc.c: Ditto.
1155 * lib/kernel32/process/session.c: Ditto.
1156 * lib/kernel32/string/lstring.c: Ditto.
1157 * lib/kernel32/synch/critical.c: Ditto.
1158 * lib/kernel32/synch/event.c: Ditto.
1159 * lib/kernel32/synch/intrlck.c: Ditto.
1160 * lib/kernel32/synch/mutex.c: Ditto.
1161 * lib/kernel32/synch/sem.c: Ditto.
1162 * lib/kernel32/synch/timer.c: Ditto.
1163 * lib/kernel32/synch/wait.c: Ditto.
1164 * lib/kernel32/thread/fiber.c: Ditto.
1165 * lib/kernel32/thread/thread.c: Ditto.
1166 * lib/kernel32/thread/tls.c: Ditto.
1167
1168 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1169
1170 * apps/testsets/Makefile (TEST_SETS): Remove ldr.
1171 * include/msvcrt/ctype.h (towupper): Make returntype wchar_t.
1172
1173 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1174
1175 * tools/rtouch.c: Include <sys/utime.h>, not <utime.h>.
1176
1177 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1178
1179 * tools/rtouch.c: New file.
1180 * rules.mak (ROS_USE_PCH): Default to no.
1181 (RTOUCH): Define.
1182 * tools/Makefile: Add rtouch utility.
1183 * tools/helper.mk: Support precompiled headers.
1184
1185 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1186
1187 * ntoskrnl/dbg/profile.c: New file.
1188 * ntoskrnl/Makefile (OBJECTS_KDBG): Add dbg/profile.o.
1189 * ntoskrnl/dbg/kdb.h: Define NTOS_MODE_KERNEL. Include <ntos.h>.
1190 (LdrGetAddressInformation, KdbInitProfiling, KdbInitProfiling2,
1191 KdbDisableProfiling, KdbEnableProfiling, KdbProfileInterrupt) Prototype.
1192 * ntoskrnl/kd/kdebug.c (KdInitSystem): Add /PROFILE option if KDBG=1.
1193 * ntoskrnl/ke/main.c (ExpInitializeExecutive): Call KdbInitProfiling2()
1194 if KDBG=1.
1195 * ntoskrnl/ke/i386/irq.c: Include <../dbg/kdb.h> if KDBG=1.
1196 (KiInterruptDispatch): Call KdbProfileInterrupt() on timer interrupt
1197 if KDBG=1.
1198
1199 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1200
1201 * drivers/fs/vfat/create.c (VfatSupersedeFile): Only notify cache manager
1202 about change in file size if caching is initiated on the file stream.
1203
1204 2003-01-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
1205
1206 * boot.bat: Use DOS end-of-line characters.
1207
1208 2003-01-02 Casper S. Hornstrup <chorns@users.sourceforge.net>
1209
1210 * ntoskrnl/ke/timer.c (KeExpireTimers): Avoid signed/unsigned comparison
1211 warning.
1212 * lib/user32/controls/scrollbar.c (SCROLL_DrawScrollBar): Put a statement
1213 at end.
1214
1215 2002-12-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1216
1217 * drivers/fs/vfat/cleanup.c (VfatCleanupFile): Only uninitialize caching
1218 when initialized.
1219 * drivers/fs/vfat/fcb.c (vfatReleaseFCB): Ditto.
1220 * lib/kernel32/mem/section.c (CreateFileMappingW): Pass NULL as
1221 MaximumSize to NtCreateSection if dwMaximumSizeHigh and dwMaximumSizeLow
1222 are both 0.
1223 * ntoskrnl/cc/pin.c (CcMapData): Assert if Bcb is NULL.
1224 * ntoskrnl/cc/view.c (CcRosReleaseCacheSegment, CcRosLookupCacheSegment,
1225 CcRosMarkDirtyCacheSegment, CcRosUnmapCacheSegment,
1226 CcRosCreateCacheSegment, CcRosGetCacheSegmentChain,
1227 CcRosGetCacheSegment, CcRosRequestCacheSegment, CcFlushCache,
1228 CcRosDeleteFileCache, CcRosReferenceCache, CcRosDereferenceCache,
1229 CcRosReleaseFileCache, CcGetFileObjectFromSectionPtrs): Ditto.
1230 * ntoskrnl/mm/section.c (MiReadPage): Assert if Fcb->Bcb is NULL.
1231 (MmCreateDataFileSection): Make sure caching is initialized for the file
1232 stream.
1233
1234 2002-11-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1235
1236 * include/ddk/ldrtypes.h: Move ...
1237 * include/ntos/ldrtypes.h: ... here.
1238 * include/ddk/ntddk.h: Include ldrtypes.h at new location.
1239
1240 2002-11-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
1241
1242 * drivers/bus/acpi/ospm/osl.c (acpi_os_readable, acpi_os_writable):
1243 Match prototypes.
1244 * include/ascii.h (AbortSystemShutdownA): Correct prototype.
1245 * include/debug.h (assert): Wrap in #ifndef assert.
1246 * include/funcs.h (AbortSystemShutdown): Remove duplicate prototype.
1247 * include/ddk/rtltypes.h: Move ...
1248 * include/ntos/rtltypes.h: ... here.
1249 * include/ddk/rtl.h: Move ...
1250 * include/ntos/rtl.h: ... here.
1251 * include/ddk/zwtypes.h: Move ...
1252 * include/ntos/zwtypes.h: ... here.
1253 * include/ddk/zw.h: Move ...
1254 * include/ntos/zw.h: ... here.
1255 | include/ddk/cmfuncs.h: Remove file; Move NtCreateKey to ntos/zw.h.
1256 * include/ntos.h: #include ntos/rtltypes.h, ntos/rtl.h, ntos/zwtypes.h,
1257 and ntos/zw.h.
1258 * include/unicode.h: (AbortSystemShutdownW): Correct prototype.
1259 * include/ddk/ntddk.h: Include headers at new location; Don't include
1260 removed files.
1261 * include/defines.h: Wrap definitions in w32api in #ifndef __USE_W32API.
1262 * include/ntos/zwtypes.h: Ditto.
1263 * include/napi/lpc.h: Ditto.
1264 * include/napi/shared_data.h: Ditto.
1265 * include/napi/teb.h: Ditto.
1266 * include/napi/types.h: Ditto.
1267 * include/ntdll/ldr.h: Ditto.
1268 * include/ntdll/rtl.h: Ditto.
1269 * include/ntos/console.h: Ditto.
1270 * include/ntos/disk.h: Ditto.
1271 * include/ntos/except.h: Ditto.
1272 * include/ntos/file.h: Ditto.
1273 * include/ntos/gditypes.h: Ditto.
1274 * include/ntos/heap.h: Ditto.
1275 * include/ntos/keyboard.h: Ditto.
1276 * include/ntos/mm.h: Ditto.
1277 * include/ntos/ntdef.h: Ditto.
1278 * include/ntos/ps.h: Ditto.
1279 * include/ntos/registry.h: Ditto.
1280 * include/ntos/security.h: Ditto.
1281 * include/ntos/synch.h: Ditto.
1282 * include/ntos/time.h: Ditto.
1283 * include/ntos/types.h: Ditto.
1284 * include/ntos/port.h: Ditto.
1285 * lib/advapi32/misc/shutdown.c (AbortSystemShutdownW,
1286 AbortSystemShutdownA): Correct prototype.
1287 * lib/advapi32/reg/reg.c: #include ntos.h.
1288 * lib/advapi32/sec/misc.c: Ditto.
1289 * lib/advapi32/sec/sid.c: Ditto.
1290 * lib/advapi32/service/sctrl.c: Ditto.
1291 * lib/advapi32/token/token.c: Ditto.
1292 * lib/kernel32/misc/dllmain.c: Ditto.
1293 * ntoskrnl/ex/napi.c: Ditto.
1294 * ntoskrnl/rtl/i386/exception.c: Ditto.
1295 * lib/advapi32/sec/ac.c: Ditto.
1296 (FindFirstFreeAce, GetAce): Change PACE* to PACE_HEADER*.
1297 * lib/advapi32/service/scm.c (EnumServicesStatusExA,
1298 EnumServicesStatusExW, QueryServiceStatusEx): Correct prototype.
1299 * lib/ntdll/rtl/ppb.c (RtlDestroyProcessParameters): Match prototype.
1300 * ntoskrnl/dbg/errinfo.c (DbgGetErrorText): Use %08x, not %08lx.
1301 * ntoskrnl/io/arcname.c (IoCreateSystemRootLink): Use %u, not %lu.
1302 * ntoskrnl/ke/main.c (ExpInitializeExecutive): Ditto.
1303 * (_main): Use %d, not %ld.
1304 * ntoskrnl/include/internal/i386/ke.h: Add #pragma GCC system_header.
1305 * include/ddk/ntdef.h (NTSYSAPI, NTAPI, NTKERNELAPI): Define to STDCALL;
1306 Check if already defined.
1307 * include/base.h (STDCALL, CDECL, CALLBACK, PASCAL): Move to ntos/types.h.
1308
1309 2002-11-13 Rick Gaiser <RickG81@Wanadoo.nl>
1310
1311 * drivers/bus/isapnp/isapnp.c (FindNextReadPort): Increment Port before
1312 checking wether port address is in NE2000 address space range and returning
1313 port address value.
1314
1315 2002-11-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
1316
1317 * drivers/bus/acpi/include/acpi.h: Include platform/types.h.
1318 * drivers/bus/acpi/include/actypes.h: (UINT8, BOOLEAN, UCHAR, UINT16,
1319 INT32, UINT32, UINT64): Disable, use the OS defined types instead.
1320 * drivers/bus/acpi/include/platform/types.h: Remove all types,
1321 include ntos.h instead.
1322 * drivers/bus/acpi/ospm/include/acpisys.h: Don't include
1323 platform/types.h.
1324
1325 2002-11-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
1326
1327 * include/defines.h: Fix warnings when bulding with gcc 3.3.
1328 * include/ddk/status.h: Ditto.
1329 * include/freetype/internal/ftdebug.h: Ditto.
1330 * include/net/ndis.h: Ditto.
1331 * lib/msafd/misc/helpers.c: Ditto.
1332 * lib/user32/windows/defwnd.c: Ditto.
1333 * lib/user32/windows/window.c: Ditto.
1334 * ntoskrnl/cm/ntfunc.c: Ditto.
1335 * ntoskrnl/cm/regfile.c: Ditto.
1336 * ntoskrnl/cm/regobj.c: Ditto.
1337 * ntoskrnl/dbg/errinfo.c: Ditto.
1338 * ntoskrnl/ex/hashtab.c: Ditto.
1339 * ntoskrnl/include/internal/mm.h: Ditto.
1340 * ntoskrnl/io/irp.c: Ditto.
1341 * ntoskrnl/kd/gdbstub.c: Ditto.
1342 * ntoskrnl/ke/queue.c: Ditto.
1343 * ntoskrnl/ke/sem.c: Ditto.
1344 * ntoskrnl/ldr/resource.c: Ditto.
1345 * ntoskrnl/mm/balance.c: Ditto.
1346 * ntoskrnl/mm/freelist.c: Ditto.
1347 * ntoskrnl/mm/mdl.c: Ditto.
1348 * ntoskrnl/mm/npool.c: Ditto.
1349 * ntoskrnl/mm/section.c: Ditto.
1350 * ntoskrnl/rtl/error.c: Ditto.
1351 * ntoskrnl/rtl/mem.c: Ditto.
1352 * ntoskrnl/rtl/string.c: Ditto.
1353 * ntoskrnl/rtl/time.c: Ditto.
1354 * ntoskrnl/rtl/unicode.c: Ditto.
1355 * ntoskrnl/rtl/wstring.c: Ditto.
1356 * ntoskrnl/rtl/i386/exception.c: Ditto.
1357 * subsys/win32k/freetype/src/base/ftinit.c: Ditto.
1358
1359 2002-11-03 Casper S. Hornstrup <chorns@users.sourceforge.net>
1360
1361 * apps/tests/lpc/lpcclt.c: Change LPC_MESSAGE_HEADER to LPC_MESSAGE.
1362 * include/csrss/csrss.h: Ditto.
1363 * include/lsass/lsass.h: Ditto.
1364 * include/napi/dbg.h: Ditto.
1365 * include/napi/lpc.h: Ditto.
1366 * lib/kernel32/misc/console.c: Ditto.
1367 * lib/ntdll/csr/lpc.c: Ditto.
1368 * lib/ntdll/dbg/debug.c: Ditto.
1369 * lib/secur32/lsa.c: Ditto.
1370 * ntoskrnl/dbg/user.c: Ditto.
1371 * ntoskrnl/include/internal/port.h: Ditto.
1372 * ntoskrnl/lpc/connect.c: Ditto.
1373 * ntoskrnl/lpc/reply.c: Ditto.
1374 * ntoskrnl/ps/process.c: Ditto.
1375 * subsys/csrss/api/conio.c: Ditto.
1376 * subsys/csrss/api/process.c: Ditto.
1377 * subsys/csrss/api/user.c: Ditto.
1378
1379 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
1380
1381 * lib/msvcrt/except/seh.s: Fix end-of-line formatting.
1382 * lib/ntdll/rtl/i386/exception.c: Ditto.
1383 * lib/ntdll/rtl/i386/except.s: Ditto.
1384 * ntoskrnl/rtl/i386/except.s: Ditto.
1385 * ntoskrnl/rtl/i386/seh.s: Ditto.
1386
1387 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
1388
1389 * lib/msvcrt/Makefile (OBJECTS_EXCEPT): Add except/seh.o; Remove
1390 except/exhand3.o.
1391 * lib/msvcrt/except/exhand2.c (MsvcrtDebug): New function.
1392 * lib/msvcrt/except/unwind.c (PEXCEPTION_FRAME): Remove.
1393 (_global_unwind2): Correct prototype.
1394 * lib/ntdll/makefile (RTL_I386_OBJECTS, ARCH_OBJECTS): New groups.
1395 (TARGET_OBJECTS): Add ARCH_OBJECTS group.
1396 * lib/ntdll/rtl/exception.c (KiUserExceptionDispatcher): Set
1397 NumberParameters in exception record.
1398 (RtlRaiseStatus): Remove.
1399 * ntoskrnl/Makefile (OBJECTS_RTL): Remove rtl/seh.o.
1400 (OBJECTS_RTL_I386): Add rtl/i386/except.o, rtl/i386/exception.o, and
1401 rtl/i386/seh.o.
1402 * ntoskrnl/ke/catch.c (RtlpExecuteHandlerForException,
1403 RtlpDumpExceptionRegistrations, RtlpDispatchException,
1404 RtlpExecuteHandler, RtlpExceptionHandler, RtlpUnwindHandler,
1405 RtlpExecuteHandlerForException, RtlpExecuteHandlerForUnwind,
1406 RtlUnwind): Remove.
1407 (RtlpDispatchException): Add prototype.
1408 * ntoskrnl/ke/i386/usertrap.c (ExceptionTypeStrings): Remove.
1409 * ntoskrnl/ps/create.c (PsCreateTeb): Mark end of exception
1410 registration list.
1411 * tools/helper.mk (TARGET_ASFLAGS): Add -g if DBG = 1.
1412 * lib/msvcrt/except/exhand3.c: Remove.
1413 * ntoskrnl/rtl/seh.c: Ditto.
1414 * lib/msvcrt/except/seh.s: New file.
1415 * lib/ntdll/rtl/i386/except.s: Ditto.
1416 * lib/ntdll/rtl/i386/exception.c: Ditto.
1417 * ntoskrnl/rtl/i386/except.s: Ditto.
1418 * ntoskrnl/rtl/i386/exception.c: Ditto.
1419 * ntoskrnl/rtl/i386/seh.s: Ditto.
1420
1421 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
1422
1423 * lib/kernel32/process/create.c (_except_handler): New function.
1424 (BaseProcessStart): Ditto.
1425 (KlCreateFirstThread): Return INVALID_HANDLE_VALUE on error; Call
1426 BaseProcessStart() before process entry point.
1427 * lib/kernel32/thread/thread.c (_except_handler): New function.
1428 (ThreadStartup): Protect thread using SEH constructs.
1429
1430 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
1431
1432 * include/ddk/zw.h (NtProcessStartup): Use standard calling convention.
1433 * subsys/csrss/csrss.c (NtProcessStartup): Ditto.
1434 * subsys/smss/smss.c (NtProcessStartup): Ditto.
1435 * subsys/system/autochk/autochk.c (NtProcessStartup): Ditto.
1436 * subsys/system/usetup/usetup.c (NtProcessStartup): Ditto.
1437
1438 2002-10-25 Casper S. Hornstrup <chorns@users.sourceforge.net>
1439
1440 * apps/tests/tokentest/tokentest.c (ROS_ACE_HEADER): Move field
1441 AccessMask ...
1442 (ROS_ACE): ... here.
1443 (DisplayDacl): Make pAce an ROS_ACE*; Use new path for AceType; Use
1444 sizeof(ACE) instead of sizeof(ACE_HEADER).
1445 * include/ntos/security.h (ACE_HEADER): Move field AccessMask ...
1446 (ACE): ... here.
1447 * lib/ntdll/rtl/acl.c: Use new path for AccessMask.
1448 * ntoskrnl/se/semgr.c: Ditto.
1449 * ntoskrnl/se/acl.c (SepInitDACLs): Use new path for AccessMask; Use
1450 sizeof(ACE) instead of sizeof(ACE_HEADER).
1451 * ntoskrnl/se/token.c (SepCreateSystemProcessToken): Use sizeof(ACE)
1452 instead of sizeof(ACE_HEADER).
1453
1454 2002-10-20 Casper S. Hornstrup <chorns@users.sourceforge.net>
1455
1456 * include/napi/teb.h (RTL_USER_PROCESS_PARAMETERS): Use field names
1457 as described in Windows NT/2000 Native API Reference.
1458 * lib/kernel32/file/file.c: Use new field names.
1459 * lib/kernel32/misc/console.c: Ditto.
1460 * lib/kernel32/process/create.c: Ditto.
1461 * lib/kernel32/process/proc.c: Ditto.
1462 * lib/ntdll/rtl/path.c: Ditto.
1463 * lib/ntdll/rtl/ppb.c: Ditto.
1464 * lib/ntdll/rtl/process.c: Ditto.
1465
1466 2002-10-19 Casper S. Hornstrup <chorns@users.sourceforge.net>
1467
1468 * include/ntos.h: Include relevant files.
1469 * include/internal/ke.h: Include files relative to
1470 ntoskrnl/include.
1471 * include/internal/arch/ke.h: Ditto.
1472
1473 2002-10-01 Casper S. Hornstrup <chorns@users.sourceforge.net>
1474
1475 * drivers/dd/floppy/floppy.c: Changed PAGESIZE to PAGE_SIZE.
1476 * drivers/fs/cdfs/fcb.c: Ditto.
1477 * drivers/fs/cdfs/fsctl.c: Ditto.
1478 * drivers/fs/cdfs/rw.c: Ditto.
1479 * drivers/fs/ext2/dir.c: Ditto.
1480 * drivers/fs/ext2/inode.c: Ditto.
1481 * drivers/fs/ext2/rw.c: Ditto.
1482 * drivers/fs/ext2/super.c: Ditto.
1483 * drivers/fs/minix/blockdev.c: Ditto.
1484 * drivers/fs/minix/cache.c: Ditto.
1485 * drivers/fs/minix/inode.c: Ditto.
1486 * drivers/fs/minix/rw.c: Ditto.
1487 * drivers/fs/ntfs/fcb.c: Ditto.
1488 * drivers/fs/ntfs/ntfs.h: Ditto.
1489 * drivers/fs/vfat/create.c: Ditto.
1490 * drivers/fs/vfat/direntry.c: Ditto.
1491 * drivers/fs/vfat/dirwr.c: Ditto.
1492 * drivers/fs/vfat/fat.c: Ditto.
1493 * drivers/fs/vfat/fcb.c: Ditto.
1494 * drivers/fs/vfat/fsctl.c: Ditto.
1495 * drivers/fs/vfat/rw.c: Ditto.
1496 * drivers/storage/class2/class2.c: Ditto.
1497 * drivers/storage/scsiport/scsiport.c: Ditto.
1498 * hal/halx86/adapter.c: Ditto.
1499 * hal/halx86/mp.c: Ditto.
1500 * include/ddk/mmfuncs.h: Ditto.
1501 * include/ddk/mmtypes.h: Ditto.
1502 * include/ddk/i386/pagesize.h: Ditto.
1503 * include/ntdll/pagesize.h: Ditto.
1504 * lib/kernel32/process/create.c: Ditto.
1505 * lib/kernel32/thread/thread.c: Ditto.
1506 * lib/ntdll/ldr/utils.c: Ditto.
1507 * lib/ntdll/rtl/env.c: Ditto.
1508 * lib/ntdll/rtl/heap.c: Ditto.
1509 * lib/ntdll/rtl/ppb.c: Ditto.
1510 * lib/ntdll/rtl/process.c: Ditto.
1511 * lib/ntdll/rtl/thread.c: Ditto.
1512 * ntoskrnl/cc/copy.c: Ditto.
1513 * ntoskrnl/cc/view.c: Ditto.
1514 * ntoskrnl/ex/sysinfo.c: Ditto.
1515 * ntoskrnl/include/internal/i386/mm.h: Ditto.
1516 * ntoskrnl/io/mdl.c: Ditto.
1517 * ntoskrnl/ke/kthread.c: Ditto.
1518 * ntoskrnl/ke/i386/kernel.c: Ditto.
1519 * ntoskrnl/ldr/init.c: Ditto.
1520 * ntoskrnl/ldr/loader.c: Ditto.
1521 * ntoskrnl/mm/anonmem.c: Ditto.
1522 * ntoskrnl/mm/cont.c: Ditto.
1523 * ntoskrnl/mm/freelist.c: Ditto.
1524 * ntoskrnl/mm/iospace.c: Ditto.
1525 * ntoskrnl/mm/kmap.c: Ditto.
1526 * ntoskrnl/mm/marea.c: Ditto.
1527 * ntoskrnl/mm/mdl.c: Ditto.
1528 * ntoskrnl/mm/mminit.c: Ditto.
1529 * ntoskrnl/mm/ncache.c: Ditto.
1530 * ntoskrnl/mm/npool.c: Ditto.
1531 * ntoskrnl/mm/pagefile.c: Ditto.
1532 * ntoskrnl/mm/pageop.c: Ditto.
1533 * ntoskrnl/mm/section.c: Ditto.
1534 * ntoskrnl/mm/slab.c: Ditto.
1535 * ntoskrnl/mm/i386/page.c: Ditto.
1536 * ntoskrnl/ob/handle.c: Ditto.
1537 * ntoskrnl/ps/create.c: Ditto.
1538 * ntoskrnl/ps/process.c: Ditto.
1539 * ntoskrnl/ps/w32call.c: Ditto.
1540 * subsys/win32k/include/object.h: Ditto.
1541
1542 2002-10-01 Casper S. Hornstrup <chorns@users.sourceforge.net>
1543
1544 * lib/ntdll/string/ctype.c: Undefine __MSVCRT__ to not have mingw
1545 runtime import _pctype.
1546
1547 2002-09-30 Casper S. Hornstrup <chorns@users.sourceforge.net>
1548
1549 * lib/user32/misc/desktop.c (string.h): Include.
1550 * lib/user32/misc/resources.c: Ditto.
1551 * lib/user32/misc/winhelp.c: Ditto.
1552 * lib/user32/windows/accel.c: Ditto.
1553 * lib/user32/windows/bitmap.c: Ditto.
1554 * subsys/win32k/freetype/ctype.c: Undefine __MSVCRT__ and _pctype to not
1555 have mingw runtime import _pctype.
1556
1557 2002-09-30 Casper S. Hornstrup <chorns@users.sourceforge.net>
1558
1559 * ntoskrnl/cc/view.c (alloca): Prototype.
1560 * ntoskrnl/rtl/ctype.c: Undefine __MSVCRT__ to not have mingw runtime
1561 import _pctype.
1562
1563 2002-08-26 David Welch <welch@computer2.darkstar.org>
1564
1565 * lib/gdi32/misc/dllmain.c (GdiDllInitialize): Don't initialize
1566 win32k.sys for each process.
1567 * subsys/csrss/init.c (CsrServerInitialization): Initialize
1568 win32k.sys as well.
1569
1570 2002-08-26 David Welch <welch@computer2.darkstar.org>
1571
1572 * ntoskrnl/ps/process.c (NtCreateProcess): Reference the
1573 parent process's handle using ExGetPreviousMode.
1574
1575 2002-08-26 David Welch <welch@computer2.darkstar.org>
1576
1577 * lib/user32/misc/dllmain.c (Init): Initialize gdi32 as well.
1578
1579 2002-08-26 David Welch <welch@computer2.darkstar.org>
1580
1581 * iface/addsys/genw32k.c (main, process): Generate a set of
1582 stubs for csrss as well.
1583
1584 2002-08-26 David Welch <welch@computer2.darkstar.org>
1585
1586 * lib/kernel32/process/create.c (CreateProcessW): Initialize
1587 all the members of the new process's PPB.
1588
1589 2002-08-17 David Welch <welch@computer2.darkstar.org>
1590
1591 * ntoskrnl/mm/rmap.c (MmWritePagePhysicalAddress): Ensure the
1592 process isn't freed in the middle of our operations.
1593
1594 2002-08-17 David Welch <welch@computer2.darkstar.org>
1595
1596 * drivers/fs/vfat/finfo.c (VfatSetAllocationSizeInformation): Fixed.
1597
1598 2002-08-17 David Welch <welch@computer2.darkstar.org>
1599
1600 * ntoskrnl/ps/create.c (PiDeleteThread): Don't dereference
1601 the thread's process while holding the thread list lock.
1602
1603 2002-08-17 David Welch <welch@computer2.darkstar.org>
1604
1605 * ntoskrnl/mm/section.c (MmMapViewOfSection): Check there is
1606 enough space for all parts of an image before mapping it; if
1607 there isn't enough space free at the preferred base address
1608 then try to choose a different one.
1609
1610 2002-08-17 David Welch <welch@computer2.darkstar.org>
1611
1612 * ntoskrnl/mm/mpw.c (MmInitMpwThread): Run the MPW thread at
1613 idle priority.
1614
1615 2002-08-17 David Welch <welch@computer2.darkstar.org>
1616
1617 * ntoskrnl/mm/kmap.c (ExUnmapPage, ExAllocatePageWithPhysPage,
1618 MiFreeNonPagedPoolRegion, MiAllocNonPagedPoolRegion): Maintain
1619 a hint of the next free page; makes running with whole page
1620 allocation more bearable.
1621
1622 2002-08-17 David Welch <welch@computer2.darkstar.org>
1623
1624 * ntoskrnl/mm/anonmem.c (MmPageOutVirtualMemory): Show an
1625 out of swap space message if we are out of swap space.
1626 * ntoskrnl/mm/section.c (MmPageOutSectionView): Show an
1627 out of swap space message if we are out of swap space.
1628 * ntoskrnl/mm/pagefile.c (MmAllocSwapPage): Don't automatically
1629 show an out of swap space message on failure.
1630 * ntoskrnl/mm/pagefile.c (MmShowOutOfSpaceMessagePagingFile): New
1631 function to notify the user that the pagefile is full.
1632
1633 2002-08-17 David Welch <welch@computer2.darkstar.org>
1634
1635 * drivers/lib/zlib/Makefile: Create a dummy zlib.sym
1636
1637 2002-08-16 David Welch <welch@computer2.darkstar.org>
1638
1639 * ntoskrnl/mm/npool.c (ExAllocateWholePageBlock): Converted
1640 to use PHYSICAL_ADDRESS type for page address.
1641
1642 2002-08-16 David Welch <welch@computer2.darkstar.org>
1643
1644 * subsys/win32k/ntuser/class.c (W32kCreateClass): Corrected
1645 typo when calculating the offset into the class object to
1646 put the class name string.
1647
1648 2002-08-16 David Welch <welch@computer2.darkstar.org>
1649
1650 * ntoskrnl/ps/thread.c (PsDispatchThreadNoLock): Don't call
1651 the reaper function directly; set an event to wake up a seperate
1652 reaper thread.
1653 * ntoskrnl/ps/thread.c (PsReaperThreadMain): New function that
1654 waits for a notification and then calls PsReapThreads.
1655 * ntoskrnl/ps/thread.c (PsInitThreadManagement): Create the
1656 reaper thread.
1657
1658 2002-08-15 David Welch <welch@computer2.darkstar.org>
1659
1660 * lib/advapi32/misc/dllmain.c (DllMain): Removed debug message.
1661
1662 2002-08-14 David Welch <welch@computer2.darkstar.org>
1663
1664 * subsys/smss/init.c (SmPagingFilesQueryRoutine): If possible
1665 take the size of the paging file from the registry.
1666
1667 2002-08-14 David Welch <welch@computer2.darkstar.org>
1668
1669 * ntoskrnl/mm/section.c (MmCreateDataFileSection): Extend the
1670 section if necessary.
1671
1672 2002-08-14 David Welch <welch@computer2.darkstar.org>
1673
1674 * ntoskrnl/mm/pagefile.c (NtCreatePagingFile): Set the file
1675 size using the FileAllocationInformation class.
1676
1677 2002-08-14 David Welch <welch@computer2.darkstar.org>
1678
1679 * ntoskrnl/mm/anonmem.c (MmWritePageVirtualMemory): Implemented
1680 function to write anonymous memory pages to the swap file.
1681 * ntoskrnl/mm/anonmem.c (MmFreeVirtualMemoryPage): Free any
1682 swap page associated with the page.
1683 * ntoskrnl/mm/mpw.c (MmWriteDirtyPages): New function to find
1684 pages to write to disk.
1685 * ntoskrnl/mm/mpw.c (MmMpwThreadMain): Implemented MPW functionality.
1686 * ntoskrnl/mm/rmap.c (MmWritePagePhysicalAddress): New function
1687 to write a single page back to disk.
1688 * ntoskrnl/mm/rmap.c (MmSetCleanAllRmaps, MmSetDirtyAllRmaps,
1689 MmIsDirtyPageRmap): New rmap function to support the MPW thread.
1690 * ntoskrnl/mm/section.c (MmWritePageSectionView): Implemented
1691 function to write back section pages.
1692 * ntoskrnl/mm/section.c (MmFreeSectionPage): Free any swap
1693 entry associated with the page; mark pages shared with
1694 the cache as dirty if necessary.
1695
1696 2002-08-14 David Welch <welch@computer2.darkstar.org>
1697
1698 * ntoskrnl/ldr/loader.c (LdrPEProcessModule): Set name of
1699 the module into the module text structure.
1700
1701 2002-08-14 David Welch <welch@computer2.darkstar.org>
1702
1703 * ntoskrnl/io/rw.c (NtReadFile, NtWriteFile): Use the correct
1704 test for whether to wait for the completion of i/o.
1705
1706 2002-08-14 David Welch <welch@computer2.darkstar.org>
1707
1708 * ntoskrnl/cm/ntfunc.c (NtFlushKey): Request synchronous i/o
1709 from NtOpenFile.
1710 * ntoskrnl/cm/regfile (CmiInitPermanentRegistryHive): Request
1711 synchronous i/o from NtCreateFile.
1712 * ntoskrnl/dbg/kdb_stabs.c (LdrpLoadModuleSymbols): Request
1713 synchronous i/o from NtOpenFile.
1714 * ntoskrnl/ldr/sysdll.c (LdrpMapSystemDll): Request synchronous i/o
1715 from NtOpenFile.
1716
1717 2002-08-14 David Welch <welch@computer2.darkstar.org>
1718
1719 * ntoskrnl/cc/view.c (CcRosSuggestFreeCacheSegment): Maintain the
1720 correct reference count.
1721
1722 2002-08-14 David Welch <welch@computer2.darkstar.org>
1723
1724 * ntoskrnl/cc/view.c (CcRosFlushCacheSegment): New function to
1725 write back a modified cache segment.
1726 * ntoskrnl/cc/view.c (CcRosFlushDirtyPages): New function to
1727 flush some dirty pages from the cache.
1728 * ntoskrnl/cc/view.c (CcRosMarkDirtyCacheSegment): New function to
1729 mark a cache segment modified while mapped into memory as dirty.
1730
1731 2002-08-14 David Welch <welch@computer2.darkstar.org>
1732
1733 * ntoskrnl/cc/pin.c (CcMapData, CcUnpinData, CcSetDirtyPinnedData):
1734 Store the dirty status in the BCB; don't write back dirty data
1735 immediately.
1736
1737 2002-08-14 David Welch <welch@computer2.darkstar.org>
1738
1739 * include/ntos/mm.h: Added SEC_XXXX defines from 'Windows NT/2000
1740 Native API Reference'
1741
1742 2002-08-14 David Welch <welch@computer2.darkstar.org>
1743
1744 * drivers/fs/vfat/ea.c (VfatSetExtendedAttributes): Empty
1745 placeholder for extended attribute functions.
1746
1747 2002-08-14 David Welch <welch@computer2.darkstar.org>
1748
1749 * drivers/fs/vfat/finfo.c (VfatSetAllocationSizeInformation):
1750 Added function to set allocation size.
1751
1752 2002-08-14 David Welch <welch@computer2.darkstar.org>
1753
1754 * drivers/fs/vfat/fcb.c (vfatFCBInitializeCache): Renamed
1755 to vfatFCBInitializeCacheFromVolume.
1756 * drivers/fs/vfat/fcb.c (vfatMakeFCBFromDirEntry): Don't
1757 initialise the cache with a file object representing the
1758 volume unless the FCB is for a directory.
1759
1760 2002-08-14 David Welch <welch@computer2.darkstar.org>
1761
1762 * drivers/fs/vfat/create.c (VfatPagingFileCreate): Added a
1763 new function for handling paging file only code.
1764 * drivers/fs/vfat/create.c (VfatSupersedeFile): Added a
1765 new function for doing a file supersede.
1766 * drivers/fs/vfat/create.c (VfatCreateFile): Reformatted and
1767 adjusted control flow. Set allocation size and extended attributes
1768 on create.
1769 * drivers/fs/vfat/create.c (VfatCreate): Removed goto.
1770
1771 2002-08-14 David Welch <welch@computer2.darkstar.org>
1772
1773 * drivers/fs/vfat/cleanup.c (VfatCleanupFile): Renamed
1774 updEntry to VfatUpdateEntry.
1775 * drivers/fs/vfat/close.c (VfatCloseFile): Renamed
1776 updEntry to VfatUpdateEntry.
1777 * drivers/fs/vfat/dirwr.c (updEntry): Renamed to
1778 VfatUpdateEntry.
1779 * drivers/fs/vfat/dirwr.c (addEntry): Renamed to
1780 VfatAddEntry.
1781
1782 2002-08-14 David Welch <welch@computer2.darkstar.org>
1783
1784 * apps/tests/sectest/sectest.c (main): Fixed formatting.
1785
1786 2002-08-10 David Welch <welch@computer2.darkstar.org>
1787
1788 * ntoskrnl/mm/i386/page.c (MmSetPageProtect): Fixed
1789 behaviour when called on the system address space.
1790
1791 2002-08-10 David Welch <welch@computer2.darkstar.org>
1792
1793 * ntoskrnl/mm/virtual.c (MmQueryAnonMem, MmProtectAnonMem,
1794 NtAllocateVirtualMemory, NtFreeVirtualMemory): Renamed
1795 segments to regions; moved region code to seperate file.
1796 Implemented NtQueryVirtualMemory and NtProtectVirtualMemory
1797 for anonymous memory areas.
1798
1799 2002-08-10 David Welch <welch@computer2.darkstar.org>
1800
1801 * ntoskrnl/mm/anonmem.c: Moved functions relating to
1802 areas created with NtAllocateVirtualMemory to a
1803 seperate file.
1804
1805 2002-08-10 David Welch <welch@computer2.darkstar.org>
1806
1807 * ntoskrnl/mm/section.c (MmQuerySectionView): Implemented
1808 NtQueryVirtualMemory for section views.
1809
1810 2002-08-10 David Welch <welch@computer2.darkstar.org>
1811
1812 * ntoskrnl/mm/section.c (MmAccessFaultSectionView,
1813 MmNotPresentFaultSectionView, MmProtectSectionView,
1814 MmMapViewOfSegment, MmAlterViewAttributes): Implemented
1815 NtProtectVirtualMemory for section views.
1816
1817 2002-08-10 David Welch <welch@computer2.darkstar.org>
1818
1819 * ntoskrnl/ke/main.c: Removed SEH test code.
1820
1821 2002-08-10 David Welch <welch@computer2.darkstar.org>
1822
1823 * lib/ntdll/ldr/utils.c (LdrFixupImports): Remove the readonly
1824 protection from the IAT before writing to it.
1825
1826 2002-08-10 David Welch <welch@computer2.darkstar.org>
1827
1828 * lib/ntdll/ldr/utils.c (LdrAdjustDllName): Properly null terminate
1829 the base name of the DLL.
1830
1831 2002-08-10 David Welch <welch@computer2.darkstar.org>
1832
1833 * ntoskrnl/ldr/loader.c (LdrPEProcessModule): Set the text segment
1834 of modules to readonly after loading.
1835
1836 2002-08-09 David Welch <welch@computer2.darkstar.org>
1837
1838 * ntoskrnl/ps/create.c (NtCreateThread): Call PsSuspendThread
1839 if NtCreateThread has CreateSuspended as TRUE.
1840 * ntoskrnl/ps/suspend.c (PsSuspendThread, PsResumeThread,
1841 PiSuspendThreadKernelRoutine): Fixed suspend functionality.
1842
1843 2002-08-09 David Welch <welch@computer2.darkstar.org>
1844
1845 * ntoskrnl/ke/i386/usertrap.c (print_user_address): Copy
1846 the LDR variable from the right address.
1847
1848 2002-08-09 David Welch <welch@computer2.darkstar.org>
1849
1850 * ntoskrnl/ke/apc.c (KiDeliverNormalApc): Check for
1851 kernel APCs pending on exit from the kernel.
1852 * ntoskrnl/ke/apc.c (KiDeliverNormalApc, KiDeliverUserApc,
1853 KiDeliverApc): Set the APC's inserted flag to FALSE after
1854 removing it from the thread's queue.
1855
1856 2002-08-09 David Welch <welch@computer2.darkstar.org>
1857
1858 * lib/kernel32/thread/thread.c (ThreadStartup): Don't
1859 call DLL entrypoints; this is done by LdrInitializeThunk.
1860 * lib/ntdll/ldr/startup.c (LdrInitializeThunk): Call
1861 DLLs in initialization order; take the loader lock before
1862 calling.
1863
1864 2002-08-09 David Welch <welch@computer2.darkstar.org>
1865
1866 * apps/tests/thread/thread.c (main): Test suspend and
1867 resume functionality.
1868
1869 2002-08-08 David Welch <welch@computer2.darkstar.org>
1870
1871 * ntoskrnl/mm/section (NtQuerySection): Return the
1872 right result length.
1873
1874 2002-08-08 David Welch <welch@computer2.darkstar.org>
1875
1876 * ntoskrnl/ke/usertrap.c (print_user_address): Check for
1877 a NULL LDR structure in the PEB; copy the LDR pointer in
1878 safely.
1879
1880 2002-08-08 David Welch <welch@computer2.darkstar.org>
1881
1882 * ntoskrnl/ke/apc.c (KiDeliverUserApc): Deliver all present
1883 APCs; release the APC spinlock while acccessing user memory.
1884
1885 2002-08-08 David Welch <welch@computer2.darkstar.org>
1886
1887 * include/internal/ps.h: Adjusted offsets into the ETHREAD
1888 structure.
1889 * include/internal/ps.h: Removed redundant members from the
1890 KTHREAD structure.
1891 * ntoskrnl/ke/kthread.c (KeInitializeThread): Removed
1892 redundant members from the KTHREAD structure.
1893
1894 2002-08-08 David Welch <welch@computer2.darkstar.org>
1895
1896 * ntoskrnl/dbg/kdb.c (KdbEnterDebuggerException): New
1897 function to enter the debugger on an exception.
1898 * ntoskrnl/kd/kdebug.c (KdInitSystem): Initialize the
1899 local kernel debugger if enabled.
1900 * ntoskrnl/ke/catch.c (KiDispatchException): Enter the
1901 local kernel debugger on an exception.
1902
1903 2002-08-08 David Welch <welch@computer2.darkstar.org>
1904
1905 * include/ntdll/ldr.h: Added definition for a DLL entrypoint.
1906 * lib/kernel32/process/create.c (KlCreateFirstThread): Put
1907 the argument to the NtProcessStartup function on the stack.
1908 * lib/kernel32/process/create.c (KlInitPeb): Read the
1909 base address of the new image from the PEB.
1910 * lib/kernel32/process/create.c (CreateProcessW): Start the
1911 first thread at the entrypoint of the new image.
1912 * lib/ntdll/ldr/startup.c (LdrInitializeThunk): If the
1913 function is called after the initial startup then just call the
1914 entrypoints for the loaded DLLs with DLL_THREAD_ATTACH. Don't
1915 call the entrypoint of the image.
1916 * lib/ntdll/rtl/process.c (RtlpCreateFirstThread): Put the
1917 argument to the NtProcessStartup function on the stack.
1918 * lib/ntdll/rtl/process.c (KlInitPeb): Read the base address of
1919 the new image from the PEB.
1920 * lib/ntdll/rtl/process.c (RtlCreateUserProcess): Start the
1921 first thread at the entrypoint of the new image.
1922 * ntoskrnl/ke/i386/bthread.S (PsBeginThreadWithContextInternal):
1923 Use the system call path to begin a usermode thread.
1924 * ntoskrnl/ke/i386/thread.c (Ke386InitThreadWithContext): Convert
1925 the supplied context into a trap frame.
1926 * ntoskrnl/ldr/init.c (LdrLoadInitialProcess): Put the PEB argument
1927 to the NtProcessStartup function on the new stack; start the
1928 first thread at the entrypoint of the image.
1929 * ntoskrnl/ps/create.c (NtCreateThread): Create an APC to call
1930 LdrInitializeThunk in the context of a new thread before its
1931 entrypoint.
1932
1933 2002-08-08 David Welch <welch@computer2.darkstar.org>
1934
1935 * drivers/fs/vfat/cleanup.c (VfatCleanupFile): Uninitialise
1936 the cache on file cleanup.
1937 * drivers/fs/vfat/fcb.c (vfatReleaseFcb): Don't uninitialise
1938 the cache on file close.
1939 * ntoskrnl/cc/copy.c: Renamed zero page global variable.
1940 * ntoskrnl/cc/view.c: Added cache delete function.
1941
1942 2002-07-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
1943
1944 * rules.mak (RSYM): Define.
1945 * include/ddk/zwtypes.h (DebugDbgLoadSymbols): Add to enum
1946 _DEBUG_CONTROL_CODE.
1947 * include/ntdll/ldr.h (LDR_SYMBOL_INFO, LdrpLoadUserModuleSymbols): Add.
1948 (LdrLoadModuleSymbols): Remove.
1949 * include/ntos/kdbgsyms.h (ST_FILENAME, ST_FUNCTION,
1950 ST_LINENUMBER): Add.
1951 (SYMBOL). Make Name an ANSI_STRING.
1952 (IMAGE_SYMBOL_INFO, AreSymbolsParsed): Add.
1953 * lib/ntdll/ldr/startup.c (LdrInitializeThunk): Call
1954 LdrpLoadUserModuleSymbols() not LdrLoadModuleSymbols().
1955 * lib/ntdll/ldr/utils.c (LdrLoadModuleSymbols): Rename to
1956 LdrpLoadUserModuleSymbols.
1957 (LdrpLoadUserModuleSymbols): Use DebugDbgLoadSymbols debug control code.
1958 (LdrLoadDll): assert if out of memory.
1959 (LdrLoadDll): Call
1960 LdrpLoadUserModuleSymbols(), not LdrLoadModuleSymbols().
1961 * lib/ntdll/string/ctype.c (_pctype): #undef.
1962 * ntoskrnl/dbg/dbgctrl.c (NtSystemDebugControl): Call
1963 LdrLoadUserModuleSymbols on DebugDbgLoadSymbols.
1964 * ntoskrnl/include/internal/ldr.h (LdrGetAddressInformation): Add.
1965 * ntoskrnl/include/internal/module.h (MODULE_TEXT_SECTION): Make SymbolInfo
1966 an IMAGE_SYMBOL_INFO.
1967 * ntoskrnl/ke/i386/exp.c (LdrGetAddressInformation): Add prototype.
1968 (print_address): Change #ifdef KDBG to #ifdef DBG.
1969 (KiDoubleFaultHandler, KiDumpTrapFrame, KeDumpStackFrames): Dump
1970 one stack frame per line.
1971 * ntoskrnl/ke/i386/multiboot.S: Create pagetables for more kernel
1972 address space so larger modules can be passed from the boot loader.
1973 * ntoskrnl/ke/i386/usertrap.c (LdrGetAddressInformation): Add prototype.
1974 (print_user_address): Print symbols using LdrGetAddressInformation().
1975 * ntoskrnl/ldr/loader.c (SYMBOLFILE_HEADER, IMAGE_SYMBOL_INFO_CACHE,
1976 STAB_ENTRY, N_FUN, N_SLINE, N_SO, SymbolListHead): Add.
1977 (TAG_SYM_BUF): Remove.
1978 (LdrInitDebug): Remove unneeded code.
1979 (LdrInit1): Prepare for loading symbols.
1980 (LdrpReadLine, HexL, LdrpParseLine, LdrpLoadModuleSymbolsFromBuffer,
1981 LdrpLoadUserModuleSymbolsFromBuffer): Remove.
1982 (LdrpParseImageSymbols, LdrpGetFileName, LdrpGetFunctionName,
1983 LdrpGetLineNumber, LdrGetAddressInformation, LdrpLookupUserSymbolInfo): Add.
1984 (LdrpLoadModuleSymbols, LdrInitializeBootStartDriver): Change to use new
1985 symbol structures.
1986 (LdrLoadUserModuleSymbols): Cache symbol buffers.
1987 (LdrUnloadModuleSymbols): Implement.
1988 (LdrLoadModule, LdrUnloadModule): Change #ifdef KDBG to #ifdef DBG.
1989 (LdrPEProcessModule): Split a line into two lines.
1990 (LdrPEProcessModule): Setup for loading symbols.
1991 * ntoskrnl/ldr/sysdll.c (LdrpMapSystemDll): Open with FILE_SHARE_READ.
1992 * ntoskrnl/ps/process.c (PiFreeSymbols): Call LdrUnloadModuleSymbols() to
1993 free symbols.
1994 (PiDeleteProcess): Change #ifdef KDBG to #ifdef DBG.
1995 * ntoskrnl/rtl/ctype.c (_pctype): #undef.
1996 * ntoskrnl/rtl/string.c (strncpy): Terminate destination string.
1997 * tools/Makefile (rsym): Add target.
1998 * tools/helper.mk: Include config and use -g if DBG = 1.
1999
2000 2002-07-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
2001
2002 * Makefile (install_before): Install system.hiv to correct location.
2003
2004 2002-07-04 David Welch <welch@computer2.darkstar.org>
2005
2006 * subsys/win32k/include/callback.h: Fixed callback argument
2007 definitions.
2008 * subsys/win32k/ntuser/winpos.c: Implemented some more of the windows
2009 sizing/moving code.
2010 * subsys/win32k/ntuser/painting.c: Implemented some more of the
2011 window painting code.
2012 * subsys/win32k/objects/coord.c: Implemented LPtoDP and DPtoLP.
2013 * subsys/win32k/objects/region.c: Added stubs for some more
2014 region functions.
2015
2016 2002-07-04 David Welch <welch@computer2.darkstar.org>
2017
2018 * ntoskrnl/ps/process.c (NtCreateProcess): Duplicate the
2019 process desktop handle as well.
2020
2021 2002-07-04 David Welch <welch@computer2.darkstar.org>
2022
2023 * ntoskrnl/se/token.c: Don't call the ZwXXX variant of
2024 system calls when in system context.
2025
2026 2002-07-04 David Welch <welch@computer2.darkstar.org>
2027
2028 * ntoskrnl/Makefile: Added file with MDA output code.
2029 * ntoskrnl/kd/kdebug.c: Recognize MDA as a destination for
2030 debug output.
2031
2032 2002-07-04 David Welch <welch@computer2.darkstar.org>
2033
2034 * lib/user32/windows/defwnd.c: Implemented some more of the
2035 default window handler.
2036
2037 2002-07-04 David Welch <welch@computer2.darkstar.org>
2038
2039 * lib/user32/misc/stubs.c: Removed some stubs to seperate files.
2040
2041 2002-07-04 David Welch <welch@computer2.darkstar.org>
2042
2043 * lib/user32/user32.def: Export ScreenToClient otherwise we
2044 get problems when code in user32 tries to call it.
2045
2046 2002-07-04 David Welch <welch@computer2.darkstar.org>
2047
2048 * include/win32k/region.h: Added prototypes for some missing
2049 region functions.
2050
2051 2002-07-04 David Welch <welch@computer2.darkstar.org>
2052
2053 * include/win32k/ntuser.h: Added prototypes for some missing
2054 NtUserXXX functions.
2055
2056 2002-07-04 David Welch <welch@computer2.darkstar.org>
2057
2058 * include/user32/wininternal.h: Added some constants for
2059 private GetDCEx styles that WINE needs.
2060
2061 2002-07-04 David Welch <welch@computer2.darkstar.org>
2062
2063 * include/user32/callback.h: Fixed callbacks for messages with
2064 parameters.
2065
2066 2002-07-04 David Welch <welch@computer2.darkstar.org>
2067
2068 * include/napi/win32.h (W32THREAD): Added pointer to the
2069 thread's desktop.
2070 * include/napi/win32.h (W32PROCESS): Removed handle table,
2071 added a pointer to the process's window station.
2072 * subsys/win32k/ntuser/guicheck.c (W32kGuiCheck): Reference
2073 a process's window station on the first win32k system call. Reference
2074 a thread's desktop on the first win32k system call.
2075
2076 2002-07-04 David Welch <welch@computer2.darkstar.org>
2077
2078 * include/messages.h: Added some missing WM_XXX constants.
2079
2080 2002-07-04 David Welch <welch@computer2.darkstar.org>
2081
2082 * drivers/dd/ide/makefile: Compiling with debugging messages
2083 needs libgcc to be linked in.
2084
2085 2002-07-04 David Welch <welch@computer2.darkstar.org>
2086
2087 * iface/addsys/genw32k.c: Generate a variable with the
2088 number of system calls.
2089 * iface/native/genntdll.c: Generate a proper stack frame for
2090 the user system call stubs.
2091 * ntoskrnl/ke/i386/syscall.S: Generate a proper stack frame for
2092 the handler for system calls.
2093
2094 2002-07-04 David Welch <welch@computer2.darkstar.org>
2095
2096 * Makefile: Build the GUI startup application.
2097 * subsys/system/gstart/gstart.c: Application to start up
2098 the GUI.
2099
2100 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2101
2102 * tools/helper.mk: Make an import library a proper target
2103 depending on the .def file.
2104
2105 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2106
2107 * subsys/win32k/ntuser/window.c (NtUserGetWindowLong): Began
2108 implementation.
2109
2110 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2111
2112 * subsys/win32k/misc/object.c (ObmCreateHandle): Return the
2113 correct handle value.
2114
2115 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2116
2117 * subsys/win32k/makefile: Make win32k depend on the file containing
2118 the service table.
2119
2120 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2121
2122 * ntoskrnl/ke/i386/stkswitch.S (KeSwitchStackAndRet,
2123 KePushAndStackSwitchAndSysRet): Push one value only.
2124 * ntoskrnl/ps/w32call.c (NtCallbackReturn, NtW32Call): Moved
2125 these functions to a new file. Restore the old trap frame after
2126 returning from a callback.
2127
2128 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2129
2130 * lib/user32/windows/message.c (CallWindowProcA, CallWindowProcW):
2131 Convert message to Unicode or ASCII if necessary.
2132
2133 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2134
2135 * include/user32/callback.h: Added WM_CREATE and WM_NCCALCSIZE
2136 callbacks.
2137 * lib/user32/windows/window.c (User32SendCREATEMessageForKernel,
2138 User32SendNCCREATEMessageForKernel): Implemented.
2139 * subsys/win32k/ntuser/callback.c (W32kSendCREATEMessage):
2140 Implemented.
2141
2142 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2143
2144 * include/structs.h: Added Unicode and ASCII versions of
2145 CREATESTRUCT.
2146
2147 2002-06-16 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2148
2149 * tools/helper.mk: Make the install target depend on all the
2150 files to be installed.
2151
2152 2002-06-16 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2153
2154 * ntoskrnl/ps/thread.c (NtCallbackReturn): Set TSS.Esp0 to the
2155 top of the old stack.
2156 * ntoskrnl/ps/thread.c (NtW32Call): Set TSS.Esp0 to the top of
2157 the new stack. Free the callback stack correctly. Don't copy
2158 portion of the trap frame that doesn't exist in non-v86-mode
2159 interrupts.
2160 * ntoskrnl/ps/thread.c (PsFreeCallbackStack): New function to
2161 free a stack allocated with PsAllocateCallbackStack.
2162
2163 2002-06-16 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2164
2165 * drivers/dd/null/makefile: Commented out local LDFLAGS as
2166 these cause bad relocations in the stripped image.
2167
2168 2002-06-16 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2169
2170 * config: Corrected spelling error.
2171
2172 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2173
2174 * subsys/system/winlogon/winlogon.c (WinMain): Check for
2175 failure when creating a window system.
2176
2177 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2178
2179 * ntoskrnl/ob/handle.c (ObDuplicateObject): Added this internal
2180 function for duplicating objects.
2181 * ntoskrnl/ps/process.c (NtCreateProcess): Duplicate the parent
2182 process's window station to the child process.
2183 * ntoskrnl/ps/process.c (PsInitProcessManagement): Initialize the
2184 first process's window station.
2185
2186 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2187
2188 * ntoskrnl/mm/marea.c (MmCreateMemoryArea): Initialise
2189 page operation structure members.
2190 * ntoskrnl/mm/pageop.c (MmReleasePageOp, MmGetPageOp): Increment
2191 or decrement the page operation count in the memory area.
2192 * ntoskrnl/mm/virtual.c (MmNotPresentFaultVirtualMemory,
2193 MmPageOutVirtualMemory): Check for a deleted memory area before
2194 handling the fault.
2195 * ntoskrnl/mm/virtual.c (MmFreeVirtualMemory): Wait for all
2196 page operations to finish before freeing the memory area.
2197
2198 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2199
2200 * ntoskrnl/ke/i386/syscall.S (interrupt_handler2e): Corrected
2201 test for previous mode, upper 16-bit of CS on the stack after an
2202 interrupt are arbitary.
2203
2204 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2205
2206 * lib/user32/misc/winsta.c: Cleaned up indentation.
2207
2208 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2209
2210 * apps/tests/winhello/winhello.c (WinMain, MainWndProc):
2211 Cleaned up formatting, some more error checks.
2212
2213 2002-06-04 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2214
2215 * ntoskrnl/mm/virtual.c (MmSecureVirtualMemory,
2216 MmUnsecureVirtualMemory, NtQueryVirtualMemory): Corrected indentation.
2217
2218 2002-06-04 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2219
2220 * ntoskrnl/ke/i386/exp.c (KiDoubleFaultHandler): Print CR3
2221 correctly.
2222
2223 2002-06-04 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2224
2225 * ntoskrnl/include/internal/ps.h: Added KTHREAD_STACK_LIMIT definition.
2226 * ntoskrnl/ke/i386/tskswitch.S (Ki386ContextSwitch): Force all the
2227 pages of the kernel stack to be accessible from this process.
2228
2229 2002-06-04 David Welch <welch@cwcom.net>
2230
2231 * ntoskrnl/cc/view.c (ReadCacheSegmentChain): Changes to use
2232 PHYSICAL_ADDRESS type for physical addresses.
2233 * ntoskrnl/cc/copy.c (CcRosCreateCacheSegment): Changes to use
2234 PHYSICAL_ADDRESS type for physical addresses.
2235 * ntoskrnl/cc/copy.c (CcFreeCachePage): Changes to use
2236 PHYSICAL_ADDRESS type for physical addresses.
2237 * ntoskrnl/include/internal/mm.h: Changed prototypes to use
2238 PHYSICAL_ADDRESS type for physical addresses.
2239 * ntoskrnl/include/internal/ps.h (KPROCESS): Changed type of
2240 page directory base to PHYSICAL_ADDRESS.
2241 * ntoskrnl/include/internal/i386/mm.h: Changed prototypes to use
2242 PHYSICAL_ADDRESS type for physical addresses.
2243 * ntoskrnl/ke/kthread.c (KeFreeStackPage): Changes to use
2244 PHYSICAL_ADDRESS type for physical addresses.
2245 * ntoskrnl/ke/kthread.c (KeInitializeThread): Changes to use
2246 PHYSICAL_ADDRESS type for physical addresses.
2247 * ntoskrnl/ke/process.c (KeAttachProcess, KeDetachProcess): Changes
2248 to use PHYSICAL_ADDRESS type for physical addresses.
2249 * ntoskrnl/ke/kernel.c (PcrPages, KeApplicationProcessorInit): Changes
2250 to use PHYSICAL_ADDRESS type for physical addresses.
2251 * ntoskrnl/mm/balance.c (MM_ALLOCATION_REQUEST): Changes to use
2252 PHYSICAL_ADDRESS type for physical addresses.
2253 * ntoskrnl/mm/balance.c (MmReleasePageMemoryConsumer): Changes to use
2254 PHYSICAL_ADDRESS type for physical addresses.
2255 * ntoskrnl/mm/balance.c (MmRequestPageMemoryConsumer): Changes to use
2256 PHYSICAL_ADDRESS type for physical addresses.
2257 * ntoskrnl/mm/cont.c (MmFreeContinuousPage): Changes to use
2258 PHYSICAL_ADDRESS type for physical addresses.
2259 * ntoskrnl/mm/cont.c (MmAllocateContinuousAlignedMemory): Changes to
2260 use PHYSICAL_ADDRESS type for physical addresses.
2261 * ntoskrnl/mm/freelist.c (MmTransferOwnershipPage,
2262 MmGetLRUFirstUserPage, MmGetLRUNextUserPage, MmGetContinuousPages,
2263 MmInitializePageList, MmSetFlagsPage, MmSetRmapListHeadPage,
2264 MmGetRmapListHeadPage, MmMarkPageMapped, MmMarkPageUnmapped,
2265 MmGetFlagsPage, MmSetSavedSwapEntryPage, MmGetSavedSwapEntryPage,
2266 MmReferencePage, MmGetReferenceCountPage, MmIsUsablePage,
2267 MmDereferencePage, MmGetLockCountPage, MmLockPage, MmUnlockPage,
2268 MmAllocPage): Changes to use PHYSICAL_ADDRESS type for physical
2269 addresses.
2270 * ntoskrnl/mm/iospace.c (MmMapIoSpace): Changes to use
2271 PHYSICAL_ADDRESS type for physical addresses.
2272 * ntoskrnl/mm/kmap.c (ExAllocatePage, MiZeroPage, MiCopyFromUserPage,
2273 ExAllocatePageWithPhysPage): Changes to use PHYSICAL_ADDRESS type for
2274 physical addresses.
2275 * ntoskrnl/mm/marea.c (MmFreeMemoryArea): Changes to use
2276 PHYSICAL_ADDRESS type for physical addresses.
2277 * ntoskrnl/mm/mdl.c (MmUnlockPages, MmMapLockedPages,
2278 MmProbeAndLockPages): Changes to use PHYSICAL_ADDRESS type for
2279 physical addresses.
2280 * ntoskrnl/mm/mm.c (MmSharedDataPagePhysicalAddress,
2281 MmCommitPagedPoolAddress, MmNotPresentFault): Changes to use
2282 PHYSICAL_ADDRESS type for physical addresses.
2283 * ntoskrnl/mm/mminit.c (MmInitVirtualMemory): Changes to use
2284 PHYSICAL_ADDRESS type for physical addresses.
2285 * ntoskrnl/mm/ncache.c (MmAllocateNonCachedMemory,
2286 MmFreeNonCachedPage): Changes to use PHYSICAL_ADDRESS type for
2287 physical addresses.
2288 * ntoskrnl/mm/npool.c (grow_kernel_pool): Changes to use
2289 PHYSICAL_ADDRESS type for physical addresses.
2290 * ntoskrnl/mm/rmap.c (MmPageOutPhysicalAddress, MmInsertRmap,
2291 MmDeleteAllRmaps, MmDeleteRmap): Changes to use
2292 PHYSICAL_ADDRESS type for physical addresses.
2293 * ntoskrnl/mm/section.c (MiReadPage, MmNotPresentFaultSectionView,
2294 MmAccessFaultSectionView, MmPageOutDeleteMapping,
2295 MmPageOutSectionView, MmFreeSectionPage): Changes to use
2296 PHYSICAL_ADDRESS type for physical addresses.
2297 * ntoskrnl/mm/slab.c (ExGrowSlabCache): Changes to use
2298 PHYSICAL_ADDRESS type for physical address.
2299 * ntoskrnl/mm/virtual.c (MmPageOutVirtualMemory,
2300 MmNotPresentFaultVirtualMemory, MmFreeVirtualMemoryPage): Changes to
2301 use PHYSICAL_ADDRESS type for physical address.
2302 * ntoskrnl/mm/wset.c (MmTrimUserMemory): Changes to use
2303 PHYSICAL_ADDRESS type for physical address.
2304 * ntoskrnl/mm/page.c (Mmi386ReleaseMmInfo, MmCopyMmInfo,
2305 MmGetPhysicalAddressForProcess, MmCreateVirtualMapping,
2306 MmCreateVirtualMappingUnsafe, MmCreateVirtualMappingForProcess,
2307 MmDeleteVirtualMapping): Changes to use PHYSICAL_ADDRESS type for
2308 physical address.
2309 * ntoskrnl/ps/process (PsInitProcessManagment): Changes to use
2310 PHYSICAL_ADDRESS type for physical address.
2311 * ntoskrnl/ps/thread.c (PsAllocateCallbackStack): Changes to use
2312 PHYSICAL_ADDRESS type for physical address.
2313
2314 2002-06-04 David Welch <welch@cwcom.net>
2315
2316 * Lots of change since the ChangeLog was last updated.
2317
2318 2001-03-18 David Welch <welch@cwcom.net>
2319
2320 * ntoskrnl/ke/apc.c (KiDeliverApc): Bug fix.
2321 * ntoskrnl/ke/apc.c (KeInsertQueueApc): More comments.
2322 * ntoskrnl/ke/catch.c (KiDispatchException): Bug fix.
2323 * ntoskrnl/ke/timer.c (KeDelayExecutionThread): Don't use removed
2324 function KeAddTimeoutThread.
2325 * ntoskrnl/ke/timer.c (KeAddTimeoutThread): Removed.
2326 * ntoskrnl/ke/wait.c (KeWaitForSingleObject, KeWaitForMultipleObjects):
2327 Don't use KeAddTimeoutThread.
2328 * ntoskrnl/mm/freelist.c (MmAllocateContiguousAlignedMemory): Bug fix
2329 * ntoskrnl/mm/freelist.c (MmAllocatePage): Allocate from the top
2330 memory.
2331
2332 2001-03-17 David Welch <welch@cwcom.net>
2333
2334 * ntoskrnl/ke/catch.c (KiDispatchException): Implementation of
2335 exception handling, user-mode only.
2336
2337 2001-03-16 David Welch <welch@cwcom.net>
2338
2339 * include/ddk/zw.h: Corrected declarations of NtCreateProfile,
2340 NtQueryIntervalProfile, NtSetIntervalProfile.
2341 * include/ddk/zwtypes.h: Added definitions of KPROFILE_SOURCE.
2342 * ntoskrnl/include/internal/ke.h: Added the interrupted EIP as a
2343 parameter to KiUpdateSystemTime for profiling purposes.
2344 * ntoskrnl/include/internal/nt: Added declaration for profiling
2345 support initialization.
2346 * ntoskrnl/ke/timer.c (KiUpdateSystemTime, KeExpireTimers): Call
2347 the profiling code on a timer interrupt with the interrupt EIP.
2348 * ntoskrnl/ke/i386/irq.c (KiDispatchInterrupt): Pass the interrupted
2349 EIP to KiUpdateSystemTime.
2350 * ntoskrnl/mm/virtual.c (NtReadVirtualMemory, NtWriteVirtualMemory):
2351 Release the MDLs used properly.
2352 * ntoskrnl/nt/nt.c: Call the profiling support initialization.
2353 * ntoskrnl/nt/ntevent.c (NtCreateEvent): Don't try copying the
2354 ObjectAttributes parameter if it is NULL.
2355 * ntoskrnl/nt/profile.c: Implemented profiling.
2356
2357 2001-03-16 David Welch <welch@cwcom.net>
2358
2359 * ntoskrnl/include/internal/safe.h: Corrected typo.
2360 * ntoskrnl/nt/ntevent.c (NtCreateEvent, NtOpenEvent, NtQueryEvent):
2361 Corrected typos.
2362 * ntoskrnl/rtl/mem.c: Missing header file.
2363
2364 2001-03-16 David Welch <welch@cwcom.net>
2365
2366 * ntoskrnl/include/internal/safe.h: Add definitions for handling
2367 potentially unsafe pointers.
2368
2369 2001-03-16 David Welch <welch@cwcom.net>
2370
2371 * ntoskrnl/include/internal/mm.h: Removed MmSafeCopyToUser and
2372 MmSafeCopyFromUser as source files need these but don't want internal
2373 mm definitions.
2374 * ntoskrnl/nt/ntevent.c (NtCreateEvent, NtOpenEvent, NtPulseEvent,
2375 NtQueryEvent, NtResetEvent, NtSetEvent): Copy data to and from
2376 user mode safely.
2377 * ntoskrnl/rtl/mem.c (MmCopyToCaller, MmCopyFromCaller): Helper
2378 functions for copying data to and from potentially unsafe pointers.
2379
2380 2000-12-23 David Welch <welch@cwcom.net>
2381
2382 * All task switching is done in software.
2383 * Beginnings of v86 mode support.
2384
2385 2000-12-22 David Welch <welch@cwcom.net>
2386
2387 * ntoskrnl/ps/kill.c (PiTerminateProcessThreads): Drop
2388 PiThreadListLock before calling PsTerminateOtherThread
2389
2390 2000-12-16 David Welch <welch@cwcom.net>
2391
2392 * ntoskrnl/ex/fmutex.c (ExReleaseFastMutexUnsafe): Only set the
2393 fast mutex's owner back to NULL if it is being released
2394
2395 2000-12-10 David Welch <welch@cwcom.net>
2396
2397 * ntoskrnl/ke/i386/vm86_sup.S (Ki386RetToV86Mode): Added function
2398 to do the raw switch to v86 mode.
2399 * ntoskrnl/include/internal/vm86.h: Definitions for the v86 mode
2400 support.
2401
2402 2000-12-10 David Welch <welch@cwcom.net>
2403
2404 * ntoskrnl/ke/i386/trap.s (PsBeginThreadWithContextInternal): Moved
2405 to ntoskrnl/ke/i386/bswitch.S.
2406 * ntoskrnl/ke/i386/trap.s (interrupt_handler2e): Moved to
2407 ntoskrnl/ke/i386/syscall.S.
2408 * ntoskrnl/ke/i386/trap.s (old_interrupt_handler2e): Removed.
2409
2410 2000-12-04 David Welch <welch@cwcom.net>
2411
2412 * ntoskrnl/ke/i386/irq.c (KiInterruptDispatch): Record the last PC
2413 value for a rescheduled thread.
2414 * ntoskrnl/ke/i386/irqhand.s: Construct a primitive trap frame
2415 in interrupt handlers.
2416
2417 2000-08-30 David Welch <welch@cwcom.net>
2418
2419 * Added calibration of KeStallExecutionProcessor timing
2420 (code from linux 2.2.16).
2421
2422 * Corrected compilation bugs in user32 library.
2423
2424 * Corrected compilation bugs related to anonymous structs
2425 in ndis code.
2426
2427 * Pass command line to kernel from loadros.
2428
2429 * Corrected PIC mask calculation.
2430
2431 2000-05-27 David Welch <welch@cwcom.net>
2432
2433 * Fixed issue with closing non-existent or already closed
2434 handle.
2435
2436 2000-01-26 David Welch <welch@cwcom.net>
2437
2438 * ZwCreateProcess now maps ntdll rather than the user-mode
2439 code.
2440
2441 1999-09-06 David Welch <welch@cwcom.net>
2442
2443 * Implemented ZwOpenProcess.
2444
2445 * Partially implemented killing other threads (possible memory
2446 leaks).
2447
2448 * Made a start on a proper implemention of APCs (based on
2449 article in NT insider).
2450
2451 1998-12-08 David Welch <welch@cwcom.net>
2452
2453 * Corrected bug in shell (Read two keypresses and assumed they
2454 where the key going up and down respectively).
2455
2456 * Corrected race in dpc handling.
2457
2458 * Took out cleanup sections in ZwReadFile (now handled by the
2459 APC).
2460
2461 * Disabled broken code in kernel32.
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471