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