reactos.git
14 years agomodified Resources/hresult.xml
KJK::Hyperion [Sat, 9 Sep 2006 10:53:28 +0000 (10:53 +0000)]
modified   Resources/hresult.xml
    Added S_OK and S_FALSE

modified   Resources/ntstatus.xml
    Added all possible STATUS_WAIT_XX codes as STATUS_WAIT_0 + XX

modified   TechBot.Console/App.config
    Don't use hard-coded paths, please!

modified   TechBot.Library/ErrorCommand.cs
    New and improved !error command, now performs heuristics to catch all possible or likely uses

modified   TechBot.Library/HresultCommand.cs
    Removed useless field

modified   TechBot.Library/NumberParser.cs
    Made a couple of methods static

modified   TechBot.Library/TechBotService.cs
    Disable !api until it fails gracefully

svn path=/trunk/; revision=23984

14 years agoMake UNIMPLEMENTED available everywhere and remove some #ifdef cruft.
Art Yerkes [Sat, 9 Sep 2006 09:41:09 +0000 (09:41 +0000)]
Make UNIMPLEMENTED available everywhere and remove some #ifdef cruft.

svn path=/trunk/; revision=23983

14 years agoAdded missing definitions
Thomas Bluemel [Sat, 9 Sep 2006 09:26:26 +0000 (09:26 +0000)]
Added missing definitions

svn path=/trunk/; revision=23982

14 years agoUser32 static.c:
James Tabor [Fri, 8 Sep 2006 22:30:46 +0000 (22:30 +0000)]
User32 static.c:
  - Patch by Dmitry Timoshkov, modified for ReactOS.
    - Use computed icon rectangle if SS_CENTERIMAGE style is set.

svn path=/trunk/; revision=23981

14 years agoAdd a bit of error reporting
Aleksey Bragin [Fri, 8 Sep 2006 22:00:39 +0000 (22:00 +0000)]
Add a bit of error reporting

svn path=/trunk/; revision=23980

