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