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