14 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Fri, 8 Sep 2006 20:13:51 +0000 (20:13 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=23979

14 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Fri, 8 Sep 2006 20:12:06 +0000 (20:12 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=23978

14 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Fri, 8 Sep 2006 20:08:45 +0000 (20:08 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=23977

14 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Fri, 8 Sep 2006 19:33:33 +0000 (19:33 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=23976

14 years agoFix invalid charset (DOS -> Windows)
Aleksey Bragin [Fri, 8 Sep 2006 15:39:34 +0000 (15:39 +0000)]
Fix invalid charset (DOS -> Windows)

svn path=/trunk/; revision=23975

14 years agoAdapt usetup to handle more easily additional filesystems
Hervé Poussineau [Thu, 7 Sep 2006 22:42:28 +0000 (22:42 +0000)]
Adapt usetup to handle more easily additional filesystems
This also prepares ground for the Chkdsk disk page

svn path=/trunk/; revision=23974

14 years ago- 1>Build Time 0:04
Alex Ionescu [Thu, 7 Sep 2006 22:38:06 +0000 (22:38 +0000)]
- 1>Build Time 0:04
  1>ReactOS Kernel - 0 error(s), 253 warning(s)
- Add winerror.h to ps/win32.c so it can get the Win32 error definition it needs (winerror.h doesn't add any other nasty win32 headers, so this isn't really a header policy violation).
- Fix prototypes of KdEnableDebugger and KdDisableDebugger.
- Write one of the cleanest and most ingenious hacks I've ever come up with it, which bypasses the incompatibility of hard-coded WDK externals.

svn path=/trunk/; revision=23973

14 years ago- More MSVC fixes (down to 19 errors):
Alex Ionescu [Thu, 7 Sep 2006 21:36:15 +0000 (21:36 +0000)]
- More MSVC fixes (down to 19 errors):
- Header changes: fix FILE_LOCK_INFO, LARGE_MCB, BASE_MCB, MM_SYSTEMSIZE.
- Remove many things in W32API which are incorrectly there (due to winnt being used by the win32api DDK). Defined them in the NDK instead, where appropriate (mostly definitions that are present in user-mode headers, but not kernel-mode headers).
- Hacked the ERESOURCE functions to define a special ERESOURCE_XP type. This is necessary because ERESOURCE is an opaque-yet-exported structure, and its structure changed in Vista.
- Removed support for IMAGE_SCN_TYPE_NO_LOAD. It is a reserved field and Windows does not "respect" it. (sections marked as no-load will still be loaded by NT).

svn path=/trunk/; revision=23972

14 years agoAdd ufat.dll and the optional ufatx.dll (to be added later to repository)
Hervé Poussineau [Thu, 7 Sep 2006 20:57:02 +0000 (20:57 +0000)]
Add ufat.dll and the optional ufatx.dll (to be added later to repository)

svn path=/trunk/; revision=23971

14 years ago[FORMATTING] Fix tab/space mess by replacing them by 4 spaces. No code change
Hervé Poussineau [Thu, 7 Sep 2006 20:15:45 +0000 (20:15 +0000)]
[FORMATTING] Fix tab/space mess by replacing them by 4 spaces. No code change

svn path=/trunk/; revision=23970

14 years agoUpdate prototypes
Hervé Poussineau [Thu, 7 Sep 2006 19:46:18 +0000 (19:46 +0000)]
Update prototypes

svn path=/trunk/; revision=23969

14 years agoRemoved NtUserGetKeyboardType, there was no win32k.db entry for it.
James Tabor [Thu, 7 Sep 2006 19:23:39 +0000 (19:23 +0000)]
Removed NtUserGetKeyboardType, there was no win32k.db entry for it.

svn path=/trunk/; revision=23968

14 years agoYes we should do it as WINE. Fixes a buffer overflow in RtlDetermineDosPathNameType_U()
Thomas Bluemel [Thu, 7 Sep 2006 19:20:42 +0000 (19:20 +0000)]
Yes we should do it as WINE. Fixes a buffer overflow in RtlDetermineDosPathNameType_U()

svn path=/trunk/; revision=23967

14 years agoCorrectly handle optional parameters
Hervé Poussineau [Thu, 7 Sep 2006 19:16:47 +0000 (19:16 +0000)]
Correctly handle optional parameters

svn path=/trunk/; revision=23966

14 years agoSome 64 bits fixes (approved by Filip)
Hervé Poussineau [Thu, 7 Sep 2006 19:13:37 +0000 (19:13 +0000)]
Some 64 bits fixes (approved by Filip)

svn path=/trunk/; revision=23965

14 years agoFix format.exe compilation
Hervé Poussineau [Thu, 7 Sep 2006 18:08:00 +0000 (18:08 +0000)]
Fix format.exe compilation

svn path=/trunk/; revision=23964

14 years agoFix compilation
Hervé Poussineau [Thu, 7 Sep 2006 17:55:51 +0000 (17:55 +0000)]
Fix compilation

svn path=/trunk/; revision=23963

14 years agoCorrectly implement autochk, which now calls the ChkdskEx function in u{FS}.dll.
Hervé Poussineau [Thu, 7 Sep 2006 17:54:23 +0000 (17:54 +0000)]
Correctly implement autochk, which now calls the ChkdskEx function in u{FS}.dll.

svn path=/trunk/; revision=23962

14 years agoAdd a stub for FAT12/16/32 chkdsk
Hervé Poussineau [Thu, 7 Sep 2006 17:44:08 +0000 (17:44 +0000)]
Add a stub for FAT12/16/32 chkdsk

svn path=/trunk/; revision=23961

14 years agoDeclare prototype for ChkdskEx function in u{FS}.dll
Hervé Poussineau [Thu, 7 Sep 2006 17:39:42 +0000 (17:39 +0000)]
Declare prototype for ChkdskEx function in u{FS}.dll

svn path=/trunk/; revision=23960

14 years agofixed win32k build, trunks builds again thanks w3seek for the help
Magnus Olsen [Thu, 7 Sep 2006 17:35:31 +0000 (17:35 +0000)]
fixed win32k build, trunks builds again thanks w3seek for the help

svn path=/trunk/; revision=23959

14 years agoFix typo: _GNUC_ -> __GNUC__
Hervé Poussineau [Thu, 7 Sep 2006 13:47:14 +0000 (13:47 +0000)]
Fix typo: _GNUC_ -> __GNUC__

svn path=/trunk/; revision=23958

14 years agofixed rosapps so it compiles again
Magnus Olsen [Thu, 7 Sep 2006 11:10:27 +0000 (11:10 +0000)]
fixed rosapps so it compiles again

svn path=/trunk/; revision=23957

14 years agofixed follow test, acclertor, alive, alphablend, bitblt, button, button2, capclock...
Magnus Olsen [Thu, 7 Sep 2006 10:31:37 +0000 (10:31 +0000)]
fixed follow test, acclertor, alive, alphablend, bitblt, button, button2, capclock, carets, combotst, dibtest, dirdlg, DxHalTest, edit, enhmetafile, enumfonts, enumwnd, enumws, gradient, hello, hivtest, icontest, lineclip, linetest, mdi, midtest

svn path=/trunk/; revision=23956

14 years agofixed ctm, kill, lsdd, man, regexpl, tcat can be build again
Magnus Olsen [Thu, 7 Sep 2006 10:01:22 +0000 (10:01 +0000)]
fixed ctm, kill, lsdd, man, regexpl, tcat can be build again

svn path=/trunk/; revision=23955

14 years agofixed so packmgr builds again
Magnus Olsen [Thu, 7 Sep 2006 09:53:25 +0000 (09:53 +0000)]
fixed so packmgr builds again

svn path=/trunk/; revision=23954

14 years agofixed waring msg newline
Magnus Olsen [Thu, 7 Sep 2006 09:46:50 +0000 (09:46 +0000)]
fixed waring msg newline

svn path=/trunk/; revision=23953

14 years agofixed all network apps in rosapps.
Magnus Olsen [Thu, 7 Sep 2006 09:42:17 +0000 (09:42 +0000)]
fixed all network apps in rosapps.

svn path=/trunk/; revision=23952

14 years ago1. fixed mc build again
Magnus Olsen [Thu, 7 Sep 2006 09:17:39 +0000 (09:17 +0000)]
1. fixed mc build again
2. fixed some warnings

svn path=/trunk/; revision=23951

14 years ago* fix building ntoskrnl
Johannes Anderwald [Thu, 7 Sep 2006 09:06:47 +0000 (09:06 +0000)]
* fix building ntoskrnl

svn path=/trunk/; revision=23950

14 years agofixed gdb2 build thx hpoussin for the host info
Magnus Olsen [Thu, 7 Sep 2006 08:50:42 +0000 (08:50 +0000)]
fixed gdb2 build thx hpoussin for the host info

svn path=/trunk/; revision=23949

14 years agofixed build for ddraw_demo
Magnus Olsen [Thu, 7 Sep 2006 08:29:06 +0000 (08:29 +0000)]
fixed build for ddraw_demo

svn path=/trunk/; revision=23948

14 years agofixed build for maze again
Magnus Olsen [Thu, 7 Sep 2006 08:26:54 +0000 (08:26 +0000)]
fixed build for maze again

svn path=/trunk/; revision=23947

14 years agofixed build for touch again
Magnus Olsen [Thu, 7 Sep 2006 08:23:54 +0000 (08:23 +0000)]
fixed build for touch again

svn path=/trunk/; revision=23946

14 years agofixed mode can be compile again.
Magnus Olsen [Thu, 7 Sep 2006 08:20:29 +0000 (08:20 +0000)]
fixed mode can be compile again.

svn path=/trunk/; revision=23945

14 years agoupdate shlguid, remove the dublacte guid, winefiles can be build now again
Magnus Olsen [Thu, 7 Sep 2006 07:14:49 +0000 (07:14 +0000)]
update shlguid, remove the dublacte guid, winefiles can be build now again

svn path=/trunk/; revision=23944

14 years agoinclude psdk shlguid.h
Magnus Olsen [Thu, 7 Sep 2006 07:13:07 +0000 (07:13 +0000)]
include psdk shlguid.h

svn path=/trunk/; revision=23943

14 years agoFixed so explorer can be compiling again.
Magnus Olsen [Thu, 7 Sep 2006 06:36:33 +0000 (06:36 +0000)]
Fixed so explorer can be compiling again.
Have not tested with rest of reactos if this break any anything.

svn path=/trunk/; revision=23942

14 years ago- More MSVC fixes:
Alex Ionescu [Thu, 7 Sep 2006 05:07:34 +0000 (05:07 +0000)]
- More MSVC fixes:
Additions or changes to headers: FSRTL_PER_FILEOBJECT_CONTEXT, FsRtlAreNamesEqual uses CONST buffers, KiIpiGenericCall + PKPIP_BROADCAST_WORKER, MmPageEntireDriver returns PVOID, Obf(De)referenceObject return LONG_PTR, KeGetPreviousMode is ExGetPreviousMode. KeGetCurrentPrcb is reimplemented in inline, MAX_PATH exposed to drivers.
- Changes: STATIC->static. static __inline ->FORCEINLINE. STDCALL -> NTAPI (Some). WORD/DWORD/BYTE -> NT Types.
- Kernel bugs fixed: Some string concatenations were broken, some functions had wrong return values.

svn path=/trunk/; revision=23941

14 years agoAdd user32 to build notifyhook
Thomas Bluemel [Wed, 6 Sep 2006 21:44:06 +0000 (21:44 +0000)]
Add user32 to build notifyhook

svn path=/trunk/; revision=23940

14 years agoLink to shell32 so we can use CommandLineToArgvW when compiling unicode. Thanks...
Brandon Turner [Wed, 6 Sep 2006 21:17:23 +0000 (21:17 +0000)]
Link to shell32 so we can use CommandLineToArgvW when compiling unicode.  Thanks to Usurp for finding the problem.

svn path=/trunk/; revision=23939

14 years ago* add console.dll to bootcd
Johannes Anderwald [Wed, 6 Sep 2006 21:12:06 +0000 (21:12 +0000)]
* add console.dll to bootcd
* add setting for unattended GUI setup (disabled)

svn path=/trunk/; revision=23938

14 years agoFix this properly: specify the search path among our various header sets.
Art Yerkes [Wed, 6 Sep 2006 20:58:02 +0000 (20:58 +0000)]
Fix this properly: specify the search path among our various header sets.

svn path=/trunk/; revision=23937

14 years agoDitto.
Art Yerkes [Wed, 6 Sep 2006 20:31:11 +0000 (20:31 +0000)]
Ditto.

svn path=/trunk/; revision=23936

14 years agoAdded _fpreset prototype. Not sure why this isn't picked up here.
Art Yerkes [Wed, 6 Sep 2006 20:30:28 +0000 (20:30 +0000)]
Added _fpreset prototype.  Not sure why this isn't picked up here.

svn path=/trunk/; revision=23935

14 years agoDelete empty directory
Thomas Bluemel [Wed, 6 Sep 2006 20:10:02 +0000 (20:10 +0000)]
Delete empty directory

svn path=/trunk/; revision=23934

14 years ago- Force using the import libraries built by ReactOS only, don't use the ones that...
Thomas Bluemel [Wed, 6 Sep 2006 20:00:41 +0000 (20:00 +0000)]
- Force using the import libraries built by ReactOS only, don't use the ones that come with the mingw compiler (doesn't work for CPP!)
- Import the mingw startup library and customized it a little. _tmain() is now supported, compiling an application as unicode is now just a matter of setting the module attribute unicode="true"
- Fixed .rbuild files to import all libraries neccessary
- Various GUID header changes and hacks to get everything to build/link properly
- Fixed the IShellView2 interface

svn path=/trunk/; revision=23933

14 years ago[Audlt] this file was written by filip for mingw w32sapi, and it contain few GUID...
Magnus Olsen [Wed, 6 Sep 2006 19:57:19 +0000 (19:57 +0000)]
[Audlt] this file was written by filip for mingw w32sapi, and it contain few GUID from wine to keep wine dsound happy.
        I did add the GUID from wine.

svn path=/trunk/; revision=23932

14 years ago[Audlt] this file was written by filip for mingw w32sapi and it same as mingw w32aspi,
Magnus Olsen [Wed, 6 Sep 2006 19:51:03 +0000 (19:51 +0000)]
[Audlt] this file was written by filip for mingw w32sapi and it same as mingw w32aspi,

svn path=/trunk/; revision=23931

14 years ago* halfplement reading / writing Console User settings
Johannes Anderwald [Wed, 6 Sep 2006 19:37:53 +0000 (19:37 +0000)]
* halfplement reading / writing Console User settings
* remove hardcoded constants
* shuffle initialization code :-)
* changing console text / background color now works :-)))))))
* changing cursor works only for one input (needs be investigated)

