Commit graph

3027 commits

Author SHA1 Message Date
Hartmut Birr
b35e9d39b5 Free the DirectorySeachPattern.
svn path=/trunk/; revision=3478
2002-09-09 17:25:39 +00:00
Eric Kohl
5c1d53b4eb Added initial console setup code.
svn path=/trunk/; revision=3476
2002-09-08 18:29:56 +00:00
Casper Hornstrup
f6ca76b756 Reverted latest changes
svn path=/trunk/; revision=3475
2002-09-08 11:16:44 +00:00
Casper Hornstrup
831938b9ee Reverted latest changes
svn path=/trunk/; revision=3474
2002-09-08 10:47:47 +00:00
Casper Hornstrup
17c0b5798e Reverted latest changes.
svn path=/trunk/; revision=3473
2002-09-08 10:23:54 +00:00
Casper Hornstrup
06d3fda385 Fixed declaration of WSHGetWSAProtocolInfo
svn path=/trunk/; revision=3471
2002-09-07 19:40:57 +00:00
Casper Hornstrup
96a7d97dac Fixed declaration of WSHGetWSAProtocolInfo
svn path=/trunk/; revision=3470
2002-09-07 19:20:08 +00:00
Casper Hornstrup
fb914ea8cb Remove some debugging code.
svn path=/trunk/; revision=3469
2002-09-07 17:08:31 +00:00
Casper Hornstrup
59448c64c0 Fixed typo.
svn path=/trunk/; revision=3468
2002-09-07 16:44:12 +00:00
Casper Hornstrup
5f42259b67 Added MSVCRT.DLL private headers.
svn path=/trunk/; revision=3467
2002-09-07 15:18:12 +00:00
Casper Hornstrup
387d432884 Use free Windows DDK and compile with latest MinGW releases.
svn path=/trunk/; revision=3466
2002-09-07 15:13:13 +00:00
Emanuele Aliberti
81a79af1eb USER32.EqualRect(): partial implementation.
svn path=/trunk/; revision=3462
2002-09-05 21:50:53 +00:00
Emanuele Aliberti
17974568f9 Just one more line. Little is known about MCBs.
svn path=/trunk/; revision=3461
2002-09-05 20:41:05 +00:00
Eric Kohl
296c5258a4 Check for a busy device in AtapiInterrupt().
svn path=/trunk/; revision=3458
2002-09-04 21:33:26 +00:00
David Welch
9191240ab4 Added missing file.
svn path=/trunk/; revision=3457
2002-09-04 18:09:31 +00:00
Eric Kohl
3e871a4ef6 Added code to identify the cdrom drive when ReactOS is booted from a CD because the bios does not provide any usable information.
The Boot-CD must be labeled 'REACTOS'.

svn path=/trunk/; revision=3456
2002-09-04 13:58:56 +00:00
David Welch
afe56d0970 Implemented part of window properties support
Convert WM_GETTEXT messages when sending between windows
Added Steven's bitmaps to the user32 resources
Fixed some bugs when creating a DIB
Implemented LoadBitmap

svn path=/trunk/; revision=3455
2002-09-03 22:44:21 +00:00
Steven Edwards
f8310e0ce2 Added binary resources from Wine for user32.
To be replaced latter by wrc format

svn path=/trunk/; revision=3453
2002-09-02 23:35:00 +00:00
Steven Edwards
9ca848afd6 Fixed another stub for the WINE dlls.
svn path=/trunk/; revision=3452
2002-09-02 20:30:25 +00:00
Steven Edwards
b3a582dbdd Fix export to get WineMine to load.
svn path=/trunk/; revision=3451
2002-09-02 18:48:32 +00:00
David Welch
b163519757 Don't reinitialize the VGA on an enable surface if it is already initialized
Implemented patblt and rectangle fill
Offset drawing by the origin of the DC
Other GUI fixes

svn path=/trunk/; revision=3450
2002-09-01 20:39:56 +00:00
Robert Dickenson
a8c82f2bfb Added some exports.
svn path=/trunk/; revision=3449
2002-09-01 04:27:51 +00:00
Robert Dickenson
96561f80c2 Seem to have missed updating these previously....
svn path=/trunk/; revision=3448
2002-09-01 04:17:05 +00:00
David Welch
c81c209798 Non-client painting fixes.
svn path=/trunk/; revision=3447
2002-08-31 23:18:47 +00:00
KJK::Hyperion
cbc3029db7 Defined missing virtual memory query/set information types
svn path=/trunk/; revision=3446
2002-08-31 18:33:21 +00:00
KJK::Hyperion
08d5474187 PSAPI (re)licensed under LGPL to be shared with WinE, as per Steven's request. Interfaces (headers and import library definitions) and trivial sources put in the public domain
svn path=/trunk/; revision=3443
2002-08-31 17:11:24 +00:00
KJK::Hyperion
75cabefb26 LGPL 2.1
svn path=/trunk/; revision=3442
2002-08-31 17:07:30 +00:00
KJK::Hyperion
a0cbde7bb0 PSAPI: all the annoying stuff (enumeration and search, basically) has been taken care of. Only profiling remains to be implemented.
Check out the subsystem-independent routines in enum/ (FWIW: the whole DLL only imports two calls from kernel32.dll, SetLastError and AreFileApisANSI): they've been tested, and they could make for a great static library, to implement task manager, tlist, ToolHelp API, etc. Maybe a future addition to mingwnt?

