Eric Kohl [Sat, 8 Jan 2005 12:56:07 +0000 (12:56 +0000)]
Use string resources instead of hardcoded strings.
svn path=/trunk/; revision=12888
Hartmut Birr [Sat, 8 Jan 2005 12:47:32 +0000 (12:47 +0000)]
- Make the drive letter to uppercase in RtlDosPathNameToNtPathName_U.
svn path=/trunk/; revision=12886
Art Yerkes [Sat, 8 Jan 2005 11:59:41 +0000 (11:59 +0000)]
Added spanish layout to the registry.
svn path=/trunk/; revision=12885
Art Yerkes [Sat, 8 Jan 2005 11:57:34 +0000 (11:57 +0000)]
Solved an stupid error with kbdes.c
-- HUMA2000
svn path=/trunk/; revision=12884
Hartmut Birr [Sat, 8 Jan 2005 09:34:37 +0000 (09:34 +0000)]
- Fixed the initialization of critical section objects.
svn path=/trunk/; revision=12883
Art Yerkes [Fri, 7 Jan 2005 19:24:54 +0000 (19:24 +0000)]
Added makefile.
svn path=/trunk/; revision=12875
Art Yerkes [Fri, 7 Jan 2005 19:16:19 +0000 (19:16 +0000)]
Reverted some local changes that aren't meant to be checked in yet.
svn path=/trunk/; revision=12874
Art Yerkes [Fri, 7 Jan 2005 18:57:43 +0000 (18:57 +0000)]
Spanish Keyboard Layout
Contributed by HUMA2000
svn path=/trunk/; revision=12873
Alex Ionescu [Fri, 7 Jan 2005 16:10:50 +0000 (16:10 +0000)]
Move ke/zw.c to ex/zw.c
svn path=/trunk/; revision=12872
Gregor Anich [Fri, 7 Jan 2005 16:10:48 +0000 (16:10 +0000)]
modified include/ntos/zwtypes.h Add SYSTEM_BATTERY_STATE from w32api.
modified ntoskrnl/include/internal/mm.h Add MmAllocPagesSpecifyRange (internal function)
modified ntoskrnl/mm/freelist.c Add MmAllocPagesSpecifyRange function (used by MmAllocatePagesForMdl)
modified ntoskrnl/mm/mdl.c Implemenet MmAllocatePagesForMdl, MmFreePagesFromMdl. Turn MmMapLockedPages into MmMapLockedPagesSpecifyCache (and make MmMapLockedPages a wrapper to it).
modified ntoskrnl/po/power.c Implement SystemBatteryState in NtPowerInformation (Thanks to Alex for testing the returned values on his windows desktop PC)
Windows 2000 NVIDIA driver should work now.
svn path=/trunk/; revision=12871
Gunnar Dalsnes [Fri, 7 Jan 2005 15:07:52 +0000 (15:07 +0000)]
Fixed RtlGetFullPathName_U bug (didn't remove duplicate slashes) and general ugliness by rippin fresh version from wine. Makes w2k cmd.exe work (imo) 100%.
svn path=/trunk/; revision=12869
Thomas Bluemel [Fri, 7 Jan 2005 13:34:47 +0000 (13:34 +0000)]
GetProcessAffinityMask() should return correct system affinity mask
svn path=/trunk/; revision=12867
Gé van Geldorp [Fri, 7 Jan 2005 13:06:11 +0000 (13:06 +0000)]
Protect against unused variable warning
svn path=/trunk/; revision=12866
Gé van Geldorp [Fri, 7 Jan 2005 13:04:36 +0000 (13:04 +0000)]
Silence debug messages
svn path=/trunk/; revision=12865
Eric Kohl [Fri, 7 Jan 2005 12:58:46 +0000 (12:58 +0000)]
RtlCutoverTimeToSystemTime(): The 4th argument determines whether the cutover time of the current year or the next cutover time is calculated.
svn path=/trunk/; revision=12864
Alex Ionescu [Fri, 7 Jan 2005 06:57:30 +0000 (06:57 +0000)]
Remove /nt directory, part two.
svn path=/trunk/; revision=12862
Alex Ionescu [Fri, 7 Jan 2005 06:54:27 +0000 (06:54 +0000)]
Remove /nt directory
svn path=/trunk/; revision=12861
Gregor Anich [Fri, 7 Jan 2005 01:03:34 +0000 (01:03 +0000)]
added agp.c First try of implementing the AGP functions (Untested)
added ddc.c First try of implementing DDC functions (Untested)
modified dispatch.c Handle IRP_MJ_PNP:IRP_MN_START_DEVICE. Let AddDevice create the device object and call HwFindAdapter from IRP_MN_START_DEVICE.
modified int10.c Make VideoPortInt10 return ERROR_INVALID_PARAMETER when called while CSRSS is not initialized.
modified Makefile Add agp.o and ddc.o
modified resource.c Don't remember usermode mappings - they are valid only in the context of the process which they were created in. Add IntVideoPortMapPhysicalMemory() to map part of \Device\PhysicalMemory into UserMode. Make VideoPortGetAccessRanges use DeviceExtension->AllocatedResources (from the IRP_MJ_PNP:IRP_MN_START_DEVICE) if present.
modified services.c Implement VideoPortGetAgpServices. VideoPortQueryServices support for VideoPortServicesAGP.
modified videoprt.c Split IntVideoPortFindAdapter into IntVideoPortCreateAdapterDeviceObject and IntVideoPortFindAdapter. Basic implementation of VideoPortEnumerateChildren. Implement VideoPortAcquireDeviceLock/VideoPortReleaseDeviceLock.
modified videoprt.def Export VideoPortAcquireDeviceLock/VideoPortReleaseDeviceLock.
modified videoprt.h Various stuff.
svn path=/trunk/; revision=12860
Gregor Anich [Fri, 7 Jan 2005 00:02:56 +0000 (00:02 +0000)]
Add half-verbose output to target "clean".
svn path=/trunk/; revision=12859
Gregor Anich [Thu, 6 Jan 2005 23:18:17 +0000 (23:18 +0000)]
Forgot to commit this file - sorry!
svn path=/trunk/; revision=12858
Gregor Anich [Thu, 6 Jan 2005 23:12:59 +0000 (23:12 +0000)]
eng/driverobj.c: DRIVEROBJ implementation.
eng/semaphor.c: Implement safe semaphore functions.
eng/window.c: Basic WNDOBJ implementation.
include/inteng.h: IntEngXxx functions for DRIVEROBJs.
main/dllmain.c: Cleanup DRIVEROBJs.
makefile: Add eng/driverobj.o and eng/window.o.
stubs/stubs.c, win32k.def: Add EngAllocPrivateUserMem and EngFreePrivateUserMem stubs.
svn path=/trunk/; revision=12857
Klemens Friedl [Thu, 6 Jan 2005 19:22:01 +0000 (19:22 +0000)]
Update ReactOS Icons:
Replace the radioactive icons with the newer ReactOS icon.
Files:
trunk/reactos/bootdata/icon.ico
trunk/reactos/lib/user32/resources/oic_reactos.ico
svn path=/trunk/; revision=12854
Gé van Geldorp [Thu, 6 Jan 2005 15:57:38 +0000 (15:57 +0000)]
Don't return characters is key is up
svn path=/trunk/; revision=12853
Martin Fuchs [Thu, 6 Jan 2005 13:58:04 +0000 (13:58 +0000)]
migrate substitution keywords to SVN
svn path=/trunk/; revision=12852
Gé van Geldorp [Thu, 6 Jan 2005 10:16:18 +0000 (10:16 +0000)]
Copy correct number of bytes
svn path=/trunk/; revision=12850
Mark Tempel [Thu, 6 Jan 2005 05:10:13 +0000 (05:10 +0000)]
Update to remove some lines of code that broke the build.
svn path=/trunk/; revision=12849
Eric Kohl [Thu, 6 Jan 2005 01:28:10 +0000 (01:28 +0000)]
- Remove __USE_W32API support.
- Add definition of _ttoi64.
svn path=/trunk/; revision=12842
Art Yerkes [Thu, 6 Jan 2005 01:20:13 +0000 (01:20 +0000)]
Corrected off-by-one error retrieving adapter index.
svn path=/trunk/; revision=12841
KJK::Hyperion [Wed, 5 Jan 2005 21:00:51 +0000 (21:00 +0000)]
honor __USE_W32API
svn path=/trunk/; revision=12838
Hartmut Birr [Wed, 5 Jan 2005 19:28:55 +0000 (19:28 +0000)]
- Used a system thread to shutdown various kernel components.
- Halt also the other processors on a smp machine.
svn path=/trunk/; revision=12835
Hartmut Birr [Wed, 5 Jan 2005 19:27:58 +0000 (19:27 +0000)]
- Replaced MP with CONFIG_SMP.
- Used interlocked function for accessing the page directories/tables.
svn path=/trunk/; revision=12834
Hartmut Birr [Wed, 5 Jan 2005 19:26:51 +0000 (19:26 +0000)]
- Replaced MP with CONFIG_SMP.
- Implemented an idle processor map.
- Fixed the initialisation of the first kernel stack for the application processors.
svn path=/trunk/; revision=12833
Hartmut Birr [Wed, 5 Jan 2005 19:25:49 +0000 (19:25 +0000)]
- Replaced MP with CONFIG_SMP.
svn path=/trunk/; revision=12832
KJK::Hyperion [Wed, 5 Jan 2005 19:09:38 +0000 (19:09 +0000)]
- makefile: use the native headers, don't bother with our hopelessly broken ones
- tickcount.c: also accept arbitrary tick counts as arguments or from standard input (initially conceived to convert the result of subtracting two Date objects in Javascript - which conveniently happens to be a count of milliseconds - into a human-readable format. Useful to write a batch file that calculates the exact difference between two dates). Also use typedef aliases for __int64 that won't conflict with standard C typedefs
(I had a craving for C code, too much Java for school was melting my brain. Thanks god for good ol' tickcount)
svn path=/trunk/; revision=12831
Hartmut Birr [Wed, 5 Jan 2005 19:06:05 +0000 (19:06 +0000)]
- Initialize the symbols for boot load driver before the driver entry routine is called.
- Store the symbols for boot load driver within the non paged pool.
svn path=/trunk/; revision=12830
Hartmut Birr [Wed, 5 Jan 2005 19:04:25 +0000 (19:04 +0000)]
- Prevent from calling PsTerminateCurrentThread from within an apc if PsTerminateThread was already called.
svn path=/trunk/; revision=12829
Hartmut Birr [Wed, 5 Jan 2005 19:03:21 +0000 (19:03 +0000)]
- Removed an unused variable.
svn path=/trunk/; revision=12828
Hartmut Birr [Wed, 5 Jan 2005 19:02:23 +0000 (19:02 +0000)]
- Set the number of processors before initialize the critical sections.
svn path=/trunk/; revision=12827
Hartmut Birr [Wed, 5 Jan 2005 19:01:27 +0000 (19:01 +0000)]
- Silence a debug message.
svn path=/trunk/; revision=12825
Alex Ionescu [Wed, 5 Jan 2005 15:16:10 +0000 (15:16 +0000)]
Remove ROS-specific File Object Flags
svn path=/trunk/; revision=12820
Gé van Geldorp [Wed, 5 Jan 2005 08:16:00 +0000 (08:16 +0000)]
Neil Blackburn <neilb@iowatelecom.net>:
- Fixed a few spelling mistakes
svn path=/trunk/; revision=12819
Steven Edwards [Wed, 5 Jan 2005 04:16:23 +0000 (04:16 +0000)]
Make NtUserSetClipboardViewer return something that applications can deal with. This makes the vncviewer qusi-work.
svn path=/trunk/; revision=12817
Gunnar Dalsnes [Wed, 5 Jan 2005 02:50:50 +0000 (02:50 +0000)]
i'm pretty sure a non-inheritable handle _can_ be duplicated! This fixes compiling ros-on-ros w/w2k msvcrt.dll for me.
svn path=/trunk/; revision=12814
Nedko Arnaudov [Wed, 5 Jan 2005 02:21:05 +0000 (02:21 +0000)]
Remove definitions now present in /reactos/include/ntos/security.h
svn path=/trunk/; revision=12813
Nedko Arnaudov [Wed, 5 Jan 2005 02:05:59 +0000 (02:05 +0000)]
Remove definitions now present in /reactos/include/ntos/security.h
svn path=/trunk/; revision=12812
Alex Ionescu [Wed, 5 Jan 2005 01:42:23 +0000 (01:42 +0000)]
Remove ROS-specific File Object Flags
svn path=/trunk/; revision=12811
Alex Ionescu [Wed, 5 Jan 2005 01:09:30 +0000 (01:09 +0000)]
Significantly improved performance of Critical Section code by using a static buffer. Increased debug info dramatically and, if enabled, leaks can be found with ease. Future revision will include Spincount support.
svn path=/trunk/; revision=12810
Steven Edwards [Wed, 5 Jan 2005 00:08:45 +0000 (00:08 +0000)]
add ftp to the bootcd as well
svn path=/trunk/; revision=12809
Steven Edwards [Wed, 5 Jan 2005 00:03:42 +0000 (00:03 +0000)]
add ftp to the build
svn path=/trunk/; revision=12808
Nedko Arnaudov [Tue, 4 Jan 2005 23:36:14 +0000 (23:36 +0000)]
Use build helpers from /reactos/tools/
svn path=/trunk/; revision=12807
Alex Ionescu [Tue, 4 Jan 2005 22:44:50 +0000 (22:44 +0000)]
Use proper PISID pointer to SID structure, fix wrong LUID definition, and remove duplicate code in Security Manager
svn path=/trunk/; revision=12806
Steven Edwards [Tue, 4 Jan 2005 22:11:50 +0000 (22:11 +0000)]
Why is gcc stupid....
svn path=/trunk/; revision=12804
Nedko Arnaudov [Tue, 4 Jan 2005 21:40:25 +0000 (21:40 +0000)]
Fix personal info.
svn path=/trunk/; revision=12803
Nedko Arnaudov [Tue, 4 Jan 2005 21:36:26 +0000 (21:36 +0000)]
Fix personal info.
Replace tabs with spaces.
svn path=/trunk/; revision=12802
Filip Navara [Tue, 4 Jan 2005 21:25:20 +0000 (21:25 +0000)]
Don't free the memory for LParam in NtUserPeekMessage if called with PM_NOREMOVE flag.
svn path=/trunk/; revision=12800
Filip Navara [Tue, 4 Jan 2005 21:19:51 +0000 (21:19 +0000)]
Remove a broken header that's not needed anymore.
svn path=/trunk/; revision=12799
Nedko Arnaudov [Tue, 4 Jan 2005 20:50:06 +0000 (20:50 +0000)]
Use .exe postfix when building on non-windows hosts too.
We are always building Win32 executable.
svn path=/trunk/; revision=12798
Eric Kohl [Tue, 4 Jan 2005 20:10:11 +0000 (20:10 +0000)]
Implement RtlCutoverTimeToSystemTime().
svn path=/trunk/; revision=12796
Hartmut Birr [Tue, 4 Jan 2005 16:23:29 +0000 (16:23 +0000)]
- Removed the 'shadow' NtGlobalFlag from ntdll.dll.
- Initialized NumberOfProcessors from the PEB structure.
svn path=/trunk/; revision=12790
Eric Kohl [Tue, 4 Jan 2005 09:35:28 +0000 (09:35 +0000)]
Implement BuildExplicitAccessWithNameA/W() and BuildImpersonateExplicitAccessWithNameA/W().
svn path=/trunk/; revision=12785
Royce Mitchell III [Tue, 4 Jan 2005 06:24:17 +0000 (06:24 +0000)]
buffer overflow (& invalid registry path for device) bugfix: DataPtr != KeyInformation->Data on 2nd+ passes
svn path=/trunk/; revision=12781
Royce Mitchell III [Tue, 4 Jan 2005 05:09:53 +0000 (05:09 +0000)]
dump first 128 bytes of violated memory blocks
svn path=/trunk/; revision=12780
Gunnar Dalsnes [Tue, 4 Jan 2005 04:45:00 +0000 (04:45 +0000)]
-move structs OBJECT_TYPE/OBJECT_HEADER into private headers
-correct OBJECT_TYPE_INFORMATION struct
-rename meaningless members OBJECT_TYPE->MaxObjects/MaxHandles to PeakObjects/PeakHandles and init to zero. Both are still unused.
svn path=/trunk/; revision=12779
Steven Edwards [Tue, 4 Jan 2005 04:03:57 +0000 (04:03 +0000)]
added a port of netkit ftp.exe
svn path=/trunk/; revision=12776
Alex Ionescu [Tue, 4 Jan 2005 01:51:16 +0000 (01:51 +0000)]
Add more Critical Section Debug Data and fix two bugs.
svn path=/trunk/; revision=12774
Filip Navara [Tue, 4 Jan 2005 01:49:08 +0000 (01:49 +0000)]
Robert Shearman <rob@codeweavers.com>
- Fix colours used for SS_*RECT, SS_*FRAME.
- Implement SS_CENTERIMAGE for static control.
svn path=/trunk/; revision=12773
Alex Ionescu [Tue, 4 Jan 2005 00:10:50 +0000 (00:10 +0000)]
Fix silly bugs in Critical section code. Thanks to Gunnar for finding one of them, thanks to mifritscher for finding the actual regression, and thanks to Filip for being understanding :P
svn path=/trunk/; revision=12772
Alex Ionescu [Mon, 3 Jan 2005 23:35:02 +0000 (23:35 +0000)]
Fix RtlCriticalSection dummy calls in ntoskrnl's libsupp, for consistency with previous patch and correctness of types.
svn path=/trunk/; revision=12771
Gregor Anich [Mon, 3 Jan 2005 23:12:56 +0000 (23:12 +0000)]
added ntagp.h
svn path=/trunk/; revision=12768
Alex Ionescu [Mon, 3 Jan 2005 23:02:15 +0000 (23:02 +0000)]
Rewrite ROS Critical Section implementation, which was slow and broken (because it always created an event, which is the slow path). Note that coincidentally, Gunnar also fixed this code and committed a patch this morning, taken from WINE. This code is also based on WINE, but adds more features which WINE does not support/need yet (regarding Debug CS). Hence, this code was a re-write of the original ROS code, not of Gunnar's, and we've both discussed the accidental conflict.
svn path=/trunk/; revision=12766
Gé van Geldorp [Mon, 3 Jan 2005 22:53:21 +0000 (22:53 +0000)]
Since we can load .sym files when defined(DBG) now, enable
/PROFILE option for defined(DBG) too.
svn path=/trunk/; revision=12765
Gé van Geldorp [Mon, 3 Jan 2005 22:00:39 +0000 (22:00 +0000)]
Reverse last change, as it causes problems for ReadConsole (line input)
svn path=/trunk/; revision=12764
Filip Navara [Mon, 3 Jan 2005 21:19:25 +0000 (21:19 +0000)]
Don't crash if ShellFolder doesn't implement the IID_ISFHelper interface.
svn path=/trunk/; revision=12763
Art Yerkes [Mon, 3 Jan 2005 19:51:26 +0000 (19:51 +0000)]
Removed spaces, put tabs.
svn path=/trunk/; revision=12761
Art Yerkes [Mon, 3 Jan 2005 19:45:35 +0000 (19:45 +0000)]
Added route.exe to bootcd.
Patch by WaxDragon.
svn path=/trunk/; revision=12760
Gé van Geldorp [Mon, 3 Jan 2005 18:44:36 +0000 (18:44 +0000)]
Make command-prompt-link creation code Unicode resistent
svn path=/trunk/; revision=12758
Gunnar Dalsnes [Mon, 3 Jan 2005 14:58:44 +0000 (14:58 +0000)]
critical.c:
-don't allocate semaphore until its. actually needed (just like windows & wine)
Ripped from Wine
-correct InterlockedCompareExchange proto
-add Interlocked(Compare)ExchangePointer def.
-correct CRITICAL_SECTION_DEBUG struct
svn path=/trunk/; revision=12757
Filip Navara [Mon, 3 Jan 2005 14:47:11 +0000 (14:47 +0000)]
Fix import of DBGHELP:
- StackWalk is now compilable.
- SymInitialize shouldn't try to find Wine loader.
svn path=/trunk/; revision=12756
Filip Navara [Mon, 3 Jan 2005 14:46:08 +0000 (14:46 +0000)]
Add wine_dbgstr_longlong.
svn path=/trunk/; revision=12755
Eric Kohl [Mon, 3 Jan 2005 13:50:04 +0000 (13:50 +0000)]
Clean up the pipe type and mode mess.
svn path=/trunk/; revision=12754
Hartmut Birr [Mon, 3 Jan 2005 11:30:28 +0000 (11:30 +0000)]
- Fixed the searching for uninitialized (like .bss) segments.
svn path=/trunk/; revision=12753
Martin Fuchs [Mon, 3 Jan 2005 11:25:40 +0000 (11:25 +0000)]
update Explorer Jamfile
svn path=/trunk/; revision=12752
Gé van Geldorp [Mon, 3 Jan 2005 10:59:19 +0000 (10:59 +0000)]
Silence stupid compiler which doesn't know what it is talking about
svn path=/trunk/; revision=12751
Gé van Geldorp [Mon, 3 Jan 2005 10:06:08 +0000 (10:06 +0000)]
Find other entries besides the first too...
svn path=/trunk/; revision=12750
Gé van Geldorp [Mon, 3 Jan 2005 09:46:31 +0000 (09:46 +0000)]
Fix ref counting bug
svn path=/trunk/; revision=12749
Alex Ionescu [Mon, 3 Jan 2005 05:17:16 +0000 (05:17 +0000)]
Fix incorrect LPC Object export...we export pointers not the object itself! Also remove more TIME stuff to be properly compatible with real structures.
svn path=/trunk/; revision=12748
Alex Ionescu [Mon, 3 Jan 2005 04:06:24 +0000 (04:06 +0000)]
Fix more wrong structure defintions... and use proper values for Thread/Process mapping, not some weird undocumented/reversed values with no explenation.
svn path=/trunk/; revision=12747
Steven Edwards [Mon, 3 Jan 2005 03:54:00 +0000 (03:54 +0000)]
added support for building Wine tests along with CI tests
svn path=/trunk/; revision=12746
Steven Edwards [Mon, 3 Jan 2005 02:37:10 +0000 (02:37 +0000)]
move wine tests from tests to winetests
svn path=/trunk/; revision=12745
Alex Ionescu [Mon, 3 Jan 2005 01:13:10 +0000 (01:13 +0000)]
Fix more wrong structure defintions that don't match official ones, plus fix little bug I introduced.
svn path=/trunk/; revision=12744
Gé van Geldorp [Mon, 3 Jan 2005 00:46:42 +0000 (00:46 +0000)]
Don't destroy cursors/icons prematurely.
svn path=/trunk/; revision=12742
Art Yerkes [Sun, 2 Jan 2005 23:46:28 +0000 (23:46 +0000)]
Change temporary file creation to tmpfile(). FullName was not initialized
correctly before and it's only by chance that this worked at all.
svn path=/trunk/; revision=12741
Alex Ionescu [Sun, 2 Jan 2005 23:12:40 +0000 (23:12 +0000)]
Fix my previous patch and fix ACCESS_TOKEN being declared as a structure. This is incompatible with DDK/W32API because ACCESS_TOKEN is a PVOID. The real structure is TOKEN. Also, structure has been updated.
svn path=/trunk/; revision=12740
Alex Ionescu [Sun, 2 Jan 2005 20:51:02 +0000 (20:51 +0000)]
Fix KeRaiseUserException and rename Object Information Structure
svn path=/trunk/; revision=12738
Filip Navara [Sun, 2 Jan 2005 20:49:00 +0000 (20:49 +0000)]
Fix HEAP_free call.
svn path=/trunk/; revision=12737
KJK::Hyperion [Sun, 2 Jan 2005 20:47:34 +0000 (20:47 +0000)]
Patch to make the End Process Button working, by Michael Fritscher
svn path=/trunk/; revision=12736
KJK::Hyperion [Sun, 2 Jan 2005 20:09:39 +0000 (20:09 +0000)]
Relaxed the validity checks for PE executables yet more (no limitation for the file layout anymore, as the memory manager doesn't really care and executables seen in the wild tend to be pretty eccentric). Documented with an ASSERT the fact that the file offset cannot overflow (MAXULONG + MAXULONG < MAXLONGLONG)
svn path=/trunk/; revision=12734
Filip Navara [Sun, 2 Jan 2005 19:27:53 +0000 (19:27 +0000)]
Disable debugging message.
svn path=/trunk/; revision=12732
Filip Navara [Sun, 2 Jan 2005 19:14:52 +0000 (19:14 +0000)]
Rename MmOpenMemoryAreaBy[Address/Region] to MmLocateMemoryAreaBy[Address/Region].
svn path=/trunk/; revision=12731
Filip Navara [Sun, 2 Jan 2005 18:04:59 +0000 (18:04 +0000)]
Implement ExtCreateRegion.
svn path=/trunk/; revision=12730