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