svn path=/trunk/; revision=23930

14 years agoFixed difference in signedness warnings
Thomas Bluemel [Wed, 6 Sep 2006 19:28:35 +0000 (19:28 +0000)]
Fixed difference in signedness warnings

svn path=/trunk/; revision=23929

14 years agoFixed difference in signedness warnings
Thomas Bluemel [Wed, 6 Sep 2006 18:59:30 +0000 (18:59 +0000)]
Fixed difference in signedness warnings

svn path=/trunk/; revision=23928

14 years agoFix MSVC 2005 compilation (Platform SDK is correctly included)
Aleksey Bragin [Wed, 6 Sep 2006 18:43:35 +0000 (18:43 +0000)]
Fix MSVC 2005 compilation (Platform SDK is correctly included)

svn path=/trunk/; revision=23927

14 years agoSome win32k docs (from win32k rewrite branch).
Saveliy Tretiakov [Wed, 6 Sep 2006 16:31:03 +0000 (16:31 +0000)]
Some win32k docs (from win32k rewrite branch).

svn path=/trunk/; revision=23926

14 years ago- MSVC Build Fixes
Alex Ionescu [Wed, 6 Sep 2006 12:19:00 +0000 (12:19 +0000)]
- MSVC Build Fixes

svn path=/trunk/; revision=23925

