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