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