Commit graph

32387 commits

Author SHA1 Message Date
Pierre Schweitzer 687df0212a Synced riched20_winetest, riched32_winetest with Wine HEAD
svn path=/trunk/; revision=35729
2008-08-28 10:54:35 +00:00
Pierre Schweitzer f381a715d2 Synced riched20 with Wine HEAD
svn path=/trunk/; revision=35728
2008-08-28 10:43:26 +00:00
Aleksey Bragin dea8ec1229 - Implement CmpConstructName (builds a full name of the given key).
- Fix freeing of the buffer returned by CmpConstructName in CmpQueryKeyName routine.
- Fixes bug 3616 and related query-routines.
See issue #3616 for more details.

svn path=/trunk/; revision=35727
2008-08-28 10:16:48 +00:00
Aleksey Bragin a66715b036 - Put netshell.dll on the bootcd.
svn path=/trunk/; revision=35725
2008-08-28 09:12:09 +00:00
Dmitry Chapyshev 65fd9f9e94 - Add Russian translation
svn path=/trunk/; revision=35721
2008-08-28 05:32:31 +00:00
Johannes Anderwald f5852bccf9 - Add Items to Connection ShellFolder Item Context Menu
- Are not yet handled

svn path=/trunk/; revision=35719
2008-08-28 03:52:51 +00:00
Johannes Anderwald 5ea699faeb - Use CoTaskMemAlloc / CoTaskMemFree for memory de-allocation
- Implement INetConnectionManager, IEnumNetConnection, INetConnection interface for CLSID_ConnectionManager
- Refactor Network Connections Shell Folder enumeration code to use the now available COM functionality

svn path=/trunk/; revision=35718
2008-08-28 02:57:10 +00:00
Johannes Anderwald f346cab83f - Add netcon header
svn path=/trunk/; revision=35717
2008-08-28 00:07:30 +00:00
Johannes Anderwald 4a322aacc7 - Add IIDs and CLSID for netshell
svn path=/trunk/; revision=35716
2008-08-28 00:03:28 +00:00
Timo Kreuzer 7191a6d896 Merge MMerge 34969 from ros-amd64-bringup branch:
- Fix parameter types of NtQuery/SetSystemInformation, ExInitialize(N)PagedLookasideList, KeBugCheckWithTf, IoGetstackLimits
- Use ALIGN_UP_POINTER for a pointer
- Fix pointer to ULONG cast

svn path=/trunk/; revision=35715
2008-08-27 22:40:17 +00:00
Timo Kreuzer 50eb47c31e MMerge 34827 from ros-amd64-bringup branch:
- fix parameter types of NtAllocateVirtualMemory and NtFreeVirtualMemory

svn path=/trunk/; revision=35713
2008-08-27 20:56:16 +00:00
Timo Kreuzer 89d2d4d5bc Merge 34714, 34716, 34718, 34720 from ros-amd64-bringup branch:
recyclebin: DWORD -> SIZE_T and SIZE_T -> DWORD
rtl:
- cast AtomName to ULONG_PTR instead of ULONG
- RtlQueryProcessdebugInformation(): cast teb->ClientId.UniqueProcess to ULONG_PTR for assignment to Pid.
- vs(w)nprintf: cast argument to ULONG_PTR instead of unsigned long for a %p
crt:
- int -> intptr_t
- unsigned long -> uintptr_t
- #undef _MINGW_IMPORT in ctype.c, to avoid warnings
scrnsafe: rename _toul to _toulptr and make it return an ULONG_PTR

svn path=/trunk/; revision=35712
2008-08-27 20:27:32 +00:00
Colin Finck 55c1fbf585 Add the "wine" include directory for the user32 Wine test and remove ROS-specific additions to some files.
Fixes the user32_winetest and thus rostests build under Unix.

svn path=/trunk/; revision=35711
2008-08-27 20:10:45 +00:00
Stefan Ginsberg 9112574303 - Make cmlibhost compile warning free
- Slight reordering of cmlib.h (by Colin Finck)

svn path=/trunk/; revision=35709
2008-08-27 17:54:27 +00:00
Johannes Anderwald 9e68eda05b - Fix build
svn path=/trunk/; revision=35708
2008-08-27 17:27:25 +00:00
Johannes Anderwald f971e1392e - Start Implementing Network Connections ShellFolder
svn path=/trunk/; revision=35707
2008-08-27 17:18:25 +00:00
Aleksey Bragin ac962ebea4 - Implement CmpQueryKeyName as a wrapper around CmpConstructName helper function (which is stubbed now).
svn path=/trunk/; revision=35705
2008-08-27 15:55:32 +00:00
Johannes Anderwald 0a12af7eab - Add constants
svn path=/trunk/; revision=35700
2008-08-27 15:19:40 +00:00
Jeffrey Morlan 0346f58af5 Fix StretchBlt ugliness in qemu. Patch by grschneider.
svn path=/trunk/; revision=35699
2008-08-27 14:47:49 +00:00
Timo Kreuzer 57164f6854 Merge 34717 from ros-amd64-bringup branch:
- Fix prototypes of _findfirst, _findnext, _findclose, _findfirsti64, _findnexti64 _wfindfirst, _wfindnext, _wfindfirst64, _wfindnext64, strndup, 
- Fix a number of pointer to int casts