svn path=/trunk/; revision=3441
2002-08-31 15:36:56 +00:00
David Welch
c0b94f90f9 Implemented GetAncestor and IsWindowVisible
Save and restore the trap frame around exceptions
Allow nested w32 callbacks

svn path=/trunk/; revision=3440
2002-08-30 02:47:37 +00:00
KJK::Hyperion
6332533037 PSAPI almost finished
svn path=/trunk/; revision=3439
2002-08-29 23:57:54 +00:00
David Welch
3ede8f0814 Fixed when changing the attributes of an area larger than the mapped area.
Unprotect pages before applying relocations
Create a module entry before fixing up imports to support recursive
dependencies
Added missing symbol to user32

svn path=/trunk/; revision=3438
2002-08-29 22:12:16 +00:00
KJK::Hyperion
0a0f2c9c13 Corrected source paths for Event Log service and RPC subsystem
svn path=/trunk/; revision=3435
2002-08-28 23:13:08 +00:00
Jason Filby
69b5fb7882 A few new definitions related to windowing
svn path=/trunk/; revision=3433
2002-08-28 22:03:44 +00:00
Jason Filby
bf5d7b47c9 Initial nonclient code
svn path=/trunk/; revision=3432
2002-08-28 21:58:00 +00:00
Hartmut Birr
444da66580 Replaced 'jmp $+3' with 'jmp label'.
svn path=/trunk/; revision=3431
2002-08-28 20:53:20 +00:00
Robert Kopferl
4bad48b791 added a preliminary WideCharToMultyByte(). This impl. only cuts of the upper 9 Bit and makes no use of NLS - its a Hack
svn path=/trunk/; revision=3430
2002-08-28 19:31:09 +00:00
Eric Kohl
5857837550 Added detection of PCI Bus Master Controllers.
svn path=/trunk/; revision=3428
2002-08-28 18:36:18 +00:00
Robert Kopferl
07c788111d added some CP_ definitions
svn path=/trunk/; revision=3427
2002-08-28 17:52:00 +00:00
Robert Kopferl
b767c78d56 added CodePage symbols inside a #if 0
svn path=/trunk/; revision=3426
2002-08-28 17:47:09 +00:00
Hartmut Birr
2fe8ed1c18 *** empty log message ***
svn path=/trunk/; revision=3425
2002-08-28 07:32:39 +00:00
Hartmut Birr
f454afa33c Changed parameters for IoPageRead/IoPageWrite/IoSynchronousPageWrite.
Removed referencing of the event/file object.

svn path=/trunk/; revision=3424
2002-08-28 07:19:10 +00:00
Hartmut Birr
a5a8fc4a5a Removed dereferencing of the event/file object for paging IO.
svn path=/trunk/; revision=3423
2002-08-28 07:17:22 +00:00
Hartmut Birr
2066bfecef Added/enabled IoAcquireRemoveLockEx, IoInitializeRemoveLockEx, IoPageRead,
IoReleaseRemoveLockAndWaitEx, IoReleaseRemoveLockEx.

svn path=/trunk/; revision=3422
2002-08-28 07:15:14 +00:00
Hartmut Birr
1b9c730b99 Moved IoPageRead from io.h to iofuncs.h.
Changed parameters for IoPageRead/IoPageWrite/IoSynchronousPageWrite.
Fixed the length calculation in CcZeroData.

svn path=/trunk/; revision=3421
2002-08-28 07:13:04 +00:00
Hartmut Birr
fdd13c6ff5 Changed the parameters for InterlockedCompareExchange.
svn path=/trunk/; revision=3420
2002-08-28 07:08:26 +00:00
Hartmut Birr
9b2f541051 Set the allocation size in IoCreateFile.
svn path=/trunk/; revision=3419
2002-08-28 07:05:14 +00:00
Hartmut Birr
9ad20399e9 Added memcpy/memset with inline assembler implementation for target i386.
svn path=/trunk/; revision=3418
2002-08-28 07:03:10 +00:00
Steven Edwards
7a32bdf315 update .cvsignore
svn path=/trunk/; revision=3416
2002-08-28 00:03:29 +00:00
Steven Edwards
1810bf3caa add .cvsignore
svn path=/trunk/; revision=3415
2002-08-28 00:03:09 +00:00
Steven Edwards
258b472dd7 copy gstart.exe to C:\reactos\system32
svn path=/trunk/; revision=3414
2002-08-27 23:59:17 +00:00
David Welch
78126b68a6 More painting fixes.
svn path=/trunk/; revision=3413
2002-08-27 23:32:21 +00:00
David Welch
25788364e8 Misc. painting fixes.
svn path=/trunk/; revision=3412
2002-08-27 23:29:40 +00:00
Jason Filby
c75df46270 Minor fix
svn path=/trunk/; revision=3411
2002-08-27 21:20:45 +00:00
Jason Filby
cb6d74f998 BeginPaint and EndPaint now functional
svn path=/trunk/; revision=3410
2002-08-27 20:32:03 +00:00
Robert Dickenson
74c9931dbf Created new module for library IPRTPRIO.DLL
svn path=/trunk/; revision=3409
2002-08-27 13:22:30 +00:00
Hartmut Birr
b6e3b83941 Repleaced wcsicmp with _wcsicmp in ScLookupServiceByServiceName.
wcsicmp is imported from msvcrt.dll and _wcsicmp from ntdll.dll.

