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