svn path=/trunk/; revision=35695
2008-08-27 03:59:24 +00:00
Johannes Anderwald 9a1009363b - Revert 35686
- NetworkConnections is implemented in netshell.dll

svn path=/trunk/; revision=35688
2008-08-26 22:35:44 +00:00
Johannes Anderwald d7a196cf95 - Start implementing Network Connections Shell Folder
- Rename cpanelfolder to shfldr_cpanel
- Implement _ILIsNetConnect, ILCreateNetConnect

svn path=/trunk/; revision=35686
2008-08-26 21:29:55 +00:00
Jeffrey Morlan 6c2116d0cf - Implement call :label by creating a new batch context; this way calls can be nested and have their own %0-%9 parameters.
- GetBatchVar: Implement %~n. Remove %? (an old FreeDOS-ism; the Windows equivalent is %ERRORLEVEL%)

svn path=/trunk/; revision=35681
2008-08-26 20:36:38 +00:00
Johannes Anderwald 317fe611cb Copied remotely
svn path=/trunk/; revision=35680
2008-08-26 19:48:08 +00:00
Jeffrey Morlan 75122e2228 cmd_type: Fix misuse of ConOutPrintf which caused problems when the file had any '%' characters in it.
svn path=/trunk/; revision=35679
2008-08-26 19:07:23 +00:00
Aleksey Bragin eae188745b - Move fdiv pentium bug function stubs to another file.
- Exclude platform-independent CI math function stubs when compiling x86 target. Should finally fix bug 1255.
See issue #1255 for more details.

svn path=/trunk/; revision=35677
2008-08-26 17:21:02 +00:00
Johannes Anderwald e42ce04145 - Fix executing item which was broken in last revision
svn path=/trunk/; revision=35676
2008-08-26 16:27:40 +00:00
Johannes Anderwald 33a2cd56f6 - Readd undocumented constants as commdlg needs them
svn path=/trunk/; revision=35675
2008-08-26 16:01:13 +00:00
Johannes Anderwald 07d2758056 shell32 update (1/2)
- Use precompiled headers for shell32
- Use __inline for MSVC compability
- Fix api definitions of SHCreateStdEnumFmtEtc, GetFileNameFromBrowse, SHCreateDirectory, SHCreateDirectoryExA, SHCreateDirectoryExW, Dad_AutoScroll, CDefFolderMenu_Create2, SHChangeNotifyRegister
- msvc now compiles nearly all of shell32 (with WDK headers)

svn path=/trunk/; revision=35674
2008-08-26 15:50:23 +00:00
Johannes Anderwald 050ca45f90 shell32 update (1/2)
- The Fonts Shell Folder && Admin Shell Folder GUID is not documented in shlguid.h
- Fix api declaration of SHCreateStdEnumFmtEtc, GetFileNameFromBrowse, SHCreateDirectory, SHCreateDirectoryExA, SHCreateDirectoryExW, Dad_AutoScroll, CDefFolderMenu_Create2, SHChangeNotifyRegister
- Fix EXP_DARWIN_LINK && OPENASINFO structure
- Remove CSIDL_FOLDER_MASK undocumented shellview ids

svn path=/trunk/; revision=35673
2008-08-26 15:50:17 +00:00
Jeffrey Morlan fc46305c63 - RtlSetEnvironmentVariable: To delete a variable, it is necessary to pass a NULL pointer as the value; passing an empty string should create an empty variable. Remove Value->Length > 0 check.
- SetEnvironmentVariable(A|W): When given a NULL value, pass NULL to RtlSetEnvironmentVariable.
- cmd_set: When given an empty value, pass NULL to SetEnvironmentVariable.

