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