svn path=/trunk/; revision=3408
2002-08-27 06:41:58 +00:00
Robert Dickenson
3b451c4642 Added required support for WinHelp exports in user32.lib
svn path=/trunk/; revision=3407
2002-08-27 06:41:33 +00:00
Hartmut Birr
a9a618aeb0 Using ReadCacheSegment for reading a cache segment in MiReadPage.
Fixed the attribute in a call to MmCreateVirtualMapping in MmNotPresentFaultSectionView.
Removed a wrong call to MmUnlockAddressSpace in MmUnmapViewOfSection.

svn path=/trunk/; revision=3406
2002-08-27 06:40:32 +00:00
Robert Dickenson
4463ef833f Added entry points for WinHelpA and WinHelpW exports.
svn path=/trunk/; revision=3405
2002-08-27 06:40:15 +00:00
Hartmut Birr
69b3035df8 Changed from CreateFileW for opening a directory to the new
function InternalOpenDirectoryW. InternalOpenDirectory uses
NtCreateFile instead of CreateFileW.

svn path=/trunk/; revision=3404
2002-08-27 06:38:23 +00:00
Hartmut Birr
efcf4c3d7f Added testing for a valid proccess pointer in
MmWritePagePhysicalAddress/MmPageOutPhysicalAddress.
Moved the call to ObDereferenceObject to the end in
MmWritePagePhysicalAddress/MmPageOutPhysicalAddress.

svn path=/trunk/; revision=3403
2002-08-27 06:36:32 +00:00
Hartmut Birr
06226b583c Added CloseInProcess to the structure OBJECT_HEADER.
Check for close operation in ObReferenceObjectByPointer,
ObpPerformRetentionChecks, ObfReferenceObject.

svn path=/trunk/; revision=3402
2002-08-27 06:34:22 +00:00
Hartmut Birr
9e3bef3b3c Fixed the calculation of the ActiveCount member from structure ERESOURCE.
svn path=/trunk/; revision=3401
2002-08-27 06:31:55 +00:00
David Welch
7a3564314a Added missing prototype.
svn path=/trunk/; revision=3399
2002-08-26 23:22:53 +00:00
David Welch
df75d0d97f Fixes for painting.
svn path=/trunk/; revision=3398
2002-08-26 23:20:54 +00:00
Hartmut Birr
3f6d544a66 Initialized Peb->WindowFlags (instead of Flags) with dwFlags in CreateWindowW.
svn path=/trunk/; revision=3397
2002-08-26 22:07:01 +00:00
David Welch
024738024e 2002-08-26 David Welch <welch@computer2.darkstar.org>
* lib/gdi32/misc/dllmain.c (GdiDllInitialize): Don't initialize
	win32k.sys for each process.
	* subsys/csrss/init.c (CsrServerInitialization): Initialize
	win32k.sys as well.

2002-08-26  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/ps/process.c (NtCreateProcess): Reference the
	parent process's handle using ExGetPreviousMode.

2002-08-26  David Welch  <welch@computer2.darkstar.org>

	* lib/user32/misc/dllmain.c (Init): Initialize gdi32 as well.

2002-08-26  David Welch  <welch@computer2.darkstar.org>

	* iface/addsys/genw32k.c (main, process): Generate a set of
	stubs for csrss as well.

svn path=/trunk/; revision=3396
2002-08-26 13:06:03 +00:00
David Welch
f7c5c8bcd2 Oops, fixed compile errors.
svn path=/trunk/; revision=3395
2002-08-26 12:27:48 +00:00
David Welch
87579ff3f0 Copy all the startup info to the new process.
svn path=/trunk/; revision=3394
2002-08-26 11:24:29 +00:00
Jason Filby
84a242512b DCE header file
svn path=/trunk/; revision=3393
2002-08-25 15:56:54 +00:00
Robert Dickenson
9971dc596a More CVS sugar.
svn path=/trunk/; revision=3391
2002-08-25 07:22:29 +00:00
Robert Dickenson
9c63868251 Added a whole lot of CVS sugar so I can use WinCVS flat mode more effectively.
svn path=/trunk/; revision=3390
2002-08-25 07:16:37 +00:00
Robert Dickenson
94aa216cf4 Fixed some broken stuff, added some cvs sugur.
svn path=/trunk/; revision=3389
2002-08-25 06:59:34 +00:00
Jason Filby
1231d02b03 Initial code for NtUserGetDC
svn path=/trunk/; revision=3387
2002-08-24 11:09:17 +00:00
KJK::Hyperion
34b85a88a2 Removed superfluous DPRINTs
svn path=/trunk/; revision=3386
2002-08-24 03:50:49 +00:00
Eric Kohl
bdf9e628c0 Fixed dependency file deletion bug.
svn path=/trunk/; revision=3385
2002-08-24 01:45:37 +00:00
Emanuele Aliberti
b07c25b369 Fixes for building the imports libraries.
svn path=/trunk/; revision=3382
2002-08-23 12:41:55 +00:00
Robert Dickenson
0b318e24d3 Added new include file.
svn path=/trunk/; revision=3380
2002-08-23 08:28:43 +00:00
Robert Dickenson
90d386b1c0 Added some exports.
svn path=/trunk/; revision=3379
2002-08-23 08:27:46 +00:00
Robert Dickenson
8f61fc390c Modified to use new include file reactos/include/snmp.h to be committed shortly.
svn path=/trunk/; revision=3378
2002-08-23 08:26:52 +00:00
Eric Kohl
ed21a6af20 -Implemented ReadConsoleOutputCharacterA and CsrReadConsoleOutputChar
-Added null pointer check to FillConsoleOutputCharacterA
-Added parameter names and removed 'undocumented' label for
GetConsoleFontSize and GetCurrentConsoleFont
-Added definition of CONSOLE_FONT_INFO struct
-Added call to SetLastError(ERROR_OUTOFMEMORY) to a number of
RtlAllocateHeap return value checks

