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