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