Patch by Marty Dill

svn path=/trunk/; revision=3375
2002-08-22 15:21:57 +00:00
KJK::Hyperion
d8bd5ccb4a New macros InitializeUnicodeString(), RtlInitUnicodeStringFromLiteral() and UNICODE_STRING_INITIALIZATOR(), for fast, compile-time initialization of UNICODE_STRING variables
svn path=/trunk/; revision=3371
2002-08-20 20:37:19 +00:00
Jason Filby
51f0384fc0 Improved HLine algorithm; improvement carried over to FillSolid
svn path=/trunk/; revision=3370
2002-08-19 22:01:12 +00:00
Eugene Ingerman
6b30cb44dd Added color translation for solid color brushes.
svn path=/trunk/; revision=3369
2002-08-19 21:49:45 +00:00
Jason Filby
5add7bd9d8 Fixed VGADDIFillSolid - now fast, although ugly (will clean it up still)
svn path=/trunk/; revision=3368
2002-08-18 22:11:06 +00:00
Hartmut Birr
92de298b36 - Added a check for valid result pointers in GetDiskFreeSpaceExW.
- Changed from CreateFileW to NtCreateFile in GetVolumeInformationW.
  CreateFileW doesn't allow to open directories.

svn path=/trunk/; revision=3367
2002-08-18 21:07:59 +00:00
Hartmut Birr
0127899031 Rewrote _stat functions. This functions can't use _fstat.
svn path=/trunk/; revision=3366
2002-08-18 21:04:52 +00:00
KJK::Hyperion
82557ffc26 RtlGetProcessHeap() is not a function in Microsoft Windows
svn path=/trunk/; revision=3365
2002-08-18 18:50:27 +00:00
KJK::Hyperion
8a7fe191c9 CreateFileW: corrected a couple of buglets, added handling of GENERIC_ALL access, packed with DPRINTs to catch the bug that breaks gcc and cmd (sorry, last time I touch something I can't test)
svn path=/trunk/; revision=3364
2002-08-18 16:01:11 +00:00
Jason Filby
6c96aec67d Use clip.h instead of enum.h
svn path=/trunk/; revision=3363
2002-08-18 13:55:11 +00:00
Eugene Ingerman
95d847d794 1. CLIPOBJ_bEnum, CLIPOBJ_cEnumStart - implemented internal clip region enumeration.
2. Implemented PaintRgn. Added test to gditest.
3. Removed enum.c enum.h (duplicates for clip.c clip.h).

svn path=/trunk/; revision=3362
2002-08-18 07:02:57 +00:00
KJK::Hyperion
cfd7b8b886 Cleaned up CreateFileW. Please check out the FIXMEs
svn path=/trunk/; revision=3361
2002-08-18 04:20:21 +00:00
KJK::Hyperion
9a20837e5c Added definition of FILE_OPEN_FOR_RECOVERY
svn path=/trunk/; revision=3360
2002-08-18 04:19:27 +00:00
Hartmut Birr
7376639aea Call VfatSetAllocationSizeInformation only if the file size is increased (VfatWrite).
svn path=/trunk/; revision=3357
2002-08-17 16:51:07 +00:00
Robert Dickenson
85acea80c6 Added new module for iphlpapi.dll
svn path=/trunk/; revision=3356
2002-08-17 16:23:13 +00:00
Robert Dickenson
4115f5826a Newline at EOF to fix warning
svn path=/trunk/; revision=3355
2002-08-17 16:18:54 +00:00
Robert Dickenson
faa53591e2 Added NDISVERSION define for our target NDIS support level, currently commented out pending testing.
svn path=/trunk/; revision=3353
2002-08-17 16:02:08 +00:00
Robert Dickenson
8141b34d44 fixed clean rule to match other makefile standard
svn path=/trunk/; revision=3352
2002-08-17 15:58:38 +00:00
Robert Dickenson
ee57fdbbc9 Fixed typo in header comment.
svn path=/trunk/; revision=3351
2002-08-17 15:57:22 +00:00
Robert Dickenson
2bcc926b73 Added new module for snmpapi.dll
svn path=/trunk/; revision=3350
2002-08-17 15:48:21 +00:00
Hartmut Birr
4b6ce94d5d Disabled/removed debug messages.
svn path=/trunk/; revision=3349
2002-08-17 15:46:36 +00:00
Hartmut Birr
d7f19d41ea Changed the values for the page file size from the registry from Byte to MByte.
svn path=/trunk/; revision=3348
2002-08-17 15:31:03 +00:00
Hartmut Birr
e0c35e0076 Zero out the page in MmTransferOwnershipPage.
svn path=/trunk/; revision=3347
2002-08-17 15:29:18 +00:00
Hartmut Birr
c463dfec1b Change the type of the parameter PhysicalAddress in MmDisableVirtualMapping.
svn path=/trunk/; revision=3346
2002-08-17 15:27:54 +00:00
Hartmut Birr
9443ca8347 Set the extension length to 0 if there is no extension (RtlGenerate8dot3Name).
svn path=/trunk/; revision=3345
2002-08-17 15:23:50 +00:00
Hartmut Birr
ea5ed93302 Fixed the size for memory unmapping from boot process.
svn path=/trunk/; revision=3344
2002-08-17 15:22:33 +00:00
Hartmut Birr
4e9dc21691 Removed freeing of IRP's MDL in ScsiClassIoComplete.
svn path=/trunk/; revision=3343
2002-08-17 15:21:12 +00:00
Hartmut Birr
675afa7691 Setup the correct stack location for completion routines in IofCompleteRequest.
This change correct also the called completion routine in IoSecondStageCompletion
(ntoskrnl\io\cleanup.c).

svn path=/trunk/; revision=3342
2002-08-17 15:20:33 +00:00
Hartmut Birr
74e8579c8f Removed the absolute path (c:\reactos\system32) to smss.exe.
svn path=/trunk/; revision=3341
2002-08-17 15:17:59 +00:00
Hartmut Birr
6130c02167 - Release streaming file object for directories in vfatReleaseFCB.
- Removed initialization of caching in vfatAttacheFCBToFileObject.
  The cache for files is initialized at the first read/write operation.
- Merged vfatExtendSpace and VfatSetAllocationSizeInformation in one function.

svn path=/trunk/; revision=3339
2002-08-17 15:15:50 +00:00
Hartmut Birr
01d5ad9279 - Disabled write caching for meta data (FAT, directories) in
CcSetDirtyPinedData. There is no working shutdown function
  for writing back each modified cache segment. A reboot or
  crash can damage the disk.
- Added CcRosReferenceCache and CcRosDereferenceCache.
- Check at each call to CcRosInitializeFileCache if the cache was
  initialized for the file stream by a previous call to this function.
- Check at each call to CcRosReleaseFileCache if this is possible
  to delete the caching for the file stream.

svn path=/trunk/; revision=3338
2002-08-17 15:14:26 +00:00
Hartmut Birr
572bbc6ea5 Increment/Decrement the cache reference count on each create/delete
operation for a section. This prevents the cache from uninitialization
for a mapped file (data or image) at the cleanup of a given file object
or force the uninitialization if the last section of a file is deleted.

svn path=/trunk/; revision=3337
2002-08-17 15:12:49 +00:00
David Welch
c62229b967 2002-08-17 David Welch <welch@computer2.darkstar.org>
* ntoskrnl/mm/rmap.c (MmWritePagePhysicalAddress): Ensure the
	process isn't freed in the middle of our operations.

2002-08-17  David Welch  <welch@computer2.darkstar.org>

	* drivers/fs/vfat/finfo.c (VfatSetAllocationSizeInformation): Fixed.

svn path=/trunk/; revision=3336
2002-08-17 14:14:20 +00:00
David Welch
1a46ca7d8a 2002-08-17 David Welch <welch@computer2.darkstar.org>
* ntoskrnl/ps/create.c (PiDeleteThread): Don't dereference
	the thread's process while holding the thread list lock.

2002-08-17  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/mm/section.c (MmMapViewOfSection): Check there is
	enough space for all parts of an image before mapping it; if
	there isn't enough space free at the preferred base address
	then try to choose a different one.

2002-08-17  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/mm/mpw.c (MmInitMpwThread): Run the MPW thread at
	idle priority.

2002-08-17  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/mm/kmap.c (ExUnmapPage, ExAllocatePageWithPhysPage,
	MiFreeNonPagedPoolRegion, MiAllocNonPagedPoolRegion): Maintain
	a hint of the next free page; makes running with whole page
	allocation more bearable.

2002-08-17  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/mm/anonmem.c (MmPageOutVirtualMemory): Show an
	out of swap space message if we are out of swap space.
	* ntoskrnl/mm/section.c (MmPageOutSectionView): Show an
	out of swap space message if we are out of swap space.
	* ntoskrnl/mm/pagefile.c (MmAllocSwapPage): Don't automatically
	show an out of swap space message on failure.
	* ntoskrnl/mm/pagefile.c (MmShowOutOfSpaceMessagePagingFile): New
	function to notify the user that the pagefile is full.

2002-08-17  David Welch  <welch@computer2.darkstar.org>

	* drivers/lib/zlib/Makefile: Create a dummy zlib.sym

svn path=/trunk/; revision=3335
2002-08-17 01:42:03 +00:00
Eugene Ingerman
1052bedeed Updated memory area const names.
svn path=/trunk/; revision=3334
2002-08-16 22:03:07 +00:00
David Welch
99c4e70f22 2002-08-16 David Welch <welch@computer2.darkstar.org>
* ntoskrnl/mm/npool.c (ExAllocateWholePageBlock): Converted
	to use PHYSICAL_ADDRESS type for page address.

2002-08-16  David Welch  <welch@computer2.darkstar.org>

	* subsys/win32k/ntuser/class.c (W32kCreateClass): Corrected
	typo when calculating the offset into the class object to
	put the class name string.

2002-08-16  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/ps/thread.c (PsDispatchThreadNoLock): Don't call
	the reaper function directly; set an event to wake up a seperate
	reaper thread.
	* ntoskrnl/ps/thread.c (PsReaperThreadMain): New function that
	waits for a notification and then calls PsReapThreads.
	* ntoskrnl/ps/thread.c (PsInitThreadManagement): Create the
	reaper thread.

svn path=/trunk/; revision=3333
2002-08-16 01:39:17 +00:00
David Welch
a4e3a21cfa Export LdrFindResourceDirectory_U
Remove LdrFindResourceDirectory_U stub

svn path=/trunk/; revision=3332
2002-08-15 16:11:01 +00:00
David Welch
8cec2e609d 2002-08-14 David Welch <welch@computer2.darkstar.org>
* subsys/smss/init.c (SmPagingFilesQueryRoutine): If possible
	take the size of the paging file from the registry.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/mm/section.c (MmCreateDataFileSection): Extend the
	section if necessary.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/mm/pagefile.c (NtCreatePagingFile): Set the file
	size using the FileAllocationInformation class.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/mm/anonmem.c (MmWritePageVirtualMemory): Implemented
	function to write anonymous memory pages to the swap file.
	* ntoskrnl/mm/anonmem.c (MmFreeVirtualMemoryPage): Free any
	swap page associated with the page.
	* ntoskrnl/mm/mpw.c (MmWriteDirtyPages): New function to find
	pages to write to disk.
	* ntoskrnl/mm/mpw.c (MmMpwThreadMain): Implemented MPW functionality.
	* ntoskrnl/mm/rmap.c (MmWritePagePhysicalAddress): New function
	to write a single page back to disk.
	* ntoskrnl/mm/rmap.c (MmSetCleanAllRmaps, MmSetDirtyAllRmaps,
	MmIsDirtyPageRmap): New rmap function to support the MPW thread.
	* ntoskrnl/mm/section.c (MmWritePageSectionView): Implemented
	function to write back section pages.
	* ntoskrnl/mm/section.c (MmFreeSectionPage): Free any swap
	entry associated with the page; mark pages shared with
	the cache as dirty if necessary.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/ldr/loader.c (LdrPEProcessModule): Set name of
	the module into the module text structure.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/io/rw.c (NtReadFile, NtWriteFile): Use the correct
	test for whether to wait for the completion of i/o.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/cm/ntfunc.c (NtFlushKey): Request synchronous i/o
	from NtOpenFile.
	* ntoskrnl/cm/regfile (CmiInitPermanentRegistryHive): Request
	synchronous i/o from NtCreateFile.
	* ntoskrnl/dbg/kdb_stabs.c (LdrpLoadModuleSymbols): Request
	synchronous i/o from NtOpenFile.
	* ntoskrnl/ldr/sysdll.c (LdrpMapSystemDll): Request synchronous i/o
	from NtOpenFile.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/cc/view.c (CcRosSuggestFreeCacheSegment): Maintain the
	correct reference count.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/cc/view.c (CcRosFlushCacheSegment): New function to
	write back a modified cache segment.
	* ntoskrnl/cc/view.c (CcRosFlushDirtyPages): New function to
	flush some dirty pages from the cache.
	* ntoskrnl/cc/view.c (CcRosMarkDirtyCacheSegment): New function to
	mark a cache segment modified while mapped into memory as dirty.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/cc/pin.c (CcMapData, CcUnpinData, CcSetDirtyPinnedData):
	Store the dirty status in the BCB; don't write back dirty data
	immediately.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* include/ntos/mm.h: Added SEC_XXXX defines from 'Windows NT/2000
	Native API Reference'

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* drivers/fs/vfat/ea.c (VfatSetExtendedAttributes): Empty
	placeholder for extended attribute functions.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* drivers/fs/vfat/finfo.c (VfatSetAllocationSizeInformation):
	Added function to set allocation size.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* drivers/fs/vfat/fcb.c (vfatFCBInitializeCache): Renamed
	to vfatFCBInitializeCacheFromVolume.
	* drivers/fs/vfat/fcb.c (vfatMakeFCBFromDirEntry): Don't
	initialise the cache with a file object representing the
	volume unless the FCB is for a directory.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* drivers/fs/vfat/create.c (VfatPagingFileCreate): Added a
	new function for handling paging file only code.
	* drivers/fs/vfat/create.c (VfatSupersedeFile): Added a
	new function for doing a file supersede.
	* drivers/fs/vfat/create.c (VfatCreateFile): Reformatted and
	adjusted control flow. Set allocation size and extended attributes
	on create.
	* drivers/fs/vfat/create.c (VfatCreate): Removed goto.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* drivers/fs/vfat/cleanup.c (VfatCleanupFile): Renamed
	updEntry to VfatUpdateEntry.
	* drivers/fs/vfat/close.c (VfatCloseFile): Renamed
	updEntry to VfatUpdateEntry.
	* drivers/fs/vfat/dirwr.c (updEntry): Renamed to
	VfatUpdateEntry.
	* drivers/fs/vfat/dirwr.c (addEntry): Renamed to
	VfatAddEntry.

2002-08-14  David Welch  <welch@computer2.darkstar.org>

	* apps/tests/sectest/sectest.c (main): Fixed formatting.

svn path=/trunk/; revision=3331
2002-08-14 20:58:39 +00:00
Eric Kohl
54865265f0 Implemented and fixed several ACL and SD functions.
Patch by Alexandru Matei.

svn path=/trunk/; revision=3330
2002-08-13 20:41:22 +00:00
Eric Kohl
ce083074cf Added missing newline
svn path=/trunk/; revision=3329
2002-08-10 21:58:14 +00:00
Eric Kohl
5e4fc8c66d Added compression stubs
svn path=/trunk/; revision=3328
2002-08-10 21:57:41 +00:00
David Welch
383eddd11e 2002-08-10 David Welch <welch@computer2.darkstar.org>
* ntoskrnl/mm/i386/page.c (MmSetPageProtect): Fixed
	behaviour when called on the system address space.

2002-08-10  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/mm/virtual.c (MmQueryAnonMem, MmProtectAnonMem,
	NtAllocateVirtualMemory, NtFreeVirtualMemory): Renamed
	segments to regions; moved region code to seperate file.
	Implemented NtQueryVirtualMemory and NtProtectVirtualMemory
	for anonymous memory areas.

2002-08-10  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/mm/anonmem.c: Moved functions relating to
	areas created with NtAllocateVirtualMemory to a
	seperate file.

2002-08-10  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/mm/section.c (MmQuerySectionView): Implemented
	NtQueryVirtualMemory for section views.

2002-08-10  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/mm/section.c (MmAccessFaultSectionView,
	MmNotPresentFaultSectionView, MmProtectSectionView,
	MmMapViewOfSegment, MmAlterViewAttributes): Implemented
	NtProtectVirtualMemory for section views.

2002-08-10  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/ke/main.c: Removed SEH test code.

2002-08-10  David Welch  <welch@computer2.darkstar.org>

	* lib/ntdll/ldr/utils.c (LdrFixupImports): Remove the readonly
	protection from the IAT before writing to it.

2002-08-10  David Welch  <welch@computer2.darkstar.org>

	* lib/ntdll/ldr/utils.c (LdrAdjustDllName): Properly null terminate
	the base name of the DLL.

2002-08-10  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/ldr/loader.c (LdrPEProcessModule): Set the text segment
	of modules to readonly after loading.

svn path=/trunk/; revision=3327
2002-08-10 16:41:20 +00:00
Eric Kohl
6809339d27 Fixed several function prototypes.
svn path=/trunk/; revision=3326
2002-08-09 22:57:48 +00:00
David Welch
95fbecfd46 2002-08-09 David Welch <welch@computer2.darkstar.org>
* ntoskrnl/ps/create.c (NtCreateThread): Call PsSuspendThread
	if NtCreateThread has CreateSuspended as TRUE.
	* ntoskrnl/ps/suspend.c (PsSuspendThread, PsResumeThread,
	PiSuspendThreadKernelRoutine): Fixed suspend functionality.

2002-08-09  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/ke/i386/usertrap.c (print_user_address): Copy
	the LDR variable from the right address.

2002-08-09  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/ke/apc.c (KiDeliverNormalApc): Check for
	kernel APCs pending on exit from the kernel.
	* ntoskrnl/ke/apc.c (KiDeliverNormalApc, KiDeliverUserApc,
	KiDeliverApc): Set the APC's inserted flag to FALSE after
	removing it from the thread's queue.

2002-08-09  David Welch  <welch@computer2.darkstar.org>

	* lib/kernel32/thread/thread.c (ThreadStartup): Don't
	call DLL entrypoints; this is done by LdrInitializeThunk.
	* lib/ntdll/ldr/startup.c (LdrInitializeThunk): Call
	DLLs in initialization order; take the loader lock before
	calling.

2002-08-09  David Welch  <welch@computer2.darkstar.org>

	* apps/tests/thread/thread.c (main): Test suspend and
	resume functionality.

svn path=/trunk/; revision=3324
2002-08-09 17:23:57 +00:00
David Welch
5a801d58c3 2002-08-08 David Welch <welch@computer2.darkstar.org>
* ntoskrnl/mm/section (NtQuerySection): Return the
	right result length.

2002-08-08  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/ke/usertrap.c (print_user_address): Check for
	a NULL LDR structure in the PEB; copy the LDR pointer in
	safely.

2002-08-08  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/ke/apc.c (KiDeliverUserApc): Deliver all present
	APCs; release the APC spinlock while acccessing user memory.

2002-08-08  David Welch  <welch@computer2.darkstar.org>

	* include/internal/ps.h: Adjusted offsets into the ETHREAD
	structure.
	* include/internal/ps.h: Removed redundant members from the
	KTHREAD structure.
	* ntoskrnl/ke/kthread.c (KeInitializeThread): Removed
	redundant members from the KTHREAD structure.

2002-08-08  David Welch  <welch@computer2.darkstar.org>

	* ntoskrnl/dbg/kdb.c (KdbEnterDebuggerException): New
	function to enter the debugger on an exception.
	* ntoskrnl/kd/kdebug.c (KdInitSystem): Initialize the
	local kernel debugger if enabled.
	* ntoskrnl/ke/catch.c (KiDispatchException): Enter the
	local kernel debugger on an exception.

2002-08-08  David Welch  <welch@computer2.darkstar.org>

	* include/ntdll/ldr.h: Added definition for a DLL entrypoint.
	* lib/kernel32/process/create.c (KlCreateFirstThread): Put
	the argument to the NtProcessStartup function on the stack.
	* lib/kernel32/process/create.c (KlInitPeb): Read the
	base address of the new image from the PEB.
	* lib/kernel32/process/create.c (CreateProcessW): Start the
	first thread at the entrypoint of the new image.
	* lib/ntdll/ldr/startup.c (LdrInitializeThunk): If the
	function is called after the initial startup then just call the
	entrypoints for the loaded DLLs with DLL_THREAD_ATTACH. Don't
	call the entrypoint of the image.
	* lib/ntdll/rtl/process.c (RtlpCreateFirstThread): Put the
	argument to the NtProcessStartup function on the stack.
	* lib/ntdll/rtl/process.c (KlInitPeb): Read the base address of
	the new image from the PEB.
	* lib/ntdll/rtl/process.c (RtlCreateUserProcess): Start the
	first thread at the entrypoint of the new image.
	* ntoskrnl/ke/i386/bthread.S (PsBeginThreadWithContextInternal):
	Use the system call path to begin a usermode thread.
	* ntoskrnl/ke/i386/thread.c (Ke386InitThreadWithContext): Convert
	the supplied context into a trap frame.
	* ntoskrnl/ldr/init.c (LdrLoadInitialProcess): Put the PEB argument
	to the NtProcessStartup function on the new stack; start the
	first thread at the entrypoint of the image.
	* ntoskrnl/ps/create.c (NtCreateThread): Create an APC to call
	LdrInitializeThunk in the context of a new thread before its
	entrypoint.

2002-08-08  David Welch  <welch@computer2.darkstar.org>

	* drivers/fs/vfat/cleanup.c (VfatCleanupFile): Uninitialise
	the cache on file cleanup.
	* drivers/fs/vfat/fcb.c (vfatReleaseFcb): Don't uninitialise
	the cache on file close.
	* ntoskrnl/cc/copy.c: Renamed zero page global variable.
	* ntoskrnl/cc/view.c: Added cache delete function.

svn path=/trunk/; revision=3323
2002-08-08 17:54:16 +00:00
Jason Filby
aac9125953 Updated version file to 0.0.20
svn path=/trunk/; revision=3316
2002-08-05 19:57:47 +00:00
Eugene Ingerman
c724d71f77 Fixed a bug in the new Engxxx objects code.
svn path=/trunk/; revision=3314
2002-08-04 18:21:59 +00:00
Eugene Ingerman
7325b379e2 Rewrote gdi (Engxxx) objects.
svn path=/trunk/; revision=3313
2002-08-04 09:55:11 +00:00
Eugene Ingerman
94706d121d Added more tests to gditest.c
svn path=/trunk/; revision=3312
2002-08-04 09:53:19 +00:00
Eugene Ingerman
d9243a0a4b Removed deprecated file.
svn path=/trunk/; revision=3311
2002-08-04 09:52:05 +00:00
Eric Kohl
4201812a7e Added RtlCopyLuidAndAttributesArray() and RtlCopySidAndAttributesArray().
svn path=/trunk/; revision=3308
2002-07-29 15:37:06 +00:00
Eric Kohl
5295bac977 Added cache flush counters.
svn path=/trunk/; revision=3307
2002-07-29 15:29:58 +00:00
Eric Kohl
8e93e09163 Added missing fastcall list functions
svn path=/trunk/; revision=3305
2002-07-27 13:02:37 +00:00
Eric Kohl
554d0a03f4 Implemented RtlTimeToElapsedTimeFields().
svn path=/trunk/; revision=3303
2002-07-25 16:58:58 +00:00
Eric Kohl
873c86599e Implemented RtlTimeToElapsedtimeFields().
svn path=/trunk/; revision=3302
2002-07-25 16:57:49 +00:00
Eric Kohl
9a04ad5955 Added compression functions (not usabel yet).
svn path=/trunk/; revision=3301
2002-07-25 13:18:31 +00:00
Eric Kohl
a79a9cbba6 Implemented IoCheckDesiredAccess() and IoGetInitialStack().
svn path=/trunk/; revision=3300
2002-07-24 17:49:31 +00:00
Jurgen van Gael
3ce45b038f OpenSCManager waits for services.exe to initialize
svn path=/trunk/; revision=3295
2002-07-23 08:16:05 +00:00
Eugene Ingerman
57a74268f7 Fixed bugs in region operations code (should run region tests correctly now)
svn path=/trunk/; revision=3294
2002-07-23 08:03:15 +00:00
Eric Kohl
c1652a2ee6 Read drive number from the command line.
Added some sanity checks.

svn path=/trunk/; revision=3290
2002-07-22 17:53:12 +00:00
Eugene Ingerman
5faa3537c3 Missing file.
svn path=/trunk/; revision=3289
2002-07-22 17:42:52 +00:00
Eugene Ingerman
2bda045a8e Added GetRegionData gdi function. Added region test. Fixed some bugs.
svn path=/trunk/; revision=3285
2002-07-22 07:55:49 +00:00
David Welch
45d7740d94 Renamed kernel.map -> ntoskrnl.map
svn path=/trunk/; revision=3280
2002-07-20 21:49:35 +00:00
Eugene Ingerman
d525647699 Use kernel.map (text format ntoskrnl symbols) instead of ntosknl.sym in pice. Fixed several bugs.
svn path=/trunk/; revision=3279
2002-07-20 20:27:22 +00:00
Jurgen van Gael
6fc62fb9b0 GCC 3.1 compatibility
svn path=/trunk/; revision=3278
2002-07-20 16:54:58 +00:00
Robert Dickenson
f3e89b62de Added new section to support default applications:
/* ReactOS default Application Registry Root Path */
#define RES_STR_ROSAPP_REGISTRY_ROOT	"Software\\ReactWare"

svn path=/trunk/; revision=3276
2002-07-20 16:38:55 +00:00
Eric Kohl
86dc3a88d2 Added check for loaded system start drivers.
Create control pipe before a service is started.

svn path=/trunk/; revision=3271
2002-07-20 13:34:10 +00:00
Eric Kohl
ed77972722 Minor improvements.
svn path=/trunk/; revision=3270
2002-07-20 13:32:26 +00:00
Eric Kohl
951f903bda Added some experimental code
svn path=/trunk/; revision=3269
2002-07-20 13:31:34 +00:00
Eric Kohl
db6e84c404 Implemented FileAllInformation.
svn path=/trunk/; revision=3268
2002-07-20 11:44:37 +00:00