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