14 years agoupdate it.rc languages translation by gabrielilardi at hotmail.it (Gabriel ilardi)
Magnus Olsen [Tue, 5 Sep 2006 20:46:24 +0000 (20:46 +0000)]
update it.rc languages translation by gabrielilardi at hotmail.it (Gabriel ilardi)

svn path=/trunk/; revision=23924

14 years agoCall NtUserDrawCaption directly
Saveliy Tretiakov [Tue, 5 Sep 2006 16:28:20 +0000 (16:28 +0000)]
Call NtUserDrawCaption directly

svn path=/trunk/; revision=23923

14 years ago* msvc compiling fix
Johannes Anderwald [Tue, 5 Sep 2006 10:14:40 +0000 (10:14 +0000)]
* msvc compiling fix

svn path=/trunk/; revision=23922

14 years agoImplement CryptSignHashW based WINE and old CryptSignHashA. Change CryptSignHashA...
Brandon Turner [Mon, 4 Sep 2006 22:51:28 +0000 (22:51 +0000)]
Implement CryptSignHashW based WINE and old CryptSignHashA.  Change CryptSignHashA to call CryptSignHashW.

svn path=/trunk/; revision=23921

14 years agoAllow allow lower case when being called
Hervé Poussineau [Mon, 4 Sep 2006 22:16:43 +0000 (22:16 +0000)]
Allow allow lower case when being called