svn path=/trunk/; revision=35672
2008-08-26 15:28:29 +00:00
Jeffrey Morlan a9431cc596 Prohibit an empty name in RtlSetEnvironmentVariable
svn path=/trunk/; revision=35671
2008-08-26 14:45:37 +00:00
Art Yerkes 7e88d259cb Commit patches from bugboy, fixing bug 2392.
svn path=/trunk/; revision=35669
2008-08-26 13:28:44 +00:00
Aleksey Bragin 6c68a50dd4 - Add an ability to have VMWare video driver installed without inserting CD. Just copy 4 files (vmx_fb.dll, vmx_mode.dll, vmx_svga.sys and vmx_svga.inf) from VMWare Tools CD to your reactos/modules/windows directory and build a bootcd. You'll just need to choose a resolution and a bit depth in 2nd stage setup.
svn path=/trunk/; revision=35667
2008-08-26 11:30:02 +00:00
Andrew Munger 8221cb697c Allocate buffer from Non-paged pool, like most everything else in KDBG.
svn path=/trunk/; revision=35660
2008-08-26 09:38:12 +00:00
Johannes Anderwald 4cd1c282bd - Add a small hack for executing shortcuts to cpl files
- Remove unneeded CLSID_UnixFolder registration
- Fix Bitbucket, Nethood shell folder registration attributes

svn path=/trunk/; revision=35659
2008-08-26 06:24:33 +00:00
Cameron Gutman 0c9b7b6aa0 - Merge r35656 from aicom-network-fixes
- Fixes more leaks during general network use

svn path=/trunk/; revision=35658
2008-08-26 04:19:07 +00:00
Cameron Gutman b47d70ccd3 - Merge r35653 from aicom-network-fixes
- Fixes a major leak when closing Firefox

svn path=/trunk/; revision=35654
2008-08-26 02:11:40 +00:00
Jeffrey Morlan cbcbf539b8 cmd_set:
- When given a name with no value, show all variables that start with that name.
- Implement /P switch
- Set nErrorLevel on failure
- Make syntax more compatible with Windows (allow any control character to act as space; implement quoting)

svn path=/trunk/; revision=35649
2008-08-25 23:48:18 +00:00
Timo Kreuzer 2820db81b3 Add Samuel Serapión to credits file
svn path=/trunk/; revision=35648
2008-08-25 23:45:27 +00:00
Jeffrey Morlan c49ed3a82c Remove the "LPTSTR cmd" argument to internal commands; there's no need for a command to be told its own name. It was only used in two places:
- a hack in cmd_mkdir that was already obsolete a decade ago
- to distinguish "echo" from "echo.", but that is the wrong way to implement this anyway. There's nothing particularly special about the period, "echo" is just one of those commands that is lenient about where its parameters begin, and when it echos a line, the first character (usually a space, but in the case of "echo." a period) is skipped.

svn path=/trunk/; revision=35647
2008-08-25 23:22:03 +00:00
Timo Kreuzer c9b3cf161b Merge 34739 - 34769, 34796 - 34905, 34916 - 34967, 34970 - 35135, 35167, 35325, 35326, 35443 - 35506, 35510 - 35546, 35587, 35616,
35644 from ros-amd64-bringup branch:

- Update AMD64 intrinsic Interlocked functions
- Add _InterlockedExchange64 to intin_x86.h
-Fix definitions of IsBadHugeReadPtr, IsBadHugeWritePtr, IsBadReadPtr, IsBadStringPtrA, IsBadStringPtrW, IsBadWritePtr and SetProcessWorkingSetSize
- Define CONTEXT and XMM_SAVE_AREA32, taken from WINE
- Include _M_AMD64 for defintitions in ioaccess.h
- Add Interlocked intrinisc definitions for AMD64 platform
- Add KI_USER_SHARED_DATA and KeGetCurrentIrql() prototype to winddh
- Fix prototypes for KfAcquireSpinLock, KfReleaseSpinLock, KeAcquireInStackQueuedSpinLock and KeReleaseInStackQueuedSpinLock on amd64
- Fix rotl declaration, add mysteriously missing rotr.
winnt.h:
- Fix CONTEXT_AMD64 and friends, add various constants.
- Define RUNTIME_FUNCTION, RtlCaptureContext, RtlRestoreContext, RtlAddFunctionTable, RtlInstallFunctionTableCallback, RtlDeleteFunctionTable.
- Fix definitions for EXCEPTION_RECORD and friends to support amd64.
- Define IMAGE_THUNK_DATA64 and related constants.
- Define IMAGE_TLS_DIRECTORY64 and related constants.
- Remove WINEisms
- Remove multiple declarations and minor fixes.
- Fix KESEG0_BASE for amd64
- Fix definition for NdisCopyLookaheadData on amd64
- Only add function prototypes if NO_INTERLOCKED_INTRINSICS is defined
- Move the inlined InterlockedAnd/Or from rtl to winbase.h and rename it to InterlockedAnd/Or_Inline
- Fix TreeView_EnsureVisible macro.
- Add missing 64 bit intrinsic Interlocked functions
- Fix _InterlockedDecrement64
- Fix InterlockedExchangeAddSizeT
- Fix __writecrx instrinsics
- Fix ExQueryPoolBlockSize prototype
- Make KI_USER_SHARED_DATA and IMAGE_ORDINAL_FLAG64 a ULONGLONG
- Fix definition if IMAGE_OPTIONAL_HEADER64
- Add KPCR structure
- Add __readcrx intrinsics
- Ad some definitions to winddk.h
- Add a field for a DbgPrint function pointer to the ROS_LOADER_PARAMETER_BLOCK for early debug prints in ntoskrnl
- Update KPCR and KIPCR
- Add KeGetPcr() and update KeGetCurrentProcessorNumber 
- Fix SECURITY_DESCRIPTOR_RELATIVE and KDPC_DATA
- Implement byteswap intrinsics
- Add macro definitions for KeQuerySystemTime, KeQueryTickCount and KeQueryInterruptTime to ddk
- Add NtCurrentTeb inline function
- Update amd64 prototypes for KeGetCurrentIrql, KfRaiseIrql, KfLowerIrql, KeRaiseIrqlToDpcLevel, KeRaiseIrqlToSynchLevel, KeLowerIrql, KeRaiseIrql
- Implement __readcr8, __writecr8, __lidt and __sidt intrinsics.
- Implement KeGetCurrentIrql as intrinsic.
- Make KeGetCurrentIrql, KeLowerIrql, KfRaiseIrql, KeRaiseIrql, KeRaiseIrqlToDpcLevel and KeRaiseIrqlToSynchLevel intrinsics as in the WDK 2008.
- Fix _interlockedbittest intrinsics
- Fix __readmsr and __writemsr on amd64
- Fix __readgsqword, it was using a long internally. Add volatile keyword to segment addressing intrinsics. Add "memory" to clobber list on all those that do write.
- Merge __readcr and __writecr x86 / x64 definitions, because they are the same. Implement __readdr and __writedr for x64.
- __readcr3() returns an unsigned __int64, fix x86 MmGetPageDirectory accordingly.


