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