svn path=/trunk/; revision=23920

14 years agoAdd a hack to enable formatting (was broken since at least r20156)
Hervé Poussineau [Mon, 4 Sep 2006 21:58:38 +0000 (21:58 +0000)]
Add a hack to enable formatting (was broken since at least r20156)

svn path=/trunk/; revision=23919

14 years ago* use ConsoleInfo struct directly
Johannes Anderwald [Mon, 4 Sep 2006 21:26:49 +0000 (21:26 +0000)]
* use ConsoleInfo struct directly
* change type in global struct (avoid buffer overflow when reading value from registry)

svn path=/trunk/; revision=23918

14 years agoAdd ufat.dll, to be able to format drives to FAT and FAT32 format
Hervé Poussineau [Mon, 4 Sep 2006 20:55:39 +0000 (20:55 +0000)]
Add ufat.dll, to be able to format drives to FAT and FAT32 format

svn path=/trunk/; revision=23917

14 years agorename version.h to ver.h to avoid a possible conflict with include/reactos/version.h
Thomas Bluemel [Mon, 4 Sep 2006 20:14:48 +0000 (20:14 +0000)]
rename version.h to ver.h to avoid a possible conflict with include/reactos/version.h

svn path=/trunk/; revision=23916

14 years agoRemove Vfat(x)Initialize and Vfat(x)Cleanup which were empty
Hervé Poussineau [Mon, 4 Sep 2006 19:27:19 +0000 (19:27 +0000)]
Remove Vfat(x)Initialize and Vfat(x)Cleanup which were empty
Remove vfatlib dependancy of fmifs.dll (Providers like ufat.dll are loaded dynamically at startup)

svn path=/trunk/; revision=23915

14 years ago[FORMATTING] Add standard headers
Hervé Poussineau [Mon, 4 Sep 2006 17:11:14 +0000 (17:11 +0000)]
[FORMATTING] Add standard headers
Replace the mix of tabs/spaces by tabs
Replace STDCALL by NTAPI

svn path=/trunk/; revision=23914

14 years agoAdd prototypes for some fmifs.dll functions.
Hervé Poussineau [Mon, 4 Sep 2006 16:46:13 +0000 (16:46 +0000)]
Add prototypes for some fmifs.dll functions.
These have been found with trial and error on a MS Windows XP SP2 system with MS Visual Studio 2003

