Commit Graph

42088 Commits

Author SHA1 Message Date
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
Timo Kreuzer
951d7d64e8 - implement stub EnableA20
- define MachInit to PcMachInit
- use i386 versions of machine dependend code for amd64 -> 13 files / 160 kb less

svn path=/branches/ros-amd64-bringup/; revision=35704
2008-08-27 15:41:38 +00:00
Timo Kreuzer
978a868544 - Convert PortAddress from ULONG to PUCHAR
- Fix some int <-> pointer casts
- remove useless #if __i386__
- use %p for pointer sized prints

svn path=/branches/ros-amd64-bringup/; revision=35703
2008-08-27 15:37:36 +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
fb545753be enhance macros
svn path=/branches/ros-amd64-bringup/; revision=35696
2008-08-27 14:16:04 +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
Timo Kreuzer
ae14158094 Add Cch functions to strsafe lib.
svn path=/branches/ros-amd64-bringup/; revision=35694
2008-08-27 03:03:39 +00:00
Timo Kreuzer
44f8969876 More fixes in strsafe.h
svn path=/branches/ros-amd64-bringup/; revision=35693
2008-08-27 03:01:25 +00:00
Timo Kreuzer
68c27c7f46 Fix some strsafe.h definitions.
svn path=/branches/ros-amd64-bringup/; revision=35692
2008-08-27 02:08:24 +00:00
Timo Kreuzer
9c0ddbba15 Optimize and shorten StringCxxLength
svn path=/branches/ros-amd64-bringup/; revision=35691
2008-08-27 01:47:34 +00:00
Timo Kreuzer
a687a42919 - Rework defines in strsafe a bit.
- Implement StringCxxLength()

svn path=/branches/ros-amd64-bringup/; revision=35690
2008-08-27 00:40:10 +00:00
Timo Kreuzer
736cebd3a6 With a few more defines, strsafe.h can now implement all functions Cb/Cch, Ansi/Unicode from a single piece of code. Implement all Cb functions in the lib (depending on the unimplemented inline versions)
svn path=/branches/ros-amd64-bringup/; revision=35689
2008-08-26 23:06:18 +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
Timo Kreuzer
110717948a Make kdcom x86 code 64bit compatible and use it for amd64, too. Add a DriverEntry to make ld happy.
svn path=/branches/ros-amd64-bringup/; revision=35685
2008-08-26 21:29:31 +00:00
Timo Kreuzer
2730ab38f8 If you change an rbuild file to use an arch-specific .def file, please also provide those .def files.
svn path=/branches/ros-amd64-bringup/; revision=35684
2008-08-26 20:58:04 +00:00
Timo Kreuzer
52846afa0e fix d3d9.def file and enable d3d8 and d3d9 to fix x86 build
svn path=/branches/ros-amd64-bringup/; revision=35683
2008-08-26 20:56:07 +00:00
Timo Kreuzer
405ba26351 Start a new strsafe lib. Nothing implemented so far, more something like a framework. The actual function implementation will be in the header, because the ms header allows to inline the functions. It uses recursive include to avoid code duplication. The lib uses these functions to generate the code.
svn path=/branches/ros-amd64-bringup/; revision=35682
2008-08-26 20:51:14 +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
Timo Kreuzer
500dc4c37a Add D3DFMT_D32_LOCKABLE and D3DFMT_S8_LOCKABLE
svn path=/branches/ros-amd64-bringup/; revision=35668
2008-08-26 12:01:58 +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
Timo Kreuzer
4d6c63b343 #undef Interlocked before implementing the functions on all architectures.
svn path=/branches/ros-amd64-bringup/; revision=35666
2008-08-26 11:22:30 +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
Samuel Serapion
40b2f18a1c Fix tcpsvcs build.
svn path=/branches/ros-amd64-bringup/; revision=35657
2008-08-26 04:12:02 +00:00
Cameron Gutman
92073dfb72 - Fix many memory leaks
- Complete with the correct status

svn path=/branches/aicom-network-fixes/; revision=35656
2008-08-26 02:57:12 +00:00
Samuel Serapion
69bb41bdc4 Remove unneeded msvcrt dependancies(all win32 modules depend on msvcrt already)
dbghelp: Don't use old style parameter lists.
kernel32: Remove stdcall decorations from amd64 asm.
user32: Convert to spec file.
console: Convert to spec file.
Misc WIN64 fixes.

svn path=/branches/ros-amd64-bringup/; revision=35655
2008-08-26 02:19:29 +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
Cameron Gutman
d4296ce6a5 - Fix a memory leak
svn path=/branches/aicom-network-fixes/; revision=35653
2008-08-26 00:47:22 +00:00
Samuel Serapion
9abe4eb706 More header fixes.
svn path=/branches/ros-amd64-bringup/; revision=35652
2008-08-26 00:26:42 +00:00
Samuel Serapion
1a8d9f2429 Don't error on non-32bit builds. Still needs port.
svn path=/branches/ros-amd64-bringup/; revision=35651
2008-08-25 23:57:51 +00:00
Samuel Serapion
ee74c1b45e Don't add stdcall decorations to amd64 syscalls.
svn path=/branches/ros-amd64-bringup/; revision=35650
2008-08-25 23:55:29 +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
Samuel Serapion
3fa7c1f193 Fix some wrong declarations for 64bits.
svn path=/branches/ros-amd64-bringup/; revision=35645
2008-08-25 21:52:05 +00:00
Timo Kreuzer
2cd57c75dc __readcr3() returns an unsigned __int64, fix x86 MmGetPageDirectory accordingly.
svn path=/branches/ros-amd64-bringup/; revision=35644
2008-08-25 21:24:18 +00:00