svn path=/trunk/; revision=35646
2008-08-25 21:57:13 +00:00
Johannes Anderwald 909de8f972 - Prevent a crash by checking the applet name if it is empty and does exist
- %1 is used for file argument, where %2, %3, %n indicate the index of the passed param, %* is the rest of the command
- Directly pass the full filename to ShellExecuteExW from the default context menu
- Should fix executing cpl in default shellview

svn path=/trunk/; revision=35643
2008-08-25 21:02:21 +00:00
Johannes Anderwald d0e1f5701b - Fix multiple bugs in HCR_GetDefaultVerbW
svn path=/trunk/; revision=35641
2008-08-25 20:16:42 +00:00
Timo Kreuzer fac43bb581 Merge merge 34713 from ros-amd64-bringup branch:
fix NtCurrentTeb()

svn path=/trunk/; revision=35639
2008-08-25 19:01:09 +00:00
Stefan Ginsberg 7876a9fe0d - Remove deprecated CHECKPOINT/CHECKPOINT1 macros which basically translated into DPRINT/DPRINT1("\n")
svn path=/trunk/; revision=35638
2008-08-25 18:52:38 +00:00
Stefan Ginsberg 7afb74e857 - Remove CHECKPOINT macros from green.sys
svn path=/trunk/; revision=35637
2008-08-25 18:48:18 +00:00
Timo Kreuzer a872a16180 Merge 34703, 34704, 34705, 34706, 34707, 34708, 34709 and 34710 from ros-amd64-bringup branch:
- Fix inline versions of integer <-> pointer conversion functions.
- Implement _InterlockedAnd64, _InterlockedOr64, _interlockedbittestandreset64, _interlockedbittestandset64 and gs-segment-adressing functions
- As amd64 shares most of the intrinsics of x86, implement them in intrin_x86.h
- Fix IMAGE_FIRST_SECTION macro
- Implement GetCurrentFiber(), NtCurrentTeb() and YieldProcessor()
- Fix ENUMRESLANGPROC, ENUMRESNAMEPROC and ENUMRESTYPEPROC
- Add Interlocked functions for pointers
- Add InterlockedCompareExchangePointer and InterlockedExchangePointer
- Add intrinsic port and register access functions
fix LIST_ENTRY() macro for 64 bits
add size_t definition to _mingw.h (ported from mingw)
- Update some loader structs ULONG -> ULONG_PTR / SIZE_T

svn path=/trunk/; revision=35636
2008-08-25 18:47:44 +00:00
Stefan Ginsberg a27e2fd423 - Use MiSyncForProcessAttach and MiSyncForContextSwitch instead of MiSyncThreadProcessViews to avoid some unneeded mm hack-syncing
svn path=/trunk/; revision=35635
2008-08-25 18:42:40 +00:00
Stefan Ginsberg f3b92fa090 - Remove LIST_FOR_EACH and LIST_FOR_EACH_SAFE from the kernel
- Fix a bug in KeStartProfile (a missing negation) which caused us to either free buffer when we shouldn't, or leak it

svn path=/trunk/; revision=35633
2008-08-25 18:21:19 +00:00