svn path=/trunk/; revision=23913

14 years agoFix compilation of rosapps with gcc 3.4.5.
Hervé Poussineau [Mon, 4 Sep 2006 16:29:00 +0000 (16:29 +0000)]
Fix compilation of rosapps with gcc 3.4.5.
Thanks Gge on IRC

svn path=/trunk/; revision=23912

14 years ago* move reading / applying options out of console.dll
Johannes Anderwald [Mon, 4 Sep 2006 13:13:42 +0000 (13:13 +0000)]
* move reading / applying options out of console.dll
* remove unused code
* notify win32csr when a property has changed

svn path=/trunk/; revision=23911

14 years agoPSEH was based on clean-room reverse engineering (read: trial-and-error) and on the...
KJK::Hyperion [Mon, 4 Sep 2006 12:04:54 +0000 (12:04 +0000)]
PSEH was based on clean-room reverse engineering (read: trial-and-error) and on the pre-existing work of Matt Pietrek, just like the exception handling code used in Wine. I, the author, declare it clean

svn path=/trunk/; revision=23910

14 years agoUser32 bitmap.c:
James Tabor [Mon, 4 Sep 2006 03:08:18 +0000 (03:08 +0000)]
User32 bitmap.c:
 - Patch by Michael Kaufmann
  - CopyImage: Handle the flags LR_COPYDELETEORG, LR_CREATEDIBSECTION, and LR_MONOCHROME.

svn path=/trunk/; revision=23906

14 years agoUser32 combo.c:
James Tabor [Mon, 4 Sep 2006 03:03:14 +0000 (03:03 +0000)]
User32 combo.c:
 - Patch by Dmitry Timoshkov
  - do not force repainting on WM_WINDOWPOSCHANGED in combobox, it
    breaks Z-order based painting.
  - do nothing in the combobox WM_ERASEBKGND handler do all painting in
    WM_PAINT like Windows does.

svn path=/trunk/; revision=23905

14 years agoAdding small hack to getting SetPixel color right when it is more that 3 bytes long.
Magnus Olsen [Sun, 3 Sep 2006 22:54:22 +0000 (22:54 +0000)]
Adding small hack to getting SetPixel color right when it is more that 3 bytes long.
This hack allown us pass one more test. (Debuging in progress)

svn path=/trunk/; revision=23904

14 years ago- Final cleanup for now:
Alex Ionescu [Sun, 3 Sep 2006 21:06:30 +0000 (21:06 +0000)]
- Final cleanup for now:
  - main.c -> freeldr.c + cleanups and nice formatitng.
  - Move out variables that were in main.c to ex\init.c or cpu.c, depending.
  - Separate i386/kernel.c into i386/kiinit.c for X86-specific intiailization, and /krnlinit.c for portable initialization across all architectures. Also move out global variables appropriately.
  - main_asm.S -> cpu.S

svn path=/trunk/; revision=23903

14 years agoReorder the file
Hervé Poussineau [Sun, 3 Sep 2006 21:02:09 +0000 (21:02 +0000)]
Reorder the file
Add some more defines/typdefs from Wine sspi.h
Fix a few typos

svn path=/trunk/; revision=23902

14 years ago- Add Ke386SetInterruptDescriptorTable inlined function to set the IDT.
Alex Ionescu [Sun, 3 Sep 2006 19:57:55 +0000 (19:57 +0000)]
- Add Ke386SetInterruptDescriptorTable inlined function to set the IDT.
- Rename and fixup initial stacks, instead of using 16 different variables all with confusining meanings and values. Define P0BootStack as the initial kernel stack, and KiDoubleFaultStack as the double-fault trap (and initial DPC) stack.
- Fix call to KiInitializePcr which was setting an incorrect DPC stack.
- Make space on the initial stack for a KTRAP_FRAME as well, not only for the FPU save area.
- Also push initial CR0 NPX state on the initial stack.
- Load the IDT and GDT directly in KiRosPrepareForSystemStartup.
- Completely rewrite main_asm.S in Intel syntax and clean it up.

svn path=/trunk/; revision=23901

14 years agoAdd comptypeDIB definition to headers
Aleksey Bragin [Sun, 3 Sep 2006 19:38:16 +0000 (19:38 +0000)]
Add comptypeDIB definition to headers

svn path=/trunk/; revision=23900

