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