14 years agoFixed one more bug, we did create wrong bpp if we got HDC = NULL for CreateDIBitmap...
Magnus Olsen [Sun, 3 Sep 2006 18:16:08 +0000 (18:16 +0000)]
Fixed one more bug, we did create wrong bpp if we got HDC = NULL for CreateDIBitmap, when I read wine code
it is always 1Bpp and 1Plans and we are doing same now if HDC is NULL, some wine test deepness on it.
Hopply it will take care of some program problem.

svn path=/trunk/; revision=23899

14 years ago- Add Ke386SetFs, Ds, Es (using Ke386SetSeg) and Ke386SetTr new inlined commands.
Alex Ionescu [Sun, 3 Sep 2006 17:18:08 +0000 (17:18 +0000)]
- Add Ke386SetFs, Ds, Es (using Ke386SetSeg) and Ke386SetTr new inlined commands.
- Also setup an NMI Task gate after the double fault task gate. Will be useful when we hand to handle NMIs later.
- Setup FS in KiSystemStartup and initialize the TSS before the PCR. Also add a bit more support for SMP systems (To skip boot-cpu-only initialization).
- Also setup DS/ES directly in KiSystemStartup.
- Initialize KD at phase 0 in KiSystemStartup, not in KiInitializeKernel, and also check for debug break at this time.

svn path=/trunk/; revision=23898

14 years agoAllow setup to detect extended partitions
Hervé Poussineau [Sun, 3 Sep 2006 12:32:15 +0000 (12:32 +0000)]
Allow setup to detect extended partitions

svn path=/trunk/; revision=23896

14 years ago- Remove LDT initialization, LDT shouldn't be initialized at bootup.
Alex Ionescu [Sun, 3 Sep 2006 07:13:02 +0000 (07:13 +0000)]
- Remove LDT initialization, LDT shouldn't be initialized at bootup.
- Move LDT-only GDT routines to ldt.c
- Cleanup formatting of GDT-related exported function stubs in gdt.c and rename file to abios.c. Those routines deal specifically with the ABIOS GDT selectors and are for ABIOS support.
- Move the lone 2 routines in fpu.c to cpu.c.

svn path=/trunk/; revision=23895

14 years ago- Fix KTSS definition.
Alex Ionescu [Sun, 3 Sep 2006 06:51:03 +0000 (06:51 +0000)]
- Fix KTSS definition.
- Add GetSegment inlines (ie: GetSs, GetDs, etc)
- Fix up definition of KiBootGdt to use KGDTENTRY instead of USHORT. Also define KiGdtDescriptor using KDESCRIPTOR.
- Remove GDT initialization code completely. The GDT is already initialized on boot.
- Remove tss.c and add KiInitializeTss(2) to setup a TSS and proper IOPM/Interrupt Direction map settings for V86/VDM.
- Copy the TSS code over but prettyify it to use NT/NDK structures instead of ugly USHORT typecasts.

svn path=/trunk/; revision=23894

14 years agoFixed some more wine test for NtGdiGetDIBits
Magnus Olsen [Sat, 2 Sep 2006 23:58:53 +0000 (23:58 +0000)]
Fixed some more wine test for NtGdiGetDIBits
FIxed so we can now create BITMAPCOREHEADER bitmap (Bugs in NtGdiGetDIBits did stop create of it)

svn path=/trunk/; revision=23892

14 years ago1. Copy DIB_GetBitmapInfo from wine cvs (date 2/9-2006)
Magnus Olsen [Sat, 2 Sep 2006 21:02:03 +0000 (21:02 +0000)]
1. Copy DIB_GetBitmapInfo from wine  cvs (date 2/9-2006)
2. Bugfix NtGdiGetDIBits the BITMAPCOREHEADER is not same as BITMAPINFOHEADER
   we now separate it in if(Bits==NULL) that will allow us pass two more wine tests
   follow winetest is working now
   1. bitmap.c 227 Test failed: GetDIBits doesn't work with a BITMAPCOREHEADER
   2. bitmap.c 233 GetDIBits doesn't work with a BITMAPCOREHEADER
   both of them are fixed now

svn path=/trunk/; revision=23891

14 years agoSeparate Device Manager code (what was left from it in hub.c) from Hub code
Aleksey Bragin [Sat, 2 Sep 2006 20:32:50 +0000 (20:32 +0000)]
Separate Device Manager code (what was left from it in hub.c) from Hub code

svn path=/trunk/; revision=23890

14 years ago- Part 2 of 2: Implement KiDispatchInterrupt in assembly since it's 1) Perf-critical...
Alex Ionescu [Sat, 2 Sep 2006 19:53:24 +0000 (19:53 +0000)]
- Part 2 of 2: Implement KiDispatchInterrupt in assembly since it's 1) Perf-critical 2) Requires us to switch the stack to the DPC stack, which is unsafe (and impossible, unless inlining) in C.

svn path=/trunk/; revision=23889

14 years ago- Part 1.5 of 2: Re-factor KiDispatchInterrupt to separate DPC delivery routine ...
Alex Ionescu [Sat, 2 Sep 2006 19:12:31 +0000 (19:12 +0000)]
- Part 1.5 of 2: Re-factor KiDispatchInterrupt to separate DPC delivery routine (so that it can stay in C, since KiDispatch should be done in ASM so we can switch stacks).
  - Use interrupt enable/disable instead of raising to HIGH_LEVEL.
  - Better use and pairing of locks.
  - Fix a lot of race conditions in DPC dispatching, due to the fact almost all data we're touching is ultra-volatile and can change at any time depending on various locks being held/released + interrupt state.
  - Add stub code/support for tick-hased table-based timer implementation and deferred threads.

svn path=/trunk/; revision=23888

14 years ago- Fix a bug in RtlFillMemory.
Alex Ionescu [Sat, 2 Sep 2006 16:36:48 +0000 (16:36 +0000)]
- Fix a bug in RtlFillMemory.
- Fix overlap check comments.

svn path=/trunk/; revision=23887

14 years ago- Add missing volatile statements to KPROCESS, KTHREAD, KPRCB and KDPC_DATA.
Alex Ionescu [Sat, 2 Sep 2006 16:19:00 +0000 (16:19 +0000)]
- Add missing volatile statements to KPROCESS, KTHREAD, KPRCB and KDPC_DATA.
- Fix KDPC definition in DDK. You can always count on the w32api to get even the simplest structures wrong.
- Fix memory overwrite bug in KiInitSpinlocks.
- Part 1 of 2: Cleanup and improve DPC implementation to add partial support for Threaded DPCs and remove SMP vs non-SMP ifdefs. (At the expense of, oh God, 5 wasted CPU cycles!).

svn path=/trunk/; revision=23886

14 years agoAdd forgotten "xs-native.cpp" to the MSVC project of ROS Explorer
Aleksey Bragin [Sat, 2 Sep 2006 11:27:36 +0000 (11:27 +0000)]
Add forgotten "xs-native.cpp" to the MSVC project of ROS Explorer

svn path=/trunk/; revision=23885

14 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Sat, 2 Sep 2006 06:27:09 +0000 (06:27 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=23883

14 years agoAutosyncing with Wine HEAD
The Wine Synchronizer [Sat, 2 Sep 2006 06:24:20 +0000 (06:24 +0000)]
Autosyncing with Wine HEAD

svn path=/trunk/; revision=23882

14 years ago- Move machine-specific initializations to KeInit2.
Alex Ionescu [Sat, 2 Sep 2006 05:10:16 +0000 (05:10 +0000)]
- Move machine-specific initializations to KeInit2.
- Initialize bugcheck messages much earlier, separate clock initialization from KeInit2.
- Completely move out and isolate ROS/FREELDR PE loading hacks to KiRosPrepareForSystemStartup so that KiSystemStartup is clean of them.

svn path=/trunk/; revision=23881

14 years ago- More Initialization changes:
Alex Ionescu [Sat, 2 Sep 2006 04:40:09 +0000 (04:40 +0000)]
- More Initialization changes:
   - Initialize bugcheck lists, timer DPC, profile list/locks, timer lists, the swap lists and syscall table as part of KiInitSystem (portable).
   - Add more initialization for the initial/idle process+thread (some code disabled due to dispatcher problems).
   - Add code to support future Timer implementation (based on tick-hashes)
   - Separate post-boostrap initialization code in KiInitializeKernel.
   - Add some support for future SMP paths.
   - Create a DPC stack.
- Changes based on WI4 and my automated parsing tool.

svn path=/trunk/; revision=23880

14 years ago- More kernel initialization changes and cleanups.
Alex Ionescu [Sat, 2 Sep 2006 02:59:44 +0000 (02:59 +0000)]
- More kernel initialization changes and cleanups.
- Start support for an initial boot thread.

svn path=/trunk/; revision=23879