Compare commits

...

2604 Commits

Author SHA1 Message Date
Gé van Geldorp
d34f579866 Oops, used wrong tag
svn path=/tags/ReactOS-0.2.7/; revision=18974
2005-11-03 14:36:29 +00:00
Gé van Geldorp
955dc767dd Tag ReactOS release 0.2.8
svn path=/tags/ReactOS-0.2.7/; revision=18973
2005-11-03 14:33:44 +00:00
Brandon Turner
9173e96e7d change to "RELEASE"
svn path=/branches/ros-branch-0_2_8/; revision=18832
2005-10-28 14:23:48 +00:00
Andrew Munger
fb29985637 Disable patented bytecode interpreter, will investigate the non-patented configuration.
svn path=/branches/ros-branch-0_2_8/; revision=18774
2005-10-25 18:08:13 +00:00
Brandon Turner
c41f403a21 Changed to RC2
svn path=/branches/ros-branch-0_2_8/; revision=18761
2005-10-24 21:42:24 +00:00
Gé van Geldorp
c22faedfdb Can't have a release without WineMine:
Add resource file, makes winemine playable again

svn path=/branches/ros-branch-0_2_8/; revision=18706
2005-10-23 13:11:31 +00:00
Gé van Geldorp
940e95f578 Merge from trunk:
Don't issue KBD_LINE_TEST, the results are unreliable. Fixes reopen of #688.

svn path=/branches/ros-branch-0_2_8/; revision=18700
2005-10-23 11:33:45 +00:00
Gé van Geldorp
2816fa8ad0 Merge from trunk:
Use MaxPos instead of MaxTrackingPos when "restoring" a window which was
previously maximized. Fixes bug 925.

svn path=/branches/ros-branch-0_2_8/; revision=18680
2005-10-22 15:19:01 +00:00
Gé van Geldorp
3b88890780 Merge from trunk.
Fix icon alignment when the screen width is not a multiple of the icon spacing.
Fixes bug 912.

svn path=/branches/ros-branch-0_2_8/; revision=18674
2005-10-22 12:11:42 +00:00
Gé van Geldorp
4e8b37f268 Merge from trunk.
Make FindWindow case insensitive. Fixes bug 919.

svn path=/branches/ros-branch-0_2_8/; revision=18667
2005-10-21 21:16:36 +00:00
Gé van Geldorp
38e712904d Merge from trunk.
- Enable/disable keyboard by writing the controller command byte instead of
  issuing keyboard commands, the keyboard commands seem to confuse some kvm
  switches.
- Use STATUS_IO_TIMEOUT consistently, STATUS_TIMEOUT is not an error condition
- Introduce symbolic constants for controller command byte bits
- Try to detect mouse early and if its not present, reset the keyboard
  controller. Some controllers seem to get locked up when writing to a
  non-present mouse.
- Don't check the timeout status bit when reading from the controller. It is
  often wrong.
- Don't treat failure to read keyboard id as a fatal error, we only read it
  to set KeyboardIsAT which we then don't use. Still try to detect the keyboard
  type, but don't fail if it doesn't work.
Fixes bug 688. Thanks to Hartmut, Filip and WaxDragon for testing.

svn path=/branches/ros-branch-0_2_8/; revision=18665
2005-10-21 20:31:59 +00:00
Gé van Geldorp
cbbc54397d Revert r18662, trunk and branch already diverged
svn path=/branches/ros-branch-0_2_8/; revision=18663
2005-10-21 19:45:28 +00:00
Gé van Geldorp
3c5b8f62ce Merge from trunk: Make desktop properties fit in 640x480 desktop
svn path=/branches/ros-branch-0_2_8/; revision=18662
2005-10-21 19:33:16 +00:00
Gé van Geldorp
076872ae0a Merge from trunk. Martijn Vernooij <o112w8r02@sneakemail.com>
Work around continuous repainting of treeview control.
Fixes bug 493.

svn path=/branches/ros-branch-0_2_8/; revision=18658
2005-10-21 17:16:46 +00:00
Gé van Geldorp
1d110cfd34 Merge from trunk.
Patch by hardon. Properly handle 0 timeouts. Fixes bug 857.

svn path=/branches/ros-branch-0_2_8/; revision=18537
2005-10-17 22:09:18 +00:00
Gé van Geldorp
b49ba945d0 Merge from trunk.
Everything must come to an end, even the desktop window. Fixes bug 805.

svn path=/branches/ros-branch-0_2_8/; revision=18535
2005-10-17 22:00:42 +00:00
Gé van Geldorp
5f8cac6653 Merge from trunk.
Inform HAL about the switch to graphics modeas late as possible. Fixes bug 880.

svn path=/branches/ros-branch-0_2_8/; revision=18533
2005-10-17 21:48:12 +00:00
Hartmut Birr
7ed77ada75 Merge from trunk.
Don't use alloca in a macro, which may be used in a loop. This does fix bug #805.

svn path=/branches/ros-branch-0_2_8/; revision=18482
2005-10-15 14:26:53 +00:00
Gé van Geldorp
fd1eddbc07 Merge from trunk.
Make sure we don't hang forever when activating a window belonging to
another thread

svn path=/branches/ros-branch-0_2_8/; revision=18469
2005-10-15 09:55:46 +00:00
Gé van Geldorp
0cefb2734c Merge from trunk. Goplat <mrnobo1024@yahoo.com>:
SetPixel should return the new color. Bug 909.

svn path=/branches/ros-branch-0_2_8/; revision=18451
2005-10-14 18:35:05 +00:00
Gé van Geldorp
e0c4931114 Merge from trunk. tsk <tsk_n@mail.goo.ne.jp>:
UsageMessage is a printf format string.

svn path=/branches/ros-branch-0_2_8/; revision=18440
2005-10-14 09:44:48 +00:00
Gé van Geldorp
667d6e07eb Merge from trunk:
Don't install Winefile icon on desktop, it's already present in the start menu

svn path=/branches/ros-branch-0_2_8/; revision=18438
2005-10-14 09:34:15 +00:00
Gé van Geldorp
7614c174b6 Merge from trunk. Mike <mikeonthecomputer@gmail.com>:
Add installation path for VMware 5.5. Fixes bug 907.

svn path=/branches/ros-branch-0_2_8/; revision=18436
2005-10-14 09:27:30 +00:00
Robert Kopferl
1ed2391c2f preparations for Ros 0.2.8-RC1
svn path=/branches/ros-branch-0_2_8/; revision=18434
2005-10-14 00:03:27 +00:00
Gé van Geldorp
92697d6768 Merge from trunk:
Use the pitch provided by FreeType. Fixes bug 894.

svn path=/branches/ros-branch-0_2_8/; revision=18432
2005-10-13 18:43:49 +00:00
Gé van Geldorp
1bc7e5d407 Send window-bound timers to the correctmessage queue
svn path=/branches/ros-branch-0_2_8/; revision=18421
2005-10-13 07:35:48 +00:00
Gé van Geldorp
5ddd8d5749 Workaround for bug 899
svn path=/branches/ros-branch-0_2_8/; revision=18420
2005-10-13 07:35:19 +00:00
Brandon Turner
fbd6bbbf48 set to eol-style native ;)
svn path=/trunk/; revision=18402
2005-10-10 19:08:57 +00:00
Brandon Turner
657a7f0496 Added a more technical readme for people that want to understand cmd.
svn path=/trunk/; revision=18401
2005-10-10 18:57:56 +00:00
Ged Murphy
7a0a97076f remove a header no longer needed too
svn path=/trunk/; revision=18400
2005-10-10 18:35:33 +00:00
Ged Murphy
7338720bbd remove uneeded text out of the .rc file.
svn path=/trunk/; revision=18399
2005-10-10 18:33:45 +00:00
Ged Murphy
57c3413b9d forgot the eol-style again.
svn path=/trunk/; revision=18398
2005-10-10 17:51:30 +00:00
Ged Murphy
7cd2f8dbb5 Start of a rewrite for netstat.exe
- Simulate the output of the MS netstat tool
- implemented -a, -e, -n, -p, -r, -s and interval

svn path=/trunk/; revision=18397
2005-10-10 17:49:19 +00:00
Thomas Bluemel
361bbd4d9d fixed a typo in the NtAccessCheck declaration
svn path=/trunk/; revision=18396
2005-10-10 15:42:08 +00:00
Andrew Munger
a45c2e461f MiTestCard is only used in DBG=1, surround with ifdef so DBG=0 builds.
svn path=/trunk/; revision=18395
2005-10-10 14:29:15 +00:00
Thomas Bluemel
eb03a7e427 convert DefaultSetInfoBufferCheck and DefaultQueryInfoBufferCheck to inlined functions
svn path=/trunk/; revision=18394
2005-10-10 13:03:55 +00:00
Thomas Bluemel
e0191cfd2a don't jump outside _SEH_TRY with goto in ObpCaptureObjectAttributes()
svn path=/trunk/; revision=18393
2005-10-10 13:03:09 +00:00
Thomas Bluemel
a4bfa110a8 some fixes for CheckTokenMembership:
- properly create an impersonation token from the primary token in case the thread is not impersonating
- use NtAccessCheck to perform the access check

svn path=/trunk/; revision=18392
2005-10-10 11:44:37 +00:00
Magnus Olsen
0c2ceade45 Comment out a fixme, it make a user mode crash (ntoskrnl\ke\exception.c:94 KiRaiseException ), after this viso installer start working, thx Christoph_vW to found it.
svn path=/trunk/; revision=18391
2005-10-09 22:35:54 +00:00
Thomas Bluemel
ea1ba0aefd don't try to free the ansi strings passed by the caller
svn path=/trunk/; revision=18390
2005-10-09 22:35:41 +00:00
Brandon Turner
af2ef3d685 Updated more cmd documentation. This included changing from eric's email to ros-dev / bugzilla for suggested way of reporting bugs.
svn path=/trunk/; revision=18389
2005-10-09 22:33:26 +00:00
Thomas Bluemel
2b001b30bf fixed difference in signedness warning in MulDiv()
svn path=/trunk/; revision=18388
2005-10-09 22:30:27 +00:00
Magnus Olsen
5e45c5916f Fix DD_Cleanup that will make Contry Strike not crashing when it does not found right reslution, thx drfred that found the bug + source cleanup and small bugfix for ntddraw
svn path=/trunk/; revision=18387
2005-10-09 22:15:06 +00:00
Gunnar Dalsnes
690727fe99 Fix MulDiv. This fixes almost any progress-bar to stop showing negative values during installations or etc. Thanks to kichik for originally having found the bug.
Patch by alex ionescu

svn path=/trunk/; revision=18386
2005-10-09 22:12:56 +00:00
Thomas Bluemel
315e77dfab use the correct down-level scope filter flag for the computer selection dialog
svn path=/trunk/; revision=18385
2005-10-09 22:09:02 +00:00
Thomas Bluemel
d49c0b4e12 add a not yet complete tool to dump the recycle bin databases
svn path=/trunk/; revision=18384
2005-10-09 20:56:17 +00:00
Eric Kohl
be1c8d7a38 First shot at CreateServiceW. It crashes due to a bug (aka missing feature) in widl. I'm going to fix it as soon as possible.
svn path=/trunk/; revision=18383
2005-10-09 20:24:00 +00:00
Brandon Turner
0f30dcfddd Make sure that FileList is not empty. fixes bug #884.
svn path=/trunk/; revision=18382
2005-10-09 19:08:18 +00:00
Thomas Bluemel
30a95cc3af added missing ansi/unicode definitions
svn path=/trunk/; revision=18381
2005-10-09 16:58:13 +00:00
Martin Fuchs
54e86c3e2c remove binary attribute from japanese resource file
svn path=/trunk/; revision=18380
2005-10-09 15:23:16 +00:00
Martin Fuchs
f8879f3de8 Fix for Bugzilla Entry 330: Correctly handle WM_COMMAND messages in web windows without web control
svn path=/trunk/; revision=18379
2005-10-09 15:16:41 +00:00
Martin Fuchs
3edf5a41cc fix crash because of NULL command line pointer
svn path=/trunk/; revision=18378
2005-10-09 15:12:13 +00:00
Martin Fuchs
8b65b69d7c Fix from watz@gmx.net for Bugzilla Entry 862: When you resize the taskmanager window, the history graph is not updated anymore. When the window is resized back to default (smallest possible width) it
draws again.

svn path=/trunk/; revision=18376
2005-10-09 15:04:18 +00:00
Martin Fuchs
e42612ca97 replace "search computer" start menu entry by a "not yet implemented" message to avoid the crash because of the currently missing SHFindComputer() implementation in shell32.dll
svn path=/trunk/; revision=18375
2005-10-09 13:05:49 +00:00
Martin Fuchs
8ff67043ab german patch for cmd.exe from Bugzilla Entry 872
svn path=/trunk/; revision=18374
2005-10-09 12:41:35 +00:00
Martin Fuchs
d4b58223f9 fix access violation in SaveBoard()
svn path=/trunk/; revision=18373
2005-10-09 11:57:15 +00:00
Martin Fuchs
5be74add41 display source rectangle
svn path=/trunk/; revision=18372
2005-10-09 11:24:51 +00:00
Eric Kohl
07cba14d02 - Support [out, unique] base type parameters.
svn path=/trunk/; revision=18371
2005-10-09 08:38:29 +00:00
Eric Kohl
c06ae87d5e - Support [out, unique] base type parameters.
svn path=/trunk/; revision=18370
2005-10-09 08:36:50 +00:00
Gregor Anich
9606cf5a82 Add /BREAK option.
Enter KDB on bootup only if /BREAK options is given.
(You can also use KDBinit to enter KDB a little later than with /BREAK)

svn path=/trunk/; revision=18369
2005-10-09 00:45:33 +00:00
Gregor Anich
9b511ef452 Add KDBinit to the installation.
svn path=/trunk/; revision=18368
2005-10-09 00:25:19 +00:00
Brandon Turner
96d70479d0 start of removing #ifdef __Reactos__ in cmd. __Reactos__ = 1 works fine on windows and __Reactos__ = 0 hasnt built since i started working on cmd, making it pointless.
svn path=/trunk/; revision=18367
2005-10-08 23:59:48 +00:00
Emanuele Aliberti
7ab6a27574 Fix startup code for native NT processes.
smss, autocheck, csrss use new startup code.

svn path=/trunk/; revision=18366
2005-10-08 22:42:17 +00:00
Emanuele Aliberti
320979be58 Fix startup code for native NT processes.
smss, autocheck, csrss use new startup code.

svn path=/trunk/; revision=18365
2005-10-08 22:41:49 +00:00
Emanuele Aliberti
4aa4442880 Minor change.
svn path=/trunk/; revision=18364
2005-10-08 22:40:04 +00:00
Emanuele Aliberti
14d42d8dd2 Fix startup code for native NT processes.
svn path=/trunk/; revision=18363
2005-10-08 22:38:55 +00:00
Gé van Geldorp
2ffd7b7d5a Sync to Wine-20050930:
Jakob Eriksson <jakov@vmlinux.org>
- Get rid of HeapAlloc casts.
Robert Reif <reif@earthlink.net>
- Added keyboard data format.
- Fix joystick crash when a button guid is specified in the data
  format.
  Add some parameter checking.
- Pass around real version and do correct thing based on it.
  Change cooperative level to pass on windows.
- Fix SetProperty error returned.
  Add EnumDevice joystick version check.
  Test multiple versions.
- Added dinput tests.
- Effect objects are not supported yet so don't crash when trying to
  enumerate them.
Raphael Junqueira <fenix@club-internet.fr>
- use WINE_DINPUT_KEYBOARD_MAX_KEYS instead hard-coded 256 value
- better use of critical section
- some cleanup to better understand code paths
- logic correction on SetWindowsHookExA/UnhookWindowsHookEx on
  keyboard.
Alexandre Julliard <julliard@winehq.org>
- Build a static list of devices instead of relying on ELF
  constructors.
Gerald Pfeifer <gerald@pfeifer.com>
- Fix compilation of the case without proper Linux joystick support.
James Dean Anderson <petr@pantek.org>
- Report an error if trying to get data from an unacquired mouse.
Lionel Ulmer <lionel.ulmer@free.fr>
- more pretty print for the types flag
- more Windows-aligned check for object instances
- Windows reports 0x80 on pressed buttons not 0xFF
- trace the events reported to the application
- do not flush the buffer when the application only wants to peek the
  number of elements in the queue
- trace the GetDeviceState values before they are reset
Alexandre Julliard <julliard@winehq.org>
- Added rules for building import libraries in the individual dll
  makefiles, and added support for building a .def.a static import
  library too.
- Added rules to build import libraries in the individual dll makefiles.
  Generate import libraries with the right name right away instead of
  using an intermediate .spec.def file.
- Moved config parameters to HKCU\Software\Wine\DirectInput.
- Added magic comments to all Wine-specific registry accesses to make
  them easier to grep.
- Sort entry points alphabetically.
- Removed some unused or redundant configure checks.
  A few cleanups in configure.ac.
- Don't prefix the functions DllCanUnloadNow, DllGetClassObject and
  Dll(Un)RegisterServer with the dll name so that the compiler can check
  the prototypes.
- Fixed some traces to use the right printf format and avoid typecasts.
- Use a more portable scheme for storing the name of a critical
  section.
- Use the COM macros instead of accessing lpVtbl directly.
- We are no longer generating .dbg.c files.
Marcus Meissner <marcus@jet.franken.de>
- The last argument to MultiByteToWideChar is wide character count and
  not the buffer size in bytes. Fixed all places where it was wrong.
- Fixed 3 memset()s which used the wrong size (too large).
Dmitry Timoshkov <dmitry@codeweavers.com>
- Make more of the OLE interface vtables const.
Daniel Remenak <dtremenak@gmail.com>
- Added a linux input system force feedback effect implementation.
- Allow the creation of an FF effect while the joystick is not
  acquired.
- Failing to download an effect after setting parameters is not a
  fatal error.
- Allow enumeration of objects when the device is not yet acquired.
- Flag FF-capable axes during enumeration.
- Protect FF_STATUS usage to avoid compile errors on machines with old
  linux/input.h.
- Implement EnumEffects, CreateEffect, EnumCreatedEffects,
  SendForceFeedbackCommand, and GetForceFeedbackStatus for linux input
  joysticks.
- Correct dinput handling of sliders and non-zero-based axes through the
  linux input system.
- Correctly enumerate evdev joysticks when enumeration is restricted
  with DIEDFL_FORCEFEEDBACK.
- Detect force-feedback-capable linux event device joysticks and return
  DIDC_FORCEFEEDBACK when queried for capabilities.
Mike McCormack <mike@codeweavers.com>
- Interlocked LONG* gcc warning fixes.
- gcc 4.0 warning fixes.
- gcc 4.0 warning fixes for Interlocked* functions.
- Fix warnings for no force feedback case.
Stefan Huehner <stefan@huehner.org>
- Fix some more -Wmissing-declarations warnings.
Vincent Béron <vberon@mecano.gme.usherb.ca>
- Use proper ifdefs around unistd.h.

svn path=/trunk/; revision=18361
2005-10-08 20:11:27 +00:00
Gé van Geldorp
d2af8e74ef Sync to Wine-20050930:
Alexandre Julliard <julliard@winehq.org>
- We are no longer generating .dbg.c files.
- Removed a useless header file.

svn path=/trunk/; revision=18359
2005-10-08 19:52:44 +00:00
Gé van Geldorp
855eb364c8 Sync to Wine-20050930:
Alexandre Julliard <julliard@winehq.org>
- Specify 64-bit integers as double instead of long long in spec files
  so that we get the correct number of arguments.
- We are no longer generating .dbg.c files.
Mike McCormack <mike@codeweavers.com>
- Fix gcc 4.0 warnings.
Gerald Pfeifer <gerald@pfeifer.com>
- #include <stdlib.h> to get abs() prototype.
Frank Richter <frank.richter@gmail.com>
- Remove shlwapi dependency.

svn path=/trunk/; revision=18358
2005-10-08 19:49:47 +00:00
Gé van Geldorp
08702b9203 Sync to Wine-20050930:
Stefan Leichter <Stefan.Leichter@camLine.com>
- Added version resource to urlmon.dll.
Alexandre Julliard <julliard@winehq.org>
- Fixed a compiler warning.
- We are no longer generating .dbg.c files.
Jacek Caban <jack@itma.pwr.wroc.pl>
- Added IHttpNegotiate2 interface.
- Update BINDSTRING and IInternetSession.
- Added MIME type checking to FileProtocol::Start.
- Rewrote FindMimeFromData to pass tests.
- Encode URL in file protocol.
- Added ReleaseBindInfo implementation.
- Added RegisterFormatEnumerator and RevokeFormatEnumerator
  implementation.
- Added PARSE_SECURITY_DOMAIN action implementation.
- Added CreateAsyncBindCtxEx implementation.
- Added PARSE_SECURITY_URL action implementation.
- Added CoInternetGetSession implementation.
- Register zones.
- Added PARSE_PATH_FROM_URL action implementation.
- Added http and ftp protocol stub implementation.
- Register ZoneMap.
- Move protocol's CLSIDs to urlmon.idl.
- Added urlmon.inf as dependency of rsrc.res.
- Added GetZoneActionPolicy implementation.
- Added CoInternetParseUrl implementation.
- Added MapUrlToZone implementation.
- Added file protocol implementation.
- Added IInternetSecurityManager::[SG]etSecuritySite implementation.
- Forward IInternetSecurityManager calls to custom manager.
- Added CreateFormatEnumerator implementation.

svn path=/trunk/; revision=18357
2005-10-08 19:43:11 +00:00
Gé van Geldorp
d2f8256c62 Sync to Wine-20050930:
Francois Gouget <fgouget@free.fr>
- Fix .spec declarations for functinos with 64bit arguments (reported by
  winapi_check).
Stefan Leichter <Stefan.Leichter@camLine.com>
- Added version resource to shlwapi.dll.
Alexandre Julliard <julliard@winehq.org>
- Remove the 'L' suffix on a number of constants to avoid comparison
  errors on 64-bit platforms.
- Take into account -noname functions when checking for duplicate export
  names. Fixed a couple of issues found by the stricter check.
- Specify 64-bit integers as double instead of long long in spec files
  so that we get the correct number of arguments.
- We are no longer generating .dbg.c files.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Fix the usage of COLOR_xxx constants in the place of the window's
  class hbrBackground.
Alexander N. Sørnes <alex@thehandofagony.com>
- Added Norwegian translations.
Marcus Meissner <marcus@jet.franken.de>
- The last argument to MultiByteToWideChar is wide character count and
  not the buffer size in bytes. Fixed all places where it was wrong.

svn path=/trunk/; revision=18356
2005-10-08 19:30:16 +00:00
Martin Fuchs
644b190f61 basic implementation of zoomin functionality
svn path=/trunk/; revision=18355
2005-10-08 19:29:20 +00:00
Gé van Geldorp
aeb7ba332c Vendor import of shfolder
svn path=/trunk/; revision=18354
2005-10-08 19:24:54 +00:00
Gé van Geldorp
bb54f9a8ad Remove old shfolder in preparation for vendor import
svn path=/trunk/; revision=18353
2005-10-08 19:20:41 +00:00
Gé van Geldorp
b181f1cd75 Sync to Wine-20050930:
Alexandre Julliard <julliard@winehq.org>
- Take into account -noname functions when checking for duplicate export
  names. Fixed a couple of issues found by the stricter check.
- We are no longer generating .dbg.c files.
Milko Krachounov <milko@3mhz.net>
- Bulgarian resources for mpr, msi, user, commdlg, oleaut32, shdocvw,
  shell32, comctl32, msrle32, mshtml, winspool, wineps, serialui,
  setupapi, wininet, regedit, uninstaller, notepad, winecfg and
  winhelp.
Alexander N. Sørnes <alex@thehandofagony.com>
- Added Norwegian translations.
Jacek Caban <jack@itma.pwr.wroc.pl>
- Make IPersist* interfaces heap based.
- Added IWebBrowser2 stub implementation.
- Make IProvideClassInfo2 interface heap based.
- Make IConnectionPointContainer interface heap based.
- Make WebBrowser heap based object.
- Improve stubs.
- Make IQuickActivate interface heap based.
- Added SetClientSite implementation.
- Make IOleControl and IOleInPlaceObject interface heap based.
Kimmo Myllyvirta <kimmo.myllyvirta@gmail.com>
- Added Finnish resources.

svn path=/trunk/; revision=18351
2005-10-08 19:07:39 +00:00
Brandon Turner
a5ea3f54c1 Bring it up to date.
svn path=/trunk/; revision=18350
2005-10-08 18:08:17 +00:00
Brandon Turner
6eb6d65bcc DisplayBuffer is only used when DBG=1
svn path=/trunk/; revision=18349
2005-10-08 18:07:45 +00:00
Gé van Geldorp
cfda712e3a Sync to Wine-20050930:
Michael Jung <mjung@iss.tu-darmstadt.de>
- Don't clone pidlLast in SHBindToParent.
- Pass correct pointer to SHFree in case of failure in
  UNIXFS_path_to_pidl.
- Return E_FAIL if we can't get the unix path in
  IPersistFolder3::InitializeEx.
- Return E_NOAGGREGATION if non-NULL pUnkOuter is given to the
  constructor.
Alexandre Julliard <julliard@winehq.org>
- We are no longer generating .spec.c files.
- Generate 16-bit spec files as assembly code too.
- Use a more portable scheme for storing the name of a critical
  section.
- Removed unused debug channels.
- Specify 64-bit integers as double instead of long long in spec files
  so that we get the correct number of arguments.
- We are no longer generating .dbg.c files.
Milko Krachounov <milko@3mhz.net>
- Bulgarian resources for mpr, msi, user, commdlg, oleaut32, shdocvw,
  shell32, comctl32, msrle32, mshtml, winspool, wineps, serialui,
  setupapi, wininet, regedit, uninstaller, notepad, winecfg and
  winhelp.
Kevin Koltzau <kevin@plop.org>
- Fix warnings in 64bit.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Stop using a not initialized variable szTemp in
  _dbg_ILSimpleGetText, make _dbg_ILSimpleGetText return no value since
  nobody is using it.
- Stop dereferencing a possible NULL in pdump since
  _dbg_ILGetDataPointer can potentially return NULL (for instance for
  root or desktop pidl).
- Make shdebugstr_guid use standard wine_dbg_sprintf instead of the
  handmade solution.
- Translate file name from unix to ANSI encoding in
  UnixFolder_IShellFolder2_GetDisplayNameOf.
- Pass a locally modified version of SHELLEXECUTEINFO to
  IShellExecuteHookW_Execute, this should pass through at least
  sei_tmp.nShow retrieved from an .lnk file (fStartup).
Alexander N. Sørnes <alex@thehandofagony.com>
- Added Norwegian translation of comctl32 and shell32.
Kimmo Myllyvirta <kimmo.myllyvirta@gmail.com>
- Update Finnish resources.

svn path=/trunk/; revision=18348
2005-10-08 17:41:41 +00:00
Gé van Geldorp
b40e1a8202 Sync to Wine-20050930:
Robert Shearman <rob@codeweavers.com>
- Implement most of the details around unmarshalling of an object
  pointer.
- Fix allocation scheme in NdrConformantArrayUnmarshal to allocate if
  *ppMemory is NULL, like complex struct and user type unmarshalling.
- Fix ref-counting rules to match native DCOM Dlls.
Alexandre Julliard <julliard@winehq.org>
- Use a more portable scheme for storing the name of a critical
  section.
- We are no longer generating .dbg.c files.
Mike McCormack <mike@codeweavers.com>
- Fix gcc 4.0 warnings.

svn path=/trunk/; revision=18347
2005-10-08 17:26:40 +00:00
Gé van Geldorp
60725dc6bb Sync to Wine-20050930:
Rein Klazes <wijn@wanadoo.nl>
- When scrolling, first update the new position of the control before
  calling UpdateWindow().
Alexandre Julliard <julliard@winehq.org>
- Fixed gcc 4.0 warnings.
- We are no longer generating .dbg.c files.
Krzysztof Foltman <wdev@foltman.com>
- Reimplementation of EM_LINELENGTH.
- Some attempt at documentation of double-linked list of
  ME_DisplayItem's.
- Optional destinations in stylesheets are now skipped properly (and
  not treated as the "proper" styles as they were before).
- EOF condition in the middle of the stylesheet is no longer putting
  the reader into infinite loop,
- Half-full input buffers don't trigger EOF anymore (although it
  could, in theory, break some apps, I find it unlikely - and the
  change makes Out from Boneville installer display license properly).
Marcus Meissner <marcus@jet.franken.de>
- The last argument to MultiByteToWideChar is wide character count and
  not the buffer size in bytes. Fixed all places where it was wrong.

svn path=/trunk/; revision=18345
2005-10-08 17:17:27 +00:00
Gé van Geldorp
579ad59176 Fix EOLs
svn path=/trunk/; revision=18344
2005-10-08 17:15:42 +00:00
Gé van Geldorp
8c43bd1a89 Sync to Wine-20050930:
Alexandre Julliard <julliard@winehq.org>
- We are no longer generating .dbg.c files.
Alexander N. Sørnes <alex@thehandofagony.com>
- Added Norwegian translations.

svn path=/trunk/; revision=18343
2005-10-08 17:13:07 +00:00
Gé van Geldorp
8e75c86a0c Sync to Wine-20050930:
Francois Gouget <fgouget@free.fr>
- Fix .spec declarations for functinos with 64bit arguments (reported by
  winapi_check).
Robert Shearman <rob@codeweavers.com>
- Add VT_UNKNOWN support for VARIANT marshaling by generalising the
  existing VT_DISPATCH code.
- Fix ref-counting rules to match native DCOM Dlls.
Alex Villacís Lasso <a_villacis@palosanto.com>
- Modify VarDiv() and VarSub() to use the existing VarDecSub() and
  VarDecDiv() for DECIMAL.
- Fix a scaling error in VarR4FromDec() and VarR8FromDec() that
  incorrectly multiplies the high 32 bits of the DECIMAL by 1e64 instead
  of the correct 2^64.
- Make Single|Double->BSTR conversion use the specified locale for the
  decimal point even without the LOCALE_USE_NLS flag. Test supplied.
Alexandre Julliard <julliard@winehq.org>
- We are no longer generating .spec.c files.
- Removed unused debug channels.
- Specify 64-bit integers as double instead of long long in spec files
  so that we get the correct number of arguments.
- Use a more portable scheme for storing the name of a critical
  section.
- Use MAKEINTRESOURCE instead of casts where appropriate.
- We are no longer generating .dbg.c files.
Milko Krachounov <milko@3mhz.net>
- Bulgarian resources for mpr, msi, user, commdlg, oleaut32, shdocvw,
  shell32, comctl32, msrle32, mshtml, winspool, wineps, serialui,
  setupapi, wininet, regedit, uninstaller, notepad, winecfg and
  winhelp.
Mike McCormack <mike@codeweavers.com>
- Fix "empty body in an if/else-statement" warnings.
Walt Ogburn <reuben@ugcs.caltech.edu>
- Get IFontDisp type information from stdole2.tlb, instead of IDispatch
  information from stdole32.tlb.
Marcus Meissner <marcus@jet.franken.de>
- Support more arguments in _invoke().
Marcus Meissner <meissner@suse.de>
- VT_PTR->VT_USERDEFINED chains depend on the TKIND of the userdefined
  type due to our handling of COM interfaces in there.

svn path=/trunk/; revision=18342
2005-10-08 17:10:59 +00:00
Magnus Olsen
7725bc4867 sync to Wine-20050930 dsound does not have hardware acclation it is still hardcode to software mode.
svn path=/trunk/; revision=18341
2005-10-08 17:05:40 +00:00
Magnus Olsen
2a5a60d94e remove to file that was mistake by commit by me thx
Mike Lerwill" <mlist@ml-solutions.co.uk> that did notice it

svn path=/trunk/; revision=18340
2005-10-08 16:45:47 +00:00
Magnus Olsen
d0bc2f7b1a Dsound from win 2004 month 12 or month 11. It is working in windows 2000 in software emulation mode. Tested with quake2 and some other apps. Not tested in ReactOS
svn path=/trunk/; revision=18339
2005-10-08 16:38:07 +00:00
Martin Fuchs
ee7df88f58 update change list
svn path=/trunk/; revision=18338
2005-10-08 16:26:04 +00:00
Hervé Poussineau
3e45266afd Restart the device after its installation
svn path=/trunk/; revision=18337
2005-10-08 15:52:14 +00:00
Hervé Poussineau
875492f6ee Update section names
Add a upper filter serenum for serial ports

svn path=/trunk/; revision=18336
2005-10-08 15:20:13 +00:00
Hervé Poussineau
23b8989476 NtPlugPlayControl: Implement PlugPlayControlResetDevice case
svn path=/trunk/; revision=18335
2005-10-08 14:47:25 +00:00
Magnus Olsen
ac31de9a31 prepare for dsound add MAXWAVEDRIVERS and remove #ifdef _WINESRC_from WAVE_DIRECTSOUND
svn path=/trunk/; revision=18334
2005-10-08 13:57:36 +00:00
Gé van Geldorp
20cd7beedc Sync to Wine-20050930:
Aric Stewart <aric@codeweavers.com>
- Add the GUID for Patch files so that they can be opened as well. Looks
  like the database structure is pretty much the same.
- Implement MsiReinstallFeature.
- Be sure to null terminate the string in MsiGetProductInfoA after the
  W->A conversion using MsiGetProductInfoW if there is space.
- Added stub implementations for MsiEnumPatchesA/W.
Alexandre Julliard <julliard@winehq.org>
- We are no longer generating .dbg.c files.
- Use a more portable scheme for storing the name of a critical
  section.
- Get rid of a couple of non-portable long long constants.
- Fixed memory leak introduced in previous change.
- Avoid non-portable va_list manipulations.
Milko Krachounov <milko@3mhz.net>
- Bulgarian resources for mpr, msi, user, commdlg, oleaut32, shdocvw,
  shell32, comctl32, msrle32, mshtml, winspool, wineps, serialui,
  setupapi, wininet, regedit, uninstaller, notepad, winecfg and
  winhelp.
Jan Van Buggenhout <Chipzz@ULYSSIS.Org>
- implement stubs for MsiSequence[AW].
Dmitry Timoshkov <dmitry@codeweavers.com>
- COLOR_3DFACE is a better choice for the dialog background.
- Fix the usage of COLOR_xxx constants in the place of the window's
  class hbrBackground.
Mike McCormack <mike@codeweavers.com>
- Stub implementation of the RemoveIniValues action.
- Fix various memory leaks.
- Simplify the ProcessComponents action a little.
- Make build_icon_path return the path directly.
- Implement MsiSequenceA/W.
- Simplify the InstallValidate action a little.
- Added memory allocation inline functions (part 2).
- Fix a bug in a previous patch spotted by Dieter Komendera.
- Convert progids to a standard list.
- convert verbs into a standard list
- remove limitation of 100 verbs
- use pointers to verbs rather than indexes
- Rename load_dynamic_property and remove its unused 3rd argument.
- Create a macro to write a value to a subkey.
- Use the new msi_reg_set* macros where possible.
- Create a macro function to write registry values.
- fix a bug introduced by the progid list conversion
- make a fixme a little less alarmist
- Add objects to lists at the right time.
- Fix some simple memory leaks.
- Fix an error introduced when converting dialog lists to standard
  lists.
- Added memory allocation inline functions (part 1).
- Make sure not to free a a pointer that has been modified.
  Check that the text identifier doesn't contain invalid characters.
- Don't quote numbers in a query, as it doesn't parse correctly.
- Read the MaskEdit template from the correct db field.
- Don't create MSI handles unless we have to pass one through the API.
- Convert the list of dialog controls to a standard list.
- Deformat all dialog text strings before using them.
- Load riched20.dll on demand, and unload it after it's used (based on a
  patch by Rob Shearman).
- Make sure to release the package we grabbed on the error path.
- Fix and test MsiViewGetColumnInfo and binary fields.
- Skip dash characters in the PIDMask for a MaskedEdit control.
- Don't refcount tables.
- Fix an uninitialized variable problem.
- Fix memory leaks in the table code.
- Fix memory leaks.
- Remove some unused values in the object header.
- Fill out the stubs for MsiApplyTransformA/W a bit more.
- Fix various query related memory leaks.
- Make sure to set the minimum size before allocating string table
  memory.
- Don't include the terminating nul in the length in
  MsiSummaryInfoGetPropertyW.
- fix MsiSummaryInfoGetProperty to return ERROR_MORE_DATA if the
  buffer is too small (based on a patch by Aric Stewart)
- add a test case to show correct behaviour
- Create a function to determine the table's row size and use it.
  Fix a memory leak in the table code.
- Eliminate fixed length buffers from the MSIFEATURE structure.
- Fix more fixed length buffers.
- Reduce the indent level of a function.
- Allocate memory rather than using fixed length buffers.
- Remove an unnecessary level of indent.
- Keep temporary files in a seperate list.
- Rename ACTION_DoTopLevelINSTALL to MSI_InstallPackage, remove its
  duplicate 4th parameter.
  Split the code to copy a package into a separate function.
- Avoid fixed length buffers for conditions.
- Fix a memory leak.
- Create a function to read a property as an integer.
- Make some fixme messages less alarmist.
- Fix if's that are followed by semicolons.
- Add some more action stubs, remove forward declarations.
- Eliminate yet more fixed length buffers.
- Convert RunningActions array into a list.
- Split command line parsing from MSI_InstallPackage into a separate
  function.
- Move a fixed size buffer to the heap.
- Fix memory leaks in custom actions.
- Make a macro function for unimplemented actions.
  Add some more unimplemented action stubs.
- Make load_string_table return the string table.
- Stub implementation of the IsolateComponents action.
- Convert the list of tables to a standard list.
- Add a stub implementation of the BindImage action.
- Avoid UpdateWindow, it causes trouble with WS_EX_TRANSPARENT.
- Stub implementation of the PatchFiles action.
- Fix another memory leak.
- Add the progress control.
- Stub implementation of the MoveFiles action.
- Avoid using static variables in the InstallFiles action.
- Take advantage of the msi_get_deformatted_field function to simplify
  some code.
- Improve a fixme message a little.
- Skip the first character of a font identifier if it's \ or &.
- Make sure not to access invalid components or features.
- Fix the handling of MsiGetTargetPath args (with test case).
- Fix the handling of MsiDoAction args (with test case).
- Fixes for MsiGetSourcePath parameter handling.
- Load a table's column information separately from the table itself.
- Handle copying of the install package to a temporary file in one place
  only.
- Implement MsiGetShortcutTargetA.
- Fix the stub for MsiConfigureFeature.
Alexander N. Sørnes <alex@thehandofagony.com>
- Added Norwegian translations.
Kimmo Myllyvirta <kimmo.myllyvirta@gmail.com>
- Added Finnish resources.

svn path=/trunk/; revision=18333
2005-10-08 13:45:19 +00:00
Gé van Geldorp
ab288dfff4 Sync to Wine-20050930:
Alexandre Julliard <julliard@winehq.org>
- We are no longer generating .dbg.c files.
Milko Krachounov <milko@3mhz.net>
- Bulgarian resources for mpr, msi, user, commdlg, oleaut32, shdocvw,
  shell32, comctl32, msrle32, mshtml, winspool, wineps, serialui,
  setupapi, wininet, regedit, uninstaller, notepad, winecfg and
  winhelp.
Alexander N. Sørnes <alex@thehandofagony.com>
- Added Norwegian translations.

svn path=/trunk/; revision=18332
2005-10-08 13:34:21 +00:00
Gé van Geldorp
7b0072d23f Sync to Wine-20050930:
Alexandre Julliard <julliard@winehq.org>
- We are no longer generating .spec.c files.
- We are no longer generating .dbg.c files.
Milko Krachounov <milko@3mhz.net>
- Bulgarian resources for mpr, msi, user, commdlg, oleaut32, shdocvw,
  shell32, comctl32, msrle32, mshtml, winspool, wineps, serialui,
  setupapi, wininet, regedit, uninstaller, notepad, winecfg and
  winhelp.
Kevin Koltzau <kevin@plop.org>
- Fix warnings in 64bit.
Mike McCormack <mike@codeweavers.com>
- Fix gcc 4.0 warnings.
Alexander N. Sørnes <alex@thehandofagony.com>
- Added Norwegian translations.
Marcus Meissner <meissner@suse.de>
- PrintDlg16: Copy back the Flags, nFromPage, nToPage and nCopies struct
  members after the print dialog finishes.
Kimmo Myllyvirta <kimmo.myllyvirta@gmail.com>
- Bring Finnish resources up to date.

svn path=/trunk/; revision=18331
2005-10-08 13:28:54 +00:00
Gé van Geldorp
4f410ff156 Use Wine solution for MRU problem, which is slightly different from the
solution which was implemented in ReactOS

svn path=/trunk/; revision=18330
2005-10-08 13:24:27 +00:00
Gé van Geldorp
b09d85cc20 Sync to Wine-20050930:
Michael Jung <mjung@iss.tu-darmstadt.de>
- Fixed inconsistency in LISTVIEW_DUMP macro.
Robert Shearman <rob@codeweavers.com>
- Add support for navigating a toolbar with the arrow keys.
- Fix WrapToolbar in the case of no parent window.
- Use the newly added NMTBINITCUSTOMIZE for sending the
  TBN_INITCUSTOMIZE so that it is safe on 64-bit platforms.
Aric Stewart <aric@codeweavers.com>
- Reading the MRUlist using the W functions we need to divide the size
  by sizeof(WCHAR) to get the count of characters.
Alexandre Julliard <julliard@winehq.org>
- Specify 64-bit integers as double instead of long long in spec files
  so that we get the correct number of arguments.
- We are no longer generating .dbg.c files.
Milko Krachounov <milko@3mhz.net>
- Bulgarian resources for mpr, msi, user, commdlg, oleaut32, shdocvw,
  shell32, comctl32, msrle32, mshtml, winspool, wineps, serialui,
  setupapi, wininet, regedit, uninstaller, notepad, winecfg and
  winhelp.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Call SetDIBits with a proper DC in order to set bitmap bits.
Mike McCormack <mike@codeweavers.com>
- Fix if's that are followed by semicolons.
Alexander N. Sørnes <alex@thehandofagony.com>
- Added Norwegian translation of comctl32 and shell32.
Marcus Meissner <marcus@jet.franken.de>
- The last argument to MultiByteToWideChar is wide character count and
  not the buffer size in bytes. Fixed all places where it was wrong.
Frank Richter <frank.richter@gmail.com>
- Unregister theming subclasses at comctl32 shutdown; should fix
  reported re-registration errors.
Jason Edmeades <us@edmeades.me.uk>
- Fix some off by one calculations in the comboboxex functions, and
  handle an out of range positive index the same as windows + unit test
  case.

svn path=/trunk/; revision=18329
2005-10-08 13:20:03 +00:00
Gregor Anich
3e73bd8b79 Add 'break_on_module_load' option to KDB. When enabled KDB will be entered for each module beeing loaded, and one can set
breakpoints etc.

svn path=/trunk/; revision=18328
2005-10-08 12:47:53 +00:00
Gé van Geldorp
34d7b92b27 Sync to Wine-20050930:
Alexandre Julliard <julliard@winehq.org>
- Fixed a number of pointer to integer conversions that wouldn't work
  right on a 64-bit platform.
- Now that we are requiring bison anyway, make the .tab.c file use the
  same base name as the .y file, so that we can generate correct
  dependencies in all cases.

svn path=/trunk/; revision=18327
2005-10-08 12:43:38 +00:00
Hervé Poussineau
0b7207b338 Fix Hardware IDs and Compatible IDs returned for PCI devices
svn path=/trunk/; revision=18326
2005-10-08 12:24:39 +00:00
Gé van Geldorp
017639fcc2 Sync to Wine-20050930:
Alexandre Julliard <julliard@winehq.org>
- Generate 16-bit spec files as assembly code too.
- Output the resource data in assembly too.
- Factor out a couple of useful helper functions.
- Store RVAs instead of pointers wherever possible in the generated NT
  header and directories.
- Output constant strings in a more appropriate section than .text.
- Make sure that values of absolute symbols fit in 16 bits.
- Implemented import thunks for x86-64.
- Generate stub functions directly in assembly.
- Moved stub function generation to import.c. Added a get_stub_name
  function to ensure naming consistency.
- Now that everything is done in assembly in the spec file, directly
  generate a .s file to bypass gcc inefficiency with large data
  structures.
- Added support for 64-bit format NT header and export/import tables.
- Now that we have to be able to run the assembler from winebuild, added
  an option to generate a .spec.o file in a single step.
  Added --save-temps and --verbose options for easier debugging.
- Added an entry point routine for native drivers.
- Added a bit of framework for future x86_64 support.
- Create an assembly file with all undefined symbols and add it to the
  link command so that the symbols show up in the final undefined list.
  Use that list to create thunks for all exported but undefined symbols,
  to make sure all export RVAs point somewhere inside the module.
- Take into account -noname functions when checking for duplicate export
  names. Fixed a couple of issues found by the stricter check.
- Generate the NT header in assembly instead of using a C structure.
- Don't remove ignored symbols from the undefined list, simply skip them
  when resolving imports.
  Added get_temp_file_name utility function.
- Fixed stack offset of %eax register.
- Output the delayed import table using assembly too.
- Added a common function to declare global symbols, and make them
  hidden on platforms that support it.
- Fixed a number of pointer to integer conversions that wouldn't work
  right on a 64-bit platform.
- Output the import directory using assembly instead of C structures.
- Defined a proper structure for debug channels.
  Also put all the function pointers inside a structure and added
  __wine_dbg_set_functions to change them instead of exporting the
  pointers directly.
- Moved return value handling to the individual relay thunks so that we
  only need one version of wine_call_from_16.
  Patch the wine_call_from_16 address along with the cs value directly
  in the 16-bit code segment to avoid the need for special magic in the
  import thunks.
- Moved the spec file init function and constructor to winecrt0.
- Make the users of wine_call_from_32_regs save %eax so that we don't
  need a special hack in the import thunk.
  Added a get_pc_thunk_eax function to simplify the code a bit.
- Get rid of the debug channels support.

svn path=/trunk/; revision=18325
2005-10-08 12:18:07 +00:00
Magnus Olsen
c787e10fca Fixing dsdesc stuct with right name from wine
I did correct right datatype in the struct
fix minor change in dsound.h

svn path=/trunk/; revision=18324
2005-10-08 11:26:13 +00:00
Magnus Olsen
cd198924db prepare for dsound
svn path=/trunk/; revision=18323
2005-10-08 10:52:43 +00:00
Gé van Geldorp
babb2de970 Sync to Wine-20050930:
Alexandre Julliard <julliard@winehq.org>
- Now that we are requiring bison anyway, make the .tab.c file use the
  same base name as the .y file, so that we can generate correct
  dependencies in all cases.

svn path=/trunk/; revision=18322
2005-10-08 10:28:57 +00:00
Gé van Geldorp
3ccfb20218 Sync to Wine-20050930:
Alexandre Julliard <julliard@winehq.org>
- Avoid some warnings on 64-bit platforms.

svn path=/trunk/; revision=18321
2005-10-08 09:33:47 +00:00
Magnus Olsen
a9fba037ec change from warning to allowwarnings ="true" thx Christoph_vW and blight_
svn path=/trunk/; revision=18319
2005-10-08 00:41:31 +00:00
Magnus Olsen
f66d835b98 Sync aginst a older version of wine, fixed GvG patch for so we do not lose poll_mouse, tested in few apps and games in ros and windows. Next sync is against current version of wine. and it does remove almost whole my patch for wine dinput thx to GvG implemet userhook for mouse and keyboard in reactos.
svn path=/trunk/; revision=18318
2005-10-08 00:21:29 +00:00
Magnus Olsen
c968095964 basic NT4 DirectDraw implemet and it is untested
- NtGdiDdGetBltStatus
- NtGdiDdGetFlipStatus
- NtGdiDdSetOverlayPosition

Write some code for NtGdiDdDestroySurface and NtGdiDdCreateSurface, we got now basic all nt4 api implemet and unstested  for directdraw in the kernel


svn path=/trunk/; revision=18317
2005-10-07 22:50:26 +00:00
Magnus Olsen
4495522a13 Fix hotkeys for En.rc by Harteex, thx Tsk to found this bugs
svn path=/trunk/; revision=18316
2005-10-07 22:20:50 +00:00
Magnus Olsen
d36e1abc80 Fix release build uninitialized
Implemet NtGdiDdAddAttachedSurface untested 

svn path=/trunk/; revision=18315
2005-10-07 21:48:12 +00:00
Magnus Olsen
2b24d9c754 make ddraw compile again
svn path=/trunk/; revision=18314
2005-10-07 21:30:33 +00:00
Magnus Olsen
f84e3fa9f1 Remove more stub from ntdraw and implement it, (untested) it is alot of stub that have been implemet. fill DD_CALLBACKS right in NtGdiDdCreateDirectDrawObject, and fix party the internal struct.
implemet follow but not tested
- NtGdiDdCreateSurface, NtGdiDdDestroySurface 
  some part it need fill the info right before it call on DdCreateSurface
-  NtGdiDdFlip done
-  NtGdiDdGetScanLine done
-  NtGdiDdSetColorKey done
-  NtGdiDdUnlock done
-  NtGdiDdUpdateOverlay done
-  NtGdiDdSetExclusiveMode done (need setup the callback)
-  NtGdiDdLock done

svn path=/trunk/; revision=18313
2005-10-07 20:27:52 +00:00
Magnus Olsen
a2e6df2fb3 Updating ddrawint.h header with some new struct and right info.
svn path=/trunk/; revision=18312
2005-10-07 20:15:10 +00:00
Ged Murphy
0b8dac7e24 adding traceroute to build.
svn path=/trunk/; revision=18311
2005-10-07 19:16:14 +00:00
Hervé Poussineau
c2199941a3 Allocate memory even for NULL strings, as we must not return a NULL pointer
svn path=/trunk/; revision=18310
2005-10-07 15:47:17 +00:00
Hervé Poussineau
10e6548a78 - Fill Level field in DEVICE_NODE structure
- Full support of ParentIdPrefix value in registry
- Implement IRP_MJ_PNP/IRP_MN_QUERY_CAPABILITIES for PDOs enumerated by Root bus
- Add a temporary hack in pci driver as long as Plug and Play is not ready

=> This would allow to have two identical devices plugged on different buses (for example, two USB mices plugged on different hubs)

svn path=/trunk/; revision=18309
2005-10-07 13:09:23 +00:00
Thomas Bluemel
b0418e9481 partly implemented AuthzInitializeResourceManager and AuthzFreeResourceManager (no support for auditing so far)
svn path=/trunk/; revision=18308
2005-10-07 02:28:42 +00:00
Nathan Woods
4294896fbd Regedit: Fixed a bug whereby a registry path accessed by "Goto" might not get properly selected
svn path=/trunk/; revision=18307
2005-10-07 00:35:10 +00:00
Nathan Woods
37a51aa3f6 Calc: Now using the proper system brush to paint the number pane
svn path=/trunk/; revision=18306
2005-10-07 00:32:00 +00:00
Thomas Bluemel
69d5c43dbd fixed uninitialized variable warning
svn path=/trunk/; revision=18305
2005-10-06 23:04:00 +00:00
Hervé Poussineau
9a0d62abb9 Various changes to device installation functions:
- AddDriverToList:
  Define a unique return point for the function
- GetVersionInformationFromInfFile:
  Return driver date (still doesn't return driver version)
- SetupDiCallClassInstaller:
  Change device and class co-installers messages (they were swapped)
- SetupDiInstallDevice:
  Create driver key in HKLM\System\CurrentControlSet\Control\Class and write values to it
  Add missing informations to enum key (HKLM\System\CurrentControlSet\Enum)
  Define a unique return point for the function

svn path=/trunk/; revision=18304
2005-10-06 22:47:13 +00:00
Hervé Poussineau
7d441d9406 Implement SetupDiGetINFClassW
svn path=/trunk/; revision=18303
2005-10-06 22:36:14 +00:00
Thomas Bluemel
5bd4220e33 fixed warnings when compiled with -Wmissing-declarations
svn path=/trunk/; revision=18302
2005-10-06 21:39:18 +00:00
Magnus Olsen
03e3c42104 NtGdiDdGetAvailDriverMemory
- implement the code but the pointer is not set to DdGetAvailDriverMemory and it is undtested. 

svn path=/trunk/; revision=18301
2005-10-06 21:18:59 +00:00
Gregor Anich
ff9641a734 Fix KiGetFpuState() - Thanks to Hartmut for finding this bug and testing the patch.
svn path=/trunk/; revision=18300
2005-10-06 20:34:20 +00:00
Andrew Munger
d004682a00 winver.exe by Christoph.AT.ApiViewer.de
svn path=/trunk/; revision=18299
2005-10-06 20:07:24 +00:00
Thomas Bluemel
23acca9ef0 fixed warnings when compiled with -Wmissing-declarations
svn path=/trunk/; revision=18298
2005-10-06 19:24:15 +00:00
Thomas Bluemel
0c48b5f905 fixed warnings when compiled with -Wmissing-declarations
svn path=/trunk/; revision=18297
2005-10-06 18:51:52 +00:00
Gregor Anich
611d7cf177 Patch by Christoph v.W.:
- speed-up adding items to ListView
- fix resource leak (GetDC without ReleaseDC)
(Bug #870)

svn path=/trunk/; revision=18296
2005-10-06 15:02:50 +00:00
Gregor Anich
23dc71c784 ModifyMenuA: Zero initialize MENUITEMINFOA (like ModifyMenuW does)
Fixes bug 818 according to Christoph v.W.
Thanks to j_anderw for his patch proposal.

svn path=/trunk/; revision=18295
2005-10-06 14:31:18 +00:00
Gunnar Dalsnes
93a2fb4cd2 doesnt belong here either
svn path=/trunk/; revision=18294
2005-10-06 13:07:53 +00:00
Gunnar Dalsnes
e70589544c doesnt belong here
svn path=/trunk/; revision=18293
2005-10-06 13:07:00 +00:00
Gregor Anich
8f4754e6fa Huh, what? Oops! Just some stuff which noone cares about...
svn path=/trunk/; revision=18292
2005-10-06 12:36:53 +00:00
Hervé Poussineau
94f68fddfc Add newdev.dll to bootcd
Fix formatting, by replacing tabulations by spaces

svn path=/trunk/; revision=18291
2005-10-06 11:59:15 +00:00
Hervé Poussineau
ceff0e9f0e Do only one exit point in SetupDiInstallDevice
svn path=/trunk/; revision=18290
2005-10-06 09:55:10 +00:00
Nathan Woods
abc9898008 Regedit: Now saves last key visited, like Windows regedit
svn path=/trunk/; revision=18289
2005-10-06 03:23:09 +00:00
Nathan Woods
2c2cc6d808 Calc: TCHAR-izing, formatting and const-correctness
svn path=/trunk/; revision=18288
2005-10-05 23:59:13 +00:00
Nathan Woods
d546f71ac4 Notepad: Goto an offscreen line will now properly scroll the edit control
svn path=/trunk/; revision=18287
2005-10-05 23:52:43 +00:00
Gregor Anich
2446ae0fd7 Change indentation - make it a bit more readable and same style everywhere.
KiCheckFPU: Change calculation of DummyArea/FxSaveArea (avoid conditional)
KeSaveFloatingPointState: Allocate NonPagedPool for the saved state because function can be called only at IRQL >= DISPATCH

svn path=/trunk/; revision=18286
2005-10-05 23:30:39 +00:00
Martin Fuchs
7d6d579a40 strip extended options from the front of the command line
svn path=/trunk/; revision=18285
2005-10-05 23:24:25 +00:00
Martin Fuchs
499bb6d2d7 implemented command line parser for Explorer
svn path=/trunk/; revision=18284
2005-10-05 23:05:13 +00:00
Emanuele Aliberti
361239a411 XML chunks must contain a single subtree.
svn path=/trunk/; revision=18283
2005-10-05 20:36:23 +00:00
Martin Fuchs
9349545f98 comment, const corrections
svn path=/trunk/; revision=18282
2005-10-05 19:52:39 +00:00
Martin Fuchs
e86e062d9a leave TrackStartmenu() function when executing any start menu command
svn path=/trunk/; revision=18281
2005-10-05 19:51:08 +00:00
Magnus Olsen
c82718f9a2 NtGdiDdCreateDirectDrawObject
- add missing error checking for GDIOBJ_AllocObj 
- add missing error checking for GDIOBJ_LockObj 

svn path=/trunk/; revision=18280
2005-10-05 19:50:48 +00:00
Martin Fuchs
b6c5bedb31 use GET_X_LPARAM macro in WM_MOUSEMOVE handlers
svn path=/trunk/; revision=18279
2005-10-05 19:49:37 +00:00
Martin Fuchs
f382f81ffe one-click activation of "Start" button
svn path=/trunk/; revision=18278
2005-10-05 19:48:29 +00:00
Martin Fuchs
dc8d217b1f update TODO list
svn path=/trunk/; revision=18277
2005-10-05 19:47:28 +00:00
Magnus Olsen
24269c114d activate PDD_DIRECTDRAW for GDIOBJ_LockObj so it does not fail if it is GDI_OBJECT_TYPE_DIRECTDRAW request. Thx w3seek for his guiding how todo it.
svn path=/trunk/; revision=18276
2005-10-05 19:29:08 +00:00
Hartmut Birr
09f3f08c6d Implemented SRB_FUNCTION_IO_CONTROL/IOCTL_SCSI_MINIPORT_IDENTIFY.
svn path=/trunk/; revision=18275
2005-10-05 18:36:10 +00:00
Hartmut Birr
baac20f12f Implemented IOCTL_SCSI_MINIPORT.
svn path=/trunk/; revision=18274
2005-10-05 18:24:24 +00:00
Martin Fuchs
006fe6a358 create some start menu entries for notepad, regedit and winefile
svn path=/trunk/; revision=18273
2005-10-05 16:47:19 +00:00
Martin Fuchs
ed14f79996 remove duplicate RegQueryStringValue() function
svn path=/trunk/; revision=18272
2005-10-05 16:11:21 +00:00
Martin Fuchs
5f5bf68c82 partial implementation of ShowWindowAsync() using the synchronous NtUserShowWindow() call to activate the desktop switcher
svn path=/trunk/; revision=18271
2005-10-05 14:47:07 +00:00
Nathan Woods
f8b4f3f219 Regedit: Now restores last position on startup
Still need to save position on exit


svn path=/trunk/; revision=18270
2005-10-05 13:25:14 +00:00
Martin Fuchs
3df2610b06 fix UNICODE control panel calls to handle double clicks on the task bar clock
svn path=/trunk/; revision=18269
2005-10-05 13:08:59 +00:00
Nathan Woods
67bc4a8961 Rbuild: Enhanced MSVC support
1.  Enhanced the MSVC backends so that it pulls in information from the main project
2.  Fixed bugs in Path::RelativeFromDirectory() in tools\rbuild\XML.cpp

With these changes, many VC projects generated by rbuild now compile without any tweaking


svn path=/trunk/; revision=18268
2005-10-05 00:27:25 +00:00
Brandon Turner
4dbeaea6e7 Better way to fix 868. Check the last error instead of checking before hand. Thanks to billgMS for point this out.
svn path=/trunk/; revision=18267
2005-10-04 15:32:04 +00:00
Brandon Turner
4d9e3c92a6 Check to see if a folder or file is already there when makign a folder. Set correct errorlevel when fail to create folder. fixes bug 868.
svn path=/trunk/; revision=18266
2005-10-04 14:56:38 +00:00
Martin Fuchs
55265598c2 activate execution from command bar
svn path=/trunk/; revision=18265
2005-10-04 14:31:11 +00:00
Martin Fuchs
b43dd57063 "execute" menu entry
svn path=/trunk/; revision=18264
2005-10-04 14:06:33 +00:00
Martin Fuchs
ac5f8b6843 set EOL-style
svn path=/trunk/; revision=18263
2005-10-04 13:47:22 +00:00
Brandon Turner
1280e7e797 Add errorlevel for set /A
svn path=/trunk/; revision=18262
2005-10-04 13:45:19 +00:00
Martin Fuchs
a9e32dc111 remove remaining winefile resources
svn path=/trunk/; revision=18261
2005-10-04 13:43:15 +00:00
Nathan Woods
ec1530d488 Notepad: Fixed a bug when opening files with no characters other than byte order marks
svn path=/trunk/; revision=18260
2005-10-04 12:57:04 +00:00
Nathan Woods
ec396aa21f Regedit: Stopgap fix to build error just introduced; need to go through Regedit and TCHAR-ize it
svn path=/trunk/; revision=18259
2005-10-04 12:41:08 +00:00
Martin Fuchs
5638dcb792 complete german resources for explorer
svn path=/trunk/; revision=18258
2005-10-04 12:02:34 +00:00
Nathan Woods
c80b556537 Regedit: Fixed stupid compilation errors
svn path=/trunk/; revision=18257
2005-10-04 02:46:14 +00:00
Nathan Woods
2639ea0346 Regedit: Fixed exporting subtrees with Unicode
Core exporting code still ANSI; need to fix this


svn path=/trunk/; revision=18256
2005-10-04 02:40:01 +00:00
Thomas Bluemel
e908a4d408 don't leak memory in RegDeleteTree() when NtEnumerateKey() returns an unexpected error code (such as when there's insufficient system resources to perform the query)
svn path=/trunk/; revision=18255
2005-10-03 23:01:10 +00:00
Thomas Bluemel
f710105b8b fixed a memory leak in RegDeleteTree() that could be caused when two threads attempt to delete the same tree simultaneously
svn path=/trunk/; revision=18254
2005-10-03 22:46:49 +00:00
Emanuele Aliberti
64e0a3529d A note about this piece of code.
svn path=/trunk/; revision=18253
2005-10-03 21:40:58 +00:00
Thomas Bluemel
3fc6884ed5 Don't fail when there are no more subkeys to delete in RegDeleteTree()
svn path=/trunk/; revision=18252
2005-10-03 21:37:05 +00:00
Emanuele Aliberti
7d51afc9cf A raw attempt to fix the startup code for native processes.
(note: it seems NTOSKRNL passes nothing to smss.exe)

svn path=/trunk/; revision=18251
2005-10-03 21:35:12 +00:00
Brandon Turner
ce7daa3fef dont use the whole commandline as a fall back for execution searching because it could contain spaces. also, wrap commandline params in quotes so if there is a space in the path it still finds it. bug found by billgMS.
svn path=/trunk/; revision=18250
2005-10-03 20:28:29 +00:00
Hartmut Birr
7402ea80eb Return an error instead of STATUS_SUCCESS for functions which are not implemented or supported (in ScsiPortDeviceControl).
svn path=/trunk/; revision=18249
2005-10-03 18:49:44 +00:00
Ged Murphy
0b7743d63e - Don't call winsock initialiser for each seperate server thread
- Add more code for tcpsvcs to be controled via services. Still #if 0'd out until fully implemented.
- Make server more informative with what is happening. (this info will be output to a log file once implemented as a service.

svn path=/trunk/; revision=18248
2005-10-03 18:32:30 +00:00
Thomas Bluemel
b9430af2fd don't use invalid options in the DSOP_INIT_INFO structure of the computer selection dialog
svn path=/trunk/; revision=18247
2005-10-03 14:42:34 +00:00
Thomas Bluemel
9e960ba331 build regedit as unicode by default
svn path=/trunk/; revision=18246
2005-10-03 13:44:18 +00:00
Hervé Poussineau
bb46913ed6 Remove debug output I've incidentally added...
svn path=/trunk/; revision=18245
2005-10-03 12:57:48 +00:00
Hervé Poussineau
4b42aa47f1 Implement IRP_MJ_PNP / IRP_MN_QUERY_TEXT / DeviceTextDescription for ACPI devices
svn path=/trunk/; revision=18244
2005-10-03 12:53:31 +00:00
Nathan Woods
32cf34124f Regedit: Added a "Goto key" right-click option.
This feature allows the user to right click on certain keys that "link" to other keys, Regedit can provide additional "Go to ...." menu items.  For example, if you click on a ProgID under HKCR, a "Go to 'HKCR\CLSID\{....}' menu item will appear.


svn path=/trunk/; revision=18243
2005-10-03 12:39:50 +00:00
Eric Kohl
ccfa60dea9 Revert sublang changes.
svn path=/trunk/; revision=18242
2005-10-03 12:12:19 +00:00
Hervé Poussineau
aa1f470e40 Reference the PDO before returning it
svn path=/trunk/; revision=18241
2005-10-03 10:13:28 +00:00
Eric Kohl
5a455c2aa3 - Add german resources.
- Use SUBLANG_DEFAULT by default.
- Fix control panel description.

svn path=/trunk/; revision=18240
2005-10-03 09:14:57 +00:00
Hervé Poussineau
7a6054e30a Add "Add hardware" control panel applet.
Not added to the build, as InstallNewDevice in newdev.dll is not implemented

svn path=/trunk/; revision=18239
2005-10-03 07:48:59 +00:00
Hervé Poussineau
88f8bc8a25 Add SetupPromptReboot stub
In SetupInstallServicesFromInfSectionExW, LoadOrderGroup value is optional. Don't break if it is missing

svn path=/trunk/; revision=18238
2005-10-03 07:26:39 +00:00
Hervé Poussineau
cd5d63f1b8 Implement CM_Get_DevNode_Registry_Property_ExA
svn path=/trunk/; revision=18237
2005-10-03 07:22:19 +00:00
Hervé Poussineau
ecc00fcc3f Replace STDCALL by NTAPI
Little changes in vfat.h to be able to compile with MSVC

svn path=/trunk/; revision=18236
2005-10-03 07:15:12 +00:00
Hervé Poussineau
5f72d81983 Map status codes to CONFIGRET error codes
svn path=/trunk/; revision=18235
2005-10-03 07:06:42 +00:00
Brandon Turner
b45fcd6e73 fix detection of missing target. thanks to thomas.
svn path=/trunk/; revision=18234
2005-10-03 00:51:24 +00:00
Brandon Turner
f04df80d72 allocate memory for the string. thanks to thomas for finding it.
svn path=/trunk/; revision=18233
2005-10-03 00:26:39 +00:00
Brandon Turner
b736dee2b9 Implemented /S and /Q in remove directory.
Added a check for files in the folder. This fixes bug 742.
Updated res file, translators please update sometime soon.

svn path=/trunk/; revision=18232
2005-10-02 20:17:59 +00:00
Emanuele Aliberti
bc0e74489f add comp.exe (optional).
svn path=/trunk/; revision=18231
2005-10-02 20:03:20 +00:00
Emanuele Aliberti
7411ee2fea More fixes to compile.
svn path=/trunk/; revision=18230
2005-10-02 19:39:30 +00:00
Emanuele Aliberti
fdf33e349f Modify to conform to the new CSR.
svn path=/trunk/; revision=18229
2005-10-02 19:31:30 +00:00
Martin Fuchs
006c9f00e8 a bit of Makefile and string constants cleanup
svn path=/trunk/; revision=18228
2005-10-02 18:31:50 +00:00
Martin Fuchs
723b42a105 work around GCC's wide string constant bug to fix tree list image loading
svn path=/trunk/; revision=18227
2005-10-02 18:28:36 +00:00
Emanuele Aliberti
0732c808f0 Fix compilation.
svn path=/trunk/; revision=18226
2005-10-02 18:00:04 +00:00
Emanuele Aliberti
0862f96309 Support all optional modules and possibly a 'windows' one where every piece of code related to the Win32 subsystem will be stored (eventually to be voted on, I suppose).
The idea of moving the Win32 emulation out of the main ros tree popped up days ago in a chat session with Filip (cleaning it would help those who want an embeddable ros or a native only ros).

svn path=/trunk/; revision=18225
2005-10-02 17:54:56 +00:00
Emanuele Aliberti
62955cc11a csr.exe uses nt startup library.
svn path=/trunk/; revision=18224
2005-10-02 17:41:30 +00:00
Emanuele Aliberti
bdd38fc6a9 Rename the XML chunk too.
svn path=/trunk/; revision=18223
2005-10-02 17:39:54 +00:00
Emanuele Aliberti
21313e9c16 Give ntrt0lib its public name.
svn path=/trunk/; revision=18222
2005-10-02 17:38:28 +00:00
Alex Ionescu
03cc0f01b6 - Implement Native Entrypoint for our NT.LIB
svn path=/trunk/; revision=18221
2005-10-02 16:58:35 +00:00
Emanuele Aliberti
abd8566faa csr.exe is built using ntrt0lib.
svn path=/trunk/; revision=18220
2005-10-02 16:23:26 +00:00
Emanuele Aliberti
bf66746b2d A do-nothing crt0 for native NT processes.
(see note by A.Ionescu in reactos/subsys/crt/main.c)

svn path=/trunk/; revision=18219
2005-10-02 16:09:30 +00:00
Martin Fuchs
a9fdaba902 Doxygen scripts
svn path=/trunk/; revision=18218
2005-10-02 15:59:15 +00:00
Emanuele Aliberti
3ddfd74461 Add stub for RtlSetProcessIsCritical.
svn path=/trunk/; revision=18217
2005-10-02 15:50:30 +00:00
Eric Kohl
855c2bb882 Named pipes must be opened for asynchronous access.
This fixes bug #826.

svn path=/trunk/; revision=18216
2005-10-02 14:10:05 +00:00
Thomas Bluemel
8732a698df sizeof(HelloString) does already contain the terminating NULL. Thanks to Hartmut.
svn path=/trunk/; revision=18215
2005-10-02 13:54:32 +00:00
Thomas Bluemel
d5169058c9 fixed difference in signedness warnings
svn path=/trunk/; revision=18214
2005-10-02 13:47:48 +00:00
Thomas Bluemel
0e10526c80 minor changes (mostly formatting)
svn path=/trunk/; revision=18213
2005-10-02 12:46:49 +00:00
Thomas Bluemel
4ca189ac66 make the tree compilable again...
svn path=/trunk/; revision=18212
2005-10-02 12:27:54 +00:00
Martin Fuchs
90637152d6 fix directory traversing in explorer SDI windows
svn path=/trunk/; revision=18211
2005-10-02 12:25:42 +00:00
Martin Fuchs
6a834bb1fb fix enabling of split border
svn path=/trunk/; revision=18210
2005-10-02 12:24:10 +00:00
Martin Fuchs
63935e005c new option to open explorer subfolders in separate windows
svn path=/trunk/; revision=18209
2005-10-02 11:40:41 +00:00
Hervé Poussineau
5ffe4c4880 Add stubs for InstallNewDevice, InstallSelectedDriver, UpdateDriverForPlugAndPlayDevicesA/W
svn path=/trunk/; revision=18208
2005-10-02 10:33:25 +00:00
Eric Kohl
886778d0b2 Implement CM_Request_Eject_PC[_Ex].
svn path=/trunk/; revision=18207
2005-10-02 10:07:25 +00:00
Hartmut Birr
3a68545201 Disable the serial debug output if the com port doesn't exist.
svn path=/trunk/; revision=18206
2005-10-02 09:42:12 +00:00
Alex Ionescu
5df400b823 - Fix gcc compilation issues
- Fix most ld linking issues.

svn path=/trunk/; revision=18205
2005-10-02 08:40:49 +00:00
Alex Ionescu
29b8aa245a - Don't undef DBG_CONTINUE.
svn path=/trunk/; revision=18204
2005-10-02 08:33:38 +00:00
Alex Ionescu
d753940a60 - Small csr server public header cleanup.
svn path=/trunk/; revision=18203
2005-10-02 08:32:37 +00:00
Alex Ionescu
794f347587 - Small semaphore code simplification/optimization.
svn path=/trunk/; revision=18202
2005-10-02 08:31:45 +00:00
Alex Ionescu
66e502bd5a - Add RtlSetProcessCritical
- Some fixes.

svn path=/trunk/; revision=18201
2005-10-02 08:22:49 +00:00
Aleksey Bragin
00703c571b Add vcprojmaker.cpp to the msvc project
svn path=/trunk/; revision=18200
2005-10-02 08:08:04 +00:00
Emanuele Aliberti
a4808fca79 - add copyright notice
- fix unmatched bracket

svn path=/trunk/; revision=18199
2005-10-02 07:42:52 +00:00
Nathan Woods
46a48736ad Regedit: Implemented exporting specific branches
svn path=/trunk/; revision=18198
2005-10-02 01:21:43 +00:00
Thomas Bluemel
8ec93653e6 fixed some memory leaks and build it as unicode by default
svn path=/trunk/; revision=18197
2005-10-01 19:01:07 +00:00
Ged Murphy
16e0c94db4 fix unused variable warning.
free pointer before returning.

svn path=/trunk/; revision=18196
2005-10-01 18:41:02 +00:00
Martin Fuchs
b1230b8ee5 add code comments
svn path=/trunk/; revision=18195
2005-10-01 18:14:17 +00:00
Martin Fuchs
6a3529155a MDI/SDI option dialog:
- pictures for illustration
- remove resizable flag

svn path=/trunk/; revision=18194
2005-10-01 18:13:33 +00:00
Ged Murphy
d67541c53b Start to alter print output so it correctly simulates the MS 'route print'
svn path=/trunk/; revision=18193
2005-10-01 15:47:40 +00:00
Thomas Bluemel
6526069195 implemented the "Go to process" feature
svn path=/trunk/; revision=18192
2005-10-01 15:30:25 +00:00
Nathan Woods
38ecd48776 Regedit: Moved hEditMenu declaration to the top of the function
svn path=/trunk/; revision=18191
2005-10-01 15:11:31 +00:00
Thomas Bluemel
c1388efea5 use the NT5+ behavior of displaying the system cache size. fixes bug 856
svn path=/trunk/; revision=18190
2005-10-01 14:38:10 +00:00
Magnus Olsen
e89ca27d52 commit new startmenu picture that can be resize, see http://www.reactos.org/bugzilla/show_bug.cgi?id=676
svn path=/trunk/; revision=18189
2005-10-01 13:57:38 +00:00
Thomas Bluemel
626370f6aa check for and write new lines as ascii only in copy /A, regardless of whether cmd was compiled as unicode or ansi
svn path=/trunk/; revision=18188
2005-10-01 12:50:16 +00:00
Thomas Bluemel
0f55e53480 fixed possible buffer overflow bug: pass correct buffer length (in characters, not bytes) to FileGetString()
svn path=/trunk/; revision=18187
2005-10-01 12:21:55 +00:00
Martin Fuchs
580e685078 sync with Wine:
Alexandre Julliard, 2005-09-07: Replace a few more direct lpVtbl accesses by the proper macros. (patch applied only partly - the remaining COBJ macros are nonstandard, and don't exist in MSDN)
Alexandre Julliard, 2005-09-09:	Use Get/SetWindowLongPtr instead of Get/SetWindowLong where appropriate.

svn path=/trunk/; revision=18186
2005-10-01 10:10:39 +00:00
Alex Ionescu
35eb408157 - Remove some duplicated/useless code and use internal forward exports instead.
- Set kernel apc pending flag when needed in KeReleaseMutant
- Optimize check for kernel apc delivery in KeReleaseMutant
- Raise right exception in KeReleaseMutant
- Simplify KeInitializeMutant and remove some duplicated operations.
- Remove duplicated listhead initialization in KeInitiializeMutex
- Use correct increment in KeReleaseMutex

svn path=/trunk/; revision=18185
2005-10-01 08:58:49 +00:00
Martin Fuchs
f57183be46 sync with Wine:
- Fix warnings in 64bit. (Kevin Koltzau <kevin@plop.org>)
- simplify 'sei' structure initialization in ShellExecuteA/W

svn path=/trunk/; revision=18184
2005-10-01 08:20:12 +00:00
Alex Ionescu
7cd4df132d - KeRundownThread:
- Optimize to reduce contention
 - Add bugcheck instead of ASSERT
 - Add debug message to simplify finding errors like Bug 821 (type/size show 0xCC, which means the mutant has been already freed).

svn path=/trunk/; revision=18183
2005-10-01 07:37:13 +00:00
Nathan Woods
403e26da1b Notepad:
1.  Fixed bug in Goto line command
2.  Wrap long lines setting is persisted in the registry
3.  Fixed length limit bug when wrap long lines is toggled


svn path=/trunk/; revision=18182
2005-10-01 00:36:17 +00:00
Thomas Bluemel
0a52c57489 initialize COM on demand only
svn path=/trunk/; revision=18181
2005-09-30 23:32:24 +00:00
Emanuele Aliberti
22f369c6b1 Fix build.
svn path=/trunk/; revision=18180
2005-09-30 22:17:58 +00:00
Thomas Bluemel
133cd71ba8 don't remove mutants twice from the thread's mutant list in KeRundownThread(). This might fix bug 821
svn path=/trunk/; revision=18179
2005-09-30 22:00:30 +00:00
Thomas Bluemel
1e9a5c2f05 set eol-style to native
svn path=/trunk/; revision=18178
2005-09-30 21:32:01 +00:00
Thomas Bluemel
80c03b3f9b - added stubs for authz.dll
- added an authz.h to w32api

svn path=/trunk/; revision=18177
2005-09-30 21:28:29 +00:00
Thomas Bluemel
b05492e038 set eol-style to native
svn path=/trunk/; revision=18176
2005-09-30 21:19:12 +00:00
Steven Edwards
4b65a315a5 simple device manager program by Hervé Poussineau (hpoussin@reactos.org)
* GUI: Michael Fritsch 

svn path=/trunk/; revision=18175
2005-09-30 20:26:16 +00:00
Martin Fuchs
c9d6d045e6 patch applied from Christoph at ApiViewer.de: fix font handle leak
svn path=/trunk/; revision=18174
2005-09-30 19:42:45 +00:00
Thomas Bluemel
2357be7820 - improved control resizing handling
- don't fail when querying the account name length

svn path=/trunk/; revision=18173
2005-09-30 18:54:48 +00:00
Martin Fuchs
39d1d2d86c Fix Bugzilla Bug 676: dynamic explorer start menu sidebar size
svn path=/trunk/; revision=18172
2005-09-30 18:48:14 +00:00
Hartmut Birr
70c65c0144 The registry key name may be longer than 100 characters.
svn path=/trunk/; revision=18171
2005-09-30 16:33:06 +00:00
Hartmut Birr
6141c6f498 - Fixed the font size in IntGdiAddFontResource.
- Allocate a larger buffer for the font names in IntLoadSystemFonts.

svn path=/trunk/; revision=18170
2005-09-30 16:26:11 +00:00
Ged Murphy
5c9111085c set eol-style to native.
Thanks for reminding me, again :)

svn path=/trunk/; revision=18169
2005-09-30 15:37:58 +00:00
Ged Murphy
81bc89466b move quotes to a resource file and use shutdown quotes listed in the wiki.
svn path=/trunk/; revision=18168
2005-09-30 15:28:52 +00:00
Thomas Bluemel
4885539cea fixed pointer types differ in signedness warnings
svn path=/trunk/; revision=18167
2005-09-30 11:57:49 +00:00
Thomas Bluemel
ec05f0f08f set eol-style to native
svn path=/trunk/; revision=18166
2005-09-30 11:25:32 +00:00
Hervé Poussineau
60261f9699 Add newdev.dll, and implement DevInstallW function.
It permits to install devices from command line. ATM, very little functionality is supported.

svn path=/trunk/; revision=18165
2005-09-30 11:07:15 +00:00
Nathan Woods
b0f8c4a5fe Notepad:
1.  Fixed syntax errors in the ES and NL localizations
2.  Added code to save and restore settings; just the font for now


svn path=/trunk/; revision=18164
2005-09-30 02:53:34 +00:00
Thomas Bluemel
106e7a3173 use the correct down-level scope filter flag for the computer selection dialog
svn path=/trunk/; revision=18163
2005-09-30 01:47:46 +00:00
Thomas Bluemel
622b8c6503 display the computer selection dialog for remote registry administration
svn path=/trunk/; revision=18162
2005-09-30 01:26:02 +00:00
Ged Murphy
323ba37842 use carrige returns :)
svn path=/trunk/; revision=18161
2005-09-29 22:57:42 +00:00
Ged Murphy
b5aec3ddac randomise the quote sent
svn path=/trunk/; revision=18160
2005-09-29 22:36:46 +00:00
Ged Murphy
af01d7edd0 discard.c
- implemented discard.

chargen.c
- improve efficiency sending full line instead of singular chars.
TCP will generally wait until the packet is full anyway, so it's pointless to keep calling send for each char.

tcpsvcs.c
- implement the beginnings of the code to start tcpsvcs as a service. #if 0'd out at the moment. Fix bug from calling non existant DiscardHandler.

Surely this is enough info to satisfy lkcl this time :p

svn path=/trunk/; revision=18159
2005-09-29 20:41:12 +00:00
Thomas Bluemel
a83c2a2bb4 Some fixes to CreateDirectoryEx:
- properly copy the directory attributes
- add basic support to handle reparse points and add fallback code if the file system doesn't support them

svn path=/trunk/; revision=18158
2005-09-29 19:34:53 +00:00
Thomas Bluemel
cd88496c7a added clb.dll (mostly just stubs) which is required by MS regedit for it's REG_FULL_RESOURCE_DESCRIPTOR editor. As there doesn't seem to be another application that uses it, this place is probably the best for it.
svn path=/trunk/; revision=18157
2005-09-29 16:55:59 +00:00
Magnus Olsen
0feb129c9e sorry createDirectoryExW fails to create folder why ? change back to CreateDirectoryW sorry
svn path=/trunk/; revision=18156
2005-09-29 16:55:01 +00:00
Magnus Olsen
f16bc096ac MoveFileWithProgressW for movefolder
- change from CreateDirectoryW to CreateDirectoryExW
- fix close handle bug 
- overwrite readonly file
- make sure both dest and src are not set to readonly
- Source cleanup 
- Remove goto

svn path=/trunk/; revision=18155
2005-09-29 16:33:08 +00:00
Hervé Poussineau
514b606aee Set eol-style for new resources files
Add back Da.rc resources

svn path=/trunk/; revision=18154
2005-09-29 12:06:02 +00:00
Hervé Poussineau
358144fb6e - Milko Krachounov <milko@3mhz.net>
Added Bulgarian translations.
- Alexander N. Sørnes <alex@thehandofagony.com>
  Added Norwegian translations.

svn path=/trunk/; revision=18153
2005-09-29 11:58:31 +00:00
Hervé Poussineau
06bd1b672d Don't tell to MultiByteToWideChar that buffer is bigger than its real size. The size is in characters, not in bytes.
Spotted by Robert Shearman <rob@codeweavers.com>

svn path=/trunk/; revision=18152
2005-09-29 09:46:35 +00:00
Nathan Woods
b6c1b16e17 Christoph_vW: Updated notepad rc files to match Windows notepad's menu layout (bug #839)
svn path=/trunk/; revision=18151
2005-09-29 03:39:38 +00:00
Nathan Woods
033b930b16 Christoph_vW: regedit: make "modify" to default menu entry (bug #840)
svn path=/trunk/; revision=18150
2005-09-29 03:33:28 +00:00
Nathan Woods
cb80311ddf Regedit: Set up the export all/export branch UI; currently disabled for now
svn path=/trunk/; revision=18149
2005-09-29 03:07:26 +00:00
Thomas Bluemel
a62c8ab75f display all known value types
svn path=/trunk/; revision=18148
2005-09-29 02:50:38 +00:00
Thomas Bluemel
9da2411dea added stub for PrivCopyFileExW. This is needed by XP's ulib.dll, which XP's regedit.exe imports
svn path=/trunk/; revision=18147
2005-09-29 02:26:33 +00:00
Thomas Bluemel
1a4f353cad export BuildSecurityDescriptorA/W and IsWellKnownSid
svn path=/trunk/; revision=18146
2005-09-29 02:02:40 +00:00
Nathan Woods
0556dd9754 Regedit: Optimized tree expansion
svn path=/trunk/; revision=18145
2005-09-29 00:50:40 +00:00
Thomas Bluemel
1afd009025 added some missing APIs
svn path=/trunk/; revision=18144
2005-09-28 23:52:24 +00:00
Nathan Woods
8c42366a42 Notepad fixes:
1.  Fixed accelerator keys for new commands
2.  Properly parented Find/Replace dialog
3.  Typo in comment


svn path=/trunk/; revision=18143
2005-09-28 22:57:21 +00:00
Ged Murphy
708722cfd9 - Added daytime and quote of the day services
- Use universal header and remove needless seperate dirs
- Many bugfixes
- Added to build, not yet included in install as it's still in the early stages

Tested in WinXP using both Windows and Linux clients. Not yet tried in ROS,

svn path=/trunk/; revision=18142
2005-09-28 22:33:55 +00:00
Thomas Bluemel
a3ff770ebd add the vista application recovery functions to w32api and add their stubs to kernel32
svn path=/trunk/; revision=18141
2005-09-28 21:43:54 +00:00
Thomas Bluemel
85e9a1fa72 don't free random pointer in MmCreateImageSection. should fix bug 836
svn path=/trunk/; revision=18140
2005-09-28 19:56:05 +00:00
Hartmut Birr
87bf9958a5 Disable flushing if the device doesn't support it or if it isn't enabled.
svn path=/trunk/; revision=18139
2005-09-28 19:34:07 +00:00
Thomas Bluemel
b88678d1a3 added the Longhorn registry APIs to w32api
svn path=/trunk/; revision=18138
2005-09-28 18:56:01 +00:00
Thomas Bluemel
56b2e53628 don't dereference the port in NtSetInformationFile with information class FileCompletionInformation. The Also make setting the completion port thread-safe. This might fix bug 816
svn path=/trunk/; revision=18137
2005-09-28 17:15:57 +00:00
Thomas Bluemel
294680db96 improved error handling
svn path=/trunk/; revision=18136
2005-09-28 15:40:52 +00:00
Nathan Woods
7d4df5c225 Notepad: Fixed some bugs in Search->Replace
svn path=/trunk/; revision=18135
2005-09-28 13:20:10 +00:00
Thomas Bluemel
e8285addc9 improved error handling
svn path=/trunk/; revision=18134
2005-09-28 13:00:05 +00:00
Thomas Bluemel
afb1aa2562 Fixed some memory leaks in taskmgr. Patch by Christoph_vW <Christoph@ApiViewer.de>
svn path=/trunk/; revision=18133
2005-09-28 12:26:33 +00:00
Ged Murphy
5d41a8d313 - Set svn:eol-style to native
- Set svn:ignore on directories
Thanks to w3seek for pointing this out.

svn path=/trunk/; revision=18132
2005-09-27 23:37:05 +00:00
Nathan Woods
89effd5ee8 Notepad enhancements:
1.  Removed the 30k limit
2.  Implemented Replace and Replace All


svn path=/trunk/; revision=18131
2005-09-27 23:29:35 +00:00
Magnus Olsen
6653931c3d - Fix move for readonly folder and file. for now it is a small hack for readonly folders, Small Cleanup in the code, thx w3seek for the help with SetFileAttribs code.
svn path=/trunk/; revision=18130
2005-09-27 21:49:18 +00:00
Ged Murphy
6c01ff3c32 Start to implement the beginneings of tcpsvcs.exe. Just ideas at the moment, subject to change.
Working code for basic echo and chargen included. Tested in Windows from both Windows and Linux clients
Run from cmd, not incorporated into services.exe at the moment
Builds ok, but not included into build system just yet.

svn path=/trunk/; revision=18129
2005-09-27 21:44:24 +00:00
Thomas Bluemel
1d982cb8e9 some code reformatting of slayer.dll and make it build again
svn path=/trunk/; revision=18128
2005-09-27 20:22:25 +00:00
Thomas Bluemel
116b8b7916 some code reformatting
svn path=/trunk/; revision=18127
2005-09-27 18:19:59 +00:00
Thomas Bluemel
514a32bcff add hid.dll to the build system
svn path=/trunk/; revision=18126
2005-09-27 15:50:49 +00:00
Hervé Poussineau
e521cf2597 During 2nd stage setup, define also DNS hostname of the computer if possible
svn path=/trunk/; revision=18125
2005-09-27 14:27:14 +00:00
Nathan Woods
514cdac338 Regedit: Optimizations to refreshing; refreshing is still slightly slower than Windows regedit
svn path=/trunk/; revision=18124
2005-09-27 13:47:46 +00:00
Thomas Bluemel
043d319095 load some settings from the registry
svn path=/trunk/; revision=18123
2005-09-27 13:42:20 +00:00
Hervé Poussineau
2d5aef6968 KEBUGCHECK(0) -> KEBUGCHECK(INACCESSIBLE_BOOT_DEVICE)
svn path=/trunk/; revision=18122
2005-09-27 12:43:36 +00:00
Hervé Poussineau
dc6b192e48 Display status code when the file can't be opened
svn path=/trunk/; revision=18121
2005-09-27 12:40:20 +00:00
Thomas Bluemel
305c7e5ef7 fixed uninitialized variable warnings
svn path=/trunk/; revision=18120
2005-09-27 10:52:10 +00:00
Hervé Poussineau
6053e004ad Implement SetupInstallServicesFromInfSectionExW
Process {DDInstall}.HW section in SetupDiInstallDevice

svn path=/trunk/; revision=18119
2005-09-27 08:52:17 +00:00
Alex Ionescu
322841976a - Some NDK fixes when compiling with PSDK.
- Commit the new CSR (csrsrv and csrss). Compiles and passes PREfast with msvc 2005. Does not link yet. Is not complete yet (3 missing functions). Does not build with mingw yet. Code is probably still buggy. Work in other areas is needed as well. I'm comitting this under recommendation from Emanuele. See status.h for more info.
- Thanks to Emanuele and Filip which have helped with this patch.

svn path=/trunk/; revision=18118
2005-09-27 04:53:33 +00:00
Alex Ionescu
29322a96bc - Fix several flaws in APC logic.
- Properly support Special APC Disabling.
- Allow Guarded Mutex and Guarded Regions to function properly.
- Optimize some code and add some additional checks.
- Fix several bugs in KeFreezeAllThreads

svn path=/trunk/; revision=18117
2005-09-27 01:57:27 +00:00
Thomas Bluemel
bfcd1fab3c minor fixes
svn path=/trunk/; revision=18116
2005-09-27 01:48:49 +00:00
Thomas Bluemel
7c58d9be05 partly implemented the mixer selection dialog
svn path=/trunk/; revision=18115
2005-09-27 01:02:15 +00:00
Nathan Woods
2360c29d24 Notepad enhancements
1.  Implemented "Goto line"
2.  Partially implemented Replace (dialog comes up, need to have it actually do the replace )


svn path=/trunk/; revision=18114
2005-09-27 00:46:19 +00:00
Gunnar Dalsnes
b890e50a9e -reorder InsertXscendingOrder macro argument order and update uses
-start to macrofy list enums in ntoskrnl using LIST_FOR_EACH macros
-use IsListEmpty some places instead of manual coding
-profile.c:KeStartProfile() zero correct buffer in (and not the NULL ptr;-)
-improve LIST_FOR_EACH macros so that the iterator is set to NULL at end of enum
-kthread.c:KiServiceCheck() set the shadowtable before calling the win32k proc/thread init funcs
-apc.c:KiInsertQueueApc() insert special apcs in correct fifo order 
-apc.c:KeFlushQueueApc() simplify 
-timer.c:KiExpireTimers() calling RemoveEntryList on a possibly empty list is not ok

svn path=/trunk/; revision=18113
2005-09-26 22:57:48 +00:00
Thomas Bluemel
5b8c6d129b don't use MIXERCONTROLA for unicode builds
svn path=/trunk/; revision=18112
2005-09-26 22:06:31 +00:00
Alex Ionescu
ba942bb6e5 Fix calc.exe redraw problems on XP. Patch by Christoph_vW <Christoph@ApiViewer.de>
svn path=/trunk/; revision=18111
2005-09-26 21:49:03 +00:00
Alex Ionescu
e4dc1dc22d - Implement alldvrm and aulldvrm and export them from ntoskrnl. This fixes bug 467.
svn path=/trunk/; revision=18110
2005-09-26 21:39:04 +00:00
Alex Ionescu
06190df7c1 Err, actually deliver APCs when returning from systemcalls... fixes bug 810
svn path=/trunk/; revision=18109
2005-09-26 20:52:20 +00:00
Magnus Olsen
532121508b change from copyfileW to copyfileExW in MoveFileWithProgressW and add a error check for copyfileExW that was forgotten.
svn path=/trunk/; revision=18108
2005-09-26 20:44:43 +00:00
Filip Navara
4d68062bfb Revert r18070.
svn path=/trunk/; revision=18107
2005-09-26 20:29:08 +00:00
Alex Ionescu
2f5a9a2734 Add NDEBUG back and call LdrLoadDll correctly on Windows.
svn path=/trunk/; revision=18106
2005-09-26 20:08:11 +00:00
Hartmut Birr
ed77c5e942 Don't wait after the flush command for a non busy hd.
svn path=/trunk/; revision=18105
2005-09-26 20:06:49 +00:00
Hartmut Birr
406b5036aa Fixed the reinitialisation if the miniport driver returns SRB_STATUS_BUSY.
svn path=/trunk/; revision=18104
2005-09-26 20:00:48 +00:00
Thomas Bluemel
f9ac23ee7b also compile the resource file...
svn path=/trunk/; revision=18103
2005-09-26 19:16:43 +00:00
Thomas Bluemel
d286c03c70 add sndvol32 to the build system and reformat the code
svn path=/trunk/; revision=18102
2005-09-26 19:15:27 +00:00
Alex Ionescu
469b041e51 Export and implement NlsGetCacheUpdateCount. Almost every WinXP DLL can now import kernel32
svn path=/trunk/; revision=18101
2005-09-26 19:09:32 +00:00
Alex Ionescu
d78f9d9f94 Stub and export EnumCalanderInfoExW and QueryWin31IniFilesMappedToRegistry
svn path=/trunk/; revision=18100
2005-09-26 18:59:04 +00:00
Alex Ionescu
cc19214973 Export and implement CreateProcessInternalA and CreateProcessInternalW (really just shuffling/stubbing, no actual code was written.
svn path=/trunk/; revision=18099
2005-09-26 18:46:30 +00:00
Thomas Bluemel
aefeb9f6be RegOverridePredefKey does not (as opposed to the PSDK documentation) accept predefined handles for the hNewHKey parameter
svn path=/trunk/; revision=18098
2005-09-26 18:05:57 +00:00
Alex Ionescu
3438f98570 Open BNO directory with correct privileges, open CSR connection with correct path. Add InWindows boolean to use the right CSR ServerID in windows and add a hack to get kernel32 to be loadable if used with .local to force an application to use our kernel and not the system one. The result of this is that our kernel32 can now load in Windows XP (not 2000).
svn path=/trunk/; revision=18097
2005-09-26 18:03:17 +00:00
Aleksey Bragin
18a5faec31 Christoph von Wittich: fix for bug 824 ("memory leak in welcome").
-LoadBitmap without DeleteObject
-SelectObject is used with wrong DC

svn path=/trunk/; revision=18096
2005-09-26 16:13:50 +00:00
Aleksey Bragin
714a0377ae Christoph von Wittich: fix for bug 823 ("Resource leak in regedit").
svn path=/trunk/; revision=18095
2005-09-26 16:07:23 +00:00
Aleksey Bragin
7311a97c7e Christoph von Wittich: fix for bug 822 ("Resource leak in calc").
svn path=/trunk/; revision=18094
2005-09-26 15:50:37 +00:00
Thomas Bluemel
2c830b3480 export RegOverridePredefKey, forgot to commit this change
svn path=/trunk/; revision=18093
2005-09-26 13:02:01 +00:00
Thomas Bluemel
265d243da7 implemented RegOverridePredefKey()
svn path=/trunk/; revision=18092
2005-09-26 12:44:03 +00:00
Hervé Poussineau
235187d761 Update .inf files
svn path=/trunk/; revision=18091
2005-09-26 12:05:27 +00:00
Hervé Poussineau
94edbf0294 Fix signedness (SetupGetIntField takes a PINT argument, not a PUINT one)
svn path=/trunk/; revision=18090
2005-09-26 11:43:14 +00:00
Hervé Poussineau
e8a80ca380 Implement parts of SetupDiInstallDevice
svn path=/trunk/; revision=18089
2005-09-26 11:39:24 +00:00
Hervé Poussineau
85061235b4 Implement SetupInstallServicesFromInfSectionA/W, SetupInstallServicesFromInfSectionExW
Add stub for SetupInstallServicesFromInfSectionExW

svn path=/trunk/; revision=18088
2005-09-26 11:37:32 +00:00
Thomas Bluemel
5513508495 copy the buffer to the right place in IntWriteConsoleOutput
svn path=/trunk/; revision=18087
2005-09-26 11:35:23 +00:00
Thomas Bluemel
bbaa62a6a8 - fixed uninitialized variable warning
- fixed memory leak in SetupDiBuildDriverInfoList()

svn path=/trunk/; revision=18086
2005-09-26 11:14:34 +00:00
Thomas Bluemel
a4c2dbda2c fixed uninitialized variable warning
svn path=/trunk/; revision=18085
2005-09-26 11:11:48 +00:00
Thomas Bluemel
c251a38210 don't copy the buffer to a random pointer in IntWriteConsoleOutput()
svn path=/trunk/; revision=18084
2005-09-26 11:10:27 +00:00
Gé van Geldorp
fe931cdfe1 Silence some debug messages
svn path=/trunk/; revision=18083
2005-09-26 08:21:38 +00:00
Alex Ionescu
ad6d758184 - Fix a bug in CSR Capture APIs
- Fix bugs in kernel32 console APIs.
- These changes fix vim and fix bug 796 as I promised.

svn path=/trunk/; revision=18082
2005-09-26 07:43:55 +00:00
Alex Ionescu
4293263024 - Put executive atom functions in the executive folder, not rtl.
- Move purecall to the executive error APIs.

svn path=/trunk/; revision=18081
2005-09-26 05:41:35 +00:00
Alex Ionescu
6279a4838f - Remove some deprecated files.
svn path=/trunk/; revision=18080
2005-09-26 05:03:28 +00:00
Alex Ionescu
a62966103d Forgot to svn add these two files.
svn path=/trunk/; revision=18079
2005-09-26 05:01:14 +00:00
Alex Ionescu
c15e04cf7a - More sharing between ntdll/ntoskrnl: shared Dbg code.
- Added NtCreateDebugObject, NtDebugContinue, NtQueryDebugFilterState, NtSetDebugFilterState, NtWaitForDebugEvent to system call list.
- Added some debug constants to headers
- Updated RtlpCheckForActiveDebugger in ntoskrnl to return whatever we're expecting as the "normal" case.
- Added RtlpSetInDbgPrint to rtl support library for special DbgPrint implementation difference in user-mode
- Removed all the deprecated debug APIs in ntdll.
- Implemented NtQueryDebugFilterState and NtSetDebugFilterState based on royce's implementation.
- Started modifications on KeDebugService, and implemented DebugService in rtl
- Implemented all the Dbg* APIs in RTL.
- Implemented DbgUiConnectToDbg, DbgUiContinue, DbgUiWaitStateChange, DbgUiRemoteBreakin, DbgUiIssueRemoteBreakin
- Changed KD Print callbacks to also receive the length of the string.

Right now, one call that should be shared still isn't (the final DebugPrint call) because calling KeDebugService from kernel-mode seems to cause a hang. Also, DebugService does not currently cause an exception like it should (instead it still calls the Kdp handler), because those changes would've made the patch even bigger and are still untested.


svn path=/trunk/; revision=18078
2005-09-26 04:59:48 +00:00
Nathan Woods
ad2331b8dc 1. More merging from WINE regedit; imported refresh feature (which is wayyy slower than Windows regedit; need to optimize this)
2.  Using GetVersion() to determine whether to add HKEY_DYN_DATA


svn path=/trunk/; revision=18077
2005-09-26 03:18:53 +00:00
Magnus Olsen
2a43a20f74 remove dead code
svn path=/trunk/; revision=18076
2005-09-25 22:16:05 +00:00
Magnus Olsen
157b81edbd don't expect FS drivers to return STATUS_NOT_IMPLEMENTED if they don't know how to do the move (STATUS_NOT_SUPPORTED is also a perfect valid error code), this change did hpoussin suggest
svn path=/trunk/; revision=18075
2005-09-25 22:05:39 +00:00
Hervé Poussineau
aa2f14ed56 Implement SetupDiInstallDriverFiles
svn path=/trunk/; revision=18074
2005-09-25 21:18:27 +00:00
Magnus Olsen
a204d1a5de Implement support for move folder, even from different vol. But for now it does not think of EA or set file attrib right. it is a present to brandon so he stop nag about ros can not move a folder. It maybe got some other bugs. it need more testing see if it handling all case right.
svn path=/trunk/; revision=18073
2005-09-25 21:05:18 +00:00
Eric Kohl
c4035780df - Implement CM_Is_Dock_Station_Present[_Ex]
svn path=/trunk/; revision=18072
2005-09-25 21:02:43 +00:00
Hervé Poussineau
6cc1784d0b USB root hub is not really a child of the USB Controller, so don't give it a device identifier
svn path=/trunk/; revision=18071
2005-09-25 20:56:58 +00:00
Filip Navara
7df1c3d13b Revert r18064 and correctly set the cell size for hash cells.
svn path=/trunk/; revision=18070
2005-09-25 20:54:40 +00:00
Ged Murphy
800ecc9875 Simple implementation of the MS comp utility (remembered to add the files this time :) )
svn path=/trunk/; revision=18069
2005-09-25 20:46:28 +00:00
Ged Murphy
95be977b35 Simple implementation of the MS comp utility
svn path=/trunk/; revision=18068
2005-09-25 20:39:55 +00:00
Emanuele Aliberti
00dca92674 cmdutils: a program a directory (bootcd,livecd,...)
svn path=/trunk/; revision=18067
2005-09-25 19:40:48 +00:00
Emanuele Aliberti
4ebb8ab037 cmdutils: a program a directory.
svn path=/trunk/; revision=18066
2005-09-25 19:38:46 +00:00
Alex Ionescu
500c1e7db2 - Fix mixed tab/space formatting issues.
svn path=/trunk/; revision=18065
2005-09-25 18:17:27 +00:00
Filip Navara
b14657cd56 Correctly interpret the cell type in CmiDestroyCell. Patch by brbak <mpd000@yahoo.de>.
svn path=/trunk/; revision=18064
2005-09-25 18:07:36 +00:00
Martin Fuchs
8b950fec34 refeactor all IUnknown implementations using IComSrvBase
svn path=/trunk/; revision=18063
2005-09-25 17:59:20 +00:00
Thomas Bluemel
029ccdccaa fixed gcc4 warnings
svn path=/trunk/; revision=18062
2005-09-25 17:52:12 +00:00
Thomas Bluemel
2148ae3457 - fixed uninitialized variable warning
- ProbeAndCaptureUnicodeString should check if allocating memory succeeded

svn path=/trunk/; revision=18061
2005-09-25 17:49:14 +00:00
Hartmut Birr
18494d1af0 - Don't convert the device name, if the name is a NULL pointer (in QueryDosDeviceA).
- Convert the string in several steps, because the string may be longer than 32k characters (in QueryDosDeviceA).

svn path=/trunk/; revision=18060
2005-09-25 17:25:55 +00:00
Thomas Bluemel
36b54a2e7c fixed uninitialized variable warnings
svn path=/trunk/; revision=18059
2005-09-25 17:21:45 +00:00
Thomas Bluemel
b078f93c83 fixed uninitialized variable warning
svn path=/trunk/; revision=18058
2005-09-25 17:16:03 +00:00
Ged Murphy
b1c57949ff added more functionality to arp
- display correct interface index
- delete all hosts with -d *
- display informative error messages
- better argument control
- clean up formatting

svn path=/trunk/; revision=18057
2005-09-25 17:01:24 +00:00
Nathan Woods
4f9b4be8fb Lightweight sync with WINE regedit; imported obvious changes such as const correctness, TCHAR string usage etc
svn path=/trunk/; revision=18056
2005-09-25 16:56:52 +00:00
Martin Fuchs
b59af67517 try to use IShellFolderViewCB::MessageSFVCB() in order to override explorer context menus
svn path=/trunk/; revision=18055
2005-09-25 15:59:38 +00:00
Emanuele Aliberti
edd28d722f Minor changes. This program does NOT work in ROS.
svn path=/trunk/; revision=18054
2005-09-25 13:58:27 +00:00
Emanuele Aliberti
fa1f0c6f02 Fix compiling.
svn path=/trunk/; revision=18053
2005-09-25 13:56:45 +00:00
Magnus Olsen
b1da886453 Remove Es.rc from timedate for it is 100% empty. Thx tsk
svn path=/trunk/; revision=18052
2005-09-25 13:54:19 +00:00
Emanuele Aliberti
887b19bebf svn: eol-style + keywords
svn path=/trunk/; revision=18051
2005-09-25 13:43:33 +00:00
Emanuele Aliberti
294b660b25 Required for binary compatibility with MS KERNEL32.DLL.
NOTE
Filip and I still don't understand why KERNEL32 calls twice CsrConnectToServer.
A possible explanation is because the Win32 server is a dual server: gui+console.
This differs with our current implementation in the SM: we accept only console registration requests (see SmpHandleConnectionRequest).

svn path=/trunk/; revision=18050
2005-09-25 13:36:27 +00:00
Hartmut Birr
6ace27feae Let the compiler search for usable register.
svn path=/trunk/; revision=18049
2005-09-25 12:39:32 +00:00
Filip Navara
66e998c053 Use the correct size variables in co_IntCreateWindowEx.
svn path=/trunk/; revision=18048
2005-09-25 12:30:51 +00:00
Martin Fuchs
67429beef5 new tool bar icons for the drive bar
svn path=/trunk/; revision=18047
2005-09-25 11:52:42 +00:00
Filip Navara
8e767a38a4 - Intersect the paint rectangle in NtUserBeginPaint with the client window rectangle.
- Fix the data returned by co_UserGetUpdateRgn and NtUserGetUpdateRect.

svn path=/trunk/; revision=18046
2005-09-25 11:16:54 +00:00
Filip Navara
fa45440822 Patricio Martínez Ros <silencium@wanadoo.es>
Update spanish translation.

svn path=/trunk/; revision=18045
2005-09-25 11:05:00 +00:00
Filip Navara
3c06143dc5 Patricio Martínez Ros <silencium@wanadoo.es>
Update spanish translation.

svn path=/trunk/; revision=18044
2005-09-25 10:52:51 +00:00
Filip Navara
cee1aa7a0d Add TestAlert check to NtContinue.
svn path=/trunk/; revision=18043
2005-09-25 09:23:05 +00:00
Filip Navara
ceb0f5f1eb Fix up the indentation.
svn path=/trunk/; revision=18042
2005-09-25 09:22:22 +00:00
Andrew Munger
2f370af826 Fix getInterfaceInfoSet so GetInterfaceInfo returns only non-loopback adapters, however, we still return some incorrect info.
Silenced a DPRINT.

svn path=/trunk/; revision=18041
2005-09-25 04:55:16 +00:00
Nathan Woods
6e7b2b5af4 1. Moved windows styles pertaining to the edit control to main.h
2.  Stopped using WS_BORDER on the edit control


svn path=/trunk/; revision=18040
2005-09-25 00:35:13 +00:00
Nathan Woods
fd73ac02d7 Fixed property svn:eol-style
svn path=/trunk/; revision=18039
2005-09-25 00:12:12 +00:00
Gé van Geldorp
e8bb7ed8ff Fix GDB backtrace
svn path=/trunk/; revision=18038
2005-09-25 00:00:03 +00:00
Nathan Woods
3c14414c1d Notepad enhancements:
1.  Added line ending handling, so that Notepad can handle line endings other than CR/LF.  This is specified in a dropdown menu similar to the text encoding.  Consequently, I've moved text handling to a new file, text.c

2.  Implemented the Find command

3.  Changed some dialog titles to be 'Notepad' instead of 'ERROR', in line with how Windows notepad works.

4.  The edit control now has the style ES_NOHIDESEL specified


svn path=/trunk/; revision=18037
2005-09-24 23:45:05 +00:00
Thomas Bluemel
5f28a5ed9f removed obsolete goto statement
svn path=/trunk/; revision=18036
2005-09-24 20:37:53 +00:00
Hartmut Birr
1effd8ff68 Allow the system process and a process without a parent process to use all cpus on a smp machine, even if only the boot cpu is running.
svn path=/trunk/; revision=18035
2005-09-24 19:34:54 +00:00
Gé van Geldorp
7ee5d3ea71 This NtGdiCreateCompatableDC misspelling has annoyed me long enough now
svn path=/trunk/; revision=18034
2005-09-24 19:30:12 +00:00
Hartmut Birr
58cb9dc1d9 Set the MaximumLength of the returned string in IntGetFullWindowStationName.
svn path=/trunk/; revision=18033
2005-09-24 19:17:00 +00:00
Hartmut Birr
13355b8eff Do also alert the mouse thread in UserAcquireOrReleaseInputOwnership.
svn path=/trunk/; revision=18032
2005-09-24 19:15:24 +00:00
Hartmut Birr
33ad8f2571 - Moved the definition of REG_NOTIFY_CLASS from cm.h to winddk.h.
- Release the rundown protection if the callback function returns an error (in CmiCallRegisteredCallbacks).  
- Call the registry callback functions in most of the Nt/ZW registry functions.

svn path=/trunk/; revision=18031
2005-09-24 18:42:37 +00:00
Hartmut Birr
262c303ffb - Use the given buffer for getting the name of the parent.
- Check the length of the buffer.  
- Intialise the name string if it is necessary.

svn path=/trunk/; revision=18030
2005-09-24 18:28:04 +00:00
Hartmut Birr
2914b8925b Used NtQueryFullAttributesFile instead of NtOpenFile/NtQueryInformationFile/NtClose in GetFileAttributesExW (suggested by Thomas Weidenmueller).
svn path=/trunk/; revision=18029
2005-09-24 18:09:06 +00:00
Hartmut Birr
e6a04cca76 Merged the main code from NtQueryAttributesFile and NtQueryFullAttributesFile to IopQueryAttributesFile.
Check the access to parameters in IopQueryAttributesFile if we are called from user mode because calling Zw functions from kernel mode will bypass all checks.

svn path=/trunk/; revision=18028
2005-09-24 18:04:13 +00:00
Filip Navara
ffb2fee46a Port the system message queue WM_MOUSEDOWN coalesce fix from win32k rewrite branch.
svn path=/trunk/; revision=18027
2005-09-24 17:34:09 +00:00
Thomas Bluemel
5f8c990b41 implemented RegCopyTreeW() (untested!)
svn path=/trunk/; revision=18026
2005-09-24 17:08:13 +00:00
Hervé Poussineau
5681e54736 If device instance id is not unique, prepend information from parent bus device
svn path=/trunk/; revision=18025
2005-09-24 13:19:25 +00:00
Gunnar Dalsnes
bd79c96a7d uncomment and add mutex asserts
svn path=/trunk/; revision=18024
2005-09-24 11:43:23 +00:00
Eric Kohl
f9725315fe - Implement CM_Get_Device_List_Size_ExW
svn path=/trunk/; revision=18023
2005-09-24 09:30:43 +00:00
Gunnar Dalsnes
5fa3cc8c0f -include/ndk/rtltypes.h: add MAX_ATOM_LEN define
-win32k: remove some NtUser syscalls and merge some NtUser syscalls
-crt/include/internal/file.h: correct spelling
-RtlAddAtomToAtomTable: check for max atom len
-RtlQueryAtomInAtomTable: fix bug. somehow lock wasnt always released.
-fix/reword windows classes impl. based on Wine. All but 2 winetests pass.
-ntoskrnl/rtl/atom.c: add fixme about global atom table
-remove desktop object lock
-dont link windows into the class object
-co_IntShellHookNotify: safely send notify messages
-misc win32k reorg/cleanup

svn path=/trunk/; revision=18022
2005-09-24 02:50:02 +00:00
Ged Murphy
ff4f5a654b First commit, mainly testing.
Cleanup code to follow ROS' coding style better
Remove tabs and trailing whitespace.

svn path=/trunk/; revision=18021
2005-09-23 21:46:54 +00:00
Gé van Geldorp
ce7453f9ed Fix RtlQueryAtomInAtomTable and add regression tests
svn path=/trunk/; revision=18020
2005-09-23 21:08:57 +00:00
Thomas Bluemel
128c57f209 imported shfolder.dll from WINE-20050830
svn path=/trunk/; revision=18019
2005-09-23 19:24:20 +00:00
Alex Ionescu
ea0f14b310 fix identation bug in 18016
svn path=/trunk/; revision=18018
2005-09-23 18:15:39 +00:00
Alex Ionescu
081b39d0ef Fix signalstate check in KGATE code; spotted by magey.
svn path=/trunk/; revision=18017
2005-09-23 16:31:06 +00:00
Alex Ionescu
c6d8b12b89 - Call IsDialogMessage before TranslateAccelerators, so that the accelerator's output, if any, appears in the proper window. Patch by Bletch <npwoods@mess.org>. Fixes bug 803.
svn path=/trunk/; revision=18016
2005-09-23 15:46:10 +00:00
Alex Ionescu
2be4bec4f1 - Return focus to run dialog after showing the file not found messagebox. Patch by brbak <mpd000@yahoo.de>
svn path=/trunk/; revision=18015
2005-09-23 15:42:40 +00:00
Thomas Bluemel
ff1322e0a3 use RegGetKeySecurity() directly to read the security information
svn path=/trunk/; revision=18014
2005-09-23 15:31:42 +00:00
Thomas Bluemel
0243833fef don't read the DACL if it's not present or if it's a NULL-DACL
svn path=/trunk/; revision=18013
2005-09-23 15:31:04 +00:00
Thomas Bluemel
7542d31c35 - fixed buffer size calculation in RtlLengthRequiredSid and RtlLengthSid
- use RtlCreateUnicodeString to allocate the string in RtlConvertSidToUnicodeString

svn path=/trunk/; revision=18012
2005-09-23 14:15:30 +00:00
Thomas Bluemel
528323ece7 minor optimization of RtlCreateUnicodeString: as the memory never overlaps, just copy the memory instead of moving it
svn path=/trunk/; revision=18011
2005-09-23 14:13:44 +00:00
Thomas Bluemel
4b69f7ad42 fixed signedness warning
svn path=/trunk/; revision=18010
2005-09-23 11:12:18 +00:00
Gé van Geldorp
5cf68f2c19 Remove dead file
svn path=/trunk/; revision=18009
2005-09-23 09:51:18 +00:00
Gé van Geldorp
7a74eefb29 Make GDB available for release builds
svn path=/trunk/; revision=18008
2005-09-23 09:23:14 +00:00
Gé van Geldorp
d735771108 Don't use uninitialized var
svn path=/trunk/; revision=18007
2005-09-23 09:17:38 +00:00
Hervé Poussineau
b7a7ffcfcd Report correctly USB device class and subclass when the device reports only one interface and the class is not defined in the device descriptor
svn path=/trunk/; revision=18006
2005-09-23 09:02:16 +00:00
Hervé Poussineau
0c7bb23c18 Cast the right pointer to the structure.
Fix bug 783. Thanks GvG.

svn path=/trunk/; revision=18005
2005-09-23 08:55:33 +00:00
Steven Edwards
9c356c1031 doing my good dead for the day
svn path=/trunk/; revision=18004
2005-09-23 07:32:21 +00:00
Alex Ionescu
33bce1ad24 Forgot these changes, sorry
svn path=/trunk/; revision=18003
2005-09-23 07:19:47 +00:00
Alex Ionescu
c6a32a07bd - Fix a bunch of various bugs in the Rtl String routines, mostly subtle (ie: fail AFTER writing maximum length, not before (some apps might depend on it), fix completely broken RtlAnsiCharToUnicodeChar prototype and functionality, don't clear buffers when we shouldn't/clear buffers when we should...)
- Also cleanup formatting of the file
- Use Index member from Rtl...To...N API when null-terminating the strings.
- Various optimizations and simplifications in some of the loops.
- Remove some duplicated code.
- Notes about special handling where required, also implement it in some parts.
- Add more failure cases.
- Return correct status codes on failures.

svn path=/trunk/; revision=18002
2005-09-23 06:37:14 +00:00
Alex Ionescu
d1d61051c9 Make TAB+ debug combos work again. Based on bugfix by Andrew Munger.
svn path=/trunk/; revision=18001
2005-09-23 06:32:47 +00:00
Alex Ionescu
43fc149042 Fix exception handling/PSEH. Fixes bug 797.
svn path=/trunk/; revision=18000
2005-09-23 06:25:38 +00:00
Steven Edwards
3d31bdc1fc Stefan Huehner <stefan@huehner.org>
Fix more -Wstrict-prototypes warnings.

svn path=/trunk/; revision=17999
2005-09-23 06:06:20 +00:00
Steven Edwards
4db49a2b8f Dmitry Timoshkov <dmitry@codeweavers.com> Fix the usage of COLOR_xxx constants in the place of the window's class hbrBackground.
svn path=/trunk/; revision=17998
2005-09-23 06:04:44 +00:00
Steven Edwards
b3725418f0 Kevin Koltzau <kevin@plop.org> Enable/disable menu items based on edit control state.
svn path=/trunk/; revision=17997
2005-09-23 06:02:23 +00:00
Steven Edwards
94cc96262b Kevin Koltzau <kevin@plop.org> Handle notepad log feature.
svn path=/trunk/; revision=17996
2005-09-23 05:58:27 +00:00
Steven Edwards
05a74dc2dd Lauri Tulmin <lauri_@ut.ee> implement word wrap
svn path=/trunk/; revision=17995
2005-09-23 05:54:46 +00:00
Andrew Munger
1e482c105d Properly return status in iphplapi, and don't close the file handle before we use it in getNumInterfacesInt.
svn path=/trunk/; revision=17994
2005-09-23 03:50:03 +00:00
Thomas Bluemel
b64b3f38a0 mark ZwDuplicateToken as NTSYSAPI. thx to alex
svn path=/trunk/; revision=17993
2005-09-23 00:05:38 +00:00
Thomas Bluemel
c7781723f8 some Nt vs. Zw fixes; these functions shouldn't be used in ntoskrnl but since they're shared there's a chance they could be used
svn path=/trunk/; revision=17992
2005-09-22 23:50:38 +00:00
Thomas Bluemel
da28a303cc some Nt vs. Zw fixes; these functions shouldn't be used in ntoskrnl but since they're shared there's a chance they could be used
svn path=/trunk/; revision=17991
2005-09-22 23:46:20 +00:00
Thomas Bluemel
775f129dc9 some Nt vs. Zw fixes
svn path=/trunk/; revision=17990
2005-09-22 23:23:00 +00:00
Thomas Bluemel
6ec323ac74 fixed gcc4 warning
svn path=/trunk/; revision=17989
2005-09-22 21:09:06 +00:00
Gé van Geldorp
d776d5b356 Bletch <npwoods@mess.org>:
- Implements key and value renaming
- Implements key deleting
- Implements New Key/String/Binary/DWORD option

svn path=/trunk/; revision=17988
2005-09-22 20:54:20 +00:00
Thomas Bluemel
c70c695868 fixed uninitialized variable warning
svn path=/trunk/; revision=17987
2005-09-22 20:44:10 +00:00
Filip Navara
5aab768c19 Handle some failure cases in better way.
svn path=/trunk/; revision=17986
2005-09-22 20:36:07 +00:00
Gé van Geldorp
cb0c6e6a48 Return atom length when requested. Fixes bug 793.
svn path=/trunk/; revision=17985
2005-09-22 20:24:50 +00:00
Filip Navara
e6e62c37b3 InfoTdiQueryInformationEx should return failure if no entity was found.
svn path=/trunk/; revision=17984
2005-09-22 20:17:55 +00:00
Thomas Bluemel
c87bac8d51 minor string initialization optimizations
svn path=/trunk/; revision=17983
2005-09-22 19:46:36 +00:00
Thomas Bluemel
ceb2e22d5f add selected principals to the list (doesn't modify the ACLs yet!)
svn path=/trunk/; revision=17982
2005-09-22 14:30:29 +00:00
Hervé Poussineau
4a4df71398 Fix IRP_MJ_PNP / IRP_MN_QUERY_ID / BusQueryHardwareIDs for root USB hubs.
The vendor and device IDs are not filled in Cromwell code, so ask directly the PCI device to retrieve the information

svn path=/trunk/; revision=17981
2005-09-22 11:20:52 +00:00
Hervé Poussineau
752fed43fb Fix IRP_MJ_PNP / IRP_MN_QUERY_DEVICE_TEXT / DeviceTextLocationInformation for USB devices
I was mis-using usb_get_string() method...

svn path=/trunk/; revision=17980
2005-09-22 09:17:17 +00:00
Gé van Geldorp
81441a8931 Slicencium <silencium@wanadoo.es>:
Fix precision bug (bug 775)

svn path=/trunk/; revision=17979
2005-09-22 07:24:08 +00:00
Thomas Bluemel
b06b7fb73a fixed some handle leaks in RegDeleteTree() in some failure cases
svn path=/trunk/; revision=17978
2005-09-21 23:56:52 +00:00
Gé van Geldorp
87dda98431 brbak <mpd000@yahoo.de>:
Reset on new calculation. Patch from bug 775.

svn path=/trunk/; revision=17977
2005-09-21 22:55:37 +00:00
Gé van Geldorp
c284fca775 brbak <mpd000@yahoo.de>:
fixes repositioning of text (from bug 749)

svn path=/trunk/; revision=17976
2005-09-21 22:48:52 +00:00
Hartmut Birr
080f8f4a31 - Do only create a registry entry for partitions if the signature of the disk is non zero.
- Do only mount partitions from a registry key if the signature is non zero.  
- Do delete all registry keys for non existing partitions.

svn path=/trunk/; revision=17975
2005-09-21 22:16:17 +00:00
Martin Fuchs
14d1c2cc63 - use size_t for buffer/string lengths instead of int
- define COUNTOF if not defined already

svn path=/trunk/; revision=17974
2005-09-21 21:54:52 +00:00
Martin Fuchs
d4358bfc5e - Bugfix for UTF-8 strings
- insert more XS_vsnprintf() calls
- additional comments
- struct XMLWriter

svn path=/trunk/; revision=17973
2005-09-21 21:44:39 +00:00
Thomas Bluemel
a8f183303f fixed some mismatching prototypes, sorry for breaking the build
svn path=/trunk/; revision=17972
2005-09-21 18:24:16 +00:00
Thomas Bluemel
7fd1af5d12 some arc names might be longer than 100 characters, increase the buffer size to 255 characters for now to fix a buffer overflow during startup
svn path=/trunk/; revision=17971
2005-09-21 17:57:07 +00:00
Thomas Bluemel
2e7c6d22ad fixed differences in signedness warnings
svn path=/trunk/; revision=17970
2005-09-21 17:37:08 +00:00
Thomas Bluemel
6f8faaa0d5 add missing function declarations
svn path=/trunk/; revision=17969
2005-09-21 17:28:14 +00:00
Thomas Bluemel
30da66ac75 pass the buffer size to GetEnvironmentVariable() in characters, not bytes!
svn path=/trunk/; revision=17968
2005-09-21 17:23:27 +00:00
Thomas Bluemel
78e6f0fce1 fixed some warnings
svn path=/trunk/; revision=17967
2005-09-21 17:22:45 +00:00
Richard Campbell
1e7a778c81 -small test commit
svn path=/trunk/; revision=17966
2005-09-21 17:09:33 +00:00
Thomas Bluemel
71a3db7178 fixed differences in signedness warnings
svn path=/trunk/; revision=17965
2005-09-21 15:32:53 +00:00
Filip Navara
8eece91bda Indentation fix.
svn path=/trunk/; revision=17964
2005-09-21 14:01:49 +00:00
Filip Navara
eca43c5532 Incomplete support for WS_EX_TRANSPARENT, should fix Task Manager painting bugs.
svn path=/trunk/; revision=17963
2005-09-21 13:49:09 +00:00
Steven Edwards
32e72ac4f3 Nathan Woods <npwoods _NOSPAM_at_NOSPAM cybercom.net> - Implement a working VS.NET backend, minor fixes to the vc6 backend
svn path=/trunk/; revision=17962
2005-09-21 03:20:07 +00:00
Royce Mitchell III
de51245b10 remove extraneous \n's
svn path=/trunk/; revision=17961
2005-09-21 02:04:07 +00:00
Royce Mitchell III
5c0d0a5c3d give set/a access to "special" variables like errorlevel
svn path=/trunk/; revision=17960
2005-09-21 01:44:18 +00:00
Royce Mitchell III
d25cb331be msvc6 warning fix
svn path=/trunk/; revision=17959
2005-09-21 01:27:54 +00:00
Royce Mitchell III
48bf871025 always strip '^' (unless it was preceded by an '^' itself), not just if it precedes the redirection symbols - fixes some of my test cases in seta_test.cmd
svn path=/trunk/; revision=17958
2005-09-21 01:27:22 +00:00
Royce Mitchell III
d6475d7b86 fix debug output
remove my '!' code - don't know how I thought this was valid
restore part of code I removed previously that was breaking 'not' cases that need to execute and the right half of the == was longer than then left

svn path=/trunk/; revision=17957
2005-09-21 01:25:58 +00:00
Royce Mitchell III
7e3c246bc2 a few more tests to clarify parsing oddities based on my playing around
svn path=/trunk/; revision=17956
2005-09-21 01:23:44 +00:00
Royce Mitchell III
1b64b915a7 %1 %2 etc still work with set/a ( just not %foo% )
svn path=/trunk/; revision=17955
2005-09-21 01:22:56 +00:00
Royce Mitchell III
83471cc423 fix misunderstandings of if syntax
svn path=/trunk/; revision=17954
2005-09-20 20:43:15 +00:00
Royce Mitchell III
7b93cd135c fix escape removal
svn path=/trunk/; revision=17953
2005-09-20 20:32:48 +00:00
Royce Mitchell III
39fd46a7b3 remove now-pointless if statement
add a little more debug output

svn path=/trunk/; revision=17952
2005-09-20 20:13:16 +00:00
Martin Fuchs
d91a17bcbc - fix build for MinGW and VC++ environments
- fix Manifest descriptions
- ignore some immediate files

svn path=/trunk/; revision=17951
2005-09-20 19:51:27 +00:00
Royce Mitchell III
819d52f0da unrevert change - this change is correct and works in windows
svn path=/trunk/; revision=17950
2005-09-20 19:27:08 +00:00
Magnus Olsen
86b46b4572 Revert royce3 change from 17948 to 16488 it break choice in bat files, in some case.
svn path=/trunk/; revision=17949
2005-09-20 18:11:55 +00:00
Royce Mitchell III
4ec7b01faf cmd's documentation says that env variables override the "built-ins" like %errorlevel% and such.
also fixed a couple msvc6 warnings and added a little documentation to the set/a code

svn path=/trunk/; revision=17948
2005-09-20 16:38:02 +00:00
Filip Navara
dff3a0dd3a Restore the pre-r17946 UserGetAncestor behaviour and fix the code calling it.
svn path=/trunk/; revision=17947
2005-09-20 10:45:27 +00:00
Filip Navara
27f30a175b - SetParent shouldn't destroy menus.
- UserGetAncestor(Window, GA_ROOT) really shouldn't return NULL, in any case.

svn path=/trunk/; revision=17946
2005-09-20 10:31:57 +00:00
Filip Navara
0bec9aee61 Don't return NULL regions from DceGetVisRgn.
svn path=/trunk/; revision=17945
2005-09-20 10:29:05 +00:00
Filip Navara
1dc1b56c2f Fix parameter validation in WM_GETTEXT and GetWindowText.
svn path=/trunk/; revision=17944
2005-09-20 09:31:13 +00:00
Filip Navara
7936d2bbcf Support GCW_ATOM in GetClassLong.
svn path=/trunk/; revision=17943
2005-09-20 09:28:49 +00:00
Filip Navara
86ae753de1 Fix the order of window style setting.
svn path=/trunk/; revision=17942
2005-09-20 09:28:18 +00:00
Gé van Geldorp
ac73d1e005 Set eol-style
svn path=/trunk/; revision=17941
2005-09-20 08:00:00 +00:00
Gé van Geldorp
7ec5b38020 Saveliy Tretiakov <saveliyt@mail.ru>:
EventLog changes
- Implement basic file operations (WindowsNT compatible file format)
- Write events from lpc port to System Log
  (to read these events, open \ReactOS\system32\config\SysEvent.evt in Windows
  EventViewer)  
- RPC server (stubs)

svn path=/trunk/; revision=17940
2005-09-20 07:58:28 +00:00
Gé van Geldorp
8528b9b411 Bletch <npwoods@mess.org>:
.lnk files (and other files with hidden file extension) got one character
truncated off the resulting filename.

svn path=/trunk/; revision=17939
2005-09-20 07:37:45 +00:00
Royce Mitchell III
bf84d47c16 hack fix to pass % to set/a unmolested
svn path=/trunk/; revision=17938
2005-09-19 23:00:25 +00:00
Royce Mitchell III
2d9a0aaa6c reformat code
svn path=/trunk/; revision=17937
2005-09-19 22:00:01 +00:00
Gé van Geldorp
f5ffc6c672 - Add ctrl support to (most) keyboard layouts. Only tested for kbdus, added
to a few other I was confident about. Still to do: kbddv, kbdgr, kbdru, kbdsg
- Prevent access outside array in TryToTranslateChar
- Revert r17830, it handles ctrl keys at the wrong location
This fixes bug 763.

svn path=/trunk/; revision=17936
2005-09-19 21:11:41 +00:00
Hartmut Birr
047952c5a1 - Read more information from the registry about the disks detected by the bios.
- Fixed the detection of disks with a signature of zero (in AddDiskToList).  
- Update always the partition table if the modified flag is set.  
- Create an unique disk signature.  
- Declared some registry query structures in cmtype.h.


svn path=/trunk/; revision=17935
2005-09-19 20:01:29 +00:00
Filip Navara
1ddb0f87a0 Remove accidently commited debug code.
svn path=/trunk/; revision=17934
2005-09-19 15:16:00 +00:00
Filip Navara
fe51307bd2 Fix the taskbar button resizing to account for button spacing.
svn path=/trunk/; revision=17933
2005-09-19 15:15:22 +00:00
Filip Navara
e402efe2c3 - Fix region deleting and ownership for DCEs.
- Fix uninitialized hDC variable in painting code :)

svn path=/trunk/; revision=17932
2005-09-19 12:21:52 +00:00
Filip Navara
1d878e0ba5 Partial clean-up of the painting functions:
- Get rid of the DCX_WINDOWPAINT flag (it wasn't used anyway).
- Remove the PaintPosted field from message queue, we don't need it.
- Use screen cooridnates for the WindowUpdate region instead of window relative ones.
- Fix the algorithm for retrieving paint messages to respect the painting order.
- Remove the NCUpdateRegion field from window object and calculate it on demand.
- Fix GetDCEx to take region in screen coordinates.

svn path=/trunk/; revision=17931
2005-09-19 10:39:26 +00:00
Hervé Poussineau
0558c3abc5 Implement IRP_MN_QUERY_CAPABILITIES, IRP_MN_QUERY_RESOURCES, IRP_MN_QUERY_RESOURCE_REQUIREMENTS, IRP_MN_QUERY_DEVICE_TEXT for USB devices
Fix DeviceID and HardwareIDs identifiers returned for root hub (Vendor and Product IDs are still not initialized by Cromwell code)
Fix handling of removal IRPs for USB controller

svn path=/trunk/; revision=17930
2005-09-19 10:04:07 +00:00
Hervé Poussineau
243b1fc88f Automagically select computer type (UP/MP) during first stage setup
svn path=/trunk/; revision=17929
2005-09-19 08:11:43 +00:00
Filip Navara
f1ee99f91a - Move the window showing/hiding notifications from co_WinPosShowWindow to co_WinPosSetWindowPos and fix up the top-level checks.
- Call the redraw routine on parent window if possible in co_WinPosSetWindowPos. Should fix bug #735.

svn path=/trunk/; revision=17928
2005-09-19 07:35:31 +00:00
Royce Mitchell III
07070d0d52 fix if command to work more like expected. seta_test.cmd gets much further now.
fixed some msvc6 warnings while I was in here

svn path=/trunk/; revision=17927
2005-09-19 05:42:01 +00:00
Royce Mitchell III
636cb4e66c fixed mistakes, extra tests illustrating problems with if command
svn path=/trunk/; revision=17926
2005-09-19 05:29:17 +00:00
Royce Mitchell III
1e9a958e20 move hard-coded strings to En.rc before GreatLord shoots me
svn path=/trunk/; revision=17925
2005-09-19 01:14:36 +00:00
Gunnar Dalsnes
acd5c47c18 -set last error (invalid handle) in cases where handle is NULL also
-remove GvG's workaround

svn path=/trunk/; revision=17924
2005-09-19 00:02:39 +00:00
Gunnar Dalsnes
5eaa4fda83 -added better LIST_FOR_EACH macros (ripped from wine) and fix their usage
-make hotkeys session global (they dont belong in winsta)

svn path=/trunk/; revision=17923
2005-09-18 23:06:15 +00:00
Gé van Geldorp
17fba5a631 Set correct error code, IsWindow() depends on this
svn path=/trunk/; revision=17922
2005-09-18 21:48:56 +00:00
Royce Mitchell III
4837e8bf71 regression test for set /a - fails at the moment because 'if' is bork3d
svn path=/trunk/; revision=17921
2005-09-18 18:59:59 +00:00
Royce Mitchell III
0f792e01d4 fixes for UNICODE compilation
svn path=/trunk/; revision=17920
2005-09-18 18:58:11 +00:00
Alex Ionescu
ae1732c6b0 Make LogoffWindowsDialog exit the caller (ie: explorer) so that previous shutdown functionality is restored
svn path=/trunk/; revision=17919
2005-09-18 18:49:30 +00:00
Alex Ionescu
523371b73d Fix shell32 spec file to properly export LogoffWindowsDialog as the proper ordinal (54) so that explorer won't crash on shutdown when calling it. Implement the LogoffWindowsDialog stub.
svn path=/trunk/; revision=17918
2005-09-18 18:46:15 +00:00
Royce Mitchell III
891e470c6d fix escaping
svn path=/trunk/; revision=17917
2005-09-18 18:37:08 +00:00
Royce Mitchell III
9cd240b08f (hopefully) last bugfix to set /a - assignment works again
svn path=/trunk/; revision=17916
2005-09-18 17:52:28 +00:00
Royce Mitchell III
f28d0d895f fixed bugs in shifting (<<, >>, <<=, >>=)
eliminated some code duplication while I was in there.

svn path=/trunk/; revision=17915
2005-09-18 17:33:11 +00:00
Gunnar Dalsnes
098082f49d -remove meaningless use of winstas
-move syscalls to end of file

svn path=/trunk/; revision=17914
2005-09-18 16:56:33 +00:00
Hartmut Birr
45694d291d Revert my last changes.
svn path=/trunk/; revision=17913
2005-09-18 15:25:34 +00:00
Hartmut Birr
dbb79dd925 The share disposition isn't necessary for FILE_READ_ATTRIBUTES.
svn path=/trunk/; revision=17912
2005-09-18 13:46:37 +00:00
Magnus Olsen
ed7f5f3976 revert my change from r17909. Thx hbirr to fix the bug with 17910.
svn path=/trunk/; revision=17911
2005-09-18 13:36:29 +00:00
Hartmut Birr
0cfadced6f Don't check the share access for directories.
svn path=/trunk/; revision=17910
2005-09-18 13:10:43 +00:00
Magnus Olsen
065786c3b7 give GetFileAttributesExW more NtOpenFile right to prevent reactos crash if u using CreateFile then GetFileAttributesExW. It also fix a bug for me for livecd it booting on first try now in vmware. instead second or more booting try.
svn path=/trunk/; revision=17909
2005-09-18 12:05:57 +00:00
Magnus Olsen
fd30631edf Clean up patch from filip, with small change from me, for MoveFileWithProgressW.
svn path=/trunk/; revision=17908
2005-09-18 11:18:28 +00:00
Magnus Olsen
42acc38f81 Implement second part of move folder. Now we can move empty folder. we need add code for move folder with contain now.
svn path=/trunk/; revision=17907
2005-09-18 09:29:37 +00:00
Royce Mitchell III
989e287e31 1) strip ^ escapes from text before processing set command
2) recursive descent implementation of set /a - should fix bug 728
(In case anyone checks I realized there were some gaping holes in the implementation I posted to the ml, so this one is modified from it. This code could stand to benefit from a comprehensive feature/regression test.)

svn path=/trunk/; revision=17906
2005-09-18 03:52:34 +00:00
Alex Ionescu
3682544d27 Fix user-mode stack trace regression caused by my exception patch. Traces are now shown again
svn path=/trunk/; revision=17905
2005-09-18 03:26:52 +00:00
Gé van Geldorp
670b82330c _getch() doesn't echo the chars it retrieves and operates in raw mode.
svn path=/trunk/; revision=17904
2005-09-17 22:33:53 +00:00
Hartmut Birr
f8852fda40 Do not overwrite the disk signature, if we install the boot code into the mbr.
svn path=/trunk/; revision=17903
2005-09-17 22:00:35 +00:00
Gé van Geldorp
5f8481f284 Count each handle which has pending events only once, independent of the number
of pending events. Fixes bug 779.

svn path=/trunk/; revision=17902
2005-09-17 21:22:47 +00:00
Magnus Olsen
8e38aa25a1 Fix some part of MoveFileExW Bug, Can not move folder, but it still can not move folder. some bit more work.
svn path=/trunk/; revision=17901
2005-09-17 21:02:38 +00:00
Gé van Geldorp
90fedad977 Add back support for older binutils versions
svn path=/trunk/; revision=17900
2005-09-17 19:38:34 +00:00
Gé van Geldorp
f47052c1a7 Open handle to sfd.sys as asynchromous. This fixes bug 713.
svn path=/trunk/; revision=17899
2005-09-17 19:30:05 +00:00
Magnus Olsen
fdb70af10b Bug fix dir *. it only show folders
svn path=/trunk/; revision=17898
2005-09-17 18:56:16 +00:00
Eric Kohl
13fa268dc1 - String id 0 becomes a reserved (invalid) id.
- StringTableStringFromId returns a pointer to an empty string if the string id is invalid.
This fixes the stringtable tests.

svn path=/trunk/; revision=17897
2005-09-17 17:16:33 +00:00
Magnus Olsen
d5f2eeedd7 Update the swedish translation by Harteex.
svn path=/trunk/; revision=17896
2005-09-17 16:02:37 +00:00
Royce Mitchell III
39001fdc17 Fix "numberf" function to correctly handle 'g' format specifier. Debugged by Michael Fritscher <michael@fritscher.net>
(fixed a couple return values while I was in there)

svn path=/trunk/; revision=17895
2005-09-17 13:48:38 +00:00
Filip Navara
8895797332 Fix "numberf" function to correctly handle 'g' format specifier. Debugged by Michael Fritscher <michael@fritscher.net>.
svn path=/trunk/; revision=17894
2005-09-17 11:20:25 +00:00
Filip Navara
bd4bdb08c1 Patricio Martínez Ros <silencium@wanadoo.es>
Spanish translation.

svn path=/trunk/; revision=17893
2005-09-17 10:55:29 +00:00
Martin Fuchs
d0ad7f5452 add new winefile icon images in 48x48 and 16x16 resolutions
svn path=/trunk/; revision=17892
2005-09-17 10:54:46 +00:00
Martin Fuchs
f374903282 add comment
svn path=/trunk/; revision=17891
2005-09-17 10:52:43 +00:00
Gé van Geldorp
30f4eba8d2 Hopefully the last in a series of fixes for size of maximized windows
svn path=/trunk/; revision=17890
2005-09-16 21:15:58 +00:00
Gé van Geldorp
d7876f7981 Bletch <npwoods@mess.org>
Partially implemented the treeview right-click menu on Regedit. Just supporting
Expand and Collapse for now, and also started work on renaming keys.

svn path=/trunk/; revision=17889
2005-09-16 20:13:26 +00:00
Gé van Geldorp
a5556fb1e4 RegQueryValueExW retrieves Unicode strings but the size must be specified in
bytes. Fixes bug 770.

svn path=/trunk/; revision=17888
2005-09-16 19:47:44 +00:00
Gé van Geldorp
0f6d6950a2 Do some boundschecking on iOrder. Fixes bug 770.
svn path=/trunk/; revision=17887
2005-09-16 18:18:48 +00:00
Andrew Munger
7f46bf47f7 Fix release build of ntdll by adding __NO_CTYPE_INLINES to rtl.xml
svn path=/trunk/; revision=17886
2005-09-16 18:07:19 +00:00
Andrew Munger
e03998d67c Fix release build of dflat32, initalizing some vars and fixing one typo.
svn path=/trunk/; revision=17885
2005-09-16 18:00:49 +00:00
Gé van Geldorp
0dee5251b9 Fix "var might be used uninitialized" warning
svn path=/trunk/; revision=17884
2005-09-16 17:53:40 +00:00
Gé van Geldorp
17c7dd0144 Only access dwTypeData if the caller pronounced it valid.
svn path=/trunk/; revision=17883
2005-09-16 15:34:19 +00:00
Hartmut Birr
bae216e9d2 Free all messages in LpcpDeletePort.
svn path=/trunk/; revision=17882
2005-09-16 15:18:23 +00:00
Brandon Turner
873253a8e9 start even console apps in there own new window. caught by GvG.
svn path=/trunk/; revision=17881
2005-09-16 15:18:07 +00:00
Brandon Turner
dadab98225 fix a bug in 'if exsist', it was only reading to the first space for the file name, ignoring quotes and there fore searching for bad file names.
svn path=/trunk/; revision=17880
2005-09-16 15:00:22 +00:00
Hartmut Birr
0e07f15c6a Dereference the port object in PspExitThread.
svn path=/trunk/; revision=17879
2005-09-16 14:50:25 +00:00
Brandon Turner
50aaff9bd3 Set errorlevel to 0 when user enters 'no' on del confirmation. this is how MS does it.
svn path=/trunk/; revision=17878
2005-09-16 13:58:37 +00:00
Steven Edwards
2fe4d89ea8 added support for test on 2k,XP and 2k3. Check for a bug in our implementation and wrap it in a todo_wine block
svn path=/trunk/; revision=17877
2005-09-16 08:48:00 +00:00
Brandon Turner
ea5a3afa86 When searching for a file to execute, if you fail to find it using the first part of the input, try to use the full line input. problem is really only seen when doing "start foo.bat".
svn path=/trunk/; revision=17876
2005-09-16 05:51:20 +00:00
Brandon Turner
3d2d6eff0b "start" or "start cmd" now opens a new cmd.exe in its own process. this is how MS cmd does it.
svn path=/trunk/; revision=17875
2005-09-16 05:35:43 +00:00
Brandon Turner
00e96a6cb1 last time. fix a typo. im so sorry!
svn path=/trunk/; revision=17874
2005-09-16 04:53:07 +00:00
Brandon Turner
691589bdf4 forgot to free comspec, very sorry.
svn path=/trunk/; revision=17873
2005-09-16 04:46:06 +00:00
Brandon Turner
b494052296 Use compsec instead of "cmd" when trying to find cmd.exe
svn path=/trunk/; revision=17872
2005-09-16 04:40:46 +00:00
Gé van Geldorp
30aad7b52a Fix some of the damage r17811 did to the GDB stub
svn path=/trunk/; revision=17871
2005-09-15 22:07:35 +00:00
Aleksey Bragin
43bdfc834c Fix the tree at last, by reverting previous changes to RtlpCheckForActiveDebugger.
svn path=/trunk/; revision=17870
2005-09-15 20:24:30 +00:00
Aleksey Bragin
646ee13307 Revert 17867:17866 change, introduced to temporarily fix tree-compiling. Made obsolete by rev. 17868.
svn path=/trunk/; revision=17869
2005-09-15 19:30:27 +00:00
Alex Ionescu
019ed71c23 - Fix build, sorry.
svn path=/trunk/; revision=17868
2005-09-15 19:18:59 +00:00
Aleksey Bragin
fbc3848431 Fix compiling error, feel free to revert this when commiting missing changes (if it's not a typo).
svn path=/trunk/; revision=17867
2005-09-15 19:14:42 +00:00
Hartmut Birr
3d3c2afb41 - Assign first the partitions to drive letters, which have a registry entry in MountedDevices.
- Create for all partitions a registry entry in MountedDevices if none exists.  
- Assign all partitions with arc names first and the others as second.

svn path=/trunk/; revision=17866
2005-09-15 17:26:56 +00:00
Hartmut Birr
1384de5268 - Fixed the creation of arc names. Only valid partitions should be linked to an arc names.
- Create arc names only for partitions on disks, which are visible by the bios.


svn path=/trunk/; revision=17865
2005-09-15 17:23:41 +00:00
Hartmut Birr
9f214815b7 - Do only allow to install reactos on disks which are visible by the bios.
- Arrange the disks in the same sequence how they was detected by the bios.  
- Create a registry entry in MountedDevices for each recognized partition.

svn path=/trunk/; revision=17864
2005-09-15 17:19:31 +00:00
Hartmut Birr
a9ef5d9d40 Fixed the MP build.
svn path=/trunk/; revision=17863
2005-09-15 16:52:23 +00:00
Hartmut Birr
b3f6e62113 Used the given registry path from DriverEntry to query the registry.
This will also fix the bug in I8042ReadRegistry, which has append the string to an unicode string with an uninitialized length value.

svn path=/trunk/; revision=17862
2005-09-15 16:46:17 +00:00
Hervé Poussineau
cff40b3061 If we have a PCI device, try to keep the IRQ assigned by the BIOS instead of forcing 0x9
svn path=/trunk/; revision=17861
2005-09-15 15:57:28 +00:00
Alex Ionescu
184ae2cb27 Return valid status
svn path=/trunk/; revision=17860
2005-09-15 14:07:37 +00:00
Hervé Poussineau
86ce7ba5ab Revert 17858 and fix all warnings at once.
This fix may be strange at first sight, but original Linux code doesn't use "flags" variable at all. This fix is here only to prevent a warning and shouldn't break the behaviour of the code.

svn path=/trunk/; revision=17859
2005-09-15 13:25:32 +00:00
Hervé Poussineau
7329dca76f Initialize flags variable to 0
svn path=/trunk/; revision=17858
2005-09-15 12:57:11 +00:00
Aleksey Bragin
8e8dbdf319 Initialize DeviceNumber to 0
svn path=/trunk/; revision=17857
2005-09-15 12:50:40 +00:00
Art Yerkes
f6cf8905f8 Took some advice from alex re: w32api headers. Use ..._DEFINED to override
items in the standard headers for different wordsize host.  wrc almost working
on 64-bit host.

svn path=/trunk/; revision=17856
2005-09-15 05:58:49 +00:00
Andrew Munger
ddaabb16b4 Added a text test to rosperf, and build as unicode.
svn path=/trunk/; revision=17855
2005-09-15 04:57:51 +00:00
Andrew Munger
a88a9fff19 Fix release build of string library
svn path=/trunk/; revision=17854
2005-09-15 04:51:14 +00:00
Filip Navara
0443a3b73c Update the IDC_* constants.
svn path=/trunk/; revision=17853
2005-09-14 22:13:22 +00:00
Filip Navara
d3a5c3f2bd Patricio Martínez Ros <silencium@wanadoo.es>
Spanish translation.

svn path=/trunk/; revision=17852
2005-09-14 21:07:04 +00:00
Filip Navara
b3abdb0812 Patricio Martínez Ros <silencium@wanadoo.es>
Spanish translation.

svn path=/trunk/; revision=17851
2005-09-14 21:06:35 +00:00
Andrew Munger
1b7481234a Fix regexpl so it properly prints a DWORD_LITTLE_ENDIAN.
svn path=/trunk/; revision=17850
2005-09-14 20:24:43 +00:00
Hervé Poussineau
5b76e2c8f8 Fix indentation of generated code, by letting Output method do its indenting job
svn path=/trunk/; revision=17849
2005-09-14 19:32:47 +00:00
Alex Ionescu
02eed3311f fix build
svn path=/trunk/; revision=17848
2005-09-14 02:03:17 +00:00
Alex Ionescu
e0eea608a6 ntoskrnl header cleanups
svn path=/trunk/; revision=17847
2005-09-14 01:44:19 +00:00
Alex Ionescu
e8dcb74344 ntoskrnl header cleanups
svn path=/trunk/; revision=17846
2005-09-14 01:05:50 +00:00
Alex Ionescu
a6f1511ecb ntoskrnl header cleanups
svn path=/trunk/; revision=17845
2005-09-13 23:48:54 +00:00
Alex Ionescu
11272023e5 Part 1 of <many> ntoskrnl header cleanups
svn path=/trunk/; revision=17844
2005-09-13 23:28:21 +00:00
Royce Mitchell III
10f2fdca23 zero out the struct and disable code that has no connection with reality - I'm thinking MIIM_STRING should be removed from flags also, but I have not tested with that change.
svn path=/trunk/; revision=17843
2005-09-13 23:04:32 +00:00
Alex Ionescu
4d1f146406 Filip doesn't like int3. Implemented Trap6 failure on bad stack and V86M syscall return
svn path=/trunk/; revision=17842
2005-09-13 20:26:57 +00:00
Alex Ionescu
99e5e010dc Properly bias frame, remove bugcheck added for debugging, re-add bugcheck removed for debugging
svn path=/trunk/; revision=17841
2005-09-13 20:13:05 +00:00
Alex Ionescu
736e7b9af0 Missing files...
svn path=/trunk/; revision=17840
2005-09-13 19:41:07 +00:00
Alex Ionescu
38b63156fa Sorry for the debug messages.
svn path=/trunk/; revision=17839
2005-09-13 19:34:48 +00:00
Alex Ionescu
7a5244c46d Some work-in-progress improvements and rethought of system-level code...notable improvemnts till now are: -The KTHREAD alterted flag is now properly set to FALSE during APC delivery during traps, -More support for PKEXCEPTION_FRAME has been added for future PPC/IA64/etc compatibility -Context to/from TrapFrame functions have been greatly fixed to allow for edited frames, special cases, exceptions and also have the necessary support for supporting sanitation based on PreviousMode - KDBG now shows the proper CS/SS at all times, previous hack was removed. - Systemcall code was optimized a bit and the trap code was made a lot more generic so that in can be made into macros (it currently isn't, for debugging purposes). - V86 Mode trap frame bias has now been added to make trap code a lot more generic and shareable in the future. -More support and fixes for future Debugging capabilities have been added. - Random other scalability and stability code. This is still being worked on, syscall.S looks nasty for now (visually)
svn path=/trunk/; revision=17838
2005-09-13 19:33:49 +00:00
Royce Mitchell III
3b0cfca870 rename variable and change parameters in call to find_last_not_of() to hopefully be a little more accurate to what it's doing
svn path=/trunk/; revision=17837
2005-09-13 19:11:37 +00:00
Royce Mitchell III
130efbb545 fix bug in GetBinutilsVersion()
svn path=/trunk/; revision=17836
2005-09-13 19:04:24 +00:00
Hartmut Birr
7f94d6e5bf - Freed the path string for the keyboard dll.
- Freed some strings in all cases.

svn path=/trunk/; revision=17835
2005-09-13 18:08:18 +00:00
Hartmut Birr
535a223492 Fixed the declaration of RtlPinAtomInAtomTable.
svn path=/trunk/; revision=17834
2005-09-13 18:04:00 +00:00
Gregor Anich
887b31e11d Implement QUERYESCSUPPORT escape in ExtEscape (returns FALSE always)
svn path=/trunk/; revision=17832
2005-09-13 14:46:48 +00:00
Gregor Anich
75413f5545 Query support for opengl-driver-info escape before calling it and some other minor changes.
svn path=/trunk/; revision=17831
2005-09-13 14:46:00 +00:00
Royce Mitchell III
0dbbd80237 copy&paste enhancement
patch by "brbak"
(see bug 749)

svn path=/trunk/; revision=17830
2005-09-13 14:34:48 +00:00
Royce Mitchell III
03d6ef4607 fix crash in 'make msvc'
svn path=/trunk/; revision=17829
2005-09-13 11:57:50 +00:00
Steven Edwards
a9c581cdb7 added LGPL license header to the code from Wine and Patrik Stridvall and Royce Mitchell III as authors
svn path=/trunk/; revision=17828
2005-09-13 03:51:18 +00:00
Steven Edwards
e9a29bad13 started working on generation of msvc2kX project files. THESE ARE NOT CORRECT. Right now its just a copy of the existing msvc6 generation code. It will generate a *.sln and *.vcproj files however they are still in the old format.
svn path=/trunk/; revision=17827
2005-09-13 03:46:22 +00:00
Hervé Poussineau
5b89cb0136 Kimmo Myllyvirta <kimmo.myllyvirta@gmail.com>
Added Finnish resources.

svn path=/trunk/; revision=17826
2005-09-12 21:48:21 +00:00
Royce Mitchell III
638efc58aa security audit of explorer code...
strcpy -> lstrcpyn
strncpy -> lstrcpyn
[v]sprintf -> [v]snprintf
moved common Shell::get_path() subclass implementations into Shell::get_path_base() and made function overflow-proof
make other non-common subclass implementations of get_path overflow-proof

svn path=/trunk/; revision=17825
2005-09-12 21:46:09 +00:00
Royce Mitchell III
da407213dc msvc6 warning fix - cast return value of SHAlloc()
svn path=/trunk/; revision=17824
2005-09-12 20:07:29 +00:00
Royce Mitchell III
6994c4711b msvc6 warning fix - cast return value of SHAlloc()
svn path=/trunk/; revision=17823
2005-09-12 20:04:49 +00:00
Royce Mitchell III
6ad405d90f fix breakage - sorry
svn path=/trunk/; revision=17822
2005-09-12 19:58:34 +00:00
Magnus Olsen
831020dc3d DoCommand()
Remove one more hardcode buffer size. Remove limit command to MAX_PATH. No check for limit command line-

svn path=/trunk/; revision=17821
2005-09-12 19:50:16 +00:00
Gé van Geldorp
6ceb694074 Bletch <npwoods@mess.org>
- Implements the Encoding field when you save, allowing the user to save as
  ANSI, Unicode or UTF-8
- Invoking 'Save As' after saving or loading a file will default to the
  earlier filename
(minor changes by GvG, so mistakes are mine).

svn path=/trunk/; revision=17820
2005-09-12 17:10:00 +00:00
Royce Mitchell III
5fbac4d9e6 msvc6 compatibility and small performance improvement in filename completion
svn path=/trunk/; revision=17819
2005-09-12 16:06:53 +00:00
Royce Mitchell III
811a8addb8 io.h only exists for win32 - sorry *nix users
svn path=/trunk/; revision=17818
2005-09-12 14:55:55 +00:00
Royce Mitchell III
912eda64c8 fix warning about unlink() being undeclared
svn path=/trunk/; revision=17817
2005-09-12 14:33:57 +00:00
Alex Ionescu
025e6f6975 Fix previous strangely incomplete NtRaiseException implementation and re-enable the ProbeForRead call that failed
svn path=/trunk/; revision=17816
2005-09-12 03:59:03 +00:00
Alex Ionescu
2dfe1a384e Fix bug in KiUserExceptionDispatcher
svn path=/trunk/; revision=17815
2005-09-12 03:10:08 +00:00
Alex Ionescu
9e5af04e26 Fix RtlpGetStackLimits to get the right limits if called in kernel-mode (separated implementations). Also don't return from _SEH_TRY blocks, because PSEH doesn't support this. Also temporarly disable a ProbeForRead check in KiContinue because it currently causes trouble
svn path=/trunk/; revision=17814
2005-09-12 02:57:47 +00:00
Royce Mitchell III
19ca3d1d83 patch by Alex_Ionescu - fixes crash in usb driver on bootup in vmware
svn path=/trunk/; revision=17813
2005-09-12 01:32:11 +00:00
Royce Mitchell III
2f35400d27 document parameter names
svn path=/trunk/; revision=17812
2005-09-12 01:31:24 +00:00
Alex Ionescu
b9020b11dd Major refactoring of the exception handling code + misc fixes:
- Fix/add prototypes for RtlCaptureContext, RtlDispatchException and RtlUnwind
	- Fix EXCEPTION_REGISTRATION_RECORD structure and PEXCEPTION_ROUTINE
	- Add w32api excpt.h (based on mingw) with PSDK compatibility fixes
	- Fix seriously broken User-Mode Ldr thunk and APC Callback prototypes
	- Fix KiUserExceptionDispatcher
	- Remove useless NTDLL entrypoint
	- Implement NTDLL Ki* callbacks in ASM
	- Implement RtlCaptureContext
	- Fix RtlRaiseException to handle cases when a user-mode debugger is present
	- Fix RtlRaiseStatus as above, plus set the exception address and capture context
	- Little cleanup of RTL headers
	- Implement RtlpGetStackLimits, RtlpGetExceptionList, RtlpSetExceptionList, RtlpGetExceptionAddress in ASM
	- Fix RtlDispatchException, add cases for exceptions in the DPC stack and validate the validity of the 
exception frames. Add support for exception logging by the global flag. Use TRAP_FRAME/EXCPETION_FRAME instead of 
Context.
	- Fix RtlUnwind logic, support cases where it's called with custom arguments instead of NULL.
	- Reimplement RtlpCaptureContext to work properly, convert exception handler calling functions to INTEL syntax 
and fix some bugs (like checking for the right unwind flag, clearing volatile register values, etc. Also use some 
optimizations to increase speed.
	- Modify some kernel functions (like KeContextToTrapFrame, KiDispatchException, KiInitializeUserApc, etc.) to 
support a PKEXCEPTION_FRAME for future PPC compatibility.
	- Reimplement RtlCaptureUnicodeString/FreeUnicodeString as inlined probe macros and optimize them.
	- Export ExRaiseStatus/Exception as Rtl*
	- Reimplement NtContinue to have more platform-independent code, and to protect and validate user-mode context 
and parameters with SEH.
	- Implement KiRaiseException, add SEH to all user-mode parameters and when copying data to the user-mode stack.
	- Fix KiInitializeUserApc to use KeTrapFrameToContext, to save the debug registers, not to deliver APCs during 
v86 mode, and to protect user-mode stack operations in SEH and probing. Also make it generate the proper stack for the 
user-mode callback. 
	- Implement KiUnexpectedInterrupt and KiCoprocessorError
	- Reimplement NtRaiseException in ASM to take advantage of optimizations due to the trap frame being in the 
stack when called through System call interface.
	- Fix Ntcontinue to respect AlertThread paramter
	- Fix some functiosn to return with KiServiceExit2 instead of KiServiceExit when required/needed
	- Fix KiDispatchException's logic, fix hacks when calling KeUserExceptionDispatcher, use correct context 
flags,...
	- Make NTDLL Ki* callbacks have SEH to protect them and return to kernel-mode with notification of any 
exceptions (the kernel-mode code to handle this isn't written yet though)

svn path=/trunk/; revision=17811
2005-09-11 22:32:20 +00:00
Magnus Olsen
801ad7223f Do not compile cmd to unicode, if we do pipe will be 100% broken then.
svn path=/trunk/; revision=17810
2005-09-11 21:19:32 +00:00
Gunnar Dalsnes
f5449547b6 fix referencing bug (ros crashed during setup if mousemove) in co_WinPosSearchChildren
svn path=/trunk/; revision=17809
2005-09-11 21:05:32 +00:00
Magnus Olsen
3a98addd02 Make some more dymatic buffer and correct some free()
svn path=/trunk/; revision=17808
2005-09-11 20:41:39 +00:00
Brandon Turner
6b218f4e59 simple fix for 'del foo' where foo is a folder.
svn path=/trunk/; revision=17807
2005-09-11 20:26:36 +00:00
Magnus Olsen
f586d22df5 Do not crash if the prompt command name are binger that 260char or the command line.
svn path=/trunk/; revision=17806
2005-09-11 20:16:37 +00:00
Brandon Turner
4b1a13ae2f Windows style auto complete should only return folders then the preceding command is cd or rd.
svn path=/trunk/; revision=17805
2005-09-11 19:40:45 +00:00
Gé van Geldorp
0c1c382528 The system menu is allowed to have an unnamed entry which is not a separator
svn path=/trunk/; revision=17804
2005-09-11 17:59:52 +00:00
Magnus Olsen
de603dba17 Update the swedish translation by Harteex
svn path=/trunk/; revision=17803
2005-09-11 17:47:00 +00:00
Gunnar Dalsnes
fdafc67fbe -refcount reworking (simplification & improvement)
-make functions deal with pointers, not handles
-misc formatting

svn path=/trunk/; revision=17802
2005-09-11 14:48:32 +00:00
Eric Kohl
9e486c444b - CFGMGR32.DLL: Forward implemented functions to SETUPAPI.DLL.
- SETUPAPI.DLL: Use PNP_EnumerateSubKeys to implement CM_Enumerate_Classes_Ex.

svn path=/trunk/; revision=17801
2005-09-11 14:38:57 +00:00
Hervé Poussineau
61420d12f3 Signal USB device arrivals to PnP manager
svn path=/trunk/; revision=17800
2005-09-11 13:55:23 +00:00
Hervé Poussineau
cde1a0c17d Disable USB keyboard and mouse support, as they conflict with i8042prt driver.
We need to change kbdclass/mouclass to be an upper filter of keyboard/mouse device objects (which would become unnamed), and to support multiple keyboards/mice

svn path=/trunk/; revision=17799
2005-09-11 13:55:18 +00:00
Filip Navara
019de62105 Make _strtoui64 an alias of strtoull.
svn path=/trunk/; revision=17798
2005-09-11 13:05:33 +00:00
Filip Navara
c25a8a58af Fix strtoull implementation and add it to build files. Based on patch by Mark Junker <mjscod@gmx.de>.
svn path=/trunk/; revision=17797
2005-09-11 12:36:09 +00:00
Aleksey Bragin
a43952c66b updated wait_for_completion, should work similar to schedule_timeout.
svn path=/trunk/; revision=17796
2005-09-11 11:59:25 +00:00
Hervé Poussineau
3745fc25ff Let OHCI miniport use shared code in drivers/usb/miniport/common/*, instead of duplicating it
svn path=/trunk/; revision=17795
2005-09-11 11:40:43 +00:00
Hervé Poussineau
975f584df9 Display debug error message only when action fails
svn path=/trunk/; revision=17794
2005-09-11 09:23:16 +00:00
Art Yerkes
24a13ab689 Previously, the first character written to the buffer was random (off the
stack).  Not sure why this didn't blow up for others.  Make sure we fill
one character before placing one in the buffer.

svn path=/trunk/; revision=17793
2005-09-11 09:19:24 +00:00
Eric Kohl
ac5798e0c9 - Implement CM_Enumerate_Enumerators_ExA.
- Fix a typo in PNP_EnumerateSubKeys.

svn path=/trunk/; revision=17792
2005-09-11 08:45:02 +00:00
Hervé Poussineau
f535ffe39f xHCI:
* Fix value returned by IRP_MN_QUERY_CAPABILITIES and IOCTL_INTERNAL_USB_GET_ROOT_USB_DEVICE
* Remove debug output
USBHUB:
* Don't enumerate too much children. Display informations about them

svn path=/trunk/; revision=17791
2005-09-10 23:50:28 +00:00
Gé van Geldorp
98f577158f Fix some object/handle victims. Fixes bug 765.
svn path=/trunk/; revision=17790
2005-09-10 23:01:56 +00:00
Hartmut Birr
3a292fe93d - Acquire the temporary buffer from non paged pool in NtQueryDirectoryObject, because the buffer is accessed at DPC_LEVEL.
- Do always add an empty entry at the end of the buffer

svn path=/trunk/; revision=17789
2005-09-10 22:35:08 +00:00
Gé van Geldorp
829763c4d7 Handle .msi files
svn path=/trunk/; revision=17788
2005-09-10 20:19:23 +00:00
Gé van Geldorp
58c1ccc051 Also add registry entries when driver files are already present
svn path=/trunk/; revision=17787
2005-09-10 19:37:20 +00:00
Gé van Geldorp
3276e52050 Auto-determine base of DWORD registry entries.
Fixes bug 764.

svn path=/trunk/; revision=17786
2005-09-10 19:21:49 +00:00
Eric Kohl
f913bdb378 - Implement CM_Enumerate_Enumerators[_Ex]A/W
- Fix PNP_EnumerateSubKeys

svn path=/trunk/; revision=17785
2005-09-10 19:01:44 +00:00
Hervé Poussineau
9162d35b10 Remove unneeded pointer indirection
svn path=/trunk/; revision=17784
2005-09-10 18:45:34 +00:00
Royce Mitchell III
4786e1d6f0 change rest of warnings to allowwarnings - sorry I didn't get to this the other day.
svn path=/trunk/; revision=17783
2005-09-10 18:39:34 +00:00
Hervé Poussineau
23d2ee98f5 Move shareable part of USB miniport drivers to a new directory. UHCI uses it.
svn path=/trunk/; revision=17782
2005-09-10 18:04:42 +00:00
Hartmut Birr
d672727c6a Print only the complete information if the fd is valid itself (in is_valid_fd).
svn path=/trunk/; revision=17781
2005-09-10 15:36:35 +00:00
Hartmut Birr
f8c9d4f80f Silence two debug messages after they have cried a little bit.
svn path=/trunk/; revision=17780
2005-09-10 15:30:21 +00:00
Hartmut Birr
10dac7250e Fixed a typo.
svn path=/trunk/; revision=17779
2005-09-10 15:21:16 +00:00
Hartmut Birr
19f7ba6b03 Fixed the allocation of some buffers in Execute.
svn path=/trunk/; revision=17778
2005-09-10 15:20:10 +00:00
Hartmut Birr
a03dfb5235 Fixed GetConsoleTitleA/W.
svn path=/trunk/; revision=17777
2005-09-10 15:18:42 +00:00
Hervé Poussineau
f03b5bcdff Move common code of USB miniport drivers into drivers/usb/miniport/common library
svn path=/trunk/; revision=17776
2005-09-10 15:17:07 +00:00
Emanuele Aliberti
e76d9c0ae2 <module warnings=...>
<module allowwarnings=...>

svn path=/trunk/; revision=17775
2005-09-10 14:46:06 +00:00
Hervé Poussineau
2764f55c6c Add USB drivers to bootcd
svn path=/trunk/; revision=17774
2005-09-10 13:03:17 +00:00
Eric Kohl
71dc00530f Implement CM_Delete_Class_Key[_Ex].
svn path=/trunk/; revision=17773
2005-09-10 13:02:02 +00:00
Eric Kohl
7ad59b629a Add RegDeleteTreeA/W prototype.
svn path=/trunk/; revision=17772
2005-09-10 10:31:22 +00:00
Gé van Geldorp
a2c38b8cdd Fix maximizing problem introduced by r17764
svn path=/trunk/; revision=17771
2005-09-10 08:22:03 +00:00
Gé van Geldorp
ae5de0886a Don't trust the returned date/time from the BIOS. QEmu messes this up sometimes.
Partly fixes bug 716.

svn path=/trunk/; revision=17767
2005-09-09 21:15:32 +00:00
Hervé Poussineau
187b9e3939 Compile cmd.exe as unicode
svn path=/trunk/; revision=17766
2005-09-09 15:58:40 +00:00
Gé van Geldorp
4de7f0f089 maxlen is in characters, _cnt is in bytes.
Note: rebuild of lib/crt required for this change to take effect
(make crt_clean; make crt)
This brings the VMware Tools installer a hell of a lot further (bug 717).

svn path=/trunk/; revision=17765
2005-09-09 14:47:35 +00:00
Gé van Geldorp
61d669da33 Use max tracking size instead of maximized size to limit window size.
Fixes bug 721.

svn path=/trunk/; revision=17764
2005-09-09 13:35:02 +00:00
Gé van Geldorp
589e1e9ee0 Restore console title after running a command
svn path=/trunk/; revision=17763
2005-09-09 12:22:25 +00:00
Gé van Geldorp
7555a90fe9 Don't assume UNICODE_STRINGs are nul terminated
svn path=/trunk/; revision=17762
2005-09-09 12:22:01 +00:00
Gé van Geldorp
c0337d5d24 Convert title from UNICODE_STRING to nul-terminated
svn path=/trunk/; revision=17761
2005-09-09 11:43:26 +00:00
Gé van Geldorp
b1e0054bee RetVal is in bytes, so check against MAX_PATH in bytes
svn path=/trunk/; revision=17760
2005-09-09 10:22:40 +00:00
Gé van Geldorp
1dc718065f Window handle is not valid anymore when the object is in "destroyed" state
svn path=/trunk/; revision=17759
2005-09-09 09:50:58 +00:00
Gé van Geldorp
704232a50f Remove WS_VISIBLE bit from correct member
svn path=/trunk/; revision=17758
2005-09-09 09:48:33 +00:00
Andrew Munger
02471b01a7 Remove stray data from the XML. This one goes out to TLF.
svn path=/trunk/; revision=17757
2005-09-09 00:38:39 +00:00
Gunnar Dalsnes
16addb9060 -cursoricon: naming changes, cleanup
-fix: hide/show caret to accept NULL hWnds
-some handle to pointer converions
-double handle table size
-fix: co_WinPosActivateOtherWindow was trying to access desktop parent

svn path=/trunk/; revision=17756
2005-09-09 00:25:52 +00:00
Royce Mitchell III
6b27e47c88 win32 api compatibility fix
changed 'warnings' attribute of <module> to 'allowwarnings' to make it's function less ambiguous

svn path=/trunk/; revision=17755
2005-09-08 23:10:17 +00:00
Hervé Poussineau
ffb05e59d0 Change driver name ohci.sys -> usbohci.sys
svn path=/trunk/; revision=17754
2005-09-08 21:54:42 +00:00
Hervé Poussineau
d41edbe37f Remove warnings and allow installation of USB files with make install
svn path=/trunk/; revision=17753
2005-09-08 21:32:53 +00:00
Gé van Geldorp
8da043e4f2 Fix double-clicking control panel items
svn path=/trunk/; revision=17752
2005-09-08 21:08:53 +00:00
Hervé Poussineau
67720419df Fix build, by correcting include paths and updating xml files of USB components
svn path=/trunk/; revision=17751
2005-09-08 20:53:17 +00:00
Hartmut Birr
d392fa8a17 Allocate a larger storage for the request buffer. It is necessary since the latest changeing in ntdll for csrss connections.
svn path=/trunk/; revision=17750
2005-09-08 20:18:46 +00:00
Hervé Poussineau
af6ca3d9d4 Add xml files at the right places
Remove now useless cromwell directory

svn path=/trunk/; revision=17749
2005-09-08 20:16:36 +00:00
Hartmut Birr
1df53c9525 Initialize the length in the header in LpcSendTerminationPort.
svn path=/trunk/; revision=17748
2005-09-08 20:12:33 +00:00
Hervé Poussineau
82b0b7c44a Move drivers to the right location
svn path=/trunk/; revision=17747
2005-09-08 20:07:16 +00:00
Hervé Poussineau
6bd521580a Rename drivers to their right name
svn path=/trunk/; revision=17746
2005-09-08 20:02:40 +00:00
Hervé Poussineau
1d6a0c4579 Start of big changes in layout of USB code. Fireball and I are agreeing on these changes.
Step 1: delete all useless stuff

svn path=/trunk/; revision=17745
2005-09-08 19:58:55 +00:00
Casper Hornstrup
21501cda53 Christoph_vW <Christoph@ApiViewer.de>:
Binutils detection

Modified to support cross-compilation

Resolves #707

svn path=/trunk/; revision=17744
2005-09-08 16:41:07 +00:00
Gunnar Dalsnes
b4f5c9b4b5 -remove hotkey lock
-remove dc list lock
-simplify/rework refcounting
-remove keyboard queue state lock
-convert some functions into taking pointerargs, not handles

svn path=/trunk/; revision=17743
2005-09-08 16:18:51 +00:00
Gé van Geldorp
57b5d08a65 Unlock console on alternate return paths. Fixes bug 734.
svn path=/trunk/; revision=17742
2005-09-08 15:51:44 +00:00
Gé van Geldorp
b8d592993d Correct notepad location
svn path=/trunk/; revision=17741
2005-09-08 14:01:53 +00:00
Gé van Geldorp
e8b32e19d9 saveliyt@mail.ru:
Start SCM on livecd too

svn path=/trunk/; revision=17740
2005-09-08 13:27:17 +00:00
Gé van Geldorp
9bec9db6c6 Reserve space for The Terminator
svn path=/trunk/; revision=17739
2005-09-08 13:08:21 +00:00
Gé van Geldorp
f2854a8641 Translate partition 0 to active partition. Fixes bug 181.
svn path=/trunk/; revision=17736
2005-09-08 08:29:01 +00:00
Alex Ionescu
659c21724b - Move s(w)printf to rtl (cannot be shared in string because of differences with the CRT implementation). - Fix build errors due to previous commits (sorry).
svn path=/trunk/; revision=17735
2005-09-08 06:52:01 +00:00
Alex Ionescu
48fe1fb84b Share more duplicated functions
svn path=/trunk/; revision=17734
2005-09-08 05:03:34 +00:00
Alex Ionescu
6ce05ab58e Don't duplicate string and ctype functions 2 (or even 3) times... we have stringlib for that
svn path=/trunk/; revision=17733
2005-09-08 04:27:02 +00:00
Alex Ionescu
7206207210 - Move more stuff to /rtl
- Bring back Ki* callbacks into ntdll.

svn path=/trunk/; revision=17732
2005-09-08 02:29:30 +00:00
Alex Ionescu
c39ccd6592 - Part one of major RTL cleanup. Merge duplicated code and stick everything in lib\rtl that used to be in ntdll. Also cleanup the file headers, copyright information and includes.
svn path=/trunk/; revision=17731
2005-09-08 00:09:32 +00:00
Gunnar Dalsnes
7c6de62098 indent with astyle v1.15.3: --style=ansi -c -s3 -S --convert-tabs
svn path=/trunk/; revision=17730
2005-09-07 21:25:42 +00:00
Gunnar Dalsnes
5d8ed11b10 window pointer was incorrectly passed as wparam to co_IntSendMessage instead of hwnd
svn path=/trunk/; revision=17729
2005-09-07 21:05:16 +00:00
Gunnar Dalsnes
a401832d5f -replace user object/handle manager with the one from wine. its simpler, faster and more correct.
-convert dozens of functions to take pointers as args, not handles
-attempt to simplify/correct refcounting
-remove much useless refcounting
-make callout refcounts auto undoable (ei. if the thread crash in umode during callback)
-misc formatting/naming changes

svn path=/trunk/; revision=17728
2005-09-07 20:59:26 +00:00
Alex Ionescu
b0bac13ce1 Implement NTDLL's CSR routines in a compatible way. Fix prototypes, argument count, deprecated functions and new functions. Some functions will not work (or are designed not to work) fully until the new CSR is committed, but they keep the same functionality as the previous versions (no regressions found; tested with cmd, cmt, putty, telnet, ps). Also added NtSecureConnectPort.
svn path=/trunk/; revision=17727
2005-09-07 19:37:28 +00:00
Andrew Munger
43692c4674 Fix include so packlib builds after latest wine sync.
svn path=/trunk/; revision=17726
2005-09-07 19:09:56 +00:00
Gé van Geldorp
abe6592a41 Make sure memory will be freed on delete of DIB section
svn path=/trunk/; revision=17725
2005-09-07 17:54:47 +00:00
Hartmut Birr
3b7a5daefb Fixed the definition of RtlUnicodeStringToCountedOemSize. This will fix bug 756.
svn path=/trunk/; revision=17724
2005-09-07 17:20:28 +00:00
Gé van Geldorp
8e0fca60da Update status
svn path=/trunk/; revision=17723
2005-09-07 16:34:46 +00:00
Gé van Geldorp
c9a9b98de0 Sync to Wine-20050830:
Alexandre Julliard <julliard@winehq.org>
- Removed a useless header file.

svn path=/trunk/; revision=17721
2005-09-07 16:28:09 +00:00
Gé van Geldorp
3ab848b8e2 Add AC_SRC constants
svn path=/trunk/; revision=17720
2005-09-07 16:23:24 +00:00
Gé van Geldorp
190de1fde5 Sync to Wine-20050830:
Kevin Koltzau <kevin@plop.org>
- Fix 'cast to pointer from integer of different size' warnings in
  64bit.
Frank Richter <frank.richter@gmail.com>
- Add support for the BT_NONE background type.
- Better computations to have uniformly sized parts scaled in both
  directions.
- Implement GetThemeBackgroundExtent().
- Implement DrawThemeEdge().
- Implement support for the ST_TILE background stretching mode.
- Implementation for GetThemePartSize() (not entirely equivalent to
  native uxtheme, but sensibly useable).
- Enhance uxtheme to store the themed system metrics in the registry and
  also backup the old metrics. That way, themed system colors are set
  even uxtheme was not loaded and initialized yet, and when a theme is
  deactivated, the colors prior to the activation are restored as well.
- Also, not having to set the system colors in uxtheme startup works
  around weird problems where SetSystemColors() ended up being called
  from inside window creation and this seemingly led to some creation
  message being sent twice.
- Make GetThemeMargins() return default values (0 margin) if the
  function does not succeed.
- More elaborate IsThemeBackgroundPartiallyTransparent() implementation;
  also returns TRUE for theme parts with 32bpp images.
- Since theme images are reused now it's not really a good idea to
  delete them in drawing functions.
- Pass around what kind of transparency an image actually needs. Use
  alpha-blending for 32bpp images.
- Set some default values for truesize sizing that seem closer to
  Windows.
- If a MINSIZEn property is not present, fall back to actual size of nth
  image to determine whether it is suitable.
- EnumThemeColors() and EnumThemeSizes() actually do not return a single
  string with the color/size name, but rather a struct containing three
  strings - name, display name and tooltip.
- The default image layout is HORIZONTAL, not VERTICAL.
- Take a common computation out of two if-branches in
  UXTHEME_LoadImage().
- Compare result of RegQueryValueExW() with ERROR_SUCCESS.
- Another fix to use magenta as the default transparent color.
- Implement "manual" image sharing(as opposed to using LoadImage() with
  LR_SHARED) by keeping the loaded images in a list. This is needed for
  proper alpha support later on since once-per-image preparations will
  be needed then.
- Add support for horizontal & vertical alignment when doing truesize
  sizing.
- Whatever TrueSizeStretchMark is for - it's not what Wine uxtheme used
  it for. Native uxtheme always stretches "truesize" parts when the
  destination is smaller than the part image size, but
  TrueSizeStretchMark doesn't seem to have an influence.

svn path=/trunk/; revision=17719
2005-09-07 16:22:51 +00:00
Alex Ionescu
3a0cf7d618 Return correct size. This fixes bug 756
svn path=/trunk/; revision=17718
2005-09-07 16:02:32 +00:00
Gé van Geldorp
179c1bfe6c Sync to Wine-20050830:
Francois Gouget <fgouget@free.fr>
- Add missing WINAPI to MSXML_DllGetClassObject().
  Standardize the DllGetClassObject() prototypes so they match the MSDN
  definition.
Alexandre Julliard <julliard@winehq.org>
- Don't prefix the functions DllCanUnloadNow, DllGetClassObject and
  Dll(Un)RegisterServer with the dll name so that the compiler can check
  the prototypes.

svn path=/trunk/; revision=17717
2005-09-07 15:57:31 +00:00
Gé van Geldorp
5be54798fe Sync to Wine-20050830:
Huw Davies <huw@codeweavers.com>
- IUnknown_SetSite calls IObjectWithSite_SetSite or
  IInternetSecurityManager_SetSecuritySite.
- Fix call to GetMenuItemInfo and unicodify while we're at it.
- Implement SHLoadIndirectString.
- _CreateAllAccessSecurityAttributes takes three parameters.
- Forward ordinals 457,458 to GetLongPathNameW,A.
- Implement SHLoadRegUIStringW.
- Partial implementation of DeleteMenuWrap.
- Implement IUnknown_EnumObjects.
- Implement and add tests for the FDSA functions.
Alexandre Julliard <julliard@winehq.org>
- Don't prefix the functions DllInstall and DllGetVersion with the dll
  name so that the compiler can check the prototypes.
Vincent Beron <vberon@mecano.gme.usherb.ca>
- Correct typo in format string.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 warning fixes.
Steven Edwards <steven_ed4153@yahoo.com>
- Correct RegCreateKeyEx[A/W] prototype to match the PSDK.

svn path=/trunk/; revision=17716
2005-09-07 15:52:47 +00:00
Gé van Geldorp
0e5dde74e7 Sync to Wine-20050830:
Alexandre Julliard <julliard@winehq.org>
- Fixed DllGetClassObject spec entries.

svn path=/trunk/; revision=17715
2005-09-07 15:09:06 +00:00
Gé van Geldorp
75b0c7ce6c Sync to Wine-20050830:
Michael Jung <mjung@iss.tu-darmstadt.de>
- Initialize all members in UnixFolder constructor.
  Support NULL value pidls in GetDisplayNameOf method.
- Implemented IPersist::GetClassID.
- Use wine_get_dos_file_name instead of GetFullPathName.
- Implemented 'My Documents' folder.
- Added stubbed implementation of IPersistPropertyBag interface.
  Register unixfs as CLSID_FolderShortcut.
- Clone pidlLast before free'ing pidl after call to SHBindToParent.
- Use FIXME's in stubs instead of TRACE's.
  Infer pathmode from CLSID in UnixFolderConstructor.
  Fail in IShellFolder::BindToObject, if folder does not initialize.
- Use StringFromGUID2 instead of StringFromCLSID in
  UNIXFS_is_rooted_at_desktop.
Michael Jung <mjung@iss.tu-darmstadt.de>
Ge van Geldorp <gvg@reactos.com>
- Prepend Desktop folder path for files/directories stored in the
  filesystem Desktop folder when GetDisplayNameOf is called with the
  SHGDN_FORPARSING flags.
- Add testcases.
Ge van Geldorp <gvg@reactos.com>
- Fix resource leak on error paths.
- Do not load all shell32 icons during initialization, it wastes a lot of
  memory
Alexandre Julliard <julliard@winehq.org>
- Replace the _ICOM_THIS_From macros by inline functions the way it's
  already done in shelllink.c.
- Use ERR instead of DPRINTF in dump_pidl_hex.
- Don't prefix the functions DllCanUnloadNow, DllGetClassObject and
  Dll(Un)RegisterServer with the dll name so that the compiler can check
  the prototypes.
- Uncomment the typedef in the DECLARE_INTERFACE macro, and get rid of
  duplicate typedefs.
- Get rid of the _ICOM_THIS macros and call the inline function
  directly instead.
- Removed the broken mmap64 configure check, and moved the
  _FILE_OFFSET_BITS define to wine/port.h. Made sure that all files that
  need the define include it.
- Added missing ntdll imports.
Francois Gouget <fgouget@codeweavers.com>
- Fix ShellExecute("\"foo.doc\"") for Internet Explorer 6.
- Update the conformance tests accordingly.
- Tweak a trace because it's very confusing to see the path with no
  escaped quotes in ShellExecuteA() and then with escaped quotes in
  ShellExecuteExW32() (due to debugstr_w()).
- Fix the return value of SHELL_Argify() so it once again returns true
  if a '%1' or equivalent placeholder was found. This fixes
  ShellExecuteEx(lpFile="foo.txt", lpClass="txtfile").
- Fix handling of SEE_MASK_CLASSNAME and SEE_MASK_CLASSKEY. They are not
  disjoint flags.
Mike McCormack <mike@codeweavers.com>
- Warning fixes for gcc 4.0.
- Fix some gcc 4.0 warnings.
Jozef Stefanka <jstefanka@codeweavers.com>
- Fixed browsing to other directories in Word 2003 file open
  dialog. Double clicking on a folder in the File->Open dialog works
  now.
Steven Edwards <steven_ed4153@yahoo.com>
- Correct definition of SFGAO_STORAGEANCESTOR.
Jason Edmeades <us@edmeades.me.uk>
- Add the time to the file display dialog modified column.
- Handle context menu->refresh, and F5 to initiate a refresh of the file
  dialog.

svn path=/trunk/; revision=17714
2005-09-07 08:43:45 +00:00
Gunnar Dalsnes
07151bdc1a make co_WinPosShowWindow take pWnd, not hWnd
add co_ to some funcs

svn path=/trunk/; revision=17713
2005-09-07 07:53:31 +00:00
Gunnar Dalsnes
3b0b4c10fd scrollbar:
simplify refcounting
fix a bug in NtUserGetSystemMenu, accessing nullpointer
use pointers internally, not handles

svn path=/trunk/; revision=17712
2005-09-07 00:02:39 +00:00
Gunnar Dalsnes
306250f7f5 prop: simplify refcounting, naming changes
svn path=/trunk/; revision=17711
2005-09-06 23:29:54 +00:00
Gunnar Dalsnes
1e6efaebce menu: code cleanup, naming changes, simplify refcounting, make internal func take objects and not handles
svn path=/trunk/; revision=17710
2005-09-06 23:21:40 +00:00
Gé van Geldorp
cfefbb200a Correct sizes if origin is not (0, 0)
svn path=/trunk/; revision=17709
2005-09-06 23:16:18 +00:00
Alex Ionescu
e988f9d7dc - One last build fix.
svn path=/trunk/; revision=17708
2005-09-06 23:15:15 +00:00
Alex Ionescu
77163e53d7 Fix win32k build errors so HEAD can build again, although most are caused by poor programming and will crash if called with unexpected parameters that aren't being properly handled.
svn path=/trunk/; revision=17707
2005-09-06 23:05:13 +00:00
Gunnar Dalsnes
76e45d3466 remake refcounting
naming changes
convert internal function to page ptr and not handle

svn path=/trunk/; revision=17706
2005-09-06 22:11:37 +00:00
Alex Ionescu
84cbfb9d8e - Fix size functions to return the correct results in all cases.
svn path=/trunk/; revision=17705
2005-09-06 19:47:06 +00:00
Alex Ionescu
7ed06b56e6 - Use Rtl macros instead of manually handling the cases.
svn path=/trunk/; revision=17704
2005-09-06 19:38:51 +00:00
Alex Ionescu
dc86bfb861 - Fix the sad sad definition of sizeof(ANSI_NULL) which returned 4...
svn path=/trunk/; revision=17703
2005-09-06 19:37:38 +00:00
Gé van Geldorp
38a02c040e Fix release build
svn path=/trunk/; revision=17702
2005-09-06 19:21:42 +00:00
Gé van Geldorp
8afef2bda9 Shut up some debug messages
svn path=/trunk/; revision=17701
2005-09-06 18:07:46 +00:00
Alex Ionescu
31a759e85c - Use DDK macros to speed up size calculations on single-byte codepages.
svn path=/trunk/; revision=17700
2005-09-06 17:33:56 +00:00
Alex Ionescu
a2af287dd8 - Remove deprecated zwtypes.h and spread out the types in the NT subsystems where they should go.
svn path=/trunk/; revision=17699
2005-09-06 15:57:42 +00:00
Gunnar Dalsnes
a2c34e3c28 window parent handle -> pointer adaptions
svn path=/trunk/; revision=17698
2005-09-06 14:19:03 +00:00
Gunnar Dalsnes
a1c7e10fc8 make window parent a pointer + fix usage
svn path=/trunk/; revision=17697
2005-09-06 14:09:22 +00:00
Gunnar Dalsnes
e51f10ab47 remove WndObjListLock
svn path=/trunk/; revision=17696
2005-09-06 13:36:04 +00:00
Gunnar Dalsnes
781981aa5f naming changes:
-remove annying "Object" from variables. prepend handles with "h" instead.
-rename window->Self -> Window->hSelf

svn path=/trunk/; revision=17695
2005-09-06 11:00:27 +00:00
Gunnar Dalsnes
4e5ef38048 make handle table session global
svn path=/trunk/; revision=17694
2005-09-06 10:05:31 +00:00
Gunnar Dalsnes
5d3bcdcc13 move object.c and ssec.c into ntuser where they belong
svn path=/trunk/; revision=17693
2005-09-06 09:35:39 +00:00
Gunnar Dalsnes
65123629f5 forgot a file:-| sry
svn path=/trunk/; revision=17692
2005-09-06 07:58:43 +00:00
Alex Ionescu
d1f19a8802 - Add missing decoration to Zw*
svn path=/trunk/; revision=17691
2005-09-06 06:44:34 +00:00
Alex Ionescu
870c588c1e - Handle RtlYyyStringToZzzStringSize->RtlxYyyStringtoZzzStringSize correctly so that the MSDDK macros can work and be added to the NDK/gnu ifs
svn path=/trunk/; revision=17690
2005-09-06 06:30:49 +00:00
Alex Ionescu
80b6230b45 A couple more fixes to prepare for the final patch
svn path=/trunk/; revision=17689
2005-09-06 06:19:30 +00:00
Alex Ionescu
28ab27fe87 - Use inlined functions like MSDDK.
svn path=/trunk/; revision=17688
2005-09-06 05:58:48 +00:00
Alex Ionescu
66711d6344 - Some more MSDDK/IFS compatibility fixes.
svn path=/trunk/; revision=17687
2005-09-06 05:30:39 +00:00
Gunnar Dalsnes
58f5ea229a remove window update lock
svn path=/trunk/; revision=17686
2005-09-06 00:34:23 +00:00
Gunnar Dalsnes
771f9106f8 remove user handle table lock, cursor locks, message queue locks, hook lock
svn path=/trunk/; revision=17685
2005-09-05 23:11:41 +00:00
Gunnar Dalsnes
fd26bfbd6d remove relatives lock, window props lock, classes locks, thread window lock, menu locks
svn path=/trunk/; revision=17684
2005-09-05 22:39:29 +00:00
Gé van Geldorp
eae95884a8 Sync to Wine-20050830:
Robert Shearman <rob@codeweavers.com>
- Don't free previous buffer in NdrGetBuffer.
- Add stubs for NdrMapCommAndFaultStatus, conformant string marshaling
  and context handle functions.
Alexandre Julliard <julliard@winehq.org>
- Don't prefix the functions DllCanUnloadNow, DllGetClassObject and
  Dll(Un)RegisterServer with the dll name so that the compiler can check
  the prototypes.
Mike McCormack <mike@codeweavers.com>
- Fix some gcc 4.0 warnings.

svn path=/trunk/; revision=17683
2005-09-05 22:20:04 +00:00
Gé van Geldorp
2372be838c Sync to Wine-20050830:
Alexandre Julliard <julliard@winehq.org>
- Don't prefix the functions DllInstall and DllGetVersion with the dll
  name so that the compiler can check the prototypes.
- riched32 doesn't need an import library.

svn path=/trunk/; revision=17682
2005-09-05 22:09:45 +00:00
Gé van Geldorp
4e74b68be8 Sync to Wine-20050830:
Phil Krylov <phil@newstar.rinet.ru>
- Added support for backward search to RichEdit EM_FINDTEXT[AW],
  EM_FINDTEXTEX[AW] message handler.
- Fixed EM_SETEVENTMASK RichEdit message handler to return old event
  mask.
- Added handling of deff RTF control word.
- Added common keyboard shortcuts for Select All, Undo, Redo, Cut, Copy
  and Paste to RichEdit.
- Automatically set default font after parsing a font table in RichEdit
  RTF reader.
- Fixed EM_EXLINEFROMCHAR to work for last row of a paragraph.
- Fixed UTF-8 RTF parsing.
- Fixed a bug in EM_STREAMOUT RichEdit message handler which truncated
  some streamed text.
- Generate ending \par in RTF output of RichEdit when streaming out a
  whole document.
- Fixed a RichEdit RTF reader bug which resulted in loss of text.
  Eliminated unneeded recursion in ME_InsertTextFromCursor().
- Implemented EM_CHARFROMPOS RichEdit message.
- Added EM_SETRECT, EM_SETRECTNP, and WM_SETREDRAW message handling.
  Added support for GT_SELECTION flag in EM_GETTEXTEX handler.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 warning fixes for Interlocked* functions.

svn path=/trunk/; revision=17681
2005-09-05 22:07:52 +00:00
Gé van Geldorp
76e03f2541 Correct eol-style and remove unused file
svn path=/trunk/; revision=17680
2005-09-05 22:03:31 +00:00
Gé van Geldorp
52a92a993f Sync to Wine-20050830:
Francois Gouget <fgouget@free.fr>
- Change some Dll* functions so they are exported by name like on
  Windows.
  Update the documentation accordingly.
Robert Shearman <rob@codeweavers.com>
- Remove redundant QueryInterface in marshal_interface - the object is
  always queried later on for the correct interface of the object.
- Make sure to Release the marshaled pointer in the typelib marshaler
  once it is no longer required.
- Shunt some trace statements over to the typelib channel that aren't
  really much use except in debugging typelib parsing.
- Make sure to release a reference to being returned as VariantCopyInd
  takes one for us.
- Revert to previous behaviour of detecting names with non-alphanumeric
  characters as ones with offsets, but add in a special case for an
  empty name.
- A name in an SLTG typelib only beginning with 0xff is the indicator
  of an offset, instead of any non alpha-numeric character.
- Any dispatch interface should have the fixed vtable size, not just
  dual ones.
- Warn when ITypeInfo_GetDocumentation fails.
- Make typelib marshaler use IRpcChannelBuffer::GetBuffer if possible.
Alexandre Julliard <julliard@winehq.org>
- Replace the ICOM_THIS_From macros by inline functions.
- Moved a number of definitions that are not needed in other files into
  vartype.c
- Removed some unnecessary macros, and make some functions static.
- Get rid of the almost empty tmarshal.h file.
Vincent Beron <vberon@mecano.gme.usherb.ca>
- Uniformize DllMain TRACEing across dlls.
Mike McCormack <mike@codeweavers.com>
- Fix gcc 4.0 warnings.
- gcc 4.0 warning fixes.
Michael Stefaniuc <mstefani@redhat.de>
- Implement IPicture::get_hPal for PICTYPE_BITMAP.
- VarAdd, VarMul: I4 overflows to R8 and not I8 even if the result
  would fit in I8. Fix tests.
- Document a brokeness in the handling of I8 numbers in
  VarNumFromParseNum. Fix tests.
Walt Ogburn <reuben@ugcs.caltech.edu>
- When applying logical / himetric ratio to olefont sizes, must divide
  by the standard ratio 72 / 2540.

svn path=/trunk/; revision=17679
2005-09-05 22:00:07 +00:00
Gé van Geldorp
05aeafcb9c Sync to Wine-20050830:
Francois Gouget <fgouget@free.fr>
- Use LPSTORAGE to better match the PSDK.
  Document the real SEGPTR type using the standard documentation
  mechanisms. Fixes winapi_check warnings.
Robert Shearman <rob@codeweavers.com>
- Remove unused thread handle entry from the apartment structure.
- Implement IMarshal on proxies so that we don't end up with proxies
  to proxies, causing potential deadlock issues and performance
  problems.
- Add a test for this situation and remove the todo_wine from another
  test that now succeeds.
- Add stub for CoAllowSetForegroundWindow.
Vincent Beron <vberon@mecano.gme.usherb.ca>
- Remove local declarations already in included public headers.
- Correct mismatches between spec files and comments about export
  number.
Alexandre Julliard <julliard@winehq.org>
- Uncomment the typedef in the DECLARE_INTERFACE macro, and get rid of
  duplicate typedefs.
- Use the proper WOW functions everywhere instead of the K32WOW variant.
- Don't prefix the functions DllCanUnloadNow, DllGetClassObject and
  Dll(Un)RegisterServer with the dll name so that the compiler can check
  the prototypes.
- Remove duplicate definition of FILE_BEGIN.
- Replace the _ICOM_THIS_From macros by inline functions the way it's
  already done in shelllink.c.
Mike McCormack <mike@codeweavers.com>
- Warning fixes for gcc 4.0.
- Fix some gcc 4.0 warnings.
- return a precomputed result for a NULL string
- pass strlen an LPSTR to eliminate a sign warning
Marcus Meissner <marcus@jet.franken.de>
- Implemented ILockBytes16 (memorystream) support for the 16bit compound
  storage implementation.
- Added ReadClassStg, OleDoAutoConvert, GetConvertStg
  implementations/stubs.
Marcus Meissner <meissner@suse.de>
- Added CoCreateInstance16, CoGetClassObject16, OleLoad16 stubs.

svn path=/trunk/; revision=17678
2005-09-05 21:56:14 +00:00
Gé van Geldorp
c9c505d02f Import from vendor drop
svn path=/trunk/; revision=17677
2005-09-05 21:47:21 +00:00
Gé van Geldorp
110a4ff7fc Delete existing objsel to prepare for vendor import
svn path=/trunk/; revision=17676
2005-09-05 21:44:11 +00:00
Hartmut Birr
b5a7931c86 Revert my last commit.
svn path=/trunk/; revision=17674
2005-09-05 21:39:59 +00:00
Gé van Geldorp
a9179e7930 Sync to Wine-20050830:
Francois Gouget <fgouget@free.fr>
- Change some Dll* functions so they are exported by name like on
  Windows.
  Update the documentation accordingly.
Johan Dahlin <jdahlin@async.com.br>
- Implemented MsiSetComponentState*.
- Added stubs for MsiSetComponentStateA and MsiSetComponentStateW.
- Added a null check for component.
Alexandre Julliard <julliard@winehq.org>
- Don't prefix the functions DllCanUnloadNow, DllGetClassObject and
  Dll(Un)RegisterServer with the dll name so that the compiler can check
  the prototypes.
Vincent Beron <vberon@mecano.gme.usherb.ca>
- Correct mismatches between spec files and comments about export
  number.
Aric Stewart <aric@codeweavers.com>
- Display the correct text string in the action text field for the
  dialog boxes. Also the string should be deformatted.
- Make index INT not UINT because it can be -1.
- Fixed a memory overflow and leak identified by Mike McCormack.
- Add some body to ResolveSource because it is possible to need it when
  an install is begun but the media is not in the drive, such as in
  install-on-demand cases.
- The file name used in the ui messages is the target name not the
  source name.
Yuri Kozlov <kozlov.y@gmail.com>
- Remove duplicate declaration of MSI_SetPropertyW.
Mike McCormack <mike@codeweavers.com>
- Handle loading strings over 64k from the string table.
- build a standard Wine list of folders instead of using an array
- use folder pointers instead of array indexes
- build a standard Wine list of files instead of using an array
- use file pointers instead of array indexes
- build a standard Wine list of features instead of using an array
- use feature pointers instead of array indexes
- build a standard Wine list of components instead of using an array
- use component pointers instead of array indexes
- Store the component information in a standard Wine list.
- Add include guard to header and make functions extern.
- build a standard Wine list of extensions instead of using an array
- use extension pointers instead of array indexes
- build a standard Wine list of appids instead of using an array
- use appid pointers instead of array indexes
- build a standard Wine list of mime types instead of using an array
- use mime type pointers instead of array indexes
- Add the allocated mime type to the mime type list.
- build a standard Wine list of classes instead of using an array
- use class pointers instead of array indexes
- Fix a small bug introduced when converting appids to a list.
- Implement MsiModifyView (MSIMODIFY_INSERT_TEMPORARY).
- Better stub for MsiViewGetError.
- Don't dereference variables in a trace.
- the combination of all table keys must be unique, not each key
- MsiViewExecute may not be called before MsiModifyView
- Make sure to save the result calculated in ACTION_UpdateInstallStates.
Steven Edwards <steven_ed4153@yahoo.com>
- Add real stub for MsiConfigureFeatureW.

svn path=/trunk/; revision=17672
2005-09-05 21:34:19 +00:00
Gunnar Dalsnes
965b06eb4d -surround user part (most of it) with a single lock (currently a mutex, but will be a resource). other now useless locks will be removed next.
-dont call NtUser fucnctions internally (they are syscalls only!)
-prepend co_ to functions leading to a "callout" (callback, wait, etc)


svn path=/trunk/; revision=17671
2005-09-05 21:19:23 +00:00
Gé van Geldorp
767a73be21 Sync to Wine-20050830:
Alexandre Julliard <julliard@winehq.org>
- Mark DllMain and similar exports as private.

svn path=/trunk/; revision=17670
2005-09-05 21:17:26 +00:00
Gé van Geldorp
c696fd3768 Sync to Wine-20050830:
Alexandre Julliard <julliard@winehq.org>
- Don't prefix the functions DllCanUnloadNow, DllGetClassObject and
  Dll(Un)RegisterServer with the dll name so that the compiler can check
  the prototypes.

svn path=/trunk/; revision=17669
2005-09-05 21:15:50 +00:00
Gé van Geldorp
ee77339f00 Sync to Wine-20050830:
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 warning fixes.

svn path=/trunk/; revision=17668
2005-09-05 21:08:24 +00:00
Gé van Geldorp
a3b56ff138 Sync to Wine-20050830:
Alexandre Julliard <julliard@winehq.org>
- Don't prefix the functions DllCanUnloadNow, DllGetClassObject and
  Dll(Un)RegisterServer with the dll name so that the compiler can check
  the prototypes.
- Uncomment out DisableThreadLibraryCalls in DllMain and add the
  kernel32 imports that it requires.

svn path=/trunk/; revision=17667
2005-09-05 21:06:55 +00:00
Gé van Geldorp
851ebece4a Sync to Wine-20050830:
Michael Jung <mjung@iss.tu-darmstadt.de>
- Check the GetPidlFromDataObject's doSelected parameter before calling
  a method on it.
Alexandre Julliard <julliard@winehq.org>
- Replace the _ICOM_THIS_From macros by inline functions the way it's
  already done in shelllink.c.
Vincent Béron <vberon@mecano.gme.usherb.ca>
- Uniformize DllMain TRACEing across dlls.
Vitaly Lipatov <lav@etersoft.ru>
- Restore paper orientation when pagesetupdlg is initializing.
Troy Rollo <wine@troy.rollo.name>
- Browse to the directory if a directory name is typed into the edit box
  of a file dialog and the confirmation button (or Enter key) is hit.
  Return any file name in the edit box if OFN_NOVALIDATE is set and
  OFN_FILEMUSTEXIST is not, even if that file name includes a path name
  or is the name of a folder.

svn path=/trunk/; revision=17666
2005-09-05 21:04:10 +00:00
Hartmut Birr
ce7e038415 - Copy the map registers to the buffer only, if they are used (in IoFlushAdapterBuffers).
- Do not use the byte offset into the page from a given buffer if the map registers are used, 
  because the caller didn't request for one additional register in the call to IoAllocateAdapterChannel 
  and it will not work for a 64k buffer.

svn path=/trunk/; revision=17665
2005-09-05 20:25:31 +00:00
Gé van Geldorp
0389203146 Sync to Wine-20050830:
Vitaliy Margolen <wine-patch@kievinfo.com>
- Fix handling of minimum tab width.
  Add more tests to test it.
Filip Navara <xnavara@volny.cz>
- Use ReleaseDC instead of DeleteDC on DC handle.
Phil Krylov <phil@newstar.rinet.ru>
- Improved header control performance by maintaining an internal order
  array.
- Draw header control items only within the header client area.
Felix Nawothnig <felix.nawothnig@t-online.de>
- Fix DPA_Search for sorted arrays.
Michael Kaufmann <hallo@michael-kaufmann.ch>
- Handle WM_GETFONT and WM_SETFONT.
- Redraw immediately upon PBM_SETPOS, PBM_DELTAPOS, PBM_STEPIT.
- New tests.
Thomas Weidenmueller <wine-patches@reactsoft.com>
- It should be allowed to pass NULL handles in the phpage array of the
  PROPSHEETHEADER structure to PropertySheet(), just ignore them.
Aric Stewart <aric@codeweavers.com>
- Fix for dreamweaver site definition dialog. Need to initialize the
  rect for a tab control to an empty rect if it is not visible.
Alexandre Julliard <julliard@winehq.org>
- Don't prefix the functions DllCanUnloadNow, DllGetClassObject and
  Dll(Un)RegisterServer with the dll name so that the compiler can check
  the prototypes.
- Fixed regression in DPA_Search.
Yuri Kozlov <kozlov.y@gmail.com>
- Set default size for toolbar bitmap if not specified.
Mike McCormack <mike@codeweavers.com>
- Fix gcc 4.0 warnings.
Vitaly Lipatov <lav@etersoft.ru>
- Use STATEIMAGEINDEX / INDEXTOSTATEIMAGEMASK instead of bit
  operations.
Steven Edwards <steven_ed4153@yahoo.com>
- Correct RegCreateKeyEx[A/W] prototype to match the PSDK.
Frank Richter <frank.richter@gmail.com>
- Only draw a themed border when edit control has WS_EX_CLIENTEDGE
  style.
- Merge subclass stubs and subclass proc. Having the stub set the window
  proc to the subclass proc was not a good idea since that breaks
  subclasses of themed standard controls (e.g. what Delphi does a lot).
- Determining the superclass for a window subclassed for theming doesn't
  work - e.g. Delphi buttons have the classname "TButton" for which no
  superclass will be found. Instead, use initial subclass window procs
  that have the subclass hardcoded and store it for the "real" subclass
  window proc.
- Add theming for toolbar control.
- Improved trackbar theming.
- Add initial theming support for trackbars.
- Add theming for treeview control.
- Add theming support for dialogs (to support tab page background).
- Add theming for listbox (and combo listbox) controls.
- Add theming for combo boxes.
- Subclass edit control to draw themed border.
- Added some generic code to allow subclassing (for the purpose of
  theming) of standard controls.
- Fix warnings in 64bit.
- Add hottracking support for the header control.
- Since OpenThemeData() should return 0 in case theming is disabled
  globally or for the application we don't need to check that when
  calling OpenThemeData().
- Remove unneeded theming check.
- Add theming for the monthcal control.
- Instead of adding the border via WM_NCPAINT and WM_NCCALCSIZE, do what
  native does: just clear WS_EX_STATICEDGE when themed and reduce the
  area the actual bar is painted in to the progress bar theme part
  content rect.
- Add theming for the progress control.
- Split up the drawing code into a set of smaller functions and also
  moved some common computations into helper functions. All that to
  facilitate the implementation of the forthcoming theming support.
- Add theming for the rebar control.
- Add theming for status bar control.
- Fix text color for "button" style tabs when theming is enabled.
- Add theming support for the tab control.
- Forward WM_DESTROY to superclass in edit & listbox theming.
- Add WM_CTLCOLORSTATIC handler to dialog theming subclass so static
  text can appear transparent (for e.g. tab pages which commonly have a
  "fancy" background).

svn path=/trunk/; revision=17664
2005-09-05 20:25:16 +00:00
Gé van Geldorp
ae18f3a1cc Sync to Wine-20050830:
Alexandre Julliard <julliard@winehq.org>
- Don't prefix the functions DllCanUnloadNow, DllGetClassObject and
  Dll(Un)RegisterServer with the dll name so that the compiler can check
  the prototypes.
Mike McCormack <mike@codeweavers.com>
- Fix gcc 4.0 warnings.

svn path=/trunk/; revision=17662
2005-09-05 20:07:46 +00:00
Gé van Geldorp
5d793513d1 Alexandre Julliard <julliard@winehq.org>
- Removed the broken mmap64 configure check, and moved the
  _FILE_OFFSET_BITS define to wine/port.h. Made sure that all files that
  need the define include it.

svn path=/trunk/; revision=17661
2005-09-05 20:03:06 +00:00
Alex Ionescu
87507a864e - More NDK + MSDDK/IFS Compatibility fixes
- Prototype fixes

svn path=/trunk/; revision=17660
2005-09-05 18:06:20 +00:00
Gé van Geldorp
94a3a9e377 Sync to Wine-20050830:
Alexandre Julliard <julliard@winehq.org>
- Beginnings of a crt0 library.
- Added a warning for DllGetVersion and DllInstall not being declared
  private. Also warn when one of the Dll* functions is using a different
  internal name.
- Added a --undefined option to allow forcing some symbols to be
  resolved by the linker.
- Byteswap the resources if we detect that the header is in the wrong
  endianness.
- Moved more of the spec initialization code to the winecrt0 library,
  and get rid of implicit kernel32 imports.
- Use __wine_unimplemented_stub from crt0 for 16-bit spec files too.
- Moved the delay loading support code to the winecrt0 library.
- Avoid using common symbols, they are broken on Mac OS.
- Moved the implementation of spec file stubs to the winecrt0 library.
- The exported name strings should be inside the export directory (found
  by Vitaliy Margolen).
- Added some general purpose routines for managing list of symbol
  names.
- Print a warning when a generated import library doesn't export
  anything useful.
- Implemented DelayLoadFailureHook and use it in the winebuild-generated
  delay load code.
- Compute the ordinal base and limit in assign_ordinals instead of doing
  it while parsing.
- Get rid of the unused owner_name field.
Ge van Geldorp <gvg@reactos.org>
- Adapt changes to ReactOS

svn path=/trunk/; revision=17659
2005-09-05 17:35:31 +00:00
Gé van Geldorp
89c566ad64 Sync to Wine-20050830:
Mike McCormack <mike@codeweavers.com>
- Fix a gcc 4.0 -Wpointer-sign warning.
- gcc 4.0 warning fix.

svn path=/trunk/; revision=17658
2005-09-05 10:18:07 +00:00
Gé van Geldorp
2853a0678a Fix compilation when ENABLE_VALIDATE_POOL is defined
svn path=/trunk/; revision=17657
2005-09-05 09:26:02 +00:00
Gé van Geldorp
c542593988 The kernel extension is really a EXTENDED_DEVOBJ_EXTENSION now
svn path=/trunk/; revision=17656
2005-09-05 09:25:06 +00:00
Hervé Poussineau
e77d41b989 Fix the build. TIB field in KIPCR structure is named NtTib, not Tib
svn path=/trunk/; revision=17653
2005-09-05 07:59:29 +00:00
Alex Ionescu
4e8d1019ce - More NDK/MSDDK compatibility fixes.
svn path=/trunk/; revision=17652
2005-09-05 07:51:15 +00:00
Alex Ionescu
51f0dfd307 - NDK compatibility fixes for MSDDK. Use NTAPI instead of STDCALL, and use NTSYSAPI instead of NTOSAPI.
- Remove some functions/types in NDK that were already documented in DDK/IFS.
- Fixup syscall structures for the table and fix protoype of KeAdd/RemoveServiceDescriptorTable.

svn path=/trunk/; revision=17651
2005-09-05 04:48:20 +00:00
Alex Ionescu
118aa9fba3 - Fix kernel32 and ntoskrnl build issues.
- Define public version of DEVOBJ_EXTENSION in DDK.

svn path=/trunk/; revision=17650
2005-09-04 23:48:19 +00:00
Alex Ionescu
a4d8aa2194 - Define NTSYSAPI and NTSYSCALLAPI
svn path=/trunk/; revision=17649
2005-09-04 23:26:35 +00:00
Alex Ionescu
851e0f3f36 - Fix incorrect PFILE_MAILSLOT_SET_INFORMATION definition
- Fix MSFS to build with MSDDK.
- Fix iotypes.h to be MSDDK compatible.

svn path=/trunk/; revision=17648
2005-09-04 23:18:34 +00:00
Alex Ionescu
f069c69225 - Fix typo in NDK
- Fix compilation of NPFS and MSFS and increase their compile speed by using PCH.

svn path=/trunk/; revision=17647
2005-09-04 22:33:28 +00:00
Hervé Poussineau
d41491ef47 Fix SetComputerNameA/W. They were sending a bad parameter to SetComputerNameExA/W. Thanks Hartmut
svn path=/trunk/; revision=17646
2005-09-04 22:20:22 +00:00
Alex Ionescu
a5243c8e37 - Fix incompatible IO_STACK_LOCATION definition in W32api ddk/winddk.k
- Add EXTENDED_IO_STACK_LOCATION to NDK, with the full definition.

svn path=/trunk/; revision=17645
2005-09-04 22:16:57 +00:00
Hervé Poussineau
d5829ea63d Fix definition of STDCALL. Thanks Alex
svn path=/trunk/; revision=17644
2005-09-04 22:13:30 +00:00
Hervé Poussineau
ce468083d1 Alex prefers that we don't locally define structures that not in the DDK/IFS kit, but that we use the NDK headers.
This change breaks the compilation with the DDK/IFS kit only.

svn path=/trunk/; revision=17643
2005-09-04 22:12:35 +00:00
Hervé Poussineau
8857a8b8fd Allow compilation of npfs driver with MSVC
svn path=/trunk/; revision=17642
2005-09-04 21:44:02 +00:00
Hervé Poussineau
e7ad48c2a3 Allow compilation of fs_rec driver with MSVC
svn path=/trunk/; revision=17641
2005-09-04 21:14:54 +00:00
Hervé Poussineau
a650cc6d77 Don't double-define KEBUGCHECK(EX)
svn path=/trunk/; revision=17640
2005-09-04 20:45:34 +00:00
Hervé Poussineau
1037b8be47 Implement SetComputerNameExA/W
svn path=/trunk/; revision=17639
2005-09-04 20:11:51 +00:00
Alex Ionescu
ff6172bd8f - Various fixes to headers, such as fixing some LPC prototypes, adding/correcting some structures, adding some missing definitions, etc...
svn path=/trunk/; revision=17638
2005-09-04 18:00:59 +00:00
Alex Ionescu
84727764b0 - Disable two tests since the Balance Set Manager isn't implemented yet and they'll freeze ROS.
svn path=/trunk/; revision=17637
2005-09-04 15:57:17 +00:00
Filip Navara
eb59fe4b41 Get correct physical address in HalpGrowMapBuffers.
svn path=/trunk/; revision=17636
2005-09-04 15:18:52 +00:00
Eric Kohl
72f4f89fce Implement CM_Get_Class_Name_ExA.
svn path=/trunk/; revision=17635
2005-09-04 14:40:12 +00:00
Magnus Olsen
e6f2e6fcd6 fix bug 739 can not create file notepad newfile.txt
at cmd prompt

svn path=/trunk/; revision=17634
2005-09-04 11:47:50 +00:00
Magnus Olsen
49766a2024 Revers the change after reboot it did carcgh for me hole time.
svn path=/trunk/; revision=17633
2005-09-04 11:31:54 +00:00
Eric Kohl
7fca436afd - Enclose GUID in curly brackets.
- Implement CM_Get_Class_Key_Name_ExA.

svn path=/trunk/; revision=17632
2005-09-04 11:26:09 +00:00
Magnus Olsen
a1b00983ed remove some hardcode buffer value. The dymatic buffer does not work yet, until all CMDLINE_LENGTH are remove.
svn path=/trunk/; revision=17631
2005-09-04 11:18:39 +00:00
Filip Navara
6561d0f414 Fix the return value of HalReadDmaCounter at the end of transfer.
svn path=/trunk/; revision=17630
2005-09-04 11:17:37 +00:00
Filip Navara
3a10e56852 - Set the MAP_BASE_SW_SG flag for map registers in IoFreeMapRegisters.
- Fix address calculation in HalpCopyBufferMap.
- Correctly set the map register counter in IoMapTransfer if dealing with MAP_BASE_SW_SG map registers.

svn path=/trunk/; revision=17629
2005-09-04 10:02:19 +00:00
Magnus Olsen
adb5d8466f Remove more hardcode buffer value to dymatic buffer.
svn path=/trunk/; revision=17628
2005-09-04 09:54:59 +00:00
Magnus Olsen
1cb2b6830e fix a small bug after me, and check if it really got memmory or not.
svn path=/trunk/; revision=17627
2005-09-04 09:29:44 +00:00
Magnus Olsen
25f28a6291 remove some hardcode commadline buffer value. first step to implement dymatic buffer. but we need do it very carefull, so nothing will be broken.
svn path=/trunk/; revision=17626
2005-09-03 23:12:17 +00:00
Magnus Olsen
ada0f8dfe8 fix type can handler \n at text output thx ravelo for the small patch. see file misc.c. prompt.c fix the szParam so it have a buffer set. and do not use szParam for param, the param length can in future very big. when dymatic buffer be implement at command line.
svn path=/trunk/; revision=17625
2005-09-03 19:59:51 +00:00
Eric Kohl
040c539dd5 Fix GUID->String conversion.
Implement CM_Get_Class[_Ex]A/W.

svn path=/trunk/; revision=17624
2005-09-03 19:44:47 +00:00
Andrew Munger
fe417a79c4 Fix cmd build. Please check your changes before commiting.
svn path=/trunk/; revision=17623
2005-09-03 18:05:33 +00:00
Hartmut Birr
b10d2b80c1 Fixed the return value in KeRundownQueue if the queue is empty. This should fix bug 751.
svn path=/trunk/; revision=17622
2005-09-03 18:00:54 +00:00
Hartmut Birr
2cea7b7c46 Set the ownership before locking the bitmap in EngCreateDeviceSurface, because GDIOBJ_SetOwnership runs in a dead lock if the object is already locked by the same process.
This may fix bug 747.

svn path=/trunk/; revision=17621
2005-09-03 17:40:33 +00:00
Brandon Turner
acb0c26036 Setting my changes back for prompt.c. Greatlord and I agreed about this. These was a miscommication about these changes and the way different MS version handle it.
svn path=/trunk/; revision=17620
2005-09-03 11:51:22 +00:00
Magnus Olsen
ff5ad9b6d7 Updated translation by Anders, proofread by Andreas Bjerkeholt, rename Sw to sv, Sw stand for another language's. Steven can you send this change to winehq.
svn path=/trunk/; revision=17619
2005-09-03 11:50:23 +00:00
Magnus Olsen
96791c3aa3 Swedish translation by David Nordenberg, proofread by Andreas Bjerkeholt
svn path=/trunk/; revision=17618
2005-09-03 11:23:24 +00:00
Magnus Olsen
729d73ef17 Swedish translation by Andreas Bjerkeholt, proofread by David Nordenberg. Some did forget add Es.rc to rsrc.rc (the Spanish translations)
svn path=/trunk/; revision=17617
2005-09-03 11:22:13 +00:00
Magnus Olsen
739b84b16d David Nordenberg: Swedish translation, proofread by Andreas Bjerkeholt
svn path=/trunk/; revision=17616
2005-09-03 11:20:04 +00:00
Magnus Olsen
c0fc3dba7b * Updated translation by Anders, proofread by Andreas Bjerkeholt
svn path=/trunk/; revision=17615
2005-09-03 11:05:31 +00:00
Magnus Olsen
5d08c58541 revers brandon change to prompt.c they are incorrect. Add a check if prompt env are set or not. if it is not set cmd set the prompt value. in cmd.c brandon forget that.
svn path=/trunk/; revision=17614
2005-09-03 09:46:46 +00:00
Brandon Turner
35240bd337 Correctly assign %propmt%.
cmd.c = give %prompt% default value of $P$G
prompt.c = when param are null, assign %prompt% to $P$G

svn path=/trunk/; revision=17613
2005-09-03 01:34:40 +00:00
Royce Mitchell III
937e6fc685 small efficiency boost
svn path=/trunk/; revision=17612
2005-09-03 01:19:25 +00:00
Brandon Turner
99c1fbbdfc Fixed a bug that crashed cmd when "cd /D" but no path. Bug reported by Harteex.
svn path=/trunk/; revision=17611
2005-09-02 22:41:40 +00:00
Hervé Poussineau
72784f6c8f Remove warnings
svn path=/trunk/; revision=17610
2005-09-02 21:26:51 +00:00
Hervé Poussineau
45c69b6adb RmRemove warnings
svn path=/trunk/; revision=17609
2005-09-02 21:13:10 +00:00
Hervé Poussineau
9b308f9dbf Remove DbgPrint statements as they were not executed + some of them were badly placed
svn path=/trunk/; revision=17608
2005-09-02 21:11:17 +00:00
Hervé Poussineau
e4ea943f57 Don't fill twice the output buffer. Bug spotted by Filip
svn path=/trunk/; revision=17606
2005-09-02 19:05:01 +00:00
Hervé Poussineau
c1f3b3a122 No need to allocate too much memory, as SetupDiGetDeviceRegistryPropertyW returns a size in bytes, not in characters. Bug spotted by Filip
svn path=/trunk/; revision=17605
2005-09-02 18:51:32 +00:00
Filip Navara
02488d3f49 Check for Request == NULL.
svn path=/trunk/; revision=17604
2005-09-02 13:12:44 +00:00
Filip Navara
b6e746354a Fix open mode passed to CreateFile in DoSaveFile function. Patch by Johannes Anderwald.
svn path=/trunk/; revision=17603
2005-09-02 11:29:40 +00:00
Gregor Anich
63748df6f5 Link against string.a instead of hal and ntoskrnl, otherwise Windows will not load the driver.
svn path=/trunk/; revision=17602
2005-09-01 23:32:59 +00:00
Gunnar Dalsnes
bec034b146 fixed RtlCompareUnicodeString and RtlCompareString (said stuff were equal when it was not) by ripping from wine
svn path=/trunk/; revision=17601
2005-09-01 21:09:07 +00:00
Andrew Munger
5fb5193c82 Correct some checks, fix bug 748 (qemu networking). Fix by his vaingloriousness Alex Ionescu.
svn path=/trunk/; revision=17600
2005-09-01 02:57:27 +00:00
Hartmut Birr
b8b259908a Print the exception code and the faulting address, if the address is available.
svn path=/trunk/; revision=17598
2005-08-30 16:28:36 +00:00
Hartmut Birr
276ca539bd Invoke always our own exception handler if the exception wasn't handled. It prints some nice informations.
svn path=/trunk/; revision=17597
2005-08-30 16:26:38 +00:00
Hartmut Birr
3e0e6887f8 Don't interpret SIG_DFL and SIG_IGN as real handler address.
svn path=/trunk/; revision=17596
2005-08-30 16:24:55 +00:00
Filip Navara
bb3b1de38c Remove WineDebugInfo from TEB and fix type of TlsExpansionBitmap in PEB.
svn path=/trunk/; revision=17595
2005-08-29 22:23:55 +00:00
Filip Navara
a1e4cc1fd8 Formatting and code style changes.
svn path=/trunk/; revision=17594
2005-08-29 21:06:07 +00:00
Thomas Bluemel
d57cdec721 fixed uninitialized variable warning
svn path=/trunk/; revision=17593
2005-08-29 20:06:43 +00:00
Brandon Turner
ac2b9c20d7 fix an if statment. Found by thomas.
svn path=/trunk/; revision=17592
2005-08-29 19:09:41 +00:00
Brandon Turner
d261fc0b2b Fixed a bug in tab complete when there was only one " and it was in the middle or end of the string. Also changed used more optimized code removing " and removed all _tcsncmp(..,..,1).
svn path=/trunk/; revision=17591
2005-08-29 18:25:54 +00:00
Thomas Bluemel
13115c5ce3 - don't close handles of keys in RegDeleteTree() that were deleted
- implemented RegConnectRegistryA()

svn path=/trunk/; revision=17589
2005-08-29 13:54:05 +00:00
Hervé Poussineau
37315f15ba Remove warnings
svn path=/trunk/; revision=17588
2005-08-28 15:43:00 +00:00
Hervé Poussineau
d4eb73201a Remove warnings
svn path=/trunk/; revision=17587
2005-08-28 15:29:36 +00:00
Eric Kohl
624151b290 Implement CM_Get_Class_Key_Name[_Ex]A/W and CM_Open_Class[_Ex]A/W.
svn path=/trunk/; revision=17586
2005-08-28 15:07:45 +00:00
Royce Mitchell III
b17534dfa0 remove single "." entries from paths
svn path=/trunk/; revision=17585
2005-08-28 12:23:37 +00:00
Royce Mitchell III
2b121dc93c remove transient debugging code
svn path=/trunk/; revision=17584
2005-08-28 12:18:13 +00:00
Royce Mitchell III
cdf2899515 don't crash if path == base_directory.
sorry I forgot to commit my changes to this file last night

svn path=/trunk/; revision=17583
2005-08-28 12:08:53 +00:00
Hartmut Birr
bb6a166390 - Allocate the csrss request buffer from heap if the necessary length is larger than the request structure.
- Fixed some buffer length calculations.

svn path=/trunk/; revision=17582
2005-08-28 12:03:25 +00:00
Hartmut Birr
37dced9725 Allocated the message reply buffer according to the size of the message.
svn path=/trunk/; revision=17581
2005-08-28 11:58:06 +00:00
Hervé Poussineau
b5fbf00480 Fix rbuild compilation, by adding Path::RelativeFromDirectory method
svn path=/trunk/; revision=17580
2005-08-28 09:50:00 +00:00
Hervé Poussineau
2142e2dfaf Remove warnings
svn path=/trunk/; revision=17579
2005-08-28 09:07:43 +00:00
Hervé Poussineau
d8fe2ffd8e Remove warnings
svn path=/trunk/; revision=17578
2005-08-28 09:04:39 +00:00
Emanuele Aliberti
84b33992c6 Autoregister Debug internal subsystem too. Now 'sm info' displays meaningful information.
NOTE: It seems the new client management introduced a stupid bug that shows up on system shutdown (smss crashes calling an LPC related API). I can't locate it now (of course, that happens for every 'stupid' bug, but will tray again later).

svn path=/trunk/; revision=17577
2005-08-28 07:34:35 +00:00
Royce Mitchell III
d252387963 add include directories from xml, remove "." hack, as projects that need to include their base directory have done so already in the xml.
svn path=/trunk/; revision=17576
2005-08-28 05:34:22 +00:00
Royce Mitchell III
8bbdffa2ff add . to list of include directories for all projects
svn path=/trunk/; revision=17575
2005-08-28 02:37:06 +00:00
Thomas Bluemel
95f9fe7198 #include "precomp.h" -> #include <precomp.h>
svn path=/trunk/; revision=17574
2005-08-27 23:35:51 +00:00
Eric Kohl
1cedb076b5 Implement StringTableInitializeEx, StringTableGetExtraData and StringTableSetExtraData.
Add StringTableAddStringEx and StringTableLookUpStringEx stubs.

svn path=/trunk/; revision=17573
2005-08-27 19:14:35 +00:00
Thomas Bluemel
4270d01108 implemented RegDeleteTree() (untested!)
svn path=/trunk/; revision=17572
2005-08-27 18:13:52 +00:00
Emanuele Aliberti
ff8b08beb4 native EOL
svn path=/trunk/; revision=17571
2005-08-27 17:21:07 +00:00
Emanuele Aliberti
ca18dcf2d9 Minor changes and IT resource file.
svn path=/trunk/; revision=17570
2005-08-27 17:18:29 +00:00
Hervé Poussineau
3c98221253 Implement SetupDiSelectBestCompatDrv, by sorting drivers by rank in drivers list
svn path=/trunk/; revision=17569
2005-08-27 14:59:22 +00:00
Eric Kohl
1848960041 Implement LogonUserA.
svn path=/trunk/; revision=17568
2005-08-27 14:56:17 +00:00
Emanuele Aliberti
3c693f90bc SM: simplify and fix client (subsystem servers) management.
svn path=/trunk/; revision=17567
2005-08-27 09:55:27 +00:00
Andrew Munger
40a9efb724 17519 requires __REACTOS__ to be defined for KDB to work.
svn path=/trunk/; revision=17566
2005-08-27 04:20:49 +00:00
Andrew Munger
e0ccbec43f "." means current directory, not previous. Spotted by Talley.
svn path=/trunk/; revision=17565
2005-08-27 02:34:46 +00:00
Thomas Bluemel
d1e98bfddd fixed code to compile both as ansi and unicode version, build as unicode by default
svn path=/trunk/; revision=17564
2005-08-26 21:02:47 +00:00
Hartmut Birr
342d03f235 - Moved all members with variable length in CSRSS_XXX structures to the end.
- Defined all members with variable length as arrays with a size of zero.  
- Used the stack for allocating CSR_API_MESSAGE structures.

svn path=/trunk/; revision=17563
2005-08-26 20:35:33 +00:00
Filip Navara
1a8c456007 Make the explorer taskbar look a bit nicer.
svn path=/trunk/; revision=17562
2005-08-26 20:03:41 +00:00
Filip Navara
5c7930f963 Add TBMETRICS structure and associated constants.
svn path=/trunk/; revision=17561
2005-08-26 20:02:53 +00:00
Steven Edwards
21927423a2 Add constants for DBG_CONTROL_C and DBG_CONTROL_BREAK to ntstatus.h, Work around conflict including ntstatus.h with the NDK
svn path=/trunk/; revision=17560
2005-08-26 18:39:20 +00:00
Thomas Bluemel
20e728bbac implemented CreateSymbolicLink() (not tested/verified yet!)
svn path=/trunk/; revision=17559
2005-08-26 13:47:56 +00:00
Hartmut Birr
ead53e0588 Call the correct user mode dispatch function in KiDispatchException. The bug was introduced by r17053.
svn path=/trunk/; revision=17558
2005-08-26 13:06:24 +00:00
Thomas Bluemel
64b5d11940 removed obsolete variable in RegOpenUserClassesRoot()
svn path=/trunk/; revision=17557
2005-08-26 09:53:00 +00:00
Thomas Bluemel
a16e6f61c5 RegLoadMUIStringA/W are not implemented yet...
svn path=/trunk/; revision=17556
2005-08-26 09:49:19 +00:00
Thomas Bluemel
e9b53b73b9 added stubs for RegLoadMUIStringA/W()
svn path=/trunk/; revision=17555
2005-08-26 09:48:13 +00:00
Thomas Bluemel
64d0f61e8a implemented RegDisablePredefinedCacheEx()
svn path=/trunk/; revision=17554
2005-08-26 09:40:37 +00:00
Steven Edwards
f4668aceae Why this thing ships with its own GetConsoleWindow function I don't understand. Rename it and make the rest of the code use it. Compiles fine on gcc 3.x and msvc6 and works properly.
svn path=/trunk/; revision=17553
2005-08-25 23:54:39 +00:00
Steven Edwards
8fcad79576 minor build fixes for msvc
svn path=/trunk/; revision=17552
2005-08-25 23:20:34 +00:00
Steven Edwards
4147a4df09 fix msvc compile
svn path=/trunk/; revision=17551
2005-08-25 22:50:44 +00:00
Steven Edwards
65ff8ee6ca disable the custom rules for Winebuild for now
svn path=/trunk/; revision=17550
2005-08-25 22:49:26 +00:00
Magnus Olsen
06694b3675 Thx ravelo to found a new bug in start.c it did not manger run batfile with path that contain space.
svn path=/trunk/; revision=17549
2005-08-25 22:43:20 +00:00
Brandon Turner
5509951fc0 Don't dereference the pointers. Catch by Thomas.
svn path=/trunk/; revision=17548
2005-08-25 22:09:10 +00:00
Thomas Bluemel
8feae80765 add stub for ControlServiceEx()
svn path=/trunk/; revision=17547
2005-08-25 22:06:31 +00:00
Steven Edwards
95164f7065 Generate a GUID for each module processed. Later on this will be needed to support msvc2k3/5 vcproj files.
svn path=/trunk/; revision=17546
2005-08-25 20:58:01 +00:00
Brandon Turner
c7b88afc3f Implement escape char in console. "^"
cmd.c - when the env isnt found, dont zero out the params
redir.c - skip over all ^ when looking for redir/pipe
echo.c - when printing out, treat ^ correctly.

svn path=/trunk/; revision=17545
2005-08-25 20:05:07 +00:00
Thomas Bluemel
011639b626 enable theming of the checklist control
svn path=/trunk/; revision=17544
2005-08-25 19:53:37 +00:00
Thomas Bluemel
eafb1ee3f7 - added stubs for Set/GetConsoleHistoryInfo(), GetConsoleOriginalTitleA/W(), Set/GetConsoleScreenBufferInfoEx() and GetCurrentConsoleFontEx()
- added missing structure definitions

svn path=/trunk/; revision=17543
2005-08-25 19:47:44 +00:00
Thomas Bluemel
362610233e add stubs for CreateSymbolicLinkA/W
svn path=/trunk/; revision=17542
2005-08-25 18:21:50 +00:00
Brandon Turner
06c225119d Use GetShortPathName and GetLongPathName to correct the case of the new path in SetRootPath. GetFullPathName by itself would not work when there was a space in the name.
svn path=/trunk/; revision=17541
2005-08-25 17:38:15 +00:00
Royce Mitchell III
9010800221 file paths should be relative to the location of the dsp file, not the dsw file
svn path=/trunk/; revision=17540
2005-08-25 17:24:11 +00:00
Maarten Bosma
bebf0b4a61 Fill some more structs, that ms ddraw fill as well.
svn path=/trunk/; revision=17539
2005-08-25 15:31:28 +00:00
Hartmut Birr
25d3bf68ab Fixed a bug in RtlLeaveCriticalSection. We have only to signal the event if someone waits on it.
svn path=/trunk/; revision=17538
2005-08-25 12:33:37 +00:00
Thomas Bluemel
8370e44f84 minor simplifications
svn path=/trunk/; revision=17537
2005-08-25 12:30:10 +00:00
Thomas Bluemel
3b35dd5038 open subkey with sufficient rights in RegDeleteTree
svn path=/trunk/; revision=17536
2005-08-25 12:27:25 +00:00
Thomas Bluemel
8d862306ef added stubs for RegDeleteTreeA/W() and RegCopyTreeA/W()
svn path=/trunk/; revision=17535
2005-08-25 12:25:11 +00:00
Maarten Bosma
d5fd7c89ea Change Install Name to ddraw_demo.exe
svn path=/trunk/; revision=17534
2005-08-25 11:36:49 +00:00
Royce Mitchell III
27ef51709f $default_cfg fix
cleaned up more code that isn't enabled yet
generate correct line endings on *nix, too

svn path=/trunk/; revision=17533
2005-08-25 01:44:23 +00:00
Thomas Bluemel
55610a1a3d check for console handles in Get/SetFileAttributesByHandle()
svn path=/trunk/; revision=17531
2005-08-25 00:33:37 +00:00
Thomas Bluemel
5760f0496c implemented SetFileAttributesByHandle() and GetFileAttributesByHandle()
svn path=/trunk/; revision=17530
2005-08-24 23:59:03 +00:00
Thomas Bluemel
78bc5b9ab0 implemented RegSetKeyValueA/W
svn path=/trunk/; revision=17529
2005-08-24 23:44:27 +00:00
Magnus Olsen
4782b7ce3e fixing a bug in searching for cmd for bat/cmd files, thx ravelo to found this stupied bug
svn path=/trunk/; revision=17528
2005-08-24 23:33:34 +00:00
Thomas Bluemel
bc8811f677 implemented RegDeleteKeyValueA/W()
svn path=/trunk/; revision=17527
2005-08-24 23:29:51 +00:00
Magnus Olsen
519f1108ad Implement start execute support for bat/cmd file. woking in windows
svn path=/trunk/; revision=17526
2005-08-24 23:07:51 +00:00
Thomas Bluemel
8f881e2d04 implemented IsThreadAFiber()
svn path=/trunk/; revision=17525
2005-08-24 23:05:07 +00:00
Royce Mitchell III
5c7747b97c zero the entire buffer
svn path=/trunk/; revision=17524
2005-08-24 22:38:10 +00:00
Thomas Bluemel
a8e3f13a42 install the registry keys before enabling the driver
svn path=/trunk/; revision=17523
2005-08-24 21:54:13 +00:00
Filip Navara
85266e68b5 REVISON -> REVISION
svn path=/trunk/; revision=17522
2005-08-24 21:52:41 +00:00
Magnus Olsen
d9f9178f3e implemented "" remove for the start command. This makes 'start dir1\"dir2a dir2b"\dir3\foo.exe param' work change by Martin Rottensteiner 2005only@pianonote.at irc nick ravelo
svn path=/trunk/; revision=17521
2005-08-24 21:40:01 +00:00
Filip Navara
98d9c65720 Fix a memory leak if VideoPortInitialize is called more than once from the same miniport.
Replace STDCALL with NTAPI.

svn path=/trunk/; revision=17520
2005-08-24 21:29:24 +00:00
Hervé Poussineau
de881e611a Cleanup i8042prt.h
Remove $Id$ tags
Replace Win32 types by their kernel counterparts (DWORD -> ULONG, ...)

svn path=/trunk/; revision=17519
2005-08-24 20:34:50 +00:00
Royce Mitchell III
a2e91278b6 added some verbosity
standardized back on printf from cout
fixed loop variable conflict

svn path=/trunk/; revision=17518
2005-08-24 20:06:54 +00:00
Royce Mitchell III
86018cbc02 invoke _generate_dsp() have it open the output file, and fix some path parsing and const issues.
svn path=/trunk/; revision=17517
2005-08-24 19:58:07 +00:00
Hervé Poussineau
9195c7dd4f Remove $Id$ tags
Use FATEntry.ShortName field instead of FATEntry.FileName when dealing with full name
Remove LL suffix on long long constants
Replace Win32 types by their kernel counterparts (DWORD -> ULONG, ...)

svn path=/trunk/; revision=17516
2005-08-24 18:29:45 +00:00
Royce Mitchell III
bf3117cb5e _generate_dsp() compiles now, haven't tested yet
svn path=/trunk/; revision=17515
2005-08-24 18:13:00 +00:00
Hervé Poussineau
6b3b47323d Fix IRP_MJ_QUERY_INFORMATION/FileStandardInformation (current code was trying to dereference NULL pointer)
Replace MmGetSystemAddressForMdl by MmGetSystemAddressForMdlSafe

svn path=/trunk/; revision=17514
2005-08-24 15:37:04 +00:00
Hervé Poussineau
66c8fe47e0 Replace ExAllocatePool by ExAllocatePoolWithTag
Fix CHECKPOINT1 definition for MSVC compiler

svn path=/trunk/; revision=17513
2005-08-24 15:33:58 +00:00
Filip Navara
820afe2e92 Make BusyLoop volatile. Spotted by Thomas.
svn path=/trunk/; revision=17512
2005-08-24 14:15:54 +00:00
Filip Navara
1ef2914b90 Implement the most over-optimized lock in NT - the NDIS_RW_LOCK.
svn path=/trunk/; revision=17511
2005-08-24 12:21:18 +00:00
Filip Navara
22432ceb48 Fix the NDIS_RW_LOCK structure.
svn path=/trunk/; revision=17510
2005-08-24 12:20:59 +00:00
Filip Navara
6ba28fd06e Remove bogus and unneeded cast.
svn path=/trunk/; revision=17509
2005-08-24 09:50:18 +00:00
Royce Mitchell III
f9b0db47fe Replace() bugfix #2 - forgot to insert replacement text ( yes yes I suck you can stop throwing tomatoes now )
svn path=/trunk/; revision=17508
2005-08-24 06:03:34 +00:00
Royce Mitchell III
2a5ef2ef24 bugfix - Replace() was truncating the string
svn path=/trunk/; revision=17507
2005-08-24 06:01:02 +00:00
Royce Mitchell III
e5cc52e14b almost done converting _generate_dsp(), but have to quit for the night, so commiting what's done so far.
svn path=/trunk/; revision=17506
2005-08-24 05:58:14 +00:00
Royce Mitchell III
47b458eed1 new helper function Replace()
svn path=/trunk/; revision=17505
2005-08-24 05:50:21 +00:00
Royce Mitchell III
db03491cdc vc6 build files - just in case somebody else wants to use them
svn path=/trunk/; revision=17504
2005-08-24 04:00:37 +00:00
Steven Edwards
d708ff3ba3 remove a few of the Wine hacks
svn path=/trunk/; revision=17503
2005-08-24 03:56:25 +00:00
Royce Mitchell III
ff8f4e3c6a new top-level target 'msvc' to create msvc build files
svn path=/trunk/; revision=17502
2005-08-24 03:39:10 +00:00
Royce Mitchell III
a864a2c137 import wine's "msvcmaker" perl script and begin converting it to C++ - so far it creates the DSW file.
svn path=/trunk/; revision=17501
2005-08-24 03:38:20 +00:00
Royce Mitchell III
ed985615ec added some comments to illustrate the output of several path-related functions
svn path=/trunk/; revision=17500
2005-08-24 03:18:13 +00:00
Royce Mitchell III
ae5026eb5b fix to not crash when built with msvc6 ( bad calling convention on imports ).
fix error-handling bugs, added missing error-handling

svn path=/trunk/; revision=17499
2005-08-24 02:55:08 +00:00
Filip Navara
c905ca8a31 Get rid of one memory leak and two more ROS-only fields in LOGICAL_ADAPTER structure.
svn path=/trunk/; revision=17498
2005-08-24 02:20:41 +00:00
Filip Navara
82af9fdaa8 Start removing dead code and ReactOS specific structure fields (the NDIS structures are official, documented and contain all we need).
svn path=/trunk/; revision=17497
2005-08-24 01:51:49 +00:00
Filip Navara
f68e4fcc28 Fix few macros to work with the corrected declarations.
svn path=/trunk/; revision=17496
2005-08-24 00:04:21 +00:00
Royce Mitchell III
b696000363 remove incorrect comment (copy/paste error)
svn path=/trunk/; revision=17495
2005-08-23 23:20:23 +00:00
Filip Navara
1b15c0cf70 Get rid of NdisWorkItemHalt.
svn path=/trunk/; revision=17494
2005-08-23 23:08:40 +00:00
Royce Mitchell III
07b11a6760 msvc6 compatibility
svn path=/trunk/; revision=17493
2005-08-23 23:06:58 +00:00
Royce Mitchell III
431f66d687 proxy makefile for rbuild
svn path=/trunk/; revision=17492
2005-08-23 23:06:19 +00:00
Filip Navara
6b949b43ea Remove buffer pool implementation and replace buffer allocation with binary compatible functions (since some of them are macroized in DDK headers), other cosmetic changes.
svn path=/trunk/; revision=17491
2005-08-23 23:02:35 +00:00
Hervé Poussineau
ac0a5c446f Remove incorrect definition of NLS_MB_CODE_PAGE_TAG. The correct definition is 2 lines above.
svn path=/trunk/; revision=17490
2005-08-23 22:25:35 +00:00
Filip Navara
0a0c2fc103 Remove obsolete APIs and APIs that are actually implemented only as macros.
svn path=/trunk/; revision=17489
2005-08-23 22:24:54 +00:00
Filip Navara
f6283b4bca MS DDK compatibility fixes.
svn path=/trunk/; revision=17488
2005-08-23 22:11:03 +00:00
Filip Navara
4076e16a99 Shut up PREFAST warnings about shadowing declarations.
svn path=/trunk/; revision=17487
2005-08-23 20:18:55 +00:00
Filip Navara
eea6d92c91 Fix incorrect string manipulation in NdisOpenProtocolConfiguration and add few casts to make compiler happy.
svn path=/trunk/; revision=17486
2005-08-23 20:13:31 +00:00
Hartmut Birr
4a6a7d1ccc ReturnRecognizedPartitions in HalIoReadPartitionTable means that used and real partitions should be returned.
svn path=/trunk/; revision=17485
2005-08-23 17:43:58 +00:00
Hartmut Birr
b3f11cfb38 Fixed the calculation of the boot disk number in i386DiskGetSystemVolume.
We have to count all used partititions instead of the known one.

svn path=/trunk/; revision=17484
2005-08-23 17:42:12 +00:00
Hervé Poussineau
d373f6bfb0 Fix special case in SetupGetLineTextA/W and SetupGetStringFieldA/W when Buffer is NULL and BufferSize is 0, by reverting part of r17162
Fixes bug #724, spotted by GvG
Do according changes in SetupDiBuildDriverInfoList

svn path=/trunk/; revision=17483
2005-08-23 17:38:14 +00:00
Filip Navara
05c41b4d84 Name the proxy makefiles "GNUmakefile" instead of "makefile".
svn path=/trunk/; revision=17482
2005-08-23 14:56:38 +00:00
Gé van Geldorp
831c62d703 Rewrite project target
svn path=/trunk/; revision=17481
2005-08-23 14:51:03 +00:00
Filip Navara
9cb9ed7b8b Set the service group for i8042prt.
svn path=/trunk/; revision=17480
2005-08-23 14:26:00 +00:00
Alex Ionescu
f3f3986cdc use correct wait mode when checking alertability in KeDelayExecuteThread. thanks to gunnar for noticing the bug
svn path=/trunk/; revision=17479
2005-08-22 23:33:51 +00:00
Filip Navara
db6c51690e Actually break out of the wait loops if we got alerted.
svn path=/trunk/; revision=17478
2005-08-22 21:35:41 +00:00
Thomas Bluemel
38caf3038e rename IsKernelPointer to IsPointerOffset
svn path=/trunk/; revision=17477
2005-08-22 15:20:49 +00:00
Gunnar Dalsnes
453763e6eb move old cruft
svn path=/trunk/; revision=17476
2005-08-22 14:39:10 +00:00
Gunnar Dalsnes
035c4b73a1 prepare move old cruft
svn path=/trunk/; revision=17475
2005-08-22 14:26:37 +00:00
Thomas Bluemel
bd73d35e4d added a macro IsKernelPointer() to test whether a pointer value points to the kernel address space. This is needed because on IA-64 the MSB is not necessarily set for pointers to the kernel address space.
svn path=/trunk/; revision=17474
2005-08-22 13:38:30 +00:00
Filip Navara
27d68c7b2f Cleanup IoGetDmaAdapter and use HalGetDmaAdapter instead of HalGetAdapter.
svn path=/trunk/; revision=17473
2005-08-22 10:51:05 +00:00
Filip Navara
4fd4530977 Export the HalGetDmaAdapter callback and use some nice macros where appropriate.
svn path=/trunk/; revision=17472
2005-08-22 10:47:29 +00:00
Filip Navara
8872cc5e5d Add missing definitions for HalDispatchTable callbacks.
svn path=/trunk/; revision=17471
2005-08-22 10:29:51 +00:00
Filip Navara
a0b8ef87a8 Complete reimplementation of HAL DMA routines.
The key changes are
* Proper support for bus-master device adapters.
* Real implementation of map registers.
* Basic support for emulating scatter/gather DMA on
  devices that don't support it in hardware.
* Support for transfers that aren't page aligned.
* Proper detection and support of EISA DMA controllers.
* Fixed prototype for HalFlushCommonBuffer.

svn path=/trunk/; revision=17470
2005-08-22 08:39:42 +00:00
Brandon Turner
1fb85e029e Fix a CD bug spotted by ravelo_. This is simlair to bug 690. cd foo\"bar", cd "foo"\"bar"" and other of the sorts are all valid.
svn path=/trunk/; revision=17469
2005-08-21 20:44:47 +00:00
Steven Edwards
b1db227eed prompt to configure for Mingw after building project files
svn path=/trunk/; revision=17468
2005-08-21 19:35:19 +00:00
Thomas Bluemel
5e348c00c1 - use inlined probing macros for basic types
- minor optimizations by comparing the processor mode against KernelMode (==0) instead of UserMode (==1)

svn path=/trunk/; revision=17467
2005-08-21 19:04:23 +00:00
Thomas Bluemel
84f88f6480 use inlined probing macros for basic types
svn path=/trunk/; revision=17466
2005-08-21 17:38:07 +00:00
Filip Navara
632d85cc3b Replace wcsncpy with lstrcpynW / memcpy as appropriate.
svn path=/trunk/; revision=17465
2005-08-21 15:54:48 +00:00
Filip Navara
c2e747ed00 Fix implementation of wcsnlen and strnlen.
svn path=/trunk/; revision=17464
2005-08-21 15:51:57 +00:00
Filip Navara
dc4c46f7cc Fix buffer overflow in lstrcpynW and lstrcpynA.
svn path=/trunk/; revision=17463
2005-08-21 15:51:23 +00:00
Thomas Bluemel
10cd89fb4e - use inlined probing macros for basic types
- documented dozens of vulnerabilities in NtOpenThread, NtCreateThread and NtOpenProcess (owner may fix them)

svn path=/trunk/; revision=17462
2005-08-21 15:38:47 +00:00
Thomas Bluemel
6e74d05c08 add macros to probe basic type pointers
svn path=/trunk/; revision=17461
2005-08-21 15:14:36 +00:00
Thomas Bluemel
5d1efdc288 fixed uninitialized variable warning
svn path=/trunk/; revision=17460
2005-08-21 15:00:29 +00:00
Thomas Bluemel
c0e80c80f9 add prototypes of RtlDosPathNameToRelativeNtPathName_U and RtlReleaseRelativeName and export them
svn path=/trunk/; revision=17459
2005-08-21 14:58:47 +00:00
Steven Edwards
f0652f0b65 add fix it to build on linux
svn path=/trunk/; revision=17458
2005-08-21 14:41:20 +00:00
Steven Edwards
d45951b413 added a genguid helper function based on genguid by Jon Wilson. Will be needed later on when building project files.
svn path=/trunk/; revision=17457
2005-08-21 14:04:19 +00:00
Steven Edwards
b87887e917 ...I hate windows and its concepts of case in filenames...
svn path=/trunk/; revision=17456
2005-08-21 04:04:13 +00:00
Steven Edwards
ceef1f78ae add a more descriptive message about the state of the MSVC backend
svn path=/trunk/; revision=17455
2005-08-21 03:24:37 +00:00
Steven Edwards
fb2f0898bf started working on a msvc2k5 backend. Mostly a dummy atm based on the devcpp backend
svn path=/trunk/; revision=17454
2005-08-21 01:29:56 +00:00
Filip Navara
d08bee5539 Report the PCI bus type as PCIBus instead of Internal.
svn path=/trunk/; revision=17453
2005-08-20 23:50:06 +00:00
Brandon Turner
7677f95c2c optimize 17218 by using memmove instead of memcopy and not using _tcsncmp. Suggested by thomas.
svn path=/trunk/; revision=17452
2005-08-20 19:04:38 +00:00
Brandon Turner
bf127ab4fb Open err redirection the same as output redirection. Batch file does not need to be opened with FILE_FLAG_WRITE_THROUGH since it is read only, catch by thomas.
svn path=/trunk/; revision=17451
2005-08-20 18:30:25 +00:00
Brandon Turner
c7163ec449 Change the way batch files and output files are opened. They now allow write and delete while being excuted. This is how MS cmd is done. Thanks to Greatlord, Filip, Thomas.
svn path=/trunk/; revision=17450
2005-08-20 18:07:59 +00:00
Robert Kopferl
6dca386d96 version info for release
svn path=/branches/ros-branch-0_2_7/; revision=17449
2005-08-20 17:17:44 +00:00
Royce Mitchell III
1ad828873f added clean rule
svn path=/trunk/; revision=17448
2005-08-19 21:58:31 +00:00
Steven Edwards
565a32245f use instead of g++
svn path=/trunk/; revision=17447
2005-08-19 21:56:14 +00:00
Royce Mitchell III
4cdcc88ae0 spelling/grammar
svn path=/trunk/; revision=17446
2005-08-19 21:54:59 +00:00
Royce Mitchell III
07435bc9ca mingw makefile + more mingw compatibility fixes
svn path=/trunk/; revision=17445
2005-08-19 21:53:40 +00:00
Steven Edwards
999292611d ditto
svn path=/trunk/; revision=17444
2005-08-19 21:21:58 +00:00
Royce Mitchell III
595c382dbc mingw compatibility fixes
svn path=/trunk/; revision=17443
2005-08-19 21:21:05 +00:00
Steven Edwards
623af9cd28 mixed case sucks
svn path=/trunk/; revision=17442
2005-08-19 21:21:04 +00:00
Gé van Geldorp
927cbf4440 Add generation of 8bpp DIB code
svn path=/trunk/; revision=17441
2005-08-19 20:56:01 +00:00
Steven Edwards
ceb380247b Added support for MOVEFILE_DELAY_UNTIL_REBOOT, based on Wine code by Gerhard W. Gruber and others. Still requires smss to check the key.
svn path=/trunk/; revision=17440
2005-08-19 19:05:59 +00:00
Andrew Munger
7f0ea80f3f Merge TimeOut fix from trunk.
svn path=/branches/ros-branch-0_2_7/; revision=17439
2005-08-19 17:13:37 +00:00
Emanuele Aliberti
c84b875eac XML chunks are required to contain a single node.
svn path=/trunk/; revision=17438
2005-08-19 15:28:41 +00:00
Emanuele Aliberti
88d1bd4d58 Moved keyboard mappers need to picked up from the right place.
svn path=/trunk/; revision=17437
2005-08-19 15:27:39 +00:00
Emanuele Aliberti
d830459d8c Group keyboard mappers in a common directory, like CPLs.
svn path=/trunk/; revision=17436
2005-08-19 15:26:02 +00:00
Gé van Geldorp
a4c7ecd803 Import VMware open source BusLogic driver
Hartmut made it work in ReactOS.

svn path=/trunk/; revision=17434
2005-08-18 21:59:20 +00:00
Alex Ionescu
20d4ebeffc Fix boot
svn path=/trunk/; revision=17431
2005-08-18 21:25:04 +00:00
Magnus Olsen
9eeadb66ec implement errorlevel in some cmd command and bug fix some errorlevel command. Hopply it is last commit about errorlevel. Please can some test see if all cmd command have right errorlevel set or not set. I have not test every command if they got right errorlevel setting. But They should have it now.
svn path=/trunk/; revision=17430
2005-08-18 20:52:52 +00:00
Gé van Geldorp
a6b62e7c0d Add generation of 32bpp DIB code
svn path=/trunk/; revision=17429
2005-08-18 19:26:37 +00:00
Brandon Turner
106794e0ab make dir change errorlevel to 0 on success.
svn path=/trunk/; revision=17428
2005-08-18 15:21:57 +00:00
Brandon Turner
c7d3d9b183 Test commit, adding myself to the cmd credits.
svn path=/trunk/; revision=17427
2005-08-18 15:04:04 +00:00
Hartmut Birr
6888f719c5 Fixed the directory index for FATX in FATXAddEntry.
svn path=/trunk/; revision=17426
2005-08-18 11:51:27 +00:00
Hartmut Birr
f8cf29f8d0 Load the symbols from ntoskrn.exe from the boot cd, if it is possible.
svn path=/trunk/; revision=17425
2005-08-17 20:41:15 +00:00
Alex Ionescu
fa4888f2fc Add back MessageData to PQUEUED_MESSAGE. It was accidentally removed
svn path=/trunk/; revision=17424
2005-08-17 18:56:57 +00:00
Magnus Olsen
13b5d61c2c implemented batch redirection by saving batch info in tagBATCHCONTEXT by Brandon Turner
svn path=/trunk/; revision=17423
2005-08-17 18:01:47 +00:00
Gé van Geldorp
598f28ffad Samuel Bronson <naesten@gmail.com>:
Reduce the time it takes GDB to attach

svn path=/trunk/; revision=17422
2005-08-17 07:23:05 +00:00
Alex Ionescu
76f11b5f23 Add beginning of lpc docs
svn path=/trunk/; revision=17421
2005-08-17 07:07:43 +00:00
Alex Ionescu
e7d010c5de Major cleanup of NDK. I've decided that it would be much cleaner to accumulate all types, regardless of their um/km availabilty, into each header. Thus, umtypes.h now only contains the equivalent of ntdef.h and is automatically not-included if the DDK is. Similary, I've removed all the NTIFS hacks and added a single ifssupp.h file, which is automatically removed if the IFS is added. That file will be deleted then the Longhorn WDK is made public (it contains the IFS/DDK). Nothing has changed on the includer-side, the same rules still apply
svn path=/trunk/; revision=17420
2005-08-17 07:06:59 +00:00
Emanuele Aliberti
eacc9d1b3a Minor changes.
svn path=/trunk/; revision=17419
2005-08-17 06:14:55 +00:00
Andrew Munger
c9522f3ab8 Do not free a Critical Section we did not initialize. Fixes the silent UM exception I was seeing while trying to install VMWare tools. Patch by Filip.
svn path=/trunk/; revision=17418
2005-08-16 23:37:17 +00:00
Alex Ionescu
9f1cf7b990 Remove all non-official LPC structures/defines/hardcoded hacks, and use actual correct sizes and structures.
svn path=/trunk/; revision=17417
2005-08-16 23:05:33 +00:00
Emanuele Aliberti
81fe025857 Add a stub for NTDLL!CsrGetProcessId.
svn path=/trunk/; revision=17416
2005-08-16 22:16:09 +00:00
Hartmut Birr
75983b1ade - Fixed the offset calculation in MmWritePagePhysicalAddress and MmPageOutPhysicalAddress.
- Add some code which will check for adding of multiple rmap entries.

svn path=/trunk/; revision=17415
2005-08-16 20:36:03 +00:00
Hartmut Birr
37aea079c1 If we delete a page table, we have also to clear the entry in the page directory area explicitly. This may fix parts of bug #710.
svn path=/trunk/; revision=17414
2005-08-16 16:17:47 +00:00
Casper Hornstrup
459c10a65e module_test proxy makefile support
svn path=/trunk/; revision=17413
2005-08-16 15:47:38 +00:00
Casper Hornstrup
bf5462ac03 Change o to optional
svn path=/trunk/; revision=17412
2005-08-16 14:39:17 +00:00
Emanuele Aliberti
9544a940a9 Make NTDLL not bind automatically to the Win32 server.
This will allow other personality subsystem not to depend on Win32.

svn path=/trunk/; revision=17411
2005-08-16 14:24:00 +00:00
Steven Edwards
3bea619a9a Changes to get msi based installers mostly working
ConvertStringSecurityDescriptorToSecurityDescriptor[W/A] - implement based on Winehq code
InitiateSystemShutdownExW - add stub from Wine
Convert registry source file to use Wine debugging Macros

svn path=/trunk/; revision=17410
2005-08-16 05:17:06 +00:00
Filip Navara
51cbaf1419 Make KeFlushQueueApc return a standard cyclic linked list to save a few CPU cycles.
svn path=/trunk/; revision=17408
2005-08-16 00:01:42 +00:00
Alex Ionescu
19f76e91c6 - Remove the APC from the list and then set it as not inserted, instead of backwards.
svn path=/trunk/; revision=17407
2005-08-15 22:44:32 +00:00
Emanuele Aliberti
fc21544784 packlib.dll is DLL, not an EXE!
svn path=/trunk/; revision=17406
2005-08-15 21:06:07 +00:00
Emanuele Aliberti
1c1f104d0c Enlarge the Options buffer.
svn path=/trunk/; revision=17405
2005-08-15 19:53:00 +00:00
Emanuele Aliberti
db0350f4d0 Update the cabman manual.
svn path=/trunk/; revision=17404
2005-08-15 19:50:35 +00:00
Emanuele Aliberti
6dfef1d2d7 Semantic enhancement suggested by Casper Hornstrup (o==>optional).
Fix bug in the method CDFParser::PerformFileCopy (spotted by Sylvain Petreolle).

svn path=/trunk/; revision=17403
2005-08-15 19:46:47 +00:00
Royce Mitchell III
ab9cdfc5dd fix reference counting output to tell us caller's file and line #
svn path=/trunk/; revision=17402
2005-08-15 18:43:56 +00:00
Emanuele Aliberti
9ceeecd2bd Subsystem definitions: convert OS/2 and POSIX to new CSR.
svn path=/trunk/; revision=17401
2005-08-15 17:31:33 +00:00
Emanuele Aliberti
b96f07443c Add winemine.
svn path=/trunk/; revision=17400
2005-08-15 17:30:20 +00:00
Emanuele Aliberti
5b5d163023 Add new CSR and new Win32 server as optional (subsys/csr, subsys/win).
Add images from the optional modules (rosapps,os2,posix,rosky,vms).

svn path=/trunk/; revision=17399
2005-08-15 17:04:34 +00:00
Hartmut Birr
8bb6155fdb Fixed a terminating NULL in IoRegisterDeviceInterface.
svn path=/trunk/; revision=17397
2005-08-15 16:47:15 +00:00
Emanuele Aliberti
a0fb1d3891 CABMAN: add support for optional files (they are listed in the reactos.dff, but may not exist in the output-??? directory).
svn path=/trunk/; revision=17396
2005-08-15 16:41:43 +00:00
Steven Edwards
54bd458644 Changelog:
MSAFD: Add PCH support, PSDK fixes
MISC: Fix everything to build with PSDK changes
PSDK Fixes:
w32api/include/ssdl.h - reimplement based on Wine header which was more correct
w32api/include/ntsecapi.h - Remove duplicate structures and add typedef
w32api/include/winnt.h - add constant and missing structure
w32api/include/winioctl.h - add missing IOCTL code
w32api/include/winbase.h - add missing function declariation
w32api/include/aclui.h - remove duplicate structure

svn path=/trunk/; revision=17394
2005-08-15 02:24:48 +00:00
James Tabor
f3cd936a23 Merge change 17380 to 0.2.7 branch.
svn path=/branches/ros-branch-0_2_7/; revision=17393
2005-08-15 01:41:24 +00:00
James Tabor
89d916e2c9 Create Usb bulk storage template.
svn path=/trunk/; revision=17390
2005-08-14 22:27:15 +00:00
Gé van Geldorp
69594926a7 Have vmwinst add back the registry entries which were so brutally removed.
This doesn't fix the problem completely though, blocked by the problem
described here:
http://reactos.com:8080/archives/public/ros-dev/2005-August/004558.html

svn path=/trunk/; revision=17389
2005-08-14 21:44:58 +00:00
Gé van Geldorp
33904bcc83 index is 1-based at this point, index == line->nb_fields is the last
field and is valid

svn path=/trunk/; revision=17388
2005-08-14 20:22:37 +00:00
James Tabor
7d093589b4 Implemented USBD_ParseConfigurationDescriptorEx and USBD_ParseDescriptors for bulkusb driver testing.
svn path=/trunk/; revision=17382
2005-08-14 13:18:50 +00:00
Magnus Olsen
6f3cd1ce3e change CMDLINE_LENGTH to 8192 to keep rbuild happy until dymatic alloc are in place
svn path=/trunk/; revision=17380
2005-08-14 09:14:53 +00:00
Royce Mitchell III
a6f00340b4 WINAPI -> STDCALL, plus fix/expound documentation
svn path=/trunk/; revision=17379
2005-08-14 04:36:36 +00:00
Royce Mitchell III
ffa5fea7b6 implement DbgPrintEx, vDbgPrintEx, and vDbgPrintExWithPrefix
svn path=/trunk/; revision=17378
2005-08-14 04:24:01 +00:00
Royce Mitchell III
199bb66de3 fix declaration of DbgQueryDebugFilterState()
svn path=/trunk/; revision=17377
2005-08-14 04:22:07 +00:00
Martin Fuchs
db5b22a857 Project file maintainance
svn path=/trunk/; revision=17373
2005-08-13 17:29:38 +00:00
Martin Fuchs
cfccce8fda prepare for ANSI builds
svn path=/trunk/; revision=17372
2005-08-13 17:24:50 +00:00
Martin Fuchs
7121be53f2 Project file maintainance
svn path=/trunk/; revision=17371
2005-08-13 16:04:29 +00:00
Martin Fuchs
e2f582841b Winefile Makefile for pure MinGW
svn path=/trunk/; revision=17370
2005-08-13 16:04:08 +00:00
Martin Fuchs
5729cb615a remove special handling of previous MinGW versions
svn path=/trunk/; revision=17369
2005-08-13 13:21:27 +00:00
Emanuele Aliberti
33d084e118 Implement csrsrv!CsrSrvInitializeServerDll based on current code from CsrpInitWin32Csr (partial).
Note: it currently works only for servers with 1 ServerDll, because the entrypoint's name is a literal.

svn path=/trunk/; revision=17368
2005-08-13 13:21:28 +00:00
Royce Mitchell III
ecb6afadcc BCB tracing implementation
svn path=/trunk/; revision=17367
2005-08-13 13:16:16 +00:00
Royce Mitchell III
a2525f8275 function declaration to enable/disable BCB tracing
svn path=/trunk/; revision=17366
2005-08-13 13:13:05 +00:00
Royce Mitchell III
864eea72ca variable to enable per-BCB debugging
svn path=/trunk/; revision=17365
2005-08-13 13:11:59 +00:00
Emanuele Aliberti
ce468cd74a Conform to the new CSR_PROCESS and CSR_THREAD.
svn path=/trunk/; revision=17364
2005-08-13 12:46:37 +00:00
Emanuele Aliberti
f17be37700 Alex Ionescu: CSR_PROCESS and CSR_THREAD layout from WinDBG.
svn path=/trunk/; revision=17363
2005-08-13 12:45:33 +00:00
Emanuele Aliberti
430f07c8ca Begin making the 'posix' module conform to rbuild.
svn path=/trunk/; revision=17362
2005-08-13 12:35:00 +00:00
Emanuele Aliberti
4077565304 Minor changes.
svn path=/trunk/; revision=17361
2005-08-13 12:33:04 +00:00
Emanuele Aliberti
39fa853b50 Make 'rosapps' module build.
svn path=/trunk/; revision=17360
2005-08-13 12:25:16 +00:00
Magnus Olsen
821068b0c7 small clean up. remove double define of COPY_FILE_FAIL_IF_EXISTS and COPY_FILE_RESTARTABLE
svn path=/trunk/; revision=17359
2005-08-13 12:09:34 +00:00
Hartmut Birr
c2df09cd88 Fixed _WINBASE_/_WINBASE_H
svn path=/trunk/; revision=17358
2005-08-12 23:35:14 +00:00
Aleksey Bragin
81d3bd9f54 Correct include tree, fixing multiple defines.
svn path=/trunk/; revision=17355
2005-08-12 21:01:32 +00:00
Emanuele Aliberti
84217b8390 Correct version info.
svn path=/trunk/; revision=17354
2005-08-12 20:57:26 +00:00
Emanuele Aliberti
88a218b3f6 OS/2: more changes to make it conform to rbuild.
svn path=/trunk/; revision=17353
2005-08-12 20:55:07 +00:00
Aleksey Bragin
ebfff39168 Xbox hack added, so two exactly the same PCI devices (OHCI controllers) have different locations. Without it USB drivers won't work at all.
svn path=/trunk/; revision=17352
2005-08-12 20:29:01 +00:00
Aleksey Bragin
39007f77e2 Major additions to usb stack:
1) Improve hardware support in linux_wrapper
2) Add embedded drivers, register them in linux usb stack
3) Add working wrapper for keyboard and mouse devices - now if usbohci or uhci loads, it will be the first to create KeyboardClass0 and PointerClass0 devices, so PS/2 keyb/mouse won't work.
4) Added logic for registering miniport at port driver (like Windows' usb stack does)

Bad things:
1) "multithreading" is still done not the proper way, but ugly way
2) under xbox xpad doesn't work
3) it must be wasting lots of CPU power now, since hub thread doesn't block while waiting for events

svn path=/trunk/; revision=17351
2005-08-12 20:21:22 +00:00
Aleksey Bragin
c79bfba64d removed debug message about submitting urb
svn path=/trunk/; revision=17350
2005-08-12 20:11:56 +00:00
Aleksey Bragin
17cc83e8b5 USB keyboard and mouse "embedded" drivers from cromwell and linux 2.5.0 usb stack adapted to our stack.
svn path=/trunk/; revision=17349
2005-08-12 19:54:40 +00:00
Emanuele Aliberti
98051c3a59 OS/2: begin converting the subtree to rbuild.
svn path=/trunk/; revision=17348
2005-08-12 19:22:42 +00:00
Emanuele Aliberti
222891f5a8 Correct the version info.
svn path=/trunk/; revision=17347
2005-08-12 19:15:01 +00:00
Gé van Geldorp
a8308edaa4 Update status
svn path=/trunk/; revision=17345
2005-08-12 19:08:45 +00:00
Hervé Poussineau
e5b47d0df9 Implement SetupDiCallClassInstaller (still doesn't support custom class installers/co-installers)
Implement SetupDiGetDeviceInstallParamsA by calling SetupDiGetDeviceInstallParamsW. Add stub for SetupDiGetDeviceInstallParamsW
Basic implementation of SetupDiSelectBestCompatDrv (selects first driver of the list)
Add stubs for SetupDiInstallDriverFiles, SetupDiRegisterCoDeviceInstallers, SetupDiInstallDeviceInterfaces, SetupDiInstallDevice

svn path=/trunk/; revision=17344
2005-08-12 19:03:35 +00:00
Hervé Poussineau
905e145f73 Always set a valid class Guid in CreateDeviceInfoElement
Fix interfaces enumeration by not copying cbSize field (it should already be correct)

svn path=/trunk/; revision=17343
2005-08-12 19:00:04 +00:00
Gé van Geldorp
013ea78e1d Sync to Wine-20050725:
Thomas Weidenmueller <wine-patches@reactsoft.com>
- IsThemeDialogTextureEnabled should have one parameter to match the
  prototype in the official headers.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes (Reg* functions).
Stefan Huehner <stefan@huehner.org>
- Make some function static.
- Fix -Wmissing-declarations warnings.
Frank Richter <frank.richter@gmail.com>
- Enable/disable "flat menus" based on the setting from the active
  theme.
- Have the theme INI file parsed upon theme activation and not just when
  the first theme data is requested; that way, the themed system colors
  are set correctly from the start, and not just after some theme data
  was requested.
- GetThemeBackgroundContentRect() does not use the content margins
  alone, it also falls back to the border size or sizing margins, and if
  it can't find any possible margins at all, it returns the original
  rectangle.
- Make dialog theme texture setting non-global (ie a per-window
  setting).
- Better viewport origin in DrawThemeParentBackground().
- OpenThemeData() now always sets the window theme to the handle
  returned (even if that is NULL) - previously, it could happen that
  when no theme was active or the theme data could not be opened that
  the window theme remained became then-dangling (and hence subsequent
  calls to GetWindowTheme() would return that bogus theme).
- Correct border rectangle drawing.
- Don't crash if NULL is passed as the class list to OpenThemeData().
- UXTHEME_LoadImage(): Set default image count to 1 to avoid division by
  zero in case image count property is not given. Properly support 0
  state IDs.
- Every window needs to receive WM_THEMECHANGED (esp. controls), so also
  send it to child windows.
- Changed the default transparent color in case none was explicitly
  specified from the upper left pixel color to magenta. Empirically
  gives better results.
- Write WCHAR strings to registry with correct size.
- Opening some theme class data now also increases the reference count
  of the theme file, so as long as theme class data is still opened
  somewhere, the theme file won't get freed. Otherwise, it could happen
  that invalid class data was used, which could lead to problems.

svn path=/trunk/; revision=17342
2005-08-12 18:22:47 +00:00
Gé van Geldorp
dbd7ad25e3 Sync to Wine-20050725:
Felix Nawothnig <felix.nawothnig@t-online.de>
- Fix misuse of UrlCombineW.
Mike McCormack <mike@codeweavers.com>
- Fix -Wpointer-sign warnings.
Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
- URLMonikerImpl_BindToStorage: Don't use a HeapAllocated pointer for
  other purposes.
- URLMonikerImpl_BindToStorage: Escape special characters.
Jacek Caban <jack@itma.pwr.wroc.pl>
- Register protocols.
- Better module locking.
- Fix handling of pmkContext in CreateURLMoniker.

svn path=/trunk/; revision=17341
2005-08-12 18:17:37 +00:00
Gé van Geldorp
66359f3c63 Sync to Wine-20050725:
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes (Reg* functions).

svn path=/trunk/; revision=17340
2005-08-12 18:09:06 +00:00
Gé van Geldorp
b063f039ec Sync to Wine-20050725:
Mike McCormack <mike@codeweavers.com>
- Interlocked LONG* gcc warning fixes.

svn path=/trunk/; revision=17339
2005-08-12 18:06:58 +00:00
Gé van Geldorp
9ba9b8ed9a Sync to Wine-20050725:
Michael Jung <mjung@iss.tu-darmstadt.de>
- Initial support for the IPersistFolder3 interface.
- Use CP_UNIXCP instead of CP_ACP when converting paths (Pointed out by
  Troy Rollo).
- Add file type column in detailed shell view.
- Make the order of shell view columns 'prefix-compatible' with
  shfldr_fs.
- Don't remove filename extensions for path pidls in GetDisplayNameOf.
- Do filename postprocessing in GetDisplayNameOf (Hide filename
  extensions if appropriate).
- Don't cache child pidls in UnixFolder, but create them on the fly.
- Don't use unix filesystem specific attributes in UnixFolder's pidls.
- Partially implemented UnixFolder's ISFHelper::CopyItems method.
- Return correct HRESULT code in UnixFolder's IEnumIDList::Next.
- Corresponding test.
- Release shell folders only if they were successfully acquired.
- Implemented UnixFolder's ISFHelper::DeleteItems interface.
- Fail in SHGetDataFromIDList when called on special folder.
- Return correct attributes in ParseDisplayName.
- Register unixfs at desktop level in DllRegisterServer.
- Fix two more corner cases in UNIXFS_get_unix_path and UNIXFS_path_to_pidl.
- If the unixfs is rooted at the Desktop folder, forward
  ParseDisplayName calls to it instead of to MyComputer.
- Only initialize shell folders via the IPersistFolder3 interface in
  SHELL32_CoCreateInitSF if the pidl which specifies the child is of
  type 'Folder'. Otherwise fall back to IPersistFolder.
- Append filename extension if necessary in IShellFolder::SetNameOf.
- Release parent shell folder in GetAttributesOf.
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Robert Shearman <rob@codeweavers.com>
- Implement ShellDDEInit.
Michael Lin <mlin@corvu.com.au>
Michael Jung <mjung@iss.tu-darmstadt.de>
- Implemented UnixFolder's ISFHelper::AddFolder.
- ISFHelper interface support for UnixFolder (currently only stubs).
- Implemented UnixFolder's IShellFolder::SetNameOf.
Vincent Béron <vberon@mecano.gme.usherb.ca>
- Remove multiple declarations of the same function, keeping the public
  one as reference.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes (Reg* functions).
- -Wpointer-sign fixes.
Troy Rollo <wine@troy.rollo.name>
- Return attributes for the correct file in the unixfs ParseDisplayName.
- When using PATHMODE_UNIX, all files are in the file system.
Marcelo Duarte <marcelotduarte@gmail.com>
- Update shell32 resources for Portuguese.
Detlef Riekenberg <wine.dev@web.de>
- Printers_RegisterWindowW / Printers_UnregisterWindow implemented as
  stub.
- Show the FIXME in Printer_LoadIconsW only when needed.
- Printer_LoadIconsW: implemented minimal version.

svn path=/trunk/; revision=17338
2005-08-12 18:04:51 +00:00
Gé van Geldorp
95a149a8df Sync to Wine-20050725:
Francois Gouget <fgouget@free.fr>
- Fix the NdrVaryingArrayUnmarshall prototype (reported by
  winapi_check).
- Assorted spelling fixes.
Robert Shearman <rob@codeweavers.com>
- Add stubs for most of the NDR marshaling functions.
- IRpcStubBuffer_Disconnect can be called more than once.
Mike McCormack <mike@codeweavers.com>
- Interlocked LONG* gcc warning fixes.
Stefan Huehner <stefan@huehner.org>
- Fix -Wmissing-declarations warnings.
- Fix some missing-declarations warnings.

svn path=/trunk/; revision=17337
2005-08-12 17:50:33 +00:00
Emanuele Aliberti
8df355e8a6 XML chunks are required to contain a single node.
svn path=/trunk/; revision=17336
2005-08-12 17:43:23 +00:00
Gé van Geldorp
6dd32969d0 Sync to Wine-20050725:
Phil Krylov <phil@newstar.rinet.ru>
- Added some useful TRACEs.
- Allow NULL parameter for WM_SETTEXT in RichEdit.
- Implemented EM_LINELENGTH RichEdit message.
- Fixed EM_LINEINDEX handler and added EM_LINEFROMCHAR handler.
- Implemented EM_EXLINEFROMCHAR, EM_LINEINDEX, EM_FINDTEXT,
  EM_FINDTEXTW, EM_FINDTEXTEX, and EM_FINDTEXTEXW messages.
- Fixed a comment about EM_STREAMIN.
- Implemented EM_GETLINECOUNT RichEdit message.
- Fixed EM_GETCHARFORMAT for selection containing a single character.
- Fixed an off-by-one error in EM_GETLINECOUNT handler.
- Fixed an off-by-one error in EM_STREAMOUT handler for non-Unicode
  plain text output.
- Fixed another couple of EM_STREAMOUT bugs.
- Removed junk from UTF-8 RTF output.
- Added emulation of RichEdit 1.0 behaviour when the 1.0 window class is
  being used. This emulation (introduced in M$ RichEdit 3.0) counts
  paragraph endings as 2 characters (CR+LF) instead of 1 (CR).
- Added EM_GETZOOM and EM_SETZOOM RichEdit message handlers.
- Added some missing but useful items to the TODO list.
Felix Nawothnig <felix.nawothnig@t-online.de>
- Check structure size and fix return values in EM_GETCHARFORMAT.
Aric Stewart <aric@codeweavers.com>
- Implementation for EM_GETTEXTEX.
Daniel Remenak <dtremenak@gmail.com>
- Basic handling of EM_SETTEXTEX.
Stefan Huehner <stefan@huehner.org>
- Make functions static to fix -Wmissing-declarations warnings.
- Change some char* to const char* to fix warnigns.
- Make some function static.
- Fix -Wmissing-declarations warnings.

svn path=/trunk/; revision=17335
2005-08-12 17:41:40 +00:00
Gé van Geldorp
e97f6fb328 Sync to Wine-20050725:
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes (Reg* functions).

svn path=/trunk/; revision=17334
2005-08-12 17:34:06 +00:00
Gé van Geldorp
a48a2273ec Sync to Wine-20050725:
Huw Davies <huw@codeweavers.com> for Mandriva
- Cope with the index in a import table entry being a typeinfo index
  rather than a guid offset.
Robert Shearman <rob@codeweavers.com>
- Document active object and variant functions.
- Rename OLEAUT32_Dll* Functions to Dll*.
- IRpcStubBuffer_Disconnect can be called multiple times.
- Release TypeLib when freeing stub buffer.
- Fix confusion between number of characters and number of bytes in
  unmarshaling BSTRs. Convert it all to characters for consistency with
  the BSTR_User* routines.
- Marshal and unmarshal TKIND_ENUM and TKIND_ALIAS.
- Fix VT_BYREF|VT_UNKNOWN return values by comparing the correct value
  with VT_UNKNOWN and VT_DISPATCH.
- Better tracing.
- Return DISP_E_EXCEPTION from ITypeInfo_Invoke on an error in the
  called function.
- Remove RegisterTypeLib hack.
- Support VT_BYREF|VT_I4 in _copy_arg.
- Activate ITypeLib, ITypeInfo and IEnumVARIANT Marshalers.
Alex Villacis Lasso <a_villacis@palosanto.com>
- Fix GIF palette allocation, by relying on ColorCount instead of
  SColorResolution.
- Ensure that underflowing negative float is represented as a positive
  0, just as native oleaut32.
Alexandre Julliard <julliard@winehq.org>
- Get rid of cursoricon.h.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes (Reg* functions).
- Interlocked LONG* gcc warning fixes.
Stefan Huehner <stefan@huehner.org>
- Fix some more -Wmissing-declarations warnings.
Robert Shearman <rob@codeweavers.com> for Mandriva
- Add a generic TYPEDESC VT to VARIANT VT mapper so we can use the
  standard Variant* routines. Use this new function to properly copy &
  de-reference the return value.
- Conversions between variants types of the same size should ignore
  overflows.
- Tests for this behaviour.

svn path=/trunk/; revision=17333
2005-08-12 17:30:09 +00:00
Gé van Geldorp
7835b350bb Sync to Wine-20050725:
Robert Shearman <rob@codeweavers.com>
- Marshal return value from IRemUnknown_RemQueryInterface.
- We should be starting with 1 reference.
- IRpcStubBuffer_Disconnect can be called more than once.
- Silence now noisy error messages caused by changes in the way we call
  ipid_to_stubmanager. Move the error message to the one place it is
  needed.
- By-pass the RPC runtime if possible when calling an STA by posting a
  message directly to the apartment window for it to process. Fixes a
  deadlock in InstallShield caused by having to create a thread when
  freeing an object that comes from an STA apartment. Added tests that
  fail without this fix.
- Hack around broken state management so InstallShield works.
- Delete the stub manager outside of the apartment critical section
  because the deletion may require the object to re-enter the
  apartment.
- Always query for the correct stub interface, otherwise we will be
  pointing to the completely wrong object when a proxy does a
  queryinterface.
- Remove assumption that the stub buffer will handle the lifetime of
  the object.
Alex Villacis Lasso <a_villacis@palosanto.com>
- Initialize RegisteredClass properly in CoRegisterClassObject to
  prevent crash in CoRevokeClassObject when accessing (uninitialized)
  pMarshalledData.
Mike McCormack <mike@codeweavers.com>
- Fix gcc 4.0 -Wpointer-sign warnings.
Vitaly Lipatov <lav@etersoft.ru>
- Added some documentation.
Stefan Huehner <stefan@huehner.org>
- Fix some missing-declarations warnings.
Marcus Meissner <meissner@suse.de>
- 16bit interfaces are cdecl, so drop the WINAPI.
- 16bit COM interfaces are cdecl, not WINAPI.
- OleInitializeWOW gets 2 arguments.
- Added OleSetMenuDescriptor16 stub.
Marcus Meissner <marcus@jet.franken.de>
- Implemented IsValidInterface16, CoMemAlloc.
  Added debug to HGLOBALLockBytes16_QueryInterface.

svn path=/trunk/; revision=17332
2005-08-12 17:19:46 +00:00
Gé van Geldorp
5b9aceccd3 Sync to Wine-20050725:
Robert Shearman <rob@codeweavers.com>
- In MsiLocateComponent pcchBuf can be NULL so don't try to dereference
  it.
Alexandre Julliard <julliard@winehq.org>
- Use the official names for the Unicode string constants.
Aric Stewart <aric@codeweavers.com>
- Implement MsiGetLanguage.
- Relocate the msi file to prevent cd locking, corrected to properly not
  try to relocated #nnnn handles as files.
- Use the SourceList functions to get the source path in
  ConfigureProductExW.
- Handle installs off multiple volumes and properly pull the prompt
  string from the error table.
- If MsiGetProperty(A/W) is called with a NULL for the value buffer but
  a value in the size for the value buffer, then Msi fills in the size
  of the value into the pointer for size.  This is tested and confirmed
  with native MSI.
- Bail out if the reg key is empty. This prevents us from writing
  garbage to the property table.
- Properly resize the buffer based on ERROR_MORE_DATA.
  Also remember to free the allocated buffer.
- Further testing shows that when CustomActionData needs to be blank it
  is an empty string not ' '.
- Correct an error where I was not properly advancing a pointer.
- Add source.c to start handling the various MsiSourceList apis used in
  v3 of MSI, and now internally.
- Update files.c to use the MsiSourceList apis to make sure our
  SourceList keys in the registry are included and correct.
- Use the strings defined in msi.h.
- Use SOURCEDIR instead of PackagePath. Because the PackagePath may be
  local, while SOURCEDIR is more proper and will be a full directory.
- InstallShield does a number of actions using DoAction before the
  Install starts so the PackageCode needs to be loaded on OpenPackage
  instead of the beginning of the install process.
- When working toward install on demand support we need to reset all the
  constant values so that multiple install process do not get confused
  by leftover values from the previous install.
- Fill and use the ProductCode part of the MSIPACKAGE structure.
- Add the string constants located in msi.h and make use of them in
  files.c and source.c.
- Keep track of what sequence we are in and register unique
  actions. This allows us to make sure actions and custom actions
  flagged to run only once, actually run only once.
- Also clean up some of the numeric constants in custom.c using the
  defined values from msidefs.h.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes.
- Display icons in buttons that have them.
- Use LoadImage to load bitmaps and icons.
- Set the initial focus on the control specified by Control_First in the
  Dialog table.
- Move to the next mask edit field when the current one becomes full.
- Make the tab order in msi dialogs right.
- Don't crash when cancelling out of a modeless dialog.
- Stop the install when cancelling from a modeless dialog.

svn path=/trunk/; revision=17331
2005-08-12 17:07:28 +00:00
Gé van Geldorp
caa4e5c6ee Sync to Wine-20050725:
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes (Reg* functions).

svn path=/trunk/; revision=17330
2005-08-12 16:59:41 +00:00
Royce Mitchell III
32ca0b0274 check for failure of vfatAttachFCBToFileObject() during file creation
svn path=/trunk/; revision=17328
2005-08-12 16:49:04 +00:00
Gé van Geldorp
25afeebf54 Sync to Wine-20050725:
Huw Davies <huw@codeweavers.com>
- Add English neutral version of IDS_COLOR_GRAY.
Eugeny Gorelov <tft@etersoft.ru>
- Implement most functionality of PageSetupDlg function.
Michael Jung <mjung@iss.tu-darmstadt.de>
- Don't expand MyComputer in the file dialogs without user interaction,
  if unixfs is rooted at desktop.
Henning Gerhardt <henning.gerhardt@web.de>
- Update German resource files.
Vincent Beron <vberon@mecano.gme.usherb.ca>
- Remove multiple declarations of the same function, keeping the public
  one as reference.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes.
- Fix declarations.

svn path=/trunk/; revision=17327
2005-08-12 16:47:29 +00:00
Gé van Geldorp
e98f97ee9f Sync to Wine-20050725:
Vitaliy Margolen <wine-patch@kievinfo.com>
- Send CDDS_ITEMPOSTERASE | CDDS_PREPAINT notify.
Felix Nawothnig <felix.nawothnig@t-online.de>
- Move DPA and DSA functions out of comctl32undoc.c as they are
  documented by now.
- Fix some DPA functions so they pass the new tests.
- Don't invalidate the whole propsheet when the page is switched.
Dimi Paun <dimi@lattica.com>
- Silence uninitialized warnings.
Robert Shearman <rob@codeweavers.com>
- Call SetBkMode with the correct value from the NMTBCUSTOMDRAW
  structure.
- Don't fill the NMTBCUSTOMDRAW structure in again for
  CDDS_POSTPAINT.
- Remove redundant bBtnTransprnt value.
- Height is now calculated based on the number of rows, not on the
  bounding rect.
- Only call CalcToolbar in AutoSize if it has TBSTYLE_WRAPABLE or
  TBSTYLE_EX_UNDOC1 set.
- Remove a bad test in SetButtonWidth that fixes a regression from the
  above change in IE.
- Remove unnecessary nHeight data.
- Remove duplicated code in Size by calling AutoSize.
- Remove unnecessary bAutoSize value because SetWindowPos doesn't
  generate WM_SIZE when there is nothing to do on both Windows and
  Wine.
- TBSTATE_INDETERMINATE only takes effect if the button is enabled,
  otherwise it should just appear like any other disabled button.
- Native autosizes on inserting/adding buttons, so we should too.
- The IsValidImageList test is not needed because if it isn't a valid
  image list we will have set the bitmap width and height to 1 and it
  does the wrong thing when no buttons are present.
- The calculated button height should include the text height when no
  buttons are present.
- Handle CopyImage and other functions failing by not adding the icon
  and notifying the caller.
Thomas Weidenmueller <wine-patches@reactsoft.com>
- Support PSH_WIZARDHASFINISH in wizards.
- Correct tab order of the wizard buttons.
- Support PSM_IDTOINDEX.
Aric Stewart <aric@codeweavers.com>
- When adding an image copy the full previous buffer.
- Implement replacing an icon with one from a resource.
Kevin Koltzau <kevin@plop.org>
- Forward some header notifications to parent of listview.
Frank Richter <frank.richter@gmail.com>
- Enabled "tab" dialog texture for property sheet pages.
- Add theming support for header controls.
- Use theming for the ListView non-client area.
- Let property sheets update the cached system colors upon receiving
  WM_SYSCOLORCHANGE.
- Add theming for the up/down control.

svn path=/trunk/; revision=17326
2005-08-12 16:31:56 +00:00
Emanuele Aliberti
420b109b72 Make the 'rosky' optional module compile.
svn path=/trunk/; revision=17325
2005-08-12 13:46:36 +00:00
Emanuele Aliberti
d12532191d Add 'rosky' module.
svn path=/trunk/; revision=17324
2005-08-12 12:31:33 +00:00
Emanuele Aliberti
6d095fd4bb CSR Reloaded... well, split.
- almost do-nothing base source code for new CSR server DLLs host
- base source code for the core CSR server DLL 'csrsrv.dll' (server 0)
- base source code for the base WIN server DLL 'basesrv.dll' (server 1)
- base source code for the console+user WIN server DLL 'winsrv.dll' (servers 3 and 2)


NOTES
- At present, nothing works, but compilation is OK, sorry.
- The program is temporarily named 'csr.exe' to coexist with current monolithic 'csrss.exe'.
- Code, hints, suggestions, and migration plans welcome! (post 0.3)

svn path=/trunk/; revision=17323
2005-08-12 12:22:02 +00:00
Hartmut Birr
65c59875e1 Set the process exit status.
svn path=/trunk/; revision=17322
2005-08-12 12:10:33 +00:00
Hartmut Birr
ed43d4bddd Fixed compilation.
svn path=/trunk/; revision=17321
2005-08-11 21:56:28 +00:00
Emanuele Aliberti
af7edaaf75 Minor changes to some API signatures.
svn path=/trunk/; revision=17320
2005-08-11 21:46:37 +00:00
Hervé Poussineau
0c6db72406 Input parameter in FSCTL_GET_RETRIEVAL_POINTERS is really a STARTING_VCN_INPUT_BUFFER structure (even if it contains only a LARGE_INTEGER)
svn path=/trunk/; revision=17319
2005-08-11 21:29:37 +00:00
Hervé Poussineau
733f1ba80d BYTE -> UCHAR. Thanks Alex
svn path=/trunk/; revision=17318
2005-08-11 21:25:28 +00:00
Hervé Poussineau
b8cfafc6b8 Add STARTING_LCN_INPUT_BUFFER and VOLUME_BITMAP_BUFFER structures
Remove #pragma pack/pop around RETRIEVAL_POINTERS_BUFFER as it should be standard-packed according to Alex.

svn path=/trunk/; revision=17317
2005-08-11 21:20:42 +00:00
Gé van Geldorp
67b5536716 Revert last Wine sync to pidl.c, since it breaks SHGetPathFromIDListW. Fixes
bug 697

svn path=/trunk/; revision=17316
2005-08-11 21:09:56 +00:00
Filip Navara
2967654c88 Implement NdisAllocatePacketPool by calling NdisAllocatePacketPoolEx.
svn path=/trunk/; revision=17315
2005-08-11 20:48:55 +00:00
Hartmut Birr
6e338ed990 Replaced _WINBASE_ by _WINBASE_H because some headers depends on _WINBASE_H.
svn path=/trunk/; revision=17314
2005-08-11 20:48:55 +00:00
Eric Kohl
7b869f437f The RpcFinally block must always be executed. Otherwise, RPC code will leak allocated buffer memory.
svn path=/trunk/; revision=17313
2005-08-11 20:45:41 +00:00
Hartmut Birr
e9beb0d3eb Moved the pragma to the correct position.
svn path=/trunk/; revision=17312
2005-08-11 20:44:04 +00:00
Emanuele Aliberti
3119900771 A more likely demo VMS server (it should not block, because it is chain-called from the listenig thread in csrsrv.dll.
svn path=/trunk/; revision=17311
2005-08-11 20:43:24 +00:00
Hartmut Birr
749cee8834 Use GetLocalTime instead of GetSystemTime.
svn path=/trunk/; revision=17310
2005-08-11 20:41:20 +00:00
Hartmut Birr
f17e695843 Don't query on batch files.
svn path=/trunk/; revision=17309
2005-08-11 20:39:28 +00:00
Hartmut Birr
d921a7ca15 Clear the memory after we know that the buffer was allocated.
svn path=/trunk/; revision=17308
2005-08-11 20:37:09 +00:00
Hartmut Birr
20731f1883 - Implemented MEMORY_AREA_PEB_OR_TEB and MEMORY_AREA_PAGED_POOL for MiQueryVirtualMemory.
- Fixed the range check in ProbeForRead and ProbeForWrite.

svn path=/trunk/; revision=17307
2005-08-11 20:35:00 +00:00
Hartmut Birr
b4315630d7 - Removed the hole pool allocation, because it needs to much memory and ros will not boot.
- Allocate short blocks in one page.  
- Split the used and free header. It makes it easier to implement a red zone check.

svn path=/trunk/; revision=17306
2005-08-11 20:29:08 +00:00
Hartmut Birr
bae5d406c1 Fixed a debug message.
svn path=/trunk/; revision=17305
2005-08-11 20:23:13 +00:00
Hartmut Birr
312f880b0f Reenabled a debug message.
svn path=/trunk/; revision=17304
2005-08-11 20:18:24 +00:00
Hartmut Birr
2d99925f41 Implemented (copied from NdisAllocatePacketPool) NdisAllocatePacketPoolEx.
svn path=/trunk/; revision=17303
2005-08-11 20:16:03 +00:00
Hervé Poussineau
41890ed14b Remove debug output and some useless code
Replace false by FALSE

svn path=/trunk/; revision=17302
2005-08-11 20:13:26 +00:00
Hervé Poussineau
d240d7dec7 Add DIF_* codes 40 to 42.
Reformat the whole list to align values

svn path=/trunk/; revision=17301
2005-08-11 20:13:16 +00:00
Hervé Poussineau
42551c5494 Move usb controllers and cdrom classes parameters to their own .inf files. They would be regenerated during 2nd stage setup
Fix a typo in mouse.inf

svn path=/trunk/; revision=17300
2005-08-11 20:13:06 +00:00
Hartmut Birr
ad52723693 Initialized the cnt value of the file structure.
svn path=/trunk/; revision=17299
2005-08-11 19:52:33 +00:00
Hartmut Birr
dbabadad17 Defined DbgPrint.
svn path=/trunk/; revision=17298
2005-08-11 19:49:47 +00:00
Hartmut Birr
b393d573db Fixed the loading of the global flag.
svn path=/trunk/; revision=17297
2005-08-11 19:46:39 +00:00
Hartmut Birr
8b3fa3e5d1 - Open the BaseNamedObjects directory case insensitive.
- Interpret INVALID_HANDLE_VALUE for the console handle as NULL.

svn path=/trunk/; revision=17296
2005-08-11 19:44:36 +00:00
Hartmut Birr
52f95df613 Honour the inheritance of a handle if it would be duplicated or opened.
svn path=/trunk/; revision=17295
2005-08-11 19:37:29 +00:00
Hartmut Birr
7faccfa7bb Call the registered exit functions if the dll is unloaded.
svn path=/trunk/; revision=17294
2005-08-11 19:32:02 +00:00
Hartmut Birr
d85fe524ac Fixed some problems if special parameters are delivered like SL_RESTART_SCAN, SL_INDEX_SPECIFIED or SL_RETURN_SINGLE_ENTRY.
svn path=/trunk/; revision=17293
2005-08-11 19:11:17 +00:00
Hartmut Birr
2acde8450d Implemented IRP_MJ_QUERY_VOLUME_INFORMATION/FileFsDeviceInformation. Msvcrt needs to detect the device type.
svn path=/trunk/; revision=17292
2005-08-11 19:07:11 +00:00
Hartmut Birr
77b9c0a70d Reimplemented FindFirstFileEx and removed some overhead.
svn path=/trunk/; revision=17291
2005-08-11 19:02:31 +00:00
Gé van Geldorp
9bfc144257 Sync to Wine-20050725:
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Gerold Jens Wucherpfennig <gjwucherpfennig@gmx.net>
- Support for big-endian systems.
- The fci_get_little_endian... and fci_set_little_endian... functions
  don't really set and unset little endianes, they do the same thing:
  merely swapping bytes from one endianes to the other.
Stefan Huehner <stefan@huehner.org>
- Make some function static.
- Fix some more -Wmissing-declarations warnings.

svn path=/trunk/; revision=17290
2005-08-11 18:49:40 +00:00
Casper Hornstrup
fbdd1961c7 Ignore .svn folders
svn path=/trunk/; revision=17289
2005-08-11 17:41:30 +00:00
Steven Edwards
6887acc456 remove ros specific functions from public header
svn path=/trunk/; revision=17288
2005-08-11 17:27:13 +00:00
Andrew Munger
c247f5f8b2 Added TimeOut to the correct section, removed ion's 12148 incorrect addition. 10 second default.
svn path=/trunk/; revision=17287
2005-08-11 15:55:25 +00:00
Gé van Geldorp
9664020ca4 Alexandre Julliard <julliard@winehq.org>
- Added support for HTML resource type.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes.
Stefan Huehner <stefan@huehner.org>
- Fix some -Wsign-compare warnings.
Jacek Caban <jack@itma.pwr.wroc.pl>
- '.' is a valid char of tIDENT.
Marcus Meissner <marcus@jet.franken.de>
- Fixed signedness warnings.

svn path=/trunk/; revision=17286
2005-08-11 15:10:01 +00:00
Emanuele Aliberti
f5a7132861 Cleanup.
svn path=/trunk/; revision=17285
2005-08-11 12:23:51 +00:00
Emanuele Aliberti
26fc2d0d62 VMS: use csrsrv!CsrAddStaticServerThread to hook the listening port.
svn path=/trunk/; revision=17284
2005-08-11 11:52:40 +00:00
Emanuele Aliberti
d008d6c377 Modify CsrAddStaticServerThread signature.
svn path=/trunk/; revision=17283
2005-08-11 11:49:36 +00:00
Emanuele Aliberti
0a7659bfce Fix HEAD compilation.
LPC_MESSAGE.DataSize ==> PORT_MESSAGE.u1.s1.DataLength
LPC_MESSAGE.MessageSize ==> PORT.u1.s1.TotalLength

svn path=/trunk/; revision=17282
2005-08-11 09:19:10 +00:00
Emanuele Aliberti
f83c14b3fc Emit Win32 error messages on failure.
svn path=/trunk/; revision=17281
2005-08-11 09:07:48 +00:00
Emanuele Aliberti
97ffde7504 LPC_MESSAGE.MessageType ==> PORT_MESSAGE.u2.s2.Type
Make head copmpile.

svn path=/trunk/; revision=17280
2005-08-11 09:01:30 +00:00
Emanuele Aliberti
2b0800d266 First attempt to convert the VMS demo server.
Note: it does NOT work.

svn path=/trunk/; revision=17279
2005-08-11 08:46:57 +00:00
Emanuele Aliberti
e1b5e79e30 Some guessing on the API used by server DLLs.
svn path=/trunk/; revision=17278
2005-08-11 07:13:03 +00:00
Alex Ionescu
bd3f2eea3c - Use correct, documented, LPC Message structures (PORT_VIEW, REMOTE_PORT_VIEW). Fix all caller code to use new member names and structure names.
svn path=/trunk/; revision=17277
2005-08-11 03:23:44 +00:00
Steven Edwards
c5785454c2 TrackMoveEvent is a semi-implemented not UNIMPLEMENTED. Shut it up.
svn path=/trunk/; revision=17276
2005-08-11 03:15:17 +00:00
Alex Ionescu
479fa4e4ae - Use correct, documented, LPC Message structure (PORT_MESSAGE). Fix all caller code to use new member names and structure names.
svn path=/trunk/; revision=17275
2005-08-11 02:58:54 +00:00
Royce Mitchell III
eb742a2d70 initialize StringBuffer to NULL, as some code paths lead to it being tested without ever being set.
svn path=/trunk/; revision=17274
2005-08-11 02:51:51 +00:00
Alex Ionescu
f9b3f28fbe Move doc folder to media
svn path=/trunk/; revision=17273
2005-08-11 01:18:22 +00:00
Alex Ionescu
be97362b23 - Fix DEVICE_NODE definition to remove ROS-only fields
- Move RTL_HEAP_PARAMETERS to umtypes.h
- Fix PROCESS_PRIORITY_CLASS_XXX definitions.
- Use PROCESS_PRIORITY_CLASS_INVALID in process creation code.
- Move and correct EX_PUSH_LOCK definition to ntifs.h
- Define KQUEUE along with KAPC_STATE if ntifs.h is not used, so that we don't force its usage
- Enable usage of EX_QUEUE_WORKER_INFO and EX_WORK_QUEUE without requiring the IFS.
- Fix definition of CsrClientConnectToServer
- Update NDK FIXME list
- Define and use a list of Bus Type GUIDs instead of saving the GUID in a ROS-only field of DEVICE_NODE.
- Use a IRP_MN_QUERY_CAPABILITIES PnP IRP to get the Address of a DeviceNode, intead of saving it inside a ROS-only field.

svn path=/trunk/; revision=17272
2005-08-11 00:01:17 +00:00
Gé van Geldorp
4a6a9d5dd2 Phil Krylov <phil@newstar.rinet.ru>
- Fixed winebuild operation in Darwin.
Steve Zellers <zellers@mac.com>
- Fixed leftover import table name in output_import_thunk.
Alexandre Julliard <julliard@winehq.org>
- Replace configure macros by explicit platform checks (probably not
  correct on all platforms yet).
- Moved most of the implementation of CALL32_CBClient(Ex) to the C
  code.
- Don't use the full 32 bits of %esp when called from 16-bit code.
- Added a --target option to allow cross-compilation.
- Improve a bit the assembly generated for import thunks.
- Don't depend on ELF features for PIC code.
- A couple of optimizations.
- Intercept functions for 16-bit relay debugging by patching the
  CALLFROM16 table instead of having the wine_call_from_16 functions
  call out the relay functions explicitly.
- Added vararg argument type so that the relay code can distinguish from
  a normal cdecl function.
- Don't rely on the relay thunk preserving the stack pointer.
- Moved all 16-bit relay code to the text section.
- Changed a few symbol names for better consistency.
- Get rid of the global debugging flag.
Mike McCormack <mike@codeweavers.com>
- gcc 4.0 -Wpointer-sign fixes.
Marcus Meissner <marcus@jet.franken.de>
- Fixed signedness warnings.

svn path=/trunk/; revision=17271
2005-08-10 22:15:12 +00:00
Emanuele Aliberti
455ce26dde Minor change in two strings.
svn path=/trunk/; revision=17270
2005-08-10 21:09:05 +00:00
Steven Edwards
e6c6ee13be enable building shell32_test. some header fixes
svn path=/trunk/; revision=17269
2005-08-10 20:58:29 +00:00
Steven Edwards
877dc5eaf7 added shell32 tests. Not enabled just yet
svn path=/trunk/; revision=17268
2005-08-10 20:35:15 +00:00
Gunnar Dalsnes
be6f8b5112 move WM_SYSTIMER where it belongs
svn path=/trunk/; revision=17265
2005-08-10 19:19:13 +00:00
Gunnar Dalsnes
da39d77ab9 add missing define
svn path=/trunk/; revision=17264
2005-08-10 18:42:27 +00:00
Magnus Olsen
22e4c47f94 Windows 2000 does not always zerofill data if you are using heap_zero fill. to be 100% sure everything are zero fill, we need zerofil the whole object before instate
svn path=/trunk/; revision=17263
2005-08-10 18:10:45 +00:00
Gunnar Dalsnes
16b5d11ec3 move W32PROCESS/W32THREAD into win32\include bcause they are win32k private structs
svn path=/trunk/; revision=17262
2005-08-10 18:09:44 +00:00
Hartmut Birr
daa17455d6 Fixed the base detection in RtlUnicodeStringToInteger again.
svn path=/trunk/; revision=17261
2005-08-10 17:49:57 +00:00
Gunnar Dalsnes
09b2e7c1fc fix horribly broken ftol. this fixes abiword 2.0.3
svn path=/trunk/; revision=17260
2005-08-10 17:48:13 +00:00
Royce Mitchell III
62457a811e registry entries to install .inf files. No clue if this is correct.
svn path=/trunk/; revision=17259
2005-08-10 17:19:13 +00:00
Aleksey Bragin
e7956d8d90 Fixed a typo. According to the url pointed out by Royce3, it's right ( http://www.osronline.com/lists_archive/ntdev/thread1866.html)
svn path=/trunk/; revision=17258
2005-08-10 16:33:49 +00:00
Hartmut Birr
aa33dda36b Fixed the base detection in RtlUnicodeStringToInteger.
svn path=/trunk/; revision=17257
2005-08-10 11:45:50 +00:00
Emanuele Aliberti
c04cc0cebf Alex Ionescu: more details about the CSR core protocol.
svn path=/trunk/; revision=17256
2005-08-10 09:09:28 +00:00
Emanuele Aliberti
a0dd7af2e4 Change the demo VMS subsystem definition.
svn path=/trunk/; revision=17255
2005-08-10 08:36:37 +00:00
Emanuele Aliberti
8236221006 Some new internal headers (draft) to be used in the planned CSR/WIN split subsystem server.
svn path=/trunk/; revision=17254
2005-08-10 08:28:08 +00:00
Steven Edwards
b5fe5d7dcb another shot at fixing writes
svn path=/trunk/; revision=17253
2005-08-10 03:59:01 +00:00
Royce Mitchell III
49844139cc fix typo
svn path=/trunk/; revision=17252
2005-08-10 03:32:15 +00:00
Hervé Poussineau
ce28abcbca Active functions related to interfaces enumeration: SETUP_CreateSerialDeviceList, SETUP_CreateInterfaceList, SetupDiGetDeviceInterfaceDetailW. They were disabled since r17210
Replace ERROR_NO_SYSTEM_RESOURCES by ERROR_NOT_ENOUGH_MEMORY
Replace #ifdef __WINESRC__ by #ifndef __REACTOS__, as ReactOS also defines __WINESRC__
Minor fixes

svn path=/trunk/; revision=17251
2005-08-09 20:12:35 +00:00
Magnus Olsen
7217d69487 Thx harmut you did see the small bug, I miss, do not use MAX_PATH as lenght of command line, it must be CMDLINE_LENGTH instead, patch by Brandon Turner
svn path=/trunk/; revision=17250
2005-08-09 19:52:16 +00:00
Hartmut Birr
f52a064741 Silence a debug message.
svn path=/trunk/; revision=17249
2005-08-09 19:35:07 +00:00
Hartmut Birr
19f47fc57c If the file object is for a device, we must gather some information
from the object attribute (at least the OBJ_INHERIT flag). We cannot 
use IoCreateStreamFileObject because a handle from such a file object 
is never inheritable.

svn path=/trunk/; revision=17248
2005-08-09 19:12:46 +00:00
Maarten Bosma
2afd140d2a Full some additional Structs
svn path=/trunk/; revision=17247
2005-08-09 19:11:57 +00:00
Steven Edwards
296b3402ac implemented ?name@type_info@@QBEPBDXZ.msvcr and __unDName based on code from Wine
svn path=/trunk/; revision=17246
2005-08-09 17:55:47 +00:00
Gunnar Dalsnes
22ad71c0a6 return timer id for windowed timers also
svn path=/trunk/; revision=17245
2005-08-09 16:15:52 +00:00
Hervé Poussineau
ac5643191a Implement SetupDiGetSelectedDriverW/SetupDiSetSelectedDriverW
Define rank of a driver as in MSDN description
Fix comments in Flags/FlagsEx description
Factorise DeviceInfoElement structure creation in CreateDeviceInfoElement().

svn path=/trunk/; revision=17244
2005-08-09 16:13:50 +00:00
Hartmut Birr
1f19cd831e Update KeActiveProcessors if an application processor does start.
svn path=/trunk/; revision=17243
2005-08-09 16:08:00 +00:00
Emanuele Aliberti
58c487c4c3 Minor change.
svn path=/trunk/; revision=17242
2005-08-09 16:01:42 +00:00
Hartmut Birr
0d961d4d80 - Don't try to close the thread handle twice.
- Close the process handle on exit for _P_OVERLAY.

svn path=/trunk/; revision=17241
2005-08-09 15:47:14 +00:00
Hartmut Birr
fa6916cb11 - Don't try to free the returned buffer from getenv.
- Split the path correctly from shell command.

svn path=/trunk/; revision=17240
2005-08-09 15:44:54 +00:00
Hartmut Birr
b4c4fdb519 Don't use the required access rights for the object attributes.
svn path=/trunk/; revision=17239
2005-08-09 15:41:10 +00:00
Maarten Bosma
225642a5f6 Add second call to DdQueryDirectDrawObject.
svn path=/trunk/; revision=17238
2005-08-09 13:57:03 +00:00
Magnus Olsen
c2fcc4a380 fix a minor bug, for bad writen driver. some drv checking for two DDRAWI_DDRAWSURFACE_LCL array instead for one. But it is not the bug
svn path=/trunk/; revision=17237
2005-08-09 11:18:48 +00:00
Alex Ionescu
1d1e963067 Return failure if native function failed. one more test passes
svn path=/trunk/; revision=17236
2005-08-09 08:54:56 +00:00
Alex Ionescu
61ffdb3516 - Last patch was incomplete, apologies. SVN @ 5AM = bad idea.
- Do not report that ROS is running on 0 active processors, that's a bad idea.
- Actually check the affinity mask set by NtSetInformationThread
- Fix the check in KeSetAffinityThread
- Give a valid affinity to the system thread (corresponding to the active cpu affinity set).

This removes all bugchecks from the kernel32 thread winetest.

svn path=/trunk/; revision=17235
2005-08-09 08:50:57 +00:00
Alex Ionescu
6fd4c50fd3 Fix priority formulas, account for saturation, do proper km_um conversions for out of bounds or saturation priorirites, create an internal priority change function to be called if the lock is already held (however it's not efficient yet since ros dispatches instead of schedules, and so the lock is sometimes released, but i did write a small hack to account for that)... this fixes more wine tests
svn path=/trunk/; revision=17234
2005-08-09 08:02:05 +00:00
Magnus Olsen
2b0d98ed0e Thx Royce3 for notice's a typo error CreateData to CanCreateData in a if statement. But it is not the bug we are looking for.
svn path=/trunk/; revision=17233
2005-08-09 07:42:00 +00:00
Alex Ionescu
fe9647d739 It is generally considered a bad idea to dereference an object after the reference failed..... this fixes another wine test and avoids a bugcheck
svn path=/trunk/; revision=17232
2005-08-09 06:28:23 +00:00
Alex Ionescu
c2a85cd273 - Implement KeQueryBasePriorityThread to return the actual Base Priority Increment (or Saturation Increment) to NtQueryInformationThread. The value win32 works with is actually (usually) the difference between process and thread Base Priorities.
This fixes another WINE test.

svn path=/trunk/; revision=17231
2005-08-09 06:23:16 +00:00
Alex Ionescu
4c12530bbc - Fix NtSuspendThread: correct PreviousMode check, return error if thread is terminating, handle KeSuspendThread's possible exception, only attempt to return previous suspend count if asked to.
- Make KeSuspendThread return an exception if the thread has been suspended beyond the limit.

This fixes another wine test.

svn path=/trunk/; revision=17230
2005-08-09 05:54:57 +00:00
Alex Ionescu
2d51263ec6 Sigh... yet another misuse of Object Attributes. Developer Note: Object Attributes are used to pass OBJ_ flags. Not Access Flags.
svn path=/trunk/; revision=17229
2005-08-09 04:59:19 +00:00
Alex Ionescu
576de36736 remove another invalid ObjectAttribute
svn path=/trunk/; revision=17228
2005-08-09 04:56:29 +00:00
Alex Ionescu
56f8494362 - Fix a large amount of bugs in ObpAllocateObjectAttributes & Name
svn path=/trunk/; revision=17227
2005-08-09 04:43:54 +00:00
Alex Ionescu
66c8e646dc - Send the pointer to the handle, not the NULL handle itself. This fixes another winetest bugcheck.
svn path=/trunk/; revision=17226
2005-08-09 04:03:14 +00:00
Alex Ionescu
8cfb5e1c6b - Use the actual previous mode (spotted by Thomas)
svn path=/trunk/; revision=17225
2005-08-09 03:38:34 +00:00
Alex Ionescu
e22539a07b Fix invalid Object Attributes
svn path=/trunk/; revision=17224
2005-08-09 03:31:22 +00:00
Alex Ionescu
3ffa753a9b Add some DDK limits that were missing
svn path=/trunk/; revision=17223
2005-08-09 03:29:51 +00:00
Alex Ionescu
69c49f71df - Fix broken loop, this fixes the WINE thread wait tests
svn path=/trunk/; revision=17222
2005-08-09 01:07:06 +00:00
Alex Ionescu
40602e6777 Fix exception handling by not reseting PreviousMode to kernel when a user-mode exception occurs. This fixes some winetest bugchecks
svn path=/trunk/; revision=17221
2005-08-09 00:02:24 +00:00
Hervé Poussineau
c1c22f5f98 Remove console debug output
svn path=/trunk/; revision=17220
2005-08-08 22:14:04 +00:00
Magnus Olsen
d483bdfcae Add a check to see if surface can be create, it return it can be create, but still createsurface return invaild param
svn path=/trunk/; revision=17219
2005-08-08 21:29:25 +00:00
Magnus Olsen
c8a180611e fixing bug 690 by Brandon Turner. note ms only allown start "notepad" or "note"pad not notep"ad or notepad" but we do that, for we think it is a bug in ms cmd that only allowing " at start of a file name to start the apps.
svn path=/trunk/; revision=17218
2005-08-08 18:59:56 +00:00
Thomas Bluemel
3ed0977d46 revert my last changes back to Alex's version of ObpCaptureObjectAttributes as I'm being an incompetent ass. This will introduce several vulnerabilities and bugs again.
svn path=/trunk/; revision=17217
2005-08-08 16:58:30 +00:00
Andrew Munger
fc495f0fc2 Merge bug 659 fix into 0.2.7 branch.
svn path=/branches/ros-branch-0_2_7/; revision=17216
2005-08-08 16:57:50 +00:00
Magnus Olsen
4280eeb5a3 fix a simple bug that I did intrudes with my last commit
svn path=/trunk/; revision=17215
2005-08-08 16:36:39 +00:00
Hervé Poussineau
6ed3a7acd9 I forgot to add SetupDiDeleteDeviceInfo to .spec file in rev 17212
svn path=/trunk/; revision=17214
2005-08-08 16:21:35 +00:00
Maarten Bosma
d83ab72e69 Fix another bug thanks to GreatLord.
svn path=/trunk/; revision=17213
2005-08-08 16:18:44 +00:00
Hervé Poussineau
c4a2110e0f Implement SetupDiBuildDriverInfoList, SetupDiOpenDeviceInfoA/W, SetupDiEnumDriverInfoA/W, SetupDiCreateDeviceInfoW
Add stubs for SetupDiDeleteDeviceInfo, SetupDiDestroyDriverInfoList

svn path=/trunk/; revision=17212
2005-08-08 16:09:48 +00:00
Hervé Poussineau
6d963834ca Change structures used to keep information about devices/interfaces/drivers. This one is more logical and should be more extensible
Sorry, i've disabled code to enumerate devices implementing some interface (not ported)
Do related changes in the file

svn path=/trunk/; revision=17210
2005-08-08 16:06:52 +00:00
Maarten Bosma
f97732afbd Fix a bug, thanks to Salamander again.
svn path=/trunk/; revision=17209
2005-08-08 15:56:27 +00:00
Thomas Bluemel
273d211c94 don't dereference a NULL pointer
svn path=/trunk/; revision=17208
2005-08-08 15:49:37 +00:00
Thomas Bluemel
e779b15f24 remove a bugcheck that was only used for debug purpose
svn path=/trunk/; revision=17207
2005-08-08 15:46:41 +00:00
Magnus Olsen
079265d1a7 Fix some error checking for DireactDrawCreate and DireactDrawCreateEx, we checking if the param is right or not.
svn path=/trunk/; revision=17206
2005-08-08 15:41:02 +00:00
Thomas Bluemel
a3abeb83af - reverted ObpCaptureObjectAttributes back to my old implementation (slightly modified and extended) because that one at least does what it's supposed to correctly
svn path=/trunk/; revision=17205
2005-08-08 15:39:35 +00:00
Thomas Bluemel
910c9075f0 pass the correct access mode to ObOpenObjectByName
svn path=/trunk/; revision=17204
2005-08-08 15:33:04 +00:00
Steven Edwards
74a0c04f23 add setupapi test for stringtable functions. At this time they only pass on Ros and Windows 2000. I will fix the test to pass on later versions of Windows soon.
svn path=/trunk/; revision=17203
2005-08-08 15:01:03 +00:00
Maarten Bosma
b1b37ffc00 Remove exclamation mark that does not belong there. Thanks to Salamander again.
svn path=/trunk/; revision=17202
2005-08-08 14:54:24 +00:00
Maarten Bosma
ae51cca93f Forgot it again. :)
svn path=/trunk/; revision=17201
2005-08-08 14:20:05 +00:00
Maarten Bosma
f276da4448 Fix wrong syntax, missing file and non existing module in makefile. Thanks to Salamander and Usurp.
svn path=/trunk/; revision=17200
2005-08-08 14:19:20 +00:00
Maarten Bosma
2cacd67bcc The beginning of a ddraw implementation. Does not work yet for unknown reason.
svn path=/trunk/; revision=17199
2005-08-08 13:29:50 +00:00
Thomas Bluemel
1a2a435f9c enter a critical region before looking up a CID handle
svn path=/trunk/; revision=17198
2005-08-08 10:54:32 +00:00
Thomas Bluemel
da23cad0de delete no longer used file
svn path=/trunk/; revision=17197
2005-08-08 10:41:34 +00:00
Thomas Bluemel
e138304bf5 unlock the CID in PsLookupProcessByProcessId, PsLookupProcessThreadByCid and PsLookupThreadByThreadId when the lookup succeeded, not failed
svn path=/trunk/; revision=17196
2005-08-08 10:08:34 +00:00
Filip Navara
f61e4f1230 Revert part of #17156 and #17157 changes.
svn path=/trunk/; revision=17195
2005-08-08 09:24:20 +00:00
Art Yerkes
20732be74c Fixes for various 64-bit hosting problems.
svn path=/trunk/; revision=17194
2005-08-08 04:26:23 +00:00
Hartmut Birr
a3bc4d9c07 Fixed the load count in LdrpDetachProcess. That made it again possible to call the dll entry with DLL_PROCESS_DETACH.
svn path=/trunk/; revision=17193
2005-08-08 01:47:52 +00:00
Thomas Bluemel
e41e25c1e1 use loops instead of gotos
svn path=/trunk/; revision=17192
2005-08-08 00:45:04 +00:00
Thomas Bluemel
afcb29cc7c directly translate handles to indexes in ex/handle.c
svn path=/trunk/; revision=17191
2005-08-07 23:43:58 +00:00
Thomas Bluemel
ebe277b796 use the correct pointer to free the string. Thx to Hartmut for spotting this bug
svn path=/trunk/; revision=17190
2005-08-07 23:37:59 +00:00
Alex Ionescu
12de4ac145 Retry waiting if STATUS_ALERTED is returned
svn path=/trunk/; revision=17189
2005-08-07 23:22:18 +00:00
Thomas Bluemel
ae86070caa RtlFreeHandle only should call RtlIsValidHandle in debug builds.
svn path=/trunk/; revision=17188
2005-08-07 23:19:15 +00:00
Alex Ionescu
7905e74e59 Fix horridly wrong SignalObjectAndWait return values, should make more wine tests pass
svn path=/trunk/; revision=17187
2005-08-07 23:18:40 +00:00
Hartmut Birr
bad46dca35 Allocate the map registers according to the dma controllers properties (boundary and highest possible address).
svn path=/trunk/; revision=17186
2005-08-07 23:08:07 +00:00
Hartmut Birr
6faab780d4 - Changed MmGetContinuousPages from using an alignment to using a boundary.
- Removed MmAllocateContiguousAlignedMemory. 

svn path=/trunk/; revision=17185
2005-08-07 23:07:17 +00:00
Thomas Bluemel
73a4ae89a5 fixed differences in signedness warnings
svn path=/trunk/; revision=17184
2005-08-07 23:05:57 +00:00
Alex Ionescu
5905ef7a1e - Fix return value.
svn path=/trunk/; revision=17183
2005-08-07 23:00:51 +00:00
Alex Ionescu
3dac092c29 - Remove cid.c
- Do direct handle creation/deletion where needed.

svn path=/trunk/; revision=17182
2005-08-07 22:48:07 +00:00
Alex Ionescu
bac942f34d - Return correct error. Spotted by Thomas.
svn path=/trunk/; revision=17181
2005-08-07 21:48:14 +00:00
Alex Ionescu
c5ed8ceb14 - Send proper ClientID structure
svn path=/trunk/; revision=17180
2005-08-07 21:45:12 +00:00
Alex Ionescu
4c1eb86320 - Completely reimplement NtWaitForMultipleObjects:
- Check for invalid Objectcount and wait type
    - Don't use 2.6KB of stack space (kernel threads only get 4...)
    - Don't call ObReferenceObjectByHandle since it does a lot of superflous checks, continous locking/unlocking and makes us extremly slow for a large wait and also doesn't give us the full flexibility we need.
    - Detect if a Waitall is being done with the same object duplicated.
    - Protect wait with SEH.
- General fixes for all NtWaitXXX:
    - Use DefaultObject from Object Header and remove all previous associated hacks, including the IO_TYPE hack. The DefaultObject will either be NULL, an offset to an internal Object Event, or a pointer to a default event. We handle all three.
    - Guard the KeWaitXXX call with SEH since it can raise exceptions.
- Fix all object type intiailizers regarding DefaultObject.

svn path=/trunk/; revision=17179
2005-08-07 21:29:51 +00:00
Eric Kohl
a6b3bd07b6 Replace Win32 types by native ones.
svn path=/trunk/; revision=17178
2005-08-07 20:33:11 +00:00
Thomas Bluemel
562a0fb61f also actually rename the files...
svn path=/trunk/; revision=17177
2005-08-07 18:47:26 +00:00
Alex Ionescu
b1b87307bb - Initialize more fields when creating an Object Type
- Correct the Pool Charge for Object Types, select a Default Object, always use a security procedure, read global flag for maintaing type lists, set the pool type
- Initialize a Default Wait Object.
- Fix security callback for objects.
- Implement SeDefaultObjectMethod for security callbacks of objects which don't have a custom one.

svn path=/trunk/; revision=17176
2005-08-07 18:38:37 +00:00
Robert Kopferl
b628ec097a Modification for new RC release
svn path=/branches/ros-branch-0_2_7/; revision=17175
2005-08-07 17:46:50 +00:00
Steven Edwards
c8e0c7ed3e no need for long xml filenames
svn path=/trunk/; revision=17174
2005-08-07 17:12:11 +00:00
Eric Kohl
12fea44aca Remove trailing whitespace and fix the indentation.
svn path=/trunk/; revision=17173
2005-08-07 17:11:13 +00:00
Steven Edwards
5aebfabb91 change rostest name back to dllname_test.exe
svn path=/trunk/; revision=17172
2005-08-07 17:07:35 +00:00
Steven Edwards
905738c542 rename tests to dllname_winetest to make it less trouble on exception to change build system rules for ros tests
svn path=/trunk/; revision=17171
2005-08-07 17:07:00 +00:00
Magnus Olsen
848867e6b1 GdiEntry11 (not tested, we can not test it yet in ros, until we got ddraw.dll and some api in win32k/ntdraw been implement)
svn path=/trunk/; revision=17170
2005-08-07 16:22:37 +00:00
Filip Navara
3de2a9013a Change the module type to win32gui. We really don't want to attempt to create consoles at this stage.
svn path=/trunk/; revision=17169
2005-08-07 15:55:01 +00:00
Hartmut Birr
fa7dd8c0ff Fixed the comment from my last commit.
svn path=/trunk/; revision=17167
2005-08-07 14:01:17 +00:00
Hartmut Birr
02fe41efa5 - Removed the exclusive deletion because '-' is a valid file name character.
- Optimized the recursive deletion in directories.
- Preload some nice strings.


svn path=/trunk/; revision=17166
2005-08-07 13:59:05 +00:00
Filip Navara
000e3044d8 Fix setupapi build and prototypes.
svn path=/trunk/; revision=17165
2005-08-07 13:06:30 +00:00
Magnus Olsen
b14f99cc46 Implement Gdintry4 (not tested, we can not test it yet in ros, until we got ddraw.dll and some api in win32k/ntdraw been implement)
svn path=/trunk/; revision=17164
2005-08-07 12:54:41 +00:00
Hervé Poussineau
231828406a Implement SetupGetInfFileListW and SetupGetInfInformationW
Inf file parser now accept UNICODE files with FF FE header
Return required buffer size when buffer is too small in SetupGetLineTextA/W, SetupGetStringFieldA/W

svn path=/trunk/; revision=17162
2005-08-07 11:59:43 +00:00
Filip Navara
ebd400d82c Fix a race condition in input packet processing.
svn path=/trunk/; revision=17160
2005-08-07 11:47:50 +00:00
Thomas Bluemel
b6bbf4cd23 fixed the order of the parameters of RtlIsValidIndexHandle
svn path=/trunk/; revision=17159
2005-08-07 11:47:45 +00:00
Eric Kohl
6ab29bbd4b Support size_is(*Length) attributes for strings.
svn path=/trunk/; revision=17158
2005-08-07 11:44:41 +00:00
Filip Navara
9a462169de Readd check that I accidently removed.
svn path=/trunk/; revision=17157
2005-08-07 11:25:36 +00:00
Filip Navara
aef1fdc048 Correctly set internal state in NpfsDisconnectPipe and fix some return values in NpfsRead.
svn path=/trunk/; revision=17156
2005-08-07 10:56:57 +00:00
Maarten Bosma
135eaf6958 A simple test app for DirectDraw.
svn path=/trunk/; revision=17155
2005-08-07 10:13:46 +00:00
Filip Navara
208dc4dcab Fix mutex unlocking in NpfsWaiterThread and add ASSERT.
svn path=/trunk/; revision=17154
2005-08-07 10:08:25 +00:00
Thomas Bluemel
47d6deb829 SVN maintainance
svn path=/trunk/; revision=17153
2005-08-07 09:55:54 +00:00
Thomas Bluemel
fb0db4efa6 fixed uninitialized variable warning
svn path=/trunk/; revision=17152
2005-08-07 09:55:08 +00:00
Thomas Bluemel
a32178f6d9 fixed uninitialized variables warnings
svn path=/trunk/; revision=17151
2005-08-07 09:48:38 +00:00
Alex Ionescu
1479011f30 Fix NtSignalAndwaitForSingleObject: Use SEH when appropriate, use direct Mutant release call, query handle info and write fixmes when permission checking needed, optimize failure cases, fix horrid tab/space formatting mismatches
svn path=/trunk/; revision=17150
2005-08-07 09:40:00 +00:00
Thomas Bluemel
09e2e1a5cb added a newline at the end of the file to fix a warning
svn path=/trunk/; revision=17149
2005-08-07 09:24:10 +00:00
Filip Navara
26d1cb6272 - Fix size check in SystemBasicInformation and SystemTimeOfDayInformation.
- Add SEH protection to SystemProcessInformation.
- Implement SystemKernelDebuggerInformation.
- Fix returning of ResultLength in NtQuerySystemInformation.

svn path=/trunk/; revision=17148
2005-08-07 09:12:10 +00:00
Eric Kohl
6e9638b203 Fix CM_Get_Registry_Property_ExW.
Implement CM_Set_Registry_Property_ExA.

svn path=/trunk/; revision=17147
2005-08-07 09:03:35 +00:00
Hartmut Birr
a48242f711 Allocated a converting buffer for WideCharToMultiByte. This does fix bug #702.
svn path=/trunk/; revision=17146
2005-08-07 08:06:56 +00:00
Martin Fuchs
9a5a82cd3c update SVN properties
svn path=/trunk/; revision=17145
2005-08-07 07:49:07 +00:00
Martin Fuchs
fc506850c2 update SVN properties
svn path=/trunk/; revision=17144
2005-08-07 07:42:36 +00:00
Martin Fuchs
4f8cc9596c update SVN properties
svn path=/trunk/; revision=17143
2005-08-07 07:33:14 +00:00
Martin Fuchs
100b8232d0 update SVN properties
svn path=/trunk/; revision=17142
2005-08-07 07:32:36 +00:00
Alex Ionescu
c3a96b7538 And here goes another test for two unsupported flags.
svn path=/trunk/; revision=17141
2005-08-07 07:30:46 +00:00
Alex Ionescu
17f39f0290 One more test can't hurt.
svn path=/trunk/; revision=17140
2005-08-07 07:14:52 +00:00
Alex Ionescu
0077f21d71 Add failure cases for more things then a WINE test could shake a stick at (hopefully)
svn path=/trunk/; revision=17139
2005-08-07 07:11:03 +00:00
Steven Edwards
e9677a896a enable the ntdll and kernel32 wine tests and watch them fail
svn path=/trunk/; revision=17138
2005-08-07 03:15:15 +00:00
Steven Edwards
17d51a62ab added kernel32 wine tests
svn path=/trunk/; revision=17137
2005-08-07 03:14:17 +00:00
Steven Edwards
eae91ed932 make the ros test name dllname_rostest.exe, suggested by Usurp
svn path=/trunk/; revision=17136
2005-08-07 03:00:44 +00:00
Steven Edwards
65e46acedc Named reactos regression tests dllname_tests.exe and wine test name dllname_test.exe to prevent conflicts
svn path=/trunk/; revision=17135
2005-08-07 02:54:10 +00:00
Steven Edwards
c510ad93ae add some missing values from Wine
svn path=/trunk/; revision=17134
2005-08-07 02:22:29 +00:00
Steven Edwards
57f56eab33 ntdll pending some winerror.h fixes
svn path=/trunk/; revision=17133
2005-08-07 02:16:34 +00:00
Steven Edwards
447a3da0ea updated winternl.h, PSDK fixes, etc...
svn path=/trunk/; revision=17132
2005-08-07 01:23:40 +00:00
Steven Edwards
7357490064 DCX_USESTYLE is a wineism. Dont use it in a header
svn path=/trunk/; revision=17131
2005-08-07 00:26:13 +00:00
Steven Edwards
d4893a7fa5 added local define for DCX_USESTYLE
svn path=/trunk/; revision=17130
2005-08-07 00:25:26 +00:00
Steven Edwards
d2984aea5c added DCX_USESTYLE
svn path=/trunk/; revision=17129
2005-08-07 00:21:24 +00:00
Steven Edwards
55b967315b turn on more the winetests
svn path=/trunk/; revision=17128
2005-08-07 00:06:29 +00:00
Steven Edwards
14e75bd34f again dump the .cvsignore
svn path=/trunk/; revision=17127
2005-08-07 00:03:28 +00:00
Steven Edwards
d8de9b24fb add some of the shlwapi tests
svn path=/trunk/; revision=17126
2005-08-06 23:58:36 +00:00
Steven Edwards
bf046096f1 added user32 wine regression test
svn path=/trunk/; revision=17125
2005-08-06 23:41:45 +00:00
Steven Edwards
68cfd5b234 we don't need a .cvsignore
svn path=/trunk/; revision=17124
2005-08-06 23:20:14 +00:00
Steven Edwards
e2314525fc added gdi32 wine regression tests
svn path=/trunk/; revision=17123
2005-08-06 23:19:47 +00:00
Steven Edwards
42cc66da60 moved psapi test
svn path=/trunk/; revision=17122
2005-08-06 23:12:16 +00:00
Steven Edwards
35154d7eb5 moved psapi test
svn path=/trunk/; revision=17121
2005-08-06 23:11:59 +00:00
Steven Edwards
551795b06d add version tests
svn path=/trunk/; revision=17120
2005-08-06 23:08:51 +00:00
Steven Edwards
f997cb9046 added msvcrt regression test
svn path=/trunk/; revision=17119
2005-08-06 23:05:16 +00:00
Maarten Bosma
a3cd4ae567 add case if _NO_COM is defined structure _DDRAWI_DDRAWSURFACE_MORE
svn path=/trunk/; revision=17118
2005-08-06 22:08:13 +00:00
Thomas Bluemel
958fe98d1d fixed some uninitialized variables warnings
svn path=/trunk/; revision=17117
2005-08-06 20:23:08 +00:00
Magnus Olsen
e651def55f add #define DDRAWISURFGBL_NOTIFYWHENUNLOCKED
svn path=/trunk/; revision=17116
2005-08-06 20:18:59 +00:00
Thomas Bluemel
4023109665 allow warnings
svn path=/trunk/; revision=17115
2005-08-06 20:15:29 +00:00
Thomas Bluemel
19291a67d9 add missing directory.xml
svn path=/trunk/; revision=17114
2005-08-06 19:42:40 +00:00
Filip Navara
b5911876a6 Fix keyboard input in usetup.
svn path=/branches/ros-branch-0_2_7/; revision=17113
2005-08-06 19:02:53 +00:00
Filip Navara
48c97a5115 Fix translation of extended keys.
svn path=/branches/ros-branch-0_2_7/; revision=17112
2005-08-06 18:57:52 +00:00
Filip Navara
4123ecfc6a Fix translation of extended keys.
svn path=/trunk/; revision=17111
2005-08-06 18:56:20 +00:00
Steven Edwards
f3594ebab5 and this
svn path=/trunk/; revision=17110
2005-08-06 18:08:07 +00:00
Steven Edwards
995a19dc6d forgot this
svn path=/trunk/; revision=17109
2005-08-06 18:07:47 +00:00
Steven Edwards
d3a19d3fa2 enable Wine regression tests for advapi32 and comctl32. Not tested under ReactOS. To build tests now you can use the wine name 'make advapi32_test' 'make comctl32_test' etc
svn path=/trunk/; revision=17108
2005-08-06 18:05:15 +00:00
Steven Edwards
8f091947d8 add prototype for DbgPrint so Winetests link properly with ReactOS.
svn path=/trunk/; revision=17107
2005-08-06 18:03:53 +00:00
Steven Edwards
94aa9ed23c stick the winetests in the sub folder with the other regtests
svn path=/trunk/; revision=17106
2005-08-06 18:02:57 +00:00
Steven Edwards
d90f119c90 remove comctl32 winetests
svn path=/trunk/; revision=17105
2005-08-06 18:00:17 +00:00
Steven Edwards
8704e1ebff remove msvcrt winetests
svn path=/trunk/; revision=17104
2005-08-06 17:59:46 +00:00
Steven Edwards
f2272e8e74 remove main winetest program
svn path=/trunk/; revision=17103
2005-08-06 17:59:01 +00:00
Steven Edwards
53a628a613 remove version winetests
svn path=/trunk/; revision=17102
2005-08-06 17:58:12 +00:00
Steven Edwards
09c6b8868b remove advapi32 winetests. I am going to refactor the import
svn path=/trunk/; revision=17101
2005-08-06 17:57:33 +00:00
Hartmut Birr
d46f0ac6da Don't try to acquire the mutex, if the mutex already exist (reported by Joseph Galbraith).
svn path=/trunk/; revision=17100
2005-08-06 15:55:59 +00:00
Thomas Bluemel
4d98b5f8f7 fixed uninitialized variable warning and indentation
svn path=/trunk/; revision=17099
2005-08-06 15:01:08 +00:00
Thomas Bluemel
514aa4a565 #include "precomp.h" -> #include <precomp.h>
svn path=/trunk/; revision=17098
2005-08-06 14:58:07 +00:00
Thomas Bluemel
00d72052e8 #include "usetup.h" -> #include <usetup.h>
svn path=/trunk/; revision=17097
2005-08-06 14:57:57 +00:00
Thomas Bluemel
db692d3cdc fixed uninitialized variable warning
svn path=/trunk/; revision=17096
2005-08-06 11:59:31 +00:00
James Tabor
eac9a2caf0 Show DrawTextExA implemented.
svn path=/trunk/; revision=17095
2005-08-06 05:26:10 +00:00
James Tabor
1556909d27 Show SetParent implemented.
svn path=/trunk/; revision=17094
2005-08-06 05:25:13 +00:00
James Tabor
b492db20dd Show UpdateWindow implemented.
svn path=/trunk/; revision=17093
2005-08-06 05:24:05 +00:00
Thomas Bluemel
044ab19d99 handle the WM_SIZE message and resize/move the controls appropriately
svn path=/trunk/; revision=17092
2005-08-06 01:14:09 +00:00
Maarten Bosma
406b162be2 Add more DDRAWISURFs and remove useless #ifndefs.
svn path=/trunk/; revision=17091
2005-08-05 23:29:52 +00:00
Gé van Geldorp
ebdbcfb097 Sync to Wine-20050725:
Alexandre Julliard <julliard@winehq.org>
- Faster implementation of wcstombs that handles overlapping buffers
  properly (based on a patch by Dmitry Timoshkov).

svn path=/trunk/; revision=17090
2005-08-05 22:24:53 +00:00
Maarten Bosma
518084eb6d include ddk/d3dnthal.h as well
svn path=/trunk/; revision=17089
2005-08-05 21:53:20 +00:00
Filip Navara
94ae83f18a Remove spurious call from I8042BasicDetect.
svn path=/trunk/; revision=17086
2005-08-05 21:31:11 +00:00
Alex Ionescu
1eb8e4cde0 - FS Devices don't need a device queue, optimize the call away.
svn path=/trunk/; revision=17085
2005-08-05 21:25:52 +00:00
Alex Ionescu
6477828cdd - DeviceExtension should be NULL if the caller didn't specify any size for one.
svn path=/trunk/; revision=17084
2005-08-05 21:16:51 +00:00
Maarten Bosma
3d09f34d49 in ddrawgdi.h
- remove #if 0 (Define GdiEntries to thier internal names)
- include the right headers instead of defining things on it's own

svn path=/trunk/; revision=17083
2005-08-05 21:05:03 +00:00
Maarten Bosma
4b9db80475 undo my last change
svn path=/trunk/; revision=17082
2005-08-05 21:02:28 +00:00
Gé van Geldorp
ebe9abeb13 Update status
svn path=/trunk/; revision=17080
2005-08-05 20:49:13 +00:00
Gé van Geldorp
ccf9cf1d90 Sync to Wine-20050628:
Dmitry Timoshkov <dmitry@codeweavers.com>
- Make remaining OLE interface vtables const.
Mike McCormack <mike@codeweavers.com>
- Stub implementation for GetSoftwareUpdateInfo.
- Declare functions and correct prototypes.
Maarten Lankhorst <m.b.lankhorst@gmail.com>
- Improved ObtainUserAgentString stub.
Stefan Huehner <stefan@huehner.org>
- Fix some more -Wstrict-prototypes warnings.

svn path=/trunk/; revision=17079
2005-08-05 20:48:26 +00:00
Maarten Bosma
bb1f81a0fc Actually call the DDRAW_DllRegisterServer() and DDRAW_DllUnregisterServer() functions from DllMain.
svn path=/trunk/; revision=17078
2005-08-05 20:46:20 +00:00
Gé van Geldorp
3f6ea7fd61 Sync to Wine-20050628:
Stefan Leichter <Stefan.Leichter@camLine.com>
- Update version resource of msiexec.exe to current version shipped from
  Windows Update.
Mike McCormack <mike@codeweavers.com>
- Fix some declaration and write string warnings.

svn path=/trunk/; revision=17077
2005-08-05 20:30:42 +00:00
Gé van Geldorp
be83809179 Sync to Wine-20050628:
Alexandre Julliard <julliard@winehq.org>
- Get rid of the WaveMapper and MidiMapper options, the defaults should
  be good enough in all cases.
- Moved the audio driver configuration to HKCU\Software\Wine\Drivers and
  changed it a bit to follow the model of the graphics driver.
- Added magic comments to all Wine-specific registry accesses to make
  them easier to grep.
Mike McCormack <mike@codeweavers.com>
- Make a function static.
Francois Gouget <fgouget@free.fr>
- Fix winapi_check documentation warnings.
Rein Klazes <wijn@wanadoo.nl>
- In MCI_(Un)MapMsg16To32W with wMsg == MCI_OPEN(_DRIVER) only do
  strdupAtoW on those parameters that are flagged to be a string.

svn path=/trunk/; revision=17076
2005-08-05 20:25:46 +00:00
Filip Navara
638c41010a Revert change to ExSystemExceptionFilter.
svn path=/trunk/; revision=17075
2005-08-05 18:27:06 +00:00
Filip Navara
e86cc8cec8 Don't save and restore previous mode in trap handlers. This allows us to call KeGetPreviousMode() from exception handlers and get the right value.
svn path=/trunk/; revision=17074
2005-08-05 18:26:43 +00:00
Filip Navara
957a1ac6da Remove mouse device detection for now, since it fails on some i8042 clones.
svn path=/trunk/; revision=17073
2005-08-05 17:28:17 +00:00
Filip Navara
255c467f03 Protect NtQuerySystemInformation with SEH.
svn path=/trunk/; revision=17072
2005-08-05 15:45:14 +00:00
Filip Navara
c988422fc4 Move a flush call few lines down.
svn path=/trunk/; revision=17071
2005-08-05 15:41:20 +00:00
Magnus Olsen
290d54b180 Fixes a bug which disallows tab complete on empty input and a sorting bug which didnt account for locale by Brandon Turner
svn path=/trunk/; revision=17070
2005-08-05 15:40:53 +00:00
Filip Navara
457bfd725b Fix keyboard and mouse detection. We must disable the controller features before beginning the port check and we shouldn't fail if some port isn't found. Also detect the mouse on port before trying to use it.
svn path=/trunk/; revision=17069
2005-08-05 10:35:32 +00:00
Thomas Bluemel
d974b427de #include "advapi32.h" -> #include <advapi32.h>
svn path=/trunk/; revision=17068
2005-08-05 10:31:28 +00:00
Thomas Bluemel
5ed4bb62cd #include "acluilib.h" -> #include <precomp.h>
svn path=/trunk/; revision=17067
2005-08-05 10:27:32 +00:00
Thomas Bluemel
5fe92f070c #include "precomp.h" -> #include <precomp.h>
svn path=/trunk/; revision=17066
2005-08-05 10:23:56 +00:00
Filip Navara
55ae128183 Comment out the ACPI enumeration entries for i8042prt driver. It's set as system load driver, so it's loaded anyway.
svn path=/trunk/; revision=17065
2005-08-05 10:11:21 +00:00
Filip Navara
6b88626e55 Fix shell32 build.
svn path=/trunk/; revision=17064
2005-08-05 10:01:51 +00:00
Alex Ionescu
ce4441ce6f - Removed all 3rd-party drivers due to popular request. Information on how to make the drivers work is now available on http://www.reactos.com/wiki/index.php/ReactOS_Drivers. .reg files could be created by volunteers to simplify the process, perhaps.
svn path=/trunk/; revision=17063
2005-08-05 09:38:12 +00:00
Thomas Bluemel
e6a171e0ab set eol-style to native and allow warnings (so it compiles with GCC4)
svn path=/trunk/; revision=17062
2005-08-05 09:16:38 +00:00
Gé van Geldorp
6a1354653c Sync to Wine-20050628:
Marcus Meissner <marcus@jet.franken.de>
- Move static variables out of header file, also the local interface
  implementations.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Make remaining OLE interface vtables const.
cjacek <cjacek@gmail.com>
- Fix typo in comment about Wine registry key.
Alexandre Julliard <julliard@winehq.org>
- Moved a few registry keys from HKLM\Software\Wine to
  HKCU\Software\Wine for consistency.
- Added magic comments to all Wine-specific registry accesses to make
  them easier to grep.
- Sort entry points in the same order as Windows.
Stefan Huehner <stefan@huehner.org>
- Fix more -Wstrict-prototypes warnings.

svn path=/trunk/; revision=17061
2005-08-05 08:02:09 +00:00
Gé van Geldorp
a291f2d15a Sync to Wine-20050628:
Dmitry Timoshkov <dmitry@codeweavers.com>
- Make remaining OLE interface vtables const.
Mike McCormack <mike@codeweavers.com>
- SHCreateStreamOnFileW is implemented in shlwapi, so we don't need
  another implementation in shell32.
- Add a cast to get rid of a warning.
- Warning fixes for -Wmissing-declarations and -Wwrite-strings.
- Make functions static.
- -Wpointer-sign fixes.
- forward AddRef, Release, QueryInterface and GetClassID to internal
  implementations
- implement GetClassID properly
- Switch IShellLink to use shlwapi.SHCreateStreamOnFileW.
- Remove some uses of wine/unicode.h functions.
- Add the IContextMenu interface to the ShellLink object.
- Implement ShellLink's IShellExtInit::Initialize() method.
- add the IShellExtInit interface to the ShellLink object
- use inline functions rather than macros to resolve the
  implementation pointer from an interface pointer
- Add the IShellLinkDataList interface to the ShellLink object.
Michael Jung <mjung@iss.tu-darmstadt.de>
- Use the CallForAttributes registry value, instead of promoting the
  root folder's SFGAO_FILESYSTEM flag to the registry.
- Return the correct attributes for the desktop folder.
- Corresponding tests.
- Support for shellfolder's CallForAttributes registry value.
- Let BindToObject fail, if called with empty relative pidl.
- Tests to show that it should do so.
- Fix SHBrowseForFolder to not pass an empty pidl to BindToObject.
- Fix a lurking infinite loop in SHGetPathFromIDList.
- Support for shellfolder's CallForAttributes registry value.
- Use SHGetPathFromIDList instead of SHELL32_GetPathFromIDList.
- Implement SHGetPathFromIDList based on GetDisplayNameOf.
Stefan Doesinger <stefandoesinger@gmx.at>
- Handle cidl==0 in shfldr_desktop, shfldr_fs and shfldr_mycomp.
- Remove the dwAttributes member from the IGenericSFImpl class, it's
  not needed and can't be initialised in Initialize and InitializeEx.
Vitaly Lipatov <lav@etersoft.ru>
- Realize DoEnvironmentSubstA via ExpandEnvironmentStringsA.
- Fix types and return values.
- Add prototype into shellapi.h.
Aric Stewart <aric@codeweavers.com>
- Fix the BrowseForFolder dialog so that when it does the callbacks it
  uses the correct message instead of always sending BEFM_INITIALIZED.
Juan Lang <juan_lang@yahoo.com>
- Const-ify a mask.
- Set default for "My Documents" to $HOME, and "Desktop" to ~/Desktop.
Alexandre Julliard <julliard@winehq.org>
- Sort entry points in the same order as Windows.
Francois Gouget <fgouget@free.fr>
- Fix winapi_check documentation warnings.
Marcus Meissner <marcus@jet.franken.de>
- ExtractAssociatedIconA needs to allocate enough space to have EAIW
  fill in lpIconPathW.
Huw Davies <huw@codeweavers.com>
- Unquote the icon file path if it's quoted.

svn path=/trunk/; revision=17060
2005-08-05 07:48:18 +00:00
Alex Ionescu
53aa4eb206 - Protect semaphore release with SEH, since it can cause an exception
- Correct object type initializer
- Correct incorrect PreviousMode checks
- Correct MaximumCount and ReleaseCount checks since they can't be negative either
- Harmonize formatting

svn path=/trunk/; revision=17059
2005-08-05 06:56:17 +00:00
Alex Ionescu
4a4e5adc99 - Add comments to code and clean it up
- Fix some incorrect operations
 - Optimize and fix loops

svn path=/trunk/; revision=17058
2005-08-05 06:54:15 +00:00
Alex Ionescu
9f32108192 - Optimize locking so that the Wake Lock is only entered after a first attempt determines the timer is a wake timer.
After the lock, a second check is done to make sure. However, since the first check will fail 99% of times, we will
  not acquire/release a spinlock, and thus decrease contention.
- Fix Object Type Initializer to actually use ExpTimerDelete when the object is deleted.
- Fix Initializer to report correct memory usage of timer object.
- Fix Initializer to report OBJ_OPENLINK as an invalid attribute for timer objects.
- Use correct access masks when modifying or querying timer objects.
- Handle wake timers in NtCancelTimer.
- Return warning NTSTATUS code if a wake timer is requested but not supported by the system (default on ROS).
- Check for valid timer type in NtCreateTimer.
- Check for valid period in NtSetTimer.
- Don't dereference the timer in NtSetTimer three times.
- Return the correct Due Time in NtQueryTimer by substracting the stable interrupt time.
- Harmonize formatting, fix some comments.

svn path=/trunk/; revision=17057
2005-08-05 06:53:56 +00:00
Alex Ionescu
2e6566c315 - Makefile change for previous commit.
svn path=/trunk/; revision=17056
2005-08-05 06:13:43 +00:00
Alex Ionescu
7500ee65fa - Move ExCreateUUID to uuid.c
- Move ExpVerifiySuite to sysinfo.c
- Delete util.c

svn path=/trunk/; revision=17055
2005-08-05 06:13:23 +00:00
Steven Edwards
6b12a0217e added oledlg.dll to the build. Needed by visio2k setup.
svn path=/trunk/; revision=17054
2005-08-05 03:59:05 +00:00
Alex Ionescu
1bb6a5ce2c - Remove unused ldr/userldr.c
- Rename LdrLoadInitialProcess to Exp... and move to executive initialization.
- Removed ldr/init.c
- Renamed ldr/sysdll.c functions to Psp (correct naming) and deleted file.
- Renamed SystemDll... ntdll pointers to correct Ke names
- Use direct Ke names instead of going through an API call.
- Make ExpInit... functions STDCALL

svn path=/trunk/; revision=17053
2005-08-05 03:44:24 +00:00
Magnus Olsen
3f935aa835 fix a small bug in cd, it did make all char lower case. done by me and Brandon Turner. clean up CD source bit more. Bug fix GetRootPath. it did not accepted upper case as driver letter. done by me
svn path=/trunk/; revision=17051
2005-08-04 22:08:16 +00:00
Filip Navara
b760d02f8f Fix keyboard input in usetup.
svn path=/trunk/; revision=17050
2005-08-04 21:55:43 +00:00
Steven Edwards
0466e5cbb2 took a stab at write support and turned it on. Removed getopt as its not needed.
svn path=/trunk/; revision=17049
2005-08-04 21:42:32 +00:00
Gé van Geldorp
b3af499b55 Sync to Wine-20050628:
Robert Shearman <rob@codeweavers.com>
- Improve tracing.
- Implement FC_UP and partially FC_OP.
- Don't needlessly marshal 4 bytes in NdrPointer*.
- Fix an RPC server startup race introduced by me.
- Don't pass the PROFILE_SERVER flag in to CreateNamedPipe as it is
  bogus.
- Call FlushFileBuffers to make sure the other end of the pipe doesn't
  get cut off prematurely.
- Don't call CancelIo as we should never have async I/O pending.
- Make NdrInterfacePointer* more reliable.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Make remaining OLE interface vtables const.
Alexandre Julliard <julliard@winehq.org>
- Sort entry points in the same order as Windows.
Mike Hearn <mh@codeweavers.com>
- Initialize DataRepresentation in NdrClientInitializeNew, not
  NdrSendReceive.

svn path=/trunk/; revision=17048
2005-08-04 21:35:00 +00:00
Magnus Olsen
fc05329e7f Windows TAB complete style instead for unix style patch by Brandon Turner. Thuse does people do not like windows tab complete, the can always change in config.h to unix/linux tab complete code again.
svn path=/trunk/; revision=17043
2005-08-04 12:41:42 +00:00
Thomas Bluemel
16025312da compile welcome.exe as unicode application by default
svn path=/trunk/; revision=17042
2005-08-04 10:41:58 +00:00
Gé van Geldorp
52fafec558 Sync to Wine-20050628:
Phil Krylov <phil@newstar.rinet.ru>
- Implemented EM_GETTEXTLENGTHEX RichEdit message.
Krzysztof Foltman <wdev@foltman.com>
- added support for \ulnone (turning underline off)
- support for basic subscript and superscript
- untested support for text offset
- Emit \tx for user-defined TABs.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Make remaining OLE interface vtables const.
Stefan Huehner <stefan@huehner.org>
- Fix some more -Wstrict-prototypes warnings.
Vitaly Lipatov <lav@etersoft.ru>
- Allow null pointers for EM_GETSEL message (as MSDN says).
Robert Shearman <rob@codeweavers.com>
- Richedit classes should be global.

svn path=/trunk/; revision=17041
2005-08-04 06:52:58 +00:00
Thomas Bluemel
ed9faae3c7 properly implement scrolling
svn path=/trunk/; revision=17040
2005-08-04 00:16:41 +00:00
Thomas Bluemel
f89d9a13ad fail as documented when the pointer to the buffer equals the pointer to the string to be converted in MultiByteToWideChar and WideCharToMultiByte
svn path=/trunk/; revision=17039
2005-08-03 23:07:10 +00:00
Gé van Geldorp
9912b90aff Francois Gouget <fgouget@free.fr>
Fix winapi_check documentation warnings.

svn path=/trunk/; revision=17038
2005-08-03 22:49:47 +00:00
Gé van Geldorp
c089737240 Sync to Wine-20050628:
Dmitry Timoshkov <dmitry@codeweavers.com>
- Make remaining OLE interface vtables const.
Robert Shearman <rob@codeweavers.com>
- DispInvoke is correct so there is no need to print a fixme.
- The typelib marshaler should only free the memory it actually allocated.
- Add special cases for two lesser used types that aren't
  sizeof(DWORD) sized.
- If we are accessing a method from a superclass then we need to use the
  superclass's ITypeInfo otherwise we could get errors when accessing
  hreftypes that aren't present in the subclass.
- Don't print out cryptic message if IDispatch or IUnknown object is
  just NULL.
- puArgErr is a ref pointer so we have to provide a dummy pointer if
  it is NULL.
- Fail gracefully and notify caller if we ran out of memoy or if
  variant copying failed.
- Clear out parameters to stop bad pointers lying around in memory if
  the function doesn't set them to anything.
- Fix the return values from QueryPathOfRegTypeLib.
- Open registry key with least access rights necessary.
- Documentation updates.
Michael Stefaniuc <mstefani@redhat.de>
- VarCmp: handle comparision of VT_EMPTY with an integer
- small comment fix
- Reimplement VarAdd, had missing functionality and wrong behaviour.
- Fix a typo in VarMul.
- more VarFormat fixes for number formats (exponent, mixed '#' and '0'
  in formats, rounding, etc). Simplify the code.
- previous VarFormat todo_wine tests pass now + add more tests
- Fix VarFormat for formats that mix '0' and '#' in the whole number
  part.
- Fix VarFormat for negative exponent formats.
- Add tests for the above + a couple of "todo_wine"'s.
- implement handling of exponents (e+,e-,E+,E-) when parsing number
  formats
- fix a small cut'n'paste error in the comments
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Marcus Meissner <marcus@jet.franken.de>
- Added VarMonthName() implementation.
- Corrected string length method in ITypeLib::IsName() and FindName()
  for LPOLESTR type.
- Fixed IType::Invoke in regards to handling propertyget variables
  longer than 4 bytes (like VT_DATE).
- Added testcases for OLE Picture handling.
- Implemented PICTYPE_NONE loading.
- Cleaned up stream loading, handle "lt" magic.
- Fixed some small problems exposed by tests against native.
Stefan Huehner <stefan@huehner.org>
- Fix some more -Wstrict-prototypes warnings.
Huw Davies <huw@codeweavers.com>
- Add comments describing the first DWORD in an import table entry.

svn path=/trunk/; revision=17037
2005-08-03 22:46:31 +00:00
Gé van Geldorp
7ba677508a Sync to Wine-20050628:
Robert Shearman <rob@codeweavers.com>
- Convert some registry helper functions to use unicode versions of
  CLSID & registry functions (untested).
- Add registry entries for local-only OLE interfaces.
- Change IUnknown to local interface.
- IUnknown isn't a remotable interface so the stub manager shouldn't
  need a marshaller for it.
- Change the RPC code to use the unicode versions of the CLSID &
  registry functions.
- Don't disconnect proxies flagged with SORFP_NOLIFETIMEMGMT. It makes
  no sense and only causes trouble for proxies that depend on these
  proxies being available.
- Change some of the registry helper functions to use the unicode
  versions of the CLSID & registry functions.
- Reindent CoGetClassObject and output an error message if the class
  isn't registered.
- Add tests for the touched functions.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Make remaining OLE interface vtables const.
Richard Cohen <richard@daijobu.co.uk>
- Base FileMonikerImpl_Save() on XP.
- Correct handling of Unicode strings & multibyte locales.
- More error checking.
- Change ERR to WARN.
- Match Windows quick & dirty estimate for GetSizeMax().
Stefan Huehner <stefan@huehner.org>
- Fix some more -Wstrict-prototypes warnings.
Mike Hearn <mike@navi.cx>
- Add some tracing to the IRemUnknown RpcProxyBuffer implementation.
Eric Pouech <pouech-eric@wanadoo.fr>
- Const correctness fixes.
Richard Cohen <richard@daijobu.co.uk>
- IEnum::Clone shouldn't do a Reset.
Marcus Meissner <marcus@jet.franken.de>
- Removed CLSID_CompositeMoniker (conflicting with static definition).
Alexandre Julliard <julliard@winehq.org>
- Sort entry points alphabetically.

svn path=/trunk/; revision=17036
2005-08-03 22:31:39 +00:00
Thomas Bluemel
9faf200230 fixed difference in signedness warning (GCC4)
svn path=/trunk/; revision=17035
2005-08-03 22:31:41 +00:00
Gé van Geldorp
4e23c74418 Sync to Wine-20050628:
Mike McCormack <mike@codeweavers.com>
- Repaint the area behind the "transparent" text control when it
  changes.
- Implement transparency in the text control.
- Make the MSI icon control work.
- Make tabs work in msi dialogs.
- Added support for the MSI MaskEdit control.
- Use a richedit control for license text.
- Fix radio button groups. Don't add the WS_GROUP style to every
  window.
- Use standard lists in the event subscription code.
- Take the dialog frame into account when calculating the dialog size.
- Use MSI_QueryGetRecord in one more place.
- Create a helper function to fetch a single record from a query.
- More -Wmissing-declarations and -Wwrite-strings warning fixes.
- Get rid of some redundant parser types.
- Use the new helper function MSI_QueryGetRecord.
- Use MSI_RecordGetString in more actions.
- Use MSI_RecordGetString where possible.
- Fixes for -Wmissing-declarations and -Wwrite-strings warnings.
- Remove some unused code.
- Add and correct some function declarations.
- Improve number parsing and avoid unicode.h.
- avoid unicode.h
- add a missing function prototype
- Create a stub implementation for MsiViewGetError.
- Remove more types from the parser.
- Test and fix the size of stream fields in a record.
- Clean up headers and make some functions static.
Marcus Meissner <meissner@suse.de>
- Use a simpler expression for the "RichEdit20W" string to workaround
  compiler bug.
- Remove cszbs from msi/action.h.
Aric Stewart <aric@codeweavers.com>
Mike McCormack <mike@codeweavers.com>
- Allow dialog controls to subscribe to installer events.
- Fix handling of checkbox properties.
- Implement dialog events and hook up the dialog code.
Aric Stewart <aric@codeweavers.com>
- Break out all the file related actions and helper functions into
  files.c
- Break out all the top level apis into install.c.
- Break out all the class registration actions into classes.c. This
  includes RegisterClassInfo, RegisterProgIds, RegisterExtensions and
  RegisterMIMETypes.
- Break out all the helper functions into helpers.c.
- Added module upgrade.c and implemented FindRelatedProducts.
- A long overdue fix to MSI_SetTargetPath. This should fix an error with
  some installers that where unable to change the target path.
- Add functions to add the User UpgradeCodes.
- A simple cleanup to only track the temp file if we need to have it
  laying around because the action is going on asynchronously. Otherwise
  clean up the temp file as the action finishes.
- Introduce really basic scripting of actions. This is primarily to get
  the order of execution of the action correct since some custom actions
  can be scripted and others are run during the script building phase.
- Perform ExecuteAction at UILevel 2.
- Rework CreateShortcuts to use MSI_IterateRecords.
- Properly handle -1 as a registry key root.
- Rework SelfRegModules to use MSI_IterateRecords.
- Rework component, feature and file loading to use MSI_IterateRecords.
- Rework RegisterFonts to use MSI_IterateRecords.
- Rework WriteIniValues to use MSI_IterateRecords.
- Rework PublishProduct to use MSI_IterateRecords.
- Rework RegisterTypeLibraries to use MSI_IterateR
- Rework LaunchConditions to use MSI_IterateRecord
- Rework CostFinalize to use MSI_IterateRecords.
- Rework WriteRegistryValues to use MSI_IterateRecords.
- Rework CreateFolders to use MSI_IterateRecords.
- Use MSI_IterateRecords for processing actions.
  Some whitespace cleanup and replace a comment block I did not want to
  remove.
- Flesh out the remaining keys in RegisterProduct.
- Extending upon Mike McCormack's cleanup to use MSI_RecordGetString.
- Register the Product Version also.
  Also help plug some memory leaks pointed out by Mike McCormack.
- Avoid a loop where a parent's parent refers to itself as its parent.
- Added module upgrade.c and implemented FindRelatedProducts.
- Set the Preselected property if appropriate (relevant to
  MigrateFeatureStates when implemented).
- Write out Product Language and Product Icon to the registry.
- Write out UpgradeCodes to the registry to allow for future upgrades.
- Don't get caught in loops on parent progids.
- Since multiple progids can refer to 1 class we need to check if that
  class is isntalled instead of just relying on having it set the
  InstallMe variable.
- Add install_on_demand for Extension servers also. currently defaulting
  to TRUE.
- Extension need to have 1 verb to mark the given progid to be
  installed.
- Do not loop if a ProgId's Parent Index it itself.
- Add a VersionIndIndex for tracking version independent fields for the
  ProgIds properly.
- Print a message for skipped actions in ProcessExecSequence like in the
  UISequence.
- Do not change a features state to Advertise if it explicitly disallows
  it.
- For typelibs index 1 do not add \\1 to the path. This cleans up
  registry diffs with native MSI.
- Register the FileType and correct short vs long path problems with
  InprocServer32. Also add install_on_demand boolean for future
  expansion.
- First pass at writing out CurVer keys for ProgIds. Also print a
  message for the actions we skip. Lines up with native MSI output logs
  for ease of comparison.
- A big rewrite of the whole RegisterClass, RegisterProgId,
  RegisterExtension and RegisterMIME actions. We now handle verbs
  properly, handle dependancies and such properly and keep track of what
  we need to register and what we do not properly.
- Allow control events to return codes to halt the processing of event.
  Needed for the SetTargetPath Event.
- Fix situations where TARGETDIR is set to a non \ terminated
  path. Fixes a few installers.
- Redo how we extract files from a cabinet in order to dramatically
  improve performance, especially if picking and choosing files out of
  the cabinet.
- Duplicate files should not fail if unable to get Destination
  Directory.
- Use MSI_IterateRecords for DuplicateFiles.
- Add UI messages to FindRelatedProducts.
- Reduce unneeded includes.
- A "1" is returned not a 1 for AssignmentType. Also as a bit more to
  the FIXME message.
- Add Language to the values we can query with MsiGetProductInfo.
- Correct a crash if the length buffer is NULL.
- Locate where a buffer size is not being set and correctly handle the
  buffer size conversion from W to A (with help from Robert Shearman).
- Make sure the TRACE statements do not spew garbage by using
  debugstr_wn.
- Restrict deformating of nested index keys [[1]].
- Introduce the beginning of group deformating {}.
- Implement the [!file] format to produce the short filename.
Stefan Huehner <stefan@huehner.org>
- Fix more -Wstrict-prototypes warnings.
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Make more of the OLE interface vtables const.

svn path=/trunk/; revision=17034
2005-08-03 22:12:15 +00:00
Gé van Geldorp
0f766beac3 Sync to Wine-20050628:
Mike McCormack <mike@codeweavers.com>
- Switch IShellLink to use shlwapi.SHCreateStreamOnFileW.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Make remaining OLE interface vtables const.
Alexandre Julliard <julliard@winehq.org>
- Sort entry points in the same order as Windows.
Stefan Huehner <stefan@huehner.org>
- Fix some more -Wstrict-prototypes warnings.

svn path=/trunk/; revision=17033
2005-08-03 21:34:01 +00:00
Thomas Bluemel
fd1eac7f05 implemented OffsetClipRgn()
svn path=/trunk/; revision=17031
2005-08-03 20:15:58 +00:00
Eric Kohl
f86b5b132c - Add registry property constants.
- Finish CM_Set_DevNode_Registry_Property_ExW.

svn path=/trunk/; revision=17030
2005-08-03 20:10:32 +00:00
Filip Navara
1bbf906bf4 Use valid timer ID for SetTimer.
svn path=/trunk/; revision=17029
2005-08-03 19:34:29 +00:00
Thomas Bluemel
f1cc84e27c define __NO_CTYPE_INLINES so DBG:=0 builds don't import from msvcrt
svn path=/trunk/; revision=17028
2005-08-03 19:28:51 +00:00
Casper Hornstrup
157587d815 Fix building 'make test'
svn path=/trunk/; revision=17027
2005-08-03 19:15:47 +00:00
Martin Fuchs
8f8a4dbabd switch back to #include "precomp.h" for precomp.cpp because it's needed for VC++ and doesn't irritate GCC since it's not compiled with GCC anyways.
svn path=/trunk/; revision=17026
2005-08-03 17:46:56 +00:00
Filip Navara
14e73e8f67 Merge 16748 from trunk:
Add check for global handles to NtGdiDeleteDC, this prevents applications from destroying DCs that are part of DCEs.

svn path=/branches/ros-branch-0_2_7/; revision=17025
2005-08-03 17:24:05 +00:00
Filip Navara
a477c328ef Merge 16933 from trunk:
Fix paramater validation and pointer manipulation in RtlAddAce.

svn path=/branches/ros-branch-0_2_7/; revision=17024
2005-08-03 17:21:19 +00:00
Filip Navara
d16812b7e2 Merge 16932 from trunk:
Fix locking in RtlPinAtomInAtomTable.

svn path=/branches/ros-branch-0_2_7/; revision=17023
2005-08-03 17:20:53 +00:00
Filip Navara
39b9584d47 Merge 16921 (weiden) from trunk:
fixed success check in RtlpCreateAtomHandle, ExCreateHandle returns EX_INVALID_HANDLE in case of failure. Thx to Filip

svn path=/branches/ros-branch-0_2_7/; revision=17022
2005-08-03 17:20:19 +00:00
Filip Navara
b0d5493ac9 Merge 16860 from trunk:
Initialize DescriptorTranslated->u.Interrupt.Level before calling HalGetInterruptVector. Remember, casting hides bugs! Debugged by Hervé Poussineau.

svn path=/branches/ros-branch-0_2_7/; revision=17021
2005-08-03 17:19:36 +00:00
Filip Navara
6c57c88a87 Merge 16858 from trunk:
Properly propagate the SL_PENDING_RETURNED flag to stack locations in IofCompleteRequest and fix the priority boost for master IRPs.

svn path=/branches/ros-branch-0_2_7/; revision=17020
2005-08-03 17:18:54 +00:00
Filip Navara
a566903f6f Megre 16749, 16750, 16751, 16763, 16764 from trunk:
Fix reverting of focus to owner windows.

svn path=/branches/ros-branch-0_2_7/; revision=17019
2005-08-03 17:17:57 +00:00
Filip Navara
7a0cd98093 Merge 16747 from trunk:
Don't use DeleteDC on DC handles returned by GetDC.

svn path=/branches/ros-branch-0_2_7/; revision=17018
2005-08-03 17:16:24 +00:00
Filip Navara
ad54b301b1 Merge 16746 from trunk:
Implement ValidateRect.

svn path=/branches/ros-branch-0_2_7/; revision=17017
2005-08-03 17:15:48 +00:00
Filip Navara
93d4eb5c2e Merge 16737 from trunk:
Fix some bugs in DIB mapping code to prevent instant system crashes.

svn path=/branches/ros-branch-0_2_7/; revision=17016
2005-08-03 17:15:11 +00:00
Filip Navara
619a5c3e59 Merge 16736 from trunk:
Properly setup the I/O stack location in IopSecurityFile.

svn path=/branches/ros-branch-0_2_7/; revision=17015
2005-08-03 17:14:26 +00:00
Filip Navara
677a50e78c Merge 16735 from trunk:
Don't allow setting menu for child windows in IntSetMenu.

svn path=/branches/ros-branch-0_2_7/; revision=17014
2005-08-03 17:13:51 +00:00
Filip Navara
bc69be97d0 Merge 16728 (ion) from trunk:
- Don't try to get the length of a possibly empty string. This fixes many menu applications (such as WinRAR). However I'm now getting a bug due to a double-free. It seems a GDI Object is being freed twice. Can anyone check this out please?

svn path=/branches/ros-branch-0_2_7/; revision=17013
2005-08-03 17:13:04 +00:00
Filip Navara
39fdfabe56 Merge 16725 from trunk:
Build Wine DLLs without the UNICODE and _UNICODE definitions. (Note: The Wine DLLs use A/W functions explicitely, so this doesn't have any performance impact.)

svn path=/branches/ros-branch-0_2_7/; revision=17012
2005-08-03 17:10:45 +00:00
Filip Navara
7e63f5285e Merge 16727 (ion/hbirr) from trunk:
- Message Queue Fix, resolves a number of application regressions (Total Commander works again, for example). Patch by Hartmut Birr. To be commited into 0.2.7 after more testing.

svn path=/branches/ros-branch-0_2_7/; revision=17011
2005-08-03 17:10:30 +00:00
Filip Navara
ae0588cd38 Merge 16597 (hbirr) from trunk:
Used the kernel base address from the loader structure instead MmSystemRangeStart. 
MmSystemRangeStart isn't the base address with the 3GB switch.

svn path=/branches/ros-branch-0_2_7/; revision=17010
2005-08-03 17:07:01 +00:00
Filip Navara
91b395d07d Merge 16596 (hbirr) from trunk:
Replaced KERNEL_BASE by MmSystemRangeStart.

svn path=/branches/ros-branch-0_2_7/; revision=17009
2005-08-03 17:05:36 +00:00
Filip Navara
516814e4e7 Merge 16594 (jc) from trunk:
GetMenuStringA and GetMenuStringW inverted the MF_BYPOSITION parameter. Buffers were incorrectly copied in and wrong size returned in GetMenuItemInfoA ansi-structures.
GetMenuString now works the same on both windows and ROS.

svn path=/branches/ros-branch-0_2_7/; revision=17008
2005-08-03 16:17:15 +00:00
Filip Navara
d156f026de Fixed the size of the hyperspace area. Partial merge of 16592 from trunk.
svn path=/branches/ros-branch-0_2_7/; revision=17007
2005-08-03 16:15:15 +00:00
Filip Navara
b4cf27d528 Merge 16557 (hbirr) from trunk:
Fixed the allocation of the buffer for the environment variable in ProcessInput.

svn path=/branches/ros-branch-0_2_7/; revision=17006
2005-08-03 16:11:00 +00:00
Filip Navara
81de064a8f Merge 16553 / 16555 (weiden) from trunk:
handle memory allocation errors in GetEnvironmentVariable() and ensure the string is always null-terminated

svn path=/branches/ros-branch-0_2_7/; revision=17005
2005-08-03 16:10:03 +00:00
Emanuele Aliberti
ee4b8ce5d4 Document <module type="nativecui" ...>
svn path=/trunk/; revision=17004
2005-08-03 15:05:54 +00:00
Hervé Poussineau
e0d12ad786 Fix mouse.inf file (missing %)
svn path=/trunk/; revision=17003
2005-08-03 14:48:38 +00:00
Hervé Poussineau
fc64a3b777 Don't display available resolutions even if DBG is set. Rely only on NDEBUG
svn path=/trunk/; revision=17002
2005-08-03 14:46:17 +00:00
Hervé Poussineau
3f4fb2baec Implement VideoPortVerifyAccessRanges
svn path=/trunk/; revision=17001
2005-08-03 14:46:12 +00:00
Casper Hornstrup
0349ed11fb Fix building kernel32 test
svn path=/trunk/; revision=17000
2005-08-03 14:45:50 +00:00
Filip Navara
e51757630c Fix name length handing in RtlQueryAtomInAtomTable.
svn path=/trunk/; revision=16999
2005-08-03 14:45:39 +00:00
Filip Navara
1eaff64466 - Implement !DeletePinned case in RtlEmptyAtomTable.
- Fix error checking in RtlAddAtomToAtomTable / RtlpCheckIntegerAtom.

svn path=/trunk/; revision=16998
2005-08-03 14:26:56 +00:00
Hervé Poussineau
5327167d43 Set right compatible IDs for USB devices with multiple interfaces
Better implementation of IOCTL_USB_GET_NODE_CONNECTION_INFORMATION

svn path=/trunk/; revision=16997
2005-08-03 14:03:31 +00:00
Thomas Bluemel
6cf95c3fcd #include "precomp.h" -> #include <precomp.h>
svn path=/trunk/; revision=16994
2005-08-03 11:10:21 +00:00
Filip Navara
0ee2eb988f #include "precomp.h" -> #include <precomp.h>
svn path=/trunk/; revision=16993
2005-08-03 10:00:30 +00:00
Filip Navara
ec8d77890b #include "precomp.h" -> #include <precomp.h>
svn path=/trunk/; revision=16992
2005-08-03 09:31:39 +00:00
Gé van Geldorp
2564afd831 i386DX <i386dx@hotmail.com>:
Dutch resources

svn path=/trunk/; revision=16991
2005-08-03 08:31:30 +00:00
Filip Navara
7cdbc1d414 Add stub for VpNotifyEaData.
svn path=/trunk/; revision=16990
2005-08-03 07:50:16 +00:00
Martin Fuchs
ae646476ce set svn:eol-style of *.vcproj and *.sln to CRLF
svn path=/trunk/; revision=16989
2005-08-03 05:20:59 +00:00
Martin Fuchs
f32aa7a945 set svn:eol-style of *.dsp/dsw to CRLF
svn path=/trunk/; revision=16987
2005-08-03 05:11:43 +00:00
Martin Fuchs
64e350d6d5 set svn:eol-style of *.dsp/dsw to CRLF
svn path=/trunk/; revision=16986
2005-08-03 05:09:33 +00:00
Thomas Bluemel
1bfe04d376 Rouven Wessling <pentiumforever@gmail.com>:
- German translations

svn path=/trunk/; revision=16985
2005-08-02 22:20:03 +00:00
Filip Navara
c635b98ceb Move #endif one line down to make the source code balanced.
svn path=/trunk/; revision=16984
2005-08-02 22:14:52 +00:00
Filip Navara
595f9f988d Revert changes accidently commited along with last patch.
svn path=/trunk/; revision=16983
2005-08-02 22:04:02 +00:00
Thomas Bluemel
91e5ea7dfa fix typo...
svn path=/trunk/; revision=16982
2005-08-02 21:46:42 +00:00
Filip Navara
aea5c02d13 Make w3seek happy.
svn path=/trunk/; revision=16981
2005-08-02 21:22:40 +00:00
Thomas Bluemel
c04526fcde Violin Iliev <violin@developer.bg>:
- Bulgarian translation

svn path=/trunk/; revision=16980
2005-08-02 21:16:50 +00:00
Thomas Bluemel
4d49702340 SVN maintainance: fix line endings and ignore proxy makefiles
svn path=/trunk/; revision=16979
2005-08-02 21:12:28 +00:00
Filip Navara
03eedf362f Use mapped sections for fonts instead of paged pool memory.
svn path=/trunk/; revision=16977
2005-08-02 20:33:33 +00:00
Emanuele Aliberti
b8940ad696 A really simple Win32 implementation of 'hostname'.
svn path=/trunk/; revision=16976
2005-08-02 20:17:01 +00:00
Filip Navara
ce5d8968c6 Fix linux build.
svn path=/trunk/; revision=16975
2005-08-02 18:21:48 +00:00
Filip Navara
29532ce6f6 Fix the -sections option of PEFIXUP tool and adapt RBUILD to use it.
svn path=/trunk/; revision=16974
2005-08-02 18:13:21 +00:00
Casper Hornstrup
db35c17756 Locate latest revision ISO
svn path=/trunk/; revision=16973
2005-08-02 16:13:02 +00:00
Emanuele Aliberti
a7acccff70 Modify NTDLL!DbgSsInitialize/4 signature.
svn path=/trunk/; revision=16972
2005-08-02 16:11:13 +00:00
Casper Hornstrup
c9a2c8aab8 Locate next revision ISO
svn path=/trunk/; revision=16971
2005-08-02 15:58:41 +00:00
Alex Ionescu
178ec80139 - Remove CmpFindObject hack and use ObFindObject with on-demand ObjectCreateInfo.
- Note that the code is still wrong and will be fixed soon.

svn path=/trunk/; revision=16970
2005-08-02 14:01:43 +00:00
Filip Navara
b0c4274c66 Fix some pointer casts.
svn path=/trunk/; revision=16969
2005-08-02 13:53:52 +00:00
Filip Navara
ef03d1cb40 - Remove the DoneInitYet hack.
- Add stub for PsSetProcessPriorityByClass.
- Rename PsSetProcessWin32WindowStation to PsSetProcessWindowStation.

svn path=/trunk/; revision=16968
2005-08-02 13:52:10 +00:00
Filip Navara
b5bd68a13b Remove duplicate definitions.
svn path=/trunk/; revision=16967
2005-08-02 13:21:18 +00:00
Thomas Bluemel
0f4524a978 fixed the CONTAINING_RECORD macro
svn path=/trunk/; revision=16966
2005-08-02 11:23:40 +00:00
Alex Ionescu
91907678f1 - Add access state functions.
svn path=/trunk/; revision=16965
2005-08-02 03:56:29 +00:00
Eric Kohl
226f6c1ce2 Implement CM_Get_DevNode_Registry_Property[_Ex]A/W and CM_Set_DevNode_Registry_Property[_Ex]A/W partially.
svn path=/trunk/; revision=16964
2005-08-01 19:42:19 +00:00
Filip Navara
2b6bb7a79e Don't fallback to linear search for exports, it's not needed.
svn path=/trunk/; revision=16963
2005-08-01 18:11:54 +00:00
Filip Navara
1dfc824d91 Don't do linear search for exports, it's not needed.
svn path=/trunk/; revision=16962
2005-08-01 18:04:49 +00:00
Filip Navara
aad6d78c8c Remove the PESUM tool, the PEFIXUP tool can be used instead.
svn path=/trunk/; revision=16961
2005-08-01 17:58:47 +00:00
Filip Navara
28aff5352b Add new PEFIXUP tool and use it in the build system.
svn path=/trunk/; revision=16960
2005-08-01 17:56:41 +00:00
Thomas Bluemel
0c3b9e8545 print percentage character for the memory load in debug message (GlobalMemoryStatusEx). Suggested by WaxDragon
svn path=/trunk/; revision=16959
2005-08-01 16:28:11 +00:00
Emanuele Aliberti
e466431f36 RBuild 'project' document DTD (rough draft).
svn path=/trunk/; revision=16958
2005-08-01 16:11:29 +00:00
Emanuele Aliberti
178f4d48e9 Replace 'Value' with 'Content' as per XML spec.
Minor changes.

svn path=/trunk/; revision=16957
2005-08-01 16:08:29 +00:00
Thomas Bluemel
9c8224926f revert my last changes, it seems to cause problems when building on *nix
svn path=/trunk/; revision=16956
2005-08-01 15:21:40 +00:00
Filip Navara
7f3c5f0932 Various LdrGetProcedureAddress fixes:
- Fix the binary search limits.
- Fix the comparsion of names (previously "XXX" and "XXXyyy" would be considered identical) and make it case sensitive.
- Remove non-binary search, it's not needed.
- Don't use ULONG to store pointers.

svn path=/trunk/; revision=16955
2005-08-01 13:50:07 +00:00
Emanuele Aliberti
7c6d6d777a First attempt to make the XML data we feed rbuild conforming the XInclude spec.
svn path=/trunk/; revision=16954
2005-08-01 13:34:33 +00:00
Thomas Bluemel
91d235bf79 fixed uninitialized variable warning
svn path=/trunk/; revision=16953
2005-08-01 13:27:02 +00:00
Thomas Bluemel
d613b54421 revert back to -Os because of some buggy versions of GCC
svn path=/trunk/; revision=16952
2005-08-01 13:01:58 +00:00
Thomas Bluemel
5d4a08e403 compile release builds with -O3 instead of -Os because it catches more mistakes
svn path=/trunk/; revision=16951
2005-08-01 12:57:34 +00:00
Emanuele Aliberti
305aa85bd7 Add reference to the 'compilerflag' element.
Add reference to the 'group' element.
Add Parents section to more elements.

svn path=/trunk/; revision=16950
2005-08-01 12:54:50 +00:00
Thomas Bluemel
4ae7cce227 temporarily disable -Werror for tools, there seem to be differences between versions of gcc issuing some warnings
svn path=/trunk/; revision=16949
2005-08-01 12:51:20 +00:00
Filip Navara
7fafe4314a Pass correct pool type to PsChargePoolQuota.
svn path=/trunk/; revision=16948
2005-08-01 11:59:22 +00:00
Thomas Bluemel
1ae15efc80 don't count references for the default quota block and fixed warnings
svn path=/trunk/; revision=16947
2005-08-01 11:58:47 +00:00
Filip Navara
f4ff4e648a Fix a typo. Thanks to Hervé Poussineau for noticing.
svn path=/trunk/; revision=16946
2005-08-01 11:46:30 +00:00
Filip Navara
9b42911e3d Add pool type masks and use them.
svn path=/trunk/; revision=16945
2005-08-01 11:33:15 +00:00
Filip Navara
981faa01eb Fix definition of EPROCESS_QUOTA_ENTRY.
svn path=/trunk/; revision=16944
2005-08-01 11:26:53 +00:00
Filip Navara
160b65f87e Setup quota blocks for processes.
svn path=/trunk/; revision=16943
2005-08-01 11:21:42 +00:00
Filip Navara
f28b5f7302 Setup quota blocks for processes.
svn path=/trunk/; revision=16942
2005-08-01 11:20:44 +00:00
Thomas Bluemel
50398b7a03 define common build flags so they can easily be changed for all tools
svn path=/trunk/; revision=16941
2005-08-01 10:58:28 +00:00
Thomas Bluemel
0bd9fc8ef1 fixed some warnings when compiling with -O3
svn path=/trunk/; revision=16940
2005-08-01 10:21:20 +00:00
Filip Navara
73113cc87d Fix prototype of RtlCreateHeap and respect the CommitRoutine if passed. Also fix the heap manager to be usable by kernel mode code.
svn path=/trunk/; revision=16939
2005-08-01 10:19:22 +00:00
Thomas Bluemel
f928348d93 fixed some uninitialized variables warnings
svn path=/trunk/; revision=16938
2005-08-01 09:23:13 +00:00
Hervé Poussineau
fc10b038f5 Add back changes of revision 16783. Sorry Alex
svn path=/trunk/; revision=16937
2005-08-01 09:08:07 +00:00
Filip Navara
f89cc27ede Cleanup SID initialization and fill all SeExports fields.
svn path=/trunk/; revision=16936
2005-08-01 09:05:20 +00:00
Filip Navara
e18c5c1218 Fix LdrAccessResource for ordinary mapped files.
svn path=/trunk/; revision=16935
2005-08-01 08:58:15 +00:00
Filip Navara
4f9fb92e50 Fix DPRINT.
svn path=/trunk/; revision=16934
2005-08-01 08:56:51 +00:00
Filip Navara
a4ba1bf284 Fix paramater validation and pointer manipulation in RtlAddAce.
svn path=/trunk/; revision=16933
2005-08-01 08:55:22 +00:00
Filip Navara
ff9444533e Fix locking in RtlPinAtomInAtomTable.
svn path=/trunk/; revision=16932
2005-08-01 08:50:30 +00:00
Hervé Poussineau
515aaf6a7e Merge from Wine:
- Add traces at the start of functions
- (reported by Matthew Davison)
  Preserve the spaces before an opening quote in the middle of a token.
- Matthew Davison <mjd77@cam.ac.uk>
  Stub out the error dialog functions.
  Modify the default callbacks to call these for Delete and Rename errors.
  Modify the default callbacks to ignore file missing errors when deleting files.
- Stefan Huehner <stefan@huehner.org>
  Fix some more -Wmissing-declarations warnings.
- Mike McCormack <mike@codeweavers.com>
  gcc 4.0 -Wpointer-sign fixes (Reg* functions).
- Detlef Riekenberg <wine.dev@web.de>
  SetupSetFileQueueAlternatePlatform{AW} implemented as stub.

svn path=/trunk/; revision=16931
2005-08-01 07:46:06 +00:00
Hartmut Birr
15a077c46a Used MmFreeVirtualMemory in MmDeleteTeb because MmFreeMemoryAreaByPtr doesn't free the region list entries.
svn path=/trunk/; revision=16930
2005-08-01 00:06:18 +00:00
Thomas Bluemel
3a76f91710 fixed some warnings when compiling with -O3
svn path=/trunk/; revision=16928
2005-07-31 23:39:05 +00:00
Thomas Bluemel
9804ebb026 fixed uninitialized variable warning
svn path=/trunk/; revision=16927
2005-07-31 21:51:04 +00:00
Hartmut Birr
2f708e9f44 - Changed BasepConvertUnicodeEnvironment to obtain the calculated length.
- Optimized the calculation of the environment length.  
- Disable the execution of vdm for com-files, because it breaks the execution of batch files.
- Removed an unused variable.


svn path=/trunk/; revision=16926
2005-07-31 21:27:56 +00:00
Hartmut Birr
bec5197e46 Don't use INVALID_HANDLE_VALUE as HANDLE_DETACH_PROCESS.
svn path=/trunk/; revision=16925
2005-07-31 21:24:35 +00:00
Hartmut Birr
d20bf6a780 - Implemented CsrDuplicateHandleTable.
- Duplicate the handle table in CsrCreateProcess if the caller wants to inherit all handles.  
- Don't allocate new handles in CsrAllocConsole if the caller wants to reuse a console and if the parent handles were inherited.  
- Do only allow to reuse the console from parent.

svn path=/trunk/; revision=16924
2005-07-31 21:23:40 +00:00
Hartmut Birr
22332a5bae Fixed a typo.
svn path=/trunk/; revision=16923
2005-07-31 21:02:05 +00:00
Thomas Bluemel
918a8eeeb5 fixed typo in a comment
svn path=/trunk/; revision=16922
2005-07-31 20:35:08 +00:00
Thomas Bluemel
197982e303 fixed success check in RtlpCreateAtomHandle, ExCreateHandle returns EX_INVALID_HANDLE in case of failure. Thx to Filip
svn path=/trunk/; revision=16921
2005-07-31 18:52:36 +00:00
Martin Fuchs
611498e8d2 set svn:eol-style to native
svn path=/trunk/; revision=16920
2005-07-31 12:11:56 +00:00
Filip Navara
f2f5fc2afb Fix NULL-terminating of symbol image names.
svn path=/trunk/; revision=16919
2005-07-31 11:06:50 +00:00
Filip Navara
d6820f5fff Implement the magic flag in RtlImageDirectoryEntryToData and make the Size parameter non-optional.
svn path=/trunk/; revision=16918
2005-07-31 10:22:29 +00:00
Filip Navara
5b7fe4e1d2 Revert #16904 and clarify the comment about the race condition.
svn path=/trunk/; revision=16917
2005-07-31 09:48:12 +00:00
Martin Fuchs
6859ea0c71 set eol-style for all remaining XML files
svn path=/trunk/; revision=16916
2005-07-31 08:33:39 +00:00
Emanuele Aliberti
6540f242bf Document pch and linkerflag elements.
Rename Elements sections into Children.
Add Parents sections for some elements.
Make link work (tested with DBK=>HTML).

svn path=/trunk/; revision=16915
2005-07-31 07:08:15 +00:00
Emanuele Aliberti
90d0826221 Turn NTDLL.DLL a SUBSYSTEM_WINDOWS_CUI PE image (Casper Hornstrup suggested to use -nostartfiles, for the compilation to succeed).
svn path=/trunk/; revision=16914
2005-07-31 07:07:26 +00:00
Alex Ionescu
2f532c71f4 - Silence some debug messages
- Modify base address of iphlpapi so it doesn't get relocated
- Implemented SetTaskmanWindow and SetProgmanWindow

svn path=/trunk/; revision=16913
2005-07-31 06:22:05 +00:00
Alex Ionescu
a5bc0e6462 Define NDEBUG
svn path=/trunk/; revision=16912
2005-07-31 05:46:42 +00:00
Alex Ionescu
838cc74dd0 Silence debug messages
svn path=/trunk/; revision=16911
2005-07-31 05:43:10 +00:00
Alex Ionescu
3f30061228 Fix error handle output.
svn path=/trunk/; revision=16910
2005-07-31 03:27:04 +00:00
James Tabor
29c3f9ae54 Correct build name. Should be Edit.exe.
svn path=/trunk/; revision=16909
2005-07-31 00:17:57 +00:00
Alex Ionescu
7cf9ad08e3 Don't use CSRSS handles if we alreay have some (so we can inherit file handles, etc)
svn path=/trunk/; revision=16908
2005-07-30 23:57:14 +00:00
Alex Ionescu
eb86553bed Decrease quantum during wait and during no-wait... mentionned by Shmuel Baron
svn path=/trunk/; revision=16907
2005-07-30 23:43:45 +00:00
Filip Navara
08fe62965f Remove code that I accidently commited in revision 16905.
svn path=/trunk/; revision=16906
2005-07-30 23:16:03 +00:00
Filip Navara
9f784a4848 Ignore the "magic flag" in RtlImageDirectoryEntryToData.
svn path=/trunk/; revision=16905
2005-07-30 23:08:26 +00:00
Filip Navara
34674d7646 Fix a race condition in quantum code. Spotted by Shmuel Baron.
svn path=/trunk/; revision=16904
2005-07-30 23:06:46 +00:00
Eric Kohl
46be8912e3 - Support conformant arrays as in and out parameters.
- Fix message buffer size calculation for client and server.

svn path=/trunk/; revision=16903
2005-07-30 19:31:52 +00:00
Aleksey Bragin
237b710b56 Move NDEBUG higher so it actually works and doesn't output all debug messages (fix suggested by hpoussin).
svn path=/trunk/; revision=16902
2005-07-30 19:06:53 +00:00
Hartmut Birr
2e4f8bfdb1 If a mutex already exist, open it instead of create.
svn path=/trunk/; revision=16901
2005-07-30 19:03:34 +00:00
Hartmut Birr
65c8fe4c15 Initialized Basep8BitStringToUnicodeString
svn path=/trunk/; revision=16900
2005-07-30 19:00:33 +00:00
Hartmut Birr
2316f95498 Check if the cpu supports the pae mode.
svn path=/trunk/; revision=16899
2005-07-30 18:55:25 +00:00
Hartmut Birr
dce178cf7c Made cmd unicode compatible.
svn path=/trunk/; revision=16898
2005-07-30 18:52:33 +00:00
Hartmut Birr
dc648e2083 Use FileGetString instead of ReadFile, because ReadFile doesn't return a null terminated string.
svn path=/trunk/; revision=16897
2005-07-30 18:51:43 +00:00
Hartmut Birr
498a7947fe Put FindClose onto the correct position.
svn path=/trunk/; revision=16896
2005-07-30 18:32:18 +00:00
Emanuele Aliberti
3e4d8abf36 Create a subdir for rbuild documentation.
Move rbuild.txt there.
Convert rbuild.txt in Docbook.
Fix some minor inconsistencies in the element reference.

svn path=/trunk/; revision=16895
2005-07-30 16:53:09 +00:00
Filip Navara
ca071d7417 - Replace MODULE_OBJECT with LDR_DATA_TABLE_ENTRY.
- Export PsGetCurrentThread and PsGetCurrentProcess.

svn path=/trunk/; revision=16894
2005-07-30 16:25:35 +00:00
Hartmut Birr
f25c9b142b Reverted back to 16420, because it contains too many bugs.
svn path=/trunk/; revision=16893
2005-07-30 13:49:41 +00:00
Magnus Olsen
c34da245a4 fix waring kdump.c:246: warning: 'OldIrql' may be used uninitialized for dgb=0;
svn path=/trunk/; revision=16892
2005-07-30 13:44:07 +00:00
James Tabor
050a6ba318 Implement SetMenuItemBitmaps and fix bool flags.
svn path=/trunk/; revision=16891
2005-07-30 00:52:22 +00:00
James Tabor
af30e6342b Patch by Dmitry Timoshkov dmitry@baikal.ru. Take into account CS_NOCLOSE window class style and SC_CLOSE system menu item state while adding MDI system menu buttons and generating WM_SYSCOMMAND messages.
svn path=/trunk/; revision=16890
2005-07-29 23:37:11 +00:00
James Tabor
8fe920ee49 Show SetMenuItemInfoA&W implemented.
svn path=/trunk/; revision=16889
2005-07-29 23:15:01 +00:00
Thomas Bluemel
a37c5005c7 make the telProcessNetwork() thread function STDCALL!
svn path=/trunk/; revision=16888
2005-07-29 23:04:48 +00:00
Steven Edwards
62e33ea5ff dos line endings
svn path=/trunk/; revision=16887
2005-07-29 23:03:42 +00:00
Thomas Bluemel
f5bba7d9af - simplified BasepAnsiStringToHeapUnicodeString
- fixed linking (global variable Basep8BitStringToUnicodeString was missing)
- fixed typo in the debug print in SetThreadUILanguage

svn path=/trunk/; revision=16886
2005-07-29 23:03:12 +00:00
Steven Edwards
4214fc67a7 turn on command options
svn path=/trunk/; revision=16885
2005-07-29 23:01:16 +00:00
Steven Edwards
42f41fa7c2 imported mkdosfs, added getopt.c for use with dosfsck
svn path=/trunk/; revision=16884
2005-07-29 22:53:33 +00:00
Steven Edwards
c7cd667539 Major fixes for partitions larger than 4GB. Thanks to Tamlin again.
svn path=/trunk/; revision=16883
2005-07-29 22:22:12 +00:00
Hartmut Birr
7006f75f63 - Copy all data in FindFirstFileA.
- Changed back to the old code in FindFirstFileExW, because too many things are broken or useless.

svn path=/trunk/; revision=16882
2005-07-29 21:59:06 +00:00
Hartmut Birr
ade86ba7d7 Fixed some bugs in CreateProcessA which was introduced by r16730.
svn path=/trunk/; revision=16881
2005-07-29 21:55:09 +00:00
Filip Navara
7559937efb Fix definiton of DPRINT1 for non-DBG build.
svn path=/trunk/; revision=16879
2005-07-29 18:11:04 +00:00
Thomas Bluemel
e069829247 dynamically import functions from ntdll on startup
svn path=/trunk/; revision=16878
2005-07-29 18:01:01 +00:00
Thomas Bluemel
209e4c128e silence debug messages when calling the SEH handler
svn path=/trunk/; revision=16877
2005-07-29 17:35:22 +00:00
Thomas Bluemel
23d295c1ca fix the SetThreadUILanguage stub
svn path=/trunk/; revision=16876
2005-07-29 17:31:59 +00:00
Magnus Olsen
b2c6d0e0d9 Implement GdiEntry14 (party tested see older commit msg)
svn path=/trunk/; revision=16875
2005-07-29 17:11:11 +00:00
Thomas Bluemel
af45d81b0e don't limit read/write access for kdb to umode mem
svn path=/trunk/; revision=16874
2005-07-29 16:53:27 +00:00
Steven Edwards
7917a7f21d Fixes by tamlin. It really works now.
svn path=/trunk/; revision=16873
2005-07-29 16:48:09 +00:00
Alex Ionescu
6aa9f0c2da - Don't always print TRACE/WARN on WINE DLLs. Thanks to Filip Navara.
svn path=/trunk/; revision=16872
2005-07-29 16:06:13 +00:00
Emanuele Aliberti
f781c38507 Even if the Session Manager is a degenerate subsystem, keep its include files in the include/subsys tree.
svn path=/trunk/; revision=16871
2005-07-29 15:17:25 +00:00
Thomas Bluemel
3536691731 define __NO_CTYPE_INLINES to get DBG:=0 builds work again
svn path=/trunk/; revision=16870
2005-07-29 15:11:26 +00:00
Filip Navara
9697817837 Stop abusing the non-paged pool.
svn path=/trunk/; revision=16869
2005-07-29 15:08:20 +00:00
Filip Navara
dd2dc39610 Fix the file to be actually compilable (with GAS 2.16.91).
svn path=/trunk/; revision=16868
2005-07-29 15:00:02 +00:00
Alex Ionescu
1afce7ac9b - Add back and fix useful dprint.
svn path=/trunk/; revision=16867
2005-07-29 14:56:38 +00:00
Casper Hornstrup
62104039bc Add stylesheet header to xml
svn path=/trunk/; revision=16866
2005-07-29 14:36:11 +00:00
Filip Navara
be84f5ac52 IoAllocateAdapterChannel should set CurrentIrp field in the wait context block.
svn path=/trunk/; revision=16865
2005-07-29 13:58:25 +00:00
Emanuele Aliberti
852cd1035f Add posix, os2, and vms optional modules.
svn path=/trunk/; revision=16864
2005-07-29 13:56:00 +00:00
Filip Navara
12e1f03a17 IoAllocateAdapterChannel should set CurrentIrp field in the wait context block.
svn path=/trunk/; revision=16863
2005-07-29 13:54:13 +00:00
Thomas Bluemel
7fdc3cb55b Saveliy Tretiakov <saveliyt@mail.ru>:
serialui returns error codes directly.

svn path=/trunk/; revision=16862
2005-07-29 13:50:05 +00:00
Emanuele Aliberti
91ae1adf27 More details in the rosapps makefile message.
Split sysutils.

svn path=/trunk/; revision=16861
2005-07-29 13:46:03 +00:00
Filip Navara
93155e947c Initialize DescriptorTranslated->u.Interrupt.Level before calling HalGetInterruptVector. Remember, casting hides bugs! Debugged by Hervé Poussineau.
svn path=/trunk/; revision=16860
2005-07-29 13:30:22 +00:00
Thomas Bluemel
bbdbd036ca added a forward declaration to _DRIVE_LAYOUT_INFORMATION(_EX). this fixes building io/disk.c with GCC4. The reason is that the structures were used in function prototypes, which are forward declarations in the scope of the function declaration only. Since the structures were defined later, the implementations of the functions using them, actually used the defined structure types, which were different from the forward declarations in the function prototypes (even though they have the same name, they just differ in their scope). This caused GCC to warn because of incompatible function prototypes and incompatible pointer types passed to those functions
svn path=/trunk/; revision=16859
2005-07-29 13:28:37 +00:00
Filip Navara
05bc18eb6c Properly propagate the SL_PENDING_RETURNED flag to stack locations in IofCompleteRequest and fix the priority boost for master IRPs.
svn path=/trunk/; revision=16858
2005-07-29 13:28:34 +00:00
James Tabor
714eb0ec09 Sorry for the mess. Fixup debug prints.
svn path=/trunk/; revision=16857
2005-07-29 12:20:28 +00:00
Casper Hornstrup
14344dd176 Display implemented/unimplemented icon for functions
svn path=/trunk/; revision=16856
2005-07-29 12:19:26 +00:00
Casper Hornstrup
e4bb3b1573 Browser XSLT support. Optimize for size.
svn path=/trunk/; revision=16855
2005-07-29 11:40:01 +00:00
Emanuele Aliberti
3b17d563fa Various fixex to make HEAD compile.
I hope I did break nothing.

svn path=/trunk/; revision=16854
2005-07-29 10:04:38 +00:00
Emanuele Aliberti
c20aa760c5 Add PORT_MESSAGE_TYPE macro.
svn path=/trunk/; revision=16853
2005-07-29 09:51:08 +00:00
Emanuele Aliberti
62e6228e7e Various fixes to DPRINT parameter list.
Some were #if0'ed because they referenced non existing variables or parameters.

svn path=/trunk/; revision=16852
2005-07-29 09:30:41 +00:00
Emanuele Aliberti
3bf350101f [11:21] EmanueleAliberti: Usurp: drivers/dd/beep/bbep.c:178: only one DPRINT was #if 0'ed
[11:22]	Usurp: EmanueleAliberti: its a 2 line change
 	[11:22]	Usurp: <Usurp> -        pbsp->Frequency,
 	[11:22]	Usurp: <Usurp> -        pbsp->Duration);
 	[11:22]	Usurp: <Usurp> +        BeepParam->Frequency,
 	[11:22]	Usurp: <Usurp> +        BeepParam->Duration);

svn path=/trunk/; revision=16851
2005-07-29 09:25:26 +00:00
Alex Ionescu
ddb24faedc - Fix debug header, spottted by Gunnar
svn path=/trunk/; revision=16850
2005-07-29 00:14:05 +00:00
Thomas Bluemel
a661e95cdf clear out the lower 2 bits of a pid before using it to calculate the hash as they may vary
svn path=/trunk/; revision=16849
2005-07-28 23:29:44 +00:00
Thomas Bluemel
d0f433ab3a don't generate meaningless lvalue typecast
svn path=/trunk/; revision=16848
2005-07-28 23:22:47 +00:00
Thomas Bluemel
f2c7927059 discard explicitly returned value
svn path=/trunk/; revision=16847
2005-07-28 23:19:22 +00:00
Alex Ionescu
b5027d8a17 - Fix/update w32api PE headers
- Implement proper PEB creation, set all necessary fields and read data from PE Header and Config Directory. Fixes "corruption" issue with console apps.

svn path=/trunk/; revision=16846
2005-07-28 22:43:24 +00:00
Magnus Olsen
01cbbcac9c Implement GdiEntry13, GdiEntry15, GdiEntry16 (all are party tested)
svn path=/trunk/; revision=16845
2005-07-28 22:34:11 +00:00
Magnus Olsen
480b18f588 Implement GdiEntry12 (8 of 16 are done and party tested)
svn path=/trunk/; revision=16844
2005-07-28 22:08:29 +00:00
Magnus Olsen
6f8996d82e implement GdiEntry 8, Implement GdiEntry 10
svn path=/trunk/; revision=16843
2005-07-28 21:55:51 +00:00
Magnus Olsen
01918f37b1 thx irc : unC0Rr did sport typo fault in GdiEntry3
svn path=/trunk/; revision=16842
2005-07-28 21:34:00 +00:00
Magnus Olsen
52754f93e1 implement GdiEntry7 (some part is untested)
svn path=/trunk/; revision=16841
2005-07-28 21:08:55 +00:00
Magnus Olsen
642c3770b3 implement GdiEntry6 (party untested)
svn path=/trunk/; revision=16840
2005-07-28 21:00:24 +00:00
Magnus Olsen
a5fb10e380 delete ddentry.h for it was it was party copy of include/win32k/ntdraw.h, change to ros coding style forgot about that. Implement GdiEntry5 (3 of 16 are done and untested)
svn path=/trunk/; revision=16839
2005-07-28 20:35:53 +00:00
Magnus Olsen
b5f3ac7964 set eol style native
svn path=/trunk/; revision=16838
2005-07-28 19:37:36 +00:00
Magnus Olsen
4d4bdde2eb implemet GdiEntry3 (2 of 16 are now implement) but some part is still untested
svn path=/trunk/; revision=16837
2005-07-28 19:28:25 +00:00
Filip Navara
f99da74356 Add definition of PI_RESOURCE_ARBITER_ENTRY.
svn path=/trunk/; revision=16836
2005-07-28 19:23:11 +00:00
Steven Edwards
6d7b5426e7 some cleanups and I hope closer to making it work
svn path=/trunk/; revision=16835
2005-07-28 18:53:35 +00:00
Magnus Olsen
c33b209409 implement GDIEntry1 of 16, the code is bit untested, we can not test it until all are in place and win32k/ntdraw got some stub remove. when all GdiEntry1-16 we are compatble with ms directdraw1-7 interface in gdi32.dll
svn path=/trunk/; revision=16834
2005-07-28 18:45:58 +00:00
Steven Edwards
1aa3ba72f9 fixed opening of the device
svn path=/trunk/; revision=16833
2005-07-28 18:34:01 +00:00
Magnus Olsen
fea82752a1 add copyright note
svn path=/trunk/; revision=16832
2005-07-28 16:52:15 +00:00
Magnus Olsen
0ee80aa69e Do not do syscall. redirect the call to DdEntry1-56 in gdi32.dll it make our d3d8thk windows xp compatible.
svn path=/trunk/; revision=16831
2005-07-28 16:44:25 +00:00
Magnus Olsen
7b99ee39f8 Add DdEntry 1-56 it is pure syscall to win32k/ntdraw. Windows XP and higher does have this entry. And thanks to that we can make directdraw Windows XP or higher compatible. But rember alot of directdraw api are still stub in win32k/ntdraw.
svn path=/trunk/; revision=16830
2005-07-28 16:42:06 +00:00
Emanuele Aliberti
ab051595b1 Fix compilation (as hinted by Alex).
svn path=/trunk/; revision=16828
2005-07-28 11:48:58 +00:00
Casper Hornstrup
509048a223 Don't clean alias modules
svn path=/trunk/; revision=16827
2005-07-28 10:45:21 +00:00
Alex Ionescu
f15bd378aa - Start of fixing CreateProcess's problems. Implemented the console creation as it should be done (not quite, but much closer to design then before). There are still some problems (input/output handle inconsitencies), I am currently working on these issues;
- Some debug header cleanup.
 - Use the proper debug macros in some of the network code, shuts up a lot of spam when debugging for those modules wasn't enabled.

svn path=/trunk/; revision=16826
2005-07-28 04:12:43 +00:00
Steven Edwards
7851e816be fixed building dosfsck
svn path=/trunk/; revision=16825
2005-07-28 03:10:35 +00:00
Steven Edwards
ab92efdeca added port of dosfsck. Does not work yet as I cannot figure how to open the device. Win32 file access code is included ported from mkdosfs.c
svn path=/trunk/; revision=16824
2005-07-28 02:37:42 +00:00
Thomas Bluemel
71a12f48d0 implemented TreeResetNamedSecurityInfo and forward it to the MARTA provider
svn path=/trunk/; revision=16823
2005-07-27 23:11:38 +00:00
Alex Ionescu
42a3e034f8 - Fix incorrect definitions
svn path=/trunk/; revision=16822
2005-07-27 21:48:47 +00:00
Thomas Bluemel
9dabbd25fc implemented GetExplicitEntriesFromAcl and forward it to the MARTA provider
svn path=/trunk/; revision=16816
2005-07-27 20:24:11 +00:00
Alex Ionescu
6870957b9a - Fix included headers in GDI for PSDK compatibility
- Fix some incorrect definitions.
 - Remove more quintuplicated header nonsense...

svn path=/trunk/; revision=16815
2005-07-27 20:09:46 +00:00
Casper Hornstrup
f5ef0f7c0f Add Revison ISO interface
svn path=/trunk/; revision=16814
2005-07-27 20:09:19 +00:00
Casper Hornstrup
efcdb62b24 Move API status stylesheet
svn path=/trunk/; revision=16813
2005-07-27 20:06:18 +00:00
Casper Hornstrup
4f757b3d6e Add API status scripts
svn path=/trunk/; revision=16812
2005-07-27 20:04:48 +00:00
Alex Ionescu
ea3d8b6b8d - Fix debug header nonsense
- Fix some w32api definitions
 - MSVC/PSDK Compatibility fixes.
 - Clean up user32 headers for greater PCH usage.

svn path=/trunk/; revision=16811
2005-07-27 19:21:46 +00:00
Casper Hornstrup
24f28bb15b Put halmp.dll on CD
svn path=/trunk/; revision=16810
2005-07-27 19:10:57 +00:00
Casper Hornstrup
dc0201cafa Update API status to SVN
svn path=/trunk/; revision=16809
2005-07-27 18:46:52 +00:00
Casper Hornstrup
cfa4cb7478 rgenstat makefile
svn path=/trunk/; revision=16808
2005-07-27 18:46:27 +00:00
Thomas Bluemel
d04a2e183c implemented GetInheritanceSource and FreeInheritedFromArray and forward them to the MARTA provider
svn path=/trunk/; revision=16807
2005-07-27 18:24:18 +00:00
Thomas Bluemel
a3b5b6b8a8 implemented SetEntriesInAclA/W and forward the call to the MARTA provider
svn path=/trunk/; revision=16806
2005-07-27 17:20:57 +00:00
Steven Edwards
0acd7d503b revert the ctype.h changes to wine dlls
svn path=/trunk/; revision=16805
2005-07-27 17:06:06 +00:00
Alex Ionescu
298b0372cd - Include ctype.h by default.
svn path=/trunk/; revision=16804
2005-07-27 16:55:40 +00:00
Alex Ionescu
52973bb61c - Use inline function instead of macro.
svn path=/trunk/; revision=16803
2005-07-27 16:34:14 +00:00
Alex Ionescu
5af8e51ad1 - Use PCH everywhere to increase compile speed
- Some PSDK compatibility.

svn path=/trunk/; revision=16802
2005-07-27 16:18:06 +00:00
Alex Ionescu
c91952309a - Combine some assembly files together and move them to rtl
- Convert rtl memory functions written by Greatlord to GAS and properly add them into build system (not used yet since they haven't been tested)
 - Misc cleanups

svn path=/trunk/; revision=16801
2005-07-27 16:11:29 +00:00
Aleksey Bragin
6cc3428516 Timer modifications, turning on debug messages, implementing more functions (but spinlocks are disabled now).
Now it detects attached device(s) and show info in debug messages.

svn path=/trunk/; revision=16800
2005-07-27 14:57:33 +00:00
Alex Ionescu
ad3464c9a6 - Some more PSDK compatibility fixes
- Misc cleanup...

svn path=/trunk/; revision=16792
2005-07-27 06:18:52 +00:00
Martin Fuchs
b12a9db3c1 fix last patch: LPWSTR -> LPTSTR
svn path=/trunk/; revision=16791
2005-07-27 05:42:33 +00:00
Alex Ionescu
a9d517d95c - Fix all ACPI warnings and add default case for unhandled ACPI cases.
svn path=/trunk/; revision=16790
2005-07-27 05:09:05 +00:00
Alex Ionescu
14e0bc6128 - Fix warnings
- Remove code that isn't used in ReactOS because our _SHExpandEnvironmentStrings was completely re-written and thus doesn't use the two helper functions that WINE's _SHExpandEnvironmentStrings does.

svn path=/trunk/; revision=16789
2005-07-27 05:08:32 +00:00
Alex Ionescu
bafc9b7881 - Fix warnings
svn path=/trunk/; revision=16788
2005-07-27 02:06:31 +00:00
Alex Ionescu
3028ef48f1 - Fix warnings
svn path=/trunk/; revision=16787
2005-07-27 02:04:55 +00:00
Alex Ionescu
d6e5f3f636 - Fix warnings
svn path=/trunk/; revision=16786
2005-07-27 02:03:01 +00:00
Alex Ionescu
97ff2de432 - Fix warnings
svn path=/trunk/; revision=16785
2005-07-27 02:01:02 +00:00
Alex Ionescu
65282e530e - Fix warnings
svn path=/trunk/; revision=16784
2005-07-27 01:59:41 +00:00
Alex Ionescu
e1e6c8844c - Fix warnings
svn path=/trunk/; revision=16783
2005-07-27 01:58:34 +00:00
Alex Ionescu
1f1ef9eab3 - Fix broken IInternetZoneManagerVtbl definition.
svn path=/trunk/; revision=16782
2005-07-27 01:56:55 +00:00
Alex Ionescu
e618d8965d - Fix export definition
svn path=/trunk/; revision=16781
2005-07-27 01:52:27 +00:00
Alex Ionescu
42fb82a647 - Fix warnings
svn path=/trunk/; revision=16780
2005-07-27 01:50:31 +00:00
Alex Ionescu
edcb998459 - Fix warnings
svn path=/trunk/; revision=16779
2005-07-27 01:44:10 +00:00
Alex Ionescu
59d0d06535 - Fix warnings
svn path=/trunk/; revision=16778
2005-07-27 01:40:13 +00:00
Alex Ionescu
8f5a8d1f57 - Use correct wine debug functions
svn path=/trunk/; revision=16777
2005-07-27 01:38:51 +00:00
Magnus Olsen
6ea556e014 fix errorlevel for type, the r16766 was Brandon Turner patch sorry I forgt menoty his name.
svn path=/trunk/; revision=16776
2005-07-27 01:38:00 +00:00
Thomas Bluemel
961df2a275 export these stubs: AddAccessAllowedObjectAce, AddAccessDeniedObjectAce, AddAuditAccessObjectAce, CreatePrivateObjectSecurityEx, CreatePrivateObjectSecurityWithMultipleInheritance, ConvertToAutoInheritPrivateObjectSecurity, EqualDomainSid, GetWindowsAccountDomainSid and CreateWellKnownSid
svn path=/trunk/; revision=16775
2005-07-27 01:31:34 +00:00
Alex Ionescu
020c2e8477 - Fix warnings
svn path=/trunk/; revision=16774
2005-07-27 01:26:16 +00:00
Alex Ionescu
ffcb5d176a - Fix warnings
svn path=/trunk/; revision=16773
2005-07-27 01:22:46 +00:00
Alex Ionescu
2596f83747 - Fix warnings.
svn path=/trunk/; revision=16772
2005-07-27 01:14:00 +00:00
Alex Ionescu
71333e755e - Add wine_dbgstr_w
- Revert changes, msiexec is shared.

svn path=/trunk/; revision=16771
2005-07-27 01:12:53 +00:00
Alex Ionescu
0359f3c1eb - Fix warnings
- Print unicode strings normally with %S instead of wine macro.

svn path=/trunk/; revision=16770
2005-07-27 01:09:38 +00:00
Alex Ionescu
bbd697daa6 - Fix warnings
- Revert to wZ, gcc is being stupid.

svn path=/trunk/; revision=16769
2005-07-27 01:02:51 +00:00
Alex Ionescu
c8370e3506 - Fix warnings
svn path=/trunk/; revision=16768
2005-07-27 00:55:36 +00:00
Alex Ionescu
e5d3501d91 - Fix warnings
svn path=/trunk/; revision=16767
2005-07-27 00:54:07 +00:00
Magnus Olsen
b4ee0d0b03 update the english text for type
svn path=/trunk/; revision=16766
2005-07-27 00:50:24 +00:00
Magnus Olsen
a06de608ff add /P as param for Type, from PCDOS by Brandon Turner
svn path=/trunk/; revision=16765
2005-07-27 00:05:34 +00:00
Filip Navara
dac7500f25 Do not dereference NULL pointers and this time for real.
svn path=/trunk/; revision=16764
2005-07-26 22:51:03 +00:00
Filip Navara
09e1dd8b9b Do not dereference NULL pointers.
svn path=/trunk/; revision=16763
2005-07-26 22:40:03 +00:00
Thomas Bluemel
cbb15fff51 implemented GetNamedSecurityA/W and SetNamedSecurityInfoA/W and forward them to the MARTA provider
svn path=/trunk/; revision=16762
2005-07-26 22:21:02 +00:00
Hartmut Birr
13b2222c28 reverted last change
svn path=/trunk/; revision=16761
2005-07-26 21:33:38 +00:00
Thomas Bluemel
b0faf4f537 - implemented GetSecurityInfo and SetSecurityInfo which just check and/or transform parameters and pass the call to the MARTA provider
- added missing definitions to w32api

svn path=/trunk/; revision=16760
2005-07-26 21:20:55 +00:00
Thomas Bluemel
5887e9c4c9 added an initial MARTA provider (only two functions stubbed)
svn path=/trunk/; revision=16759
2005-07-26 21:17:06 +00:00
Hartmut Birr
9c8f710c8a Lock the handle table if we trying to get a pointer from a handle.
svn path=/trunk/; revision=16758
2005-07-26 19:46:07 +00:00
Hartmut Birr
2c31fcac60 Used IoQueryFileInformation and IoSetInformation instead of ZwQueryInformationFile and ZwSetInformationFile to remove some overhead.
svn path=/trunk/; revision=16757
2005-07-26 19:38:33 +00:00
Hartmut Birr
522a0e59cd Silence debug messages.
svn path=/trunk/; revision=16756
2005-07-26 19:35:22 +00:00
Hartmut Birr
1bae97d5ce - Remove the permanent flag from an object if ObInserObject failed (in IoCreateFile).
- Bypass the driver for FilePositionInformation and FileAlignmentInformation in NtQueryInformationFile and NtSetInformationFile.

svn path=/trunk/; revision=16755
2005-07-26 19:31:41 +00:00
Hartmut Birr
dd90242aa7 Acquire always the apc lock if we are modifying the apc queue.
svn path=/trunk/; revision=16754
2005-07-26 19:21:27 +00:00
Hartmut Birr
ec8a1499ee - Forgot one change to KeAcquireSpinLockAtDpcLevel.
svn path=/trunk/; revision=16753
2005-07-26 19:15:08 +00:00
Hartmut Birr
3cccb4ec8d - Fixed the broken implementation of KeFlushQueueApc.
- Fixed some locking operations with two spin locks.

svn path=/trunk/; revision=16752
2005-07-26 19:11:25 +00:00
Filip Navara
dfaa3196ee Yet another fix to WinPosActivateOtherWindow, we should search only for top-level windows next to the window we're about to deactivate.
svn path=/trunk/; revision=16751
2005-07-26 19:02:31 +00:00
Filip Navara
b165c36180 Don't steal foreground window focus from other applications in WinPosActivateOtherWindow and remove incorrect code for searching top-most windows.
svn path=/trunk/; revision=16750
2005-07-26 17:46:48 +00:00
Filip Navara
2ce933f05b Fix reverting of focus to owner windows.
svn path=/trunk/; revision=16749
2005-07-26 16:34:48 +00:00
Filip Navara
609a60c719 Add check for global handles to NtGdiDeleteDC, this prevents applications from destroying DCs that are part of DCEs.
svn path=/trunk/; revision=16748
2005-07-26 16:03:46 +00:00
Filip Navara
fc8add5154 Don't use DeleteDC on DC handles returned by GetDC.
svn path=/trunk/; revision=16747
2005-07-26 15:47:26 +00:00
Filip Navara
1d059a1ddf Implement ValidateRect.
svn path=/trunk/; revision=16746
2005-07-26 15:21:41 +00:00
Alex Ionescu
cdfdfa0b8b - Allow file debug prints to happen at IRQL > DISPATCH_LEVEL, but don't queue a work item until we are at <= DISPATCH. Fixes /DEBUGPORT=FILE freeze/crash/bug.
svn path=/trunk/; revision=16745
2005-07-26 15:15:18 +00:00
Alex Ionescu
b8f8df7565 - Various Microsoft DDK/PSDK compatibility fixes and some MSVC stuff too.
- Fix PSECURITY_DESCRIPTOR_RELATIVE names.c
 - Don't use rtltypes.h as a replacement for normal stdlib headers.
 - Fix a HAL header fixme.

svn path=/trunk/; revision=16744
2005-07-26 14:00:45 +00:00
Thomas Bluemel
9acecc8bdd add uxtheme.dll and objsel.dll to the bootcd
svn path=/trunk/; revision=16743
2005-07-26 13:50:18 +00:00
Thomas Bluemel
20dbd58c45 show the object picker dialog when clicking the Add button
svn path=/trunk/; revision=16742
2005-07-26 13:42:15 +00:00
Thomas Bluemel
1d403604a1 import objsel.dll from wine-20050726
svn path=/trunk/; revision=16741
2005-07-26 13:40:31 +00:00
Magnus Olsen
095f3025fb update the En.rc for del by Brandon Turner and me
svn path=/trunk/; revision=16740
2005-07-26 13:24:44 +00:00
Magnus Olsen
06abc8209f Implement /S /F and code clean up by Brandon Turner
svn path=/trunk/; revision=16739
2005-07-26 13:15:50 +00:00
Thomas Bluemel
d7702b47f9 removed some MmCopyTo/FromCaller calls from win32k's GDI
svn path=/trunk/; revision=16738
2005-07-26 12:22:55 +00:00
Filip Navara
e0cd2dc6bf Fix some bugs in DIB mapping code to prevent instant system crashes.
svn path=/trunk/; revision=16737
2005-07-26 11:22:48 +00:00
Filip Navara
11c02111f0 Properly setup the I/O stack location in IopSecurityFile.
svn path=/trunk/; revision=16736
2005-07-26 11:00:15 +00:00
Filip Navara
ead342935a Don't allow setting menu for child windows in IntSetMenu.
svn path=/trunk/; revision=16735
2005-07-26 10:35:13 +00:00
Filip Navara
c5646382a5 #include "csrss.h" -> #include <csrss.h>
svn path=/trunk/; revision=16734
2005-07-26 08:55:25 +00:00
Filip Navara
3f77d0e91e #include "rtl.h" -> #include <rtl.h>
svn path=/trunk/; revision=16733
2005-07-26 08:40:02 +00:00
Filip Navara
d2bc064abf #include "rtl.h" -> #include <rtl.h>
svn path=/trunk/; revision=16732
2005-07-26 08:39:07 +00:00
Alex Ionescu
f3622d33aa - Remove ROSRTL. The era is over. Thanks to Filip for his help during the last month.
svn path=/trunk/; revision=16731
2005-07-26 04:52:11 +00:00
Alex Ionescu
1e8c8e3fe6 - Final ROSRTL removal patch. The next patch will remove the actual library and code.
- Changes:
    - CreateProcess
        * Cleanup creation of the initial thread using new utility functions and remove rosrtl
        * Almost entirely rewrote the function to support features such as:
            - SxS (locally only, patch will follow),
            - SFP (SAFER) (locally only, patch will follow),
            - DllPaths (locally only, patch will follow), 
            - Proper process environment/paramter block creation
            - Proper console handle management (needs more work in kernel32/csr),
            - Tokens/CreateProcessAsUser (locally only, patch will follow), 
            - Simpler code for path lookup, and more robust.
            - Support for "auto-correction" (see Raymond Chen's blog)
            - 16-bit/NE detection
            - A variety of creation flags are now properly supported
            - Added support for an undocumented-yet-known (see comment) shell flag
            - Alert for flags we don't support yet
            - Catch invalid flag combinations and other caller errors
            - Improve and correct path searcing to use documented behaviours
            - Created a multitude of helper functions to make the code easier to read
              and allow them to be used for other apis as time goes on.
    
    - BaseProcessStartup
        * Call NtSetThreadInformation to let the Kernel know of the Thread's Start Address.
        * Correct prototype of Thread Startup function for this case.

This fixes MANY things, some of which may not be evident, and possibly creates regressions which I have not yet seen but will try to correct. Some of these may be caused by the fact that I've seen code send CreateProcessW incorrect flags. Some things of note: DO NOT send partial names as "lpApplicationName". It's not supposed to work unless you're in the same current directory. Also, do NOT send CREATE_UNICODE_ENVIRONMENT if you don't have a unicode environement, and vice-versa. I've seen lots of code doing mistakes related to this. I hope you appreciate this patch and won't all jump on me for possbile regressions :(.

svn path=/trunk/; revision=16730
2005-07-26 04:14:10 +00:00
Alex Ionescu
286cccb1de - Fix compilation if redzone detection is diabled.
svn path=/trunk/; revision=16729
2005-07-26 00:50:17 +00:00
Alex Ionescu
55234f6094 - Don't try to get the length of a possibly empty string. This fixes many menu applications (such as WinRAR). However I'm now getting a bug due to a double-free. It seems a GDI Object is being freed twice. Can anyone check this out please?
svn path=/trunk/; revision=16728
2005-07-26 00:43:19 +00:00
Alex Ionescu
e7c2fa1d9c - Message Queue Fix, resolves a number of application regressions (Total Commander works again, for example). Patch by Hartmut Birr. To be commited into 0.2.7 after more testing.
svn path=/trunk/; revision=16727
2005-07-25 23:19:12 +00:00
Aleksey Bragin
663bb3a53e Fix stupid typo-mistake, which lead to allocating only 4 bytes intead of sizeof(struct pci_pool).
svn path=/trunk/; revision=16726
2005-07-25 21:09:21 +00:00
Filip Navara
38cd13eb67 Build Wine DLLs without the UNICODE and _UNICODE definitions. (Note: The Wine DLLs use A/W functions explicitely, so this doesn't have any performance impact.)
svn path=/trunk/; revision=16725
2005-07-25 20:28:29 +00:00
James Tabor
f04a4eea8c Added more Wine MDI functions. I've tested these for +4 weeks, with Winefile, mdi(mdi test program), and AbiWord. More work is needed.
svn path=/trunk/; revision=16724
2005-07-25 20:07:19 +00:00
Filip Navara
8bac7925c0 Miscellaneous header fixes (packing and TCHAR stuff).
svn path=/trunk/; revision=16723
2005-07-25 20:03:42 +00:00
James Tabor
a2f80d0873 Patch by Robert Shearman rob@codeweavers.com, Use GdiGetCharDimensions Instead of DIALOG_GetCharSize.
svn path=/trunk/; revision=16722
2005-07-25 04:21:29 +00:00
Eric Kohl
971f04ec99 Fix grammar of the size_is attribute so that size_is(*Length) gets accepted.
svn path=/trunk/; revision=16721
2005-07-24 22:17:02 +00:00
Martin Fuchs
66fd6f0880 set eol-style for most xml files
svn path=/trunk/; revision=16720
2005-07-24 21:42:00 +00:00
Martin Fuchs
7944b41ae3 set eol-style for XML files in rosapps
svn path=/trunk/; revision=16719
2005-07-24 21:44:45 +00:00
Martin Fuchs
f6815841ae set eol-style to 'native'
svn path=/trunk/; revision=16718
2005-07-24 21:31:13 +00:00
Martin Fuchs
851bb090ac set eol-style to 'native'
svn path=/trunk/; revision=16717
2005-07-24 21:29:01 +00:00
Steven Edwards
7c343c4a57 fix line ending I hope
svn path=/trunk/; revision=16716
2005-07-24 21:17:54 +00:00
Steven Edwards
ea5ff9f06e added directory.xml for tests
svn path=/trunk/; revision=16715
2005-07-24 18:32:34 +00:00
Hartmut Birr
0dea0a5836 - Removed R_EXTRA_STACK because R_EXTRA_STACK and R_STACK must have the same size.
- Initialized an allocated block completely before release the lock.

svn path=/trunk/; revision=16714
2005-07-24 17:48:52 +00:00
Hervé Poussineau
8c34b25c71 Don't compare GUID strings with wcsicmp, but compare GUID* with IsEqualIID
Directly use HKEY_LOCAL_MACHINE instead of RegOpenKey(HKEY_LOCAL_MACHINE, NULL, ...).
Remove use of UNICODE_NULL
Replace #ifdef __WINE__ by #ifdef __WINESRC__
Fix SetupDiCallClassInstaller prototype (DWORD -> DI_FUNCTION)

Thanks Usurp for your testing on Wine!

This file works now unmodified in Wine. A patch would be soon sent to wine-patches ML.

svn path=/trunk/; revision=16713
2005-07-24 17:21:26 +00:00
Hartmut Birr
6aeadd25fd Fixed the memory allocation in EngCreateEvent.
svn path=/trunk/; revision=16712
2005-07-24 14:08:20 +00:00
Hervé Poussineau
07d3247011 Patch by Andrey Korotaev <unC0Rr@inbox.ru>: Fix scrolling with mouse
This multiplication was deleted when replacing old psaux driver by i8042prt
Fixes bug #652

svn path=/trunk/; revision=16711
2005-07-24 11:59:28 +00:00
Eric Kohl
2763e3353b Implement CM_Get_Device_ID_List_Size_ExA, CM_Get_Device_ID_ExA and CM_Get_Device_ID_List_ExA.
svn path=/trunk/; revision=16710
2005-07-24 11:48:08 +00:00
Thomas Bluemel
45e2c259ef use ZwQueryInformationFile instead of NtQueryInformationFile in IntGdiAddFontResource because we're passing kernel pointers in UserMode
svn path=/trunk/; revision=16709
2005-07-24 09:20:43 +00:00
Thomas Bluemel
1375ddbb83 use ZwQueryInformationFile and ZwSetInformationFile instead of the Nt version since we're passing kernel pointers to them which cause a probe failure in UserMode. This should fix the 1st stage setup
svn path=/trunk/; revision=16708
2005-07-24 09:11:30 +00:00
Steven Edwards
6bdd4f6993 dont try to buid font.c as its a empty file for now
svn path=/trunk/; revision=16707
2005-07-23 17:47:28 +00:00
Maarten Bosma
56ad48118f Added makefile which tell how to compile rosapps.
svn path=/trunk/; revision=16706
2005-07-23 17:45:41 +00:00
Alex Ionescu
7669e8fd6d - Disable APC Queuing & Flush APC queues during thread shutdown.
- Detect if Kernel APCs were pending during thread shutdown.
 - Call Lego Routine, if registered, during thread shutdown.

svn path=/trunk/; revision=16705
2005-07-23 17:40:48 +00:00
Eric Kohl
b244520c5a - Implement CM_Get_Child_Ex, CM_Get_Parent_Ex, CM_Get_Sibling_Ex and CM_Set_DevNode_Problem[_Ex].
- Clean-up indentation.

svn path=/trunk/; revision=16704
2005-07-23 13:43:52 +00:00
Eric Kohl
8b127ceac1 - Fix offset calculation bug in the ProcFormatString.
- Fix offset calculation bug in the marshalling and unmarshalling code.
- Fix typos in the TypeFormatString.
This makes the [string, out, size_is()] parameters work properly.

svn path=/trunk/; revision=16703
2005-07-23 11:55:33 +00:00
Hartmut Birr
95a28ce6c5 Fixed an uninitialized variable error.
svn path=/trunk/; revision=16702
2005-07-23 11:51:47 +00:00
Hartmut Birr
906754b0ed Fixed an uninitialized variable error.
svn path=/trunk/; revision=16701
2005-07-23 11:43:34 +00:00
Hartmut Birr
82cd3d5f80 Split the page fault handler from the trap handler.
svn path=/trunk/; revision=16700
2005-07-23 11:25:12 +00:00
Thomas Bluemel
184ff4dd27 export LsaLookupSids which is required by aclui.dll
svn path=/trunk/; revision=16699
2005-07-23 10:08:15 +00:00
Thomas Bluemel
108b262074 regedit should be installed in %SystemRoot% directly
svn path=/trunk/; revision=16698
2005-07-23 09:58:23 +00:00
Hartmut Birr
683d42211c If a page fault occurs in user mode, we must deliver user mode apc's.
svn path=/trunk/; revision=16697
2005-07-23 08:14:21 +00:00
Magnus Olsen
d5ae40868c last mins bug fix frirc nick jjkola, Jyrki Jaakkola <jjkola@email.com> for move. solve some new bugs. I forget menoter multuser is not done yet. But move folder from a vol to another works. Move need really clean up after his patch.
svn path=/trunk/; revision=16696
2005-07-22 23:58:26 +00:00
Magnus Olsen
6af5a6f78f irc nick jjkola, Jyrki Jaakkola <jjkola@email.com> frist patch solv to move file from a vol to another, and move mulite file same time. (not tested in ros) it works in windows with ros cmd. The patch are not very clean , but it fix alot of bugs also in move.
svn path=/trunk/; revision=16695
2005-07-22 23:15:54 +00:00
Thomas Bluemel
7aad44a4f5 - replaced IopCreateUnicodeString with RtlCreateUnicodeString
- allocate the DriverName from paged pool

svn path=/trunk/; revision=16694
2005-07-22 22:40:54 +00:00
Thomas Bluemel
5518114830 declare RtlDuplicateUnicodeString
svn path=/trunk/; revision=16693
2005-07-22 22:25:25 +00:00
Thomas Bluemel
648f859ea2 allocate LogFileName and HiveFileName from paged pool
svn path=/trunk/; revision=16692
2005-07-22 21:10:52 +00:00
Thomas Bluemel
9f2bf70ddb removed MmCopyFromCaller and MmCopyToCaller and depend on SEH instead
svn path=/trunk/; revision=16691
2005-07-22 20:52:31 +00:00
Thomas Bluemel
4bfbd2cfaf probe the pointers in _MmCopyFromCaller and _MmCopyToCaller. There's no need to check the processor mode since it's always just used to copy from/to user memory
svn path=/trunk/; revision=16690
2005-07-22 20:51:36 +00:00
Steven Edwards
8112d02490 some fixes for the host gcc4 on FC4
svn path=/trunk/; revision=16689
2005-07-22 19:45:32 +00:00
Eric Kohl
30f4461f0e Forgot to commit this file.
svn path=/trunk/; revision=16688
2005-07-22 14:53:24 +00:00
James Tabor
0f84d9e6fd Update and implement UnrealizeObject.
svn path=/trunk/; revision=16687
2005-07-22 12:25:02 +00:00
Eric Kohl
c85a086e9e Make IoGetDeviceObjectFromDeviceInstance work without using the Registry. (experimental)
svn path=/trunk/; revision=16686
2005-07-21 20:30:55 +00:00
Eric Kohl
446d367792 Add parameter checks.
svn path=/trunk/; revision=16685
2005-07-21 20:10:47 +00:00
Hartmut Birr
c5a9d200e8 Initialized all stack related values.
svn path=/trunk/; revision=16684
2005-07-21 18:32:28 +00:00
Maarten Bosma
cf27db3375 Created the d3d8thk makefile and a internal header file.
svn path=/trunk/; revision=16683
2005-07-21 18:22:45 +00:00
Magnus Olsen
daeb68b5cc fix bug in date if the input arg are not right dateformat, it should prom after new date
svn path=/trunk/; revision=16682
2005-07-21 17:24:15 +00:00
Magnus Olsen
58f5ef812e fix a small bug, write out time like HH:MM:SS,ms as ms cmd does.
svn path=/trunk/; revision=16681
2005-07-21 16:28:20 +00:00
Hartmut Birr
0d62ee8f06 Set MmUserProbeAddress and MmHighestUserAddress according to the system range start.
svn path=/trunk/; revision=16680
2005-07-21 15:46:07 +00:00
Magnus Olsen
4ecc4b94c9 Fix copy /B filename + , , bug (touch) and fix whitespace for copy /B file + file + file2
by Brandon Turner

svn path=/trunk/; revision=16679
2005-07-21 14:15:42 +00:00
Magnus Olsen
c4341bddc3 Update with right reactos logo by mf
svn path=/trunk/; revision=16678
2005-07-21 13:55:36 +00:00
Thomas Bluemel
409e9165aa removed the ros-specific (and unused) functions ExRosDumpPagedPoolByTag, ExRosQueryPagedPoolTag and ExRosQueryPoolTag
svn path=/trunk/; revision=16677
2005-07-21 10:31:29 +00:00
Magnus Olsen
0da3627c3b add touch to copy by Brandon Turner
svn path=/trunk/; revision=16676
2005-07-21 10:03:01 +00:00
Alex Ionescu
c6262e3b0f - Freetype Update to 2.1.10. Reduces memory usage, increases speed and fixes drawing bugs.
- Enable Bytecode. Weird_W's fonts finally look humanly readable.

Thanks to Waxdragon for testing.
 
<http://www.freetype.org>

LATEST CHANGES BETWEEN 2.1.10 and 2.1.9

  I. IMPORTANT BUG FIXES

    - The size comparison for BDF and PCF files could fail sometimes.

    - Some  CFF files  were still not  loaded  correctly.   Patch from
      Derek Noonburg.

    - The stroker still had some serious bugs.

    - Boris  Letocha  fixed a  bug in  the  TrueType interpreter:  The
      NPUSHW instruction wasn't skipped correctly in IF clauses.  Some
      fonts like `Helvetica 75 Bold' failed.

    - Another  serious  bug  in  handling  TrueType hints  caused many
      distortions.  It has been introduced in version 2.1.8, and it is
      highly recommended to upgrade.

    - FreeType didn't properly parse empty Type 1 glyphs.
    
    - An unbound dynamic buffer growth was fixed in the PFR loader.
    
    - Several bugs have been fixed in the cache sub-system.

    - FreeType behaved incorrectly when resizing two distinct but very
      close character pixel sizes through `FT_Set_Char_Size' (Savannah
      bug #12263).
      
    - The auto-hinter didn't work properly for fonts without a Unicode
      charmap -- it even refused to load the glyphs.


  II. IMPORTANT CHANGES

    - Many fixes have been applied to drastically reduce the amount of
      heap   memory   used   by   FreeType,   especially   when  using
      memory-mapped font files  (which is the default on Unix  systems
      which support them).

    - The auto-hinter  has been replaced with a new module, called the
      `auto-fitter'.  It consumes  less memory  than its  predecessor,
      and it is  prepared to support non-latin scripts  better in next
      releases.

    - George Williams  contributed code to read  kerning data from PFM
      files.

    - FreeType   now   uses    the   TT_NAME_ID_PREFERRED_FAMILY   and
      TT_NAME_ID_PREFERRED_SUBFAMILY   strings   (if   available)  for
      setting  family  and  style in SFNT  fonts  (patch from Kornfeld
      Eliyahu Peter).

    - A  new  API `FT_Sfnt_Table_Info'  (in FT_TRUETYPE_TABLES_H)  has
      been added to retrieve name and size information of SFNT tables.

    - A new API `FT_OpenType_Validate' (in FT_OPENTYPE_VALIDATE_H) has
      been added to validate OpenType tables  (BASE, GDEF, GPOS, GSUB,
      JSTF).   After validation  it is  no longer  necessary to  check
      for errors in those tables while accessing them.

      Note that  this module might  be moved to another library in the
      future  to avoid  a tight  dependency between  FreeType and  the
      OpenType specification.

    - A new API in FT_BITMAP_H  (`FT_Bitmap_New', `FT_Bitmap_Convert',
      `FT_Bitmap_Copy',  `FT_Bitmap_Embolden',  `FT_Bitmap_Done')  has
      been added.   Its  use is  to convert an  FT_Bitmap structure in
      1bpp, 2bpp,  4bpp, or 8bpp  format into  another 8bpp FT_Bitmap,
      probably using a different pitch, and to further manipulate it.

    - A new  API `FT_Outline_Embolden'  (in FT_OUTLINE_H) gives  finer
      control how  outlines are embolded.

    - `FT_GlyphSlot_Embolden' (in FT_SYNTHESIS_H)  now handles bitmaps
      also (code contributed  by Chia I Wu).  Note that this  function
      is still experimental and may be replaced with a better API.

    - The method  how BDF and PCF  bitmap fonts  are accessed has been
      refined.   Formerly,   FT_Set_Pixel_Sizes  and  FT_Set_Char_Size
      were  synonyms in  FreeType's  BDF and PCF interface.  This  has
      changed now.  FT_Set_Pixel_Sizes  should be  used to  select the
      actual  font dimensions  (the `strike',  which is the sum of the
      `FONT_ASCENT'    and    `FONT_DESCENT'    properties),     while
      FT_Set_Char_Size  selects  the  `nominal' size  (the `PIXELSIZE'
      property).  In both functions, the width parameter is ignored.


  III. MISCELLANEOUS

    - The BDF driver  no longer converts  all returned bitmaps  with a
      depth of 2bpp or 4bpp to a depth of 8bpp.  The documentation has
      not  mentioned  this  explicitly,  but  implementors  might have
      relied on this after looking into the source files.

    - A new option `--ftversion' has been  added to freetype-config to
      return the FreeType version.

    - The  memory  debugger  has  been  updated   to  dump  allocation
      statistics on  all allocation  sources in the library.   This is
      useful to  spot greedy  allocations when  loading and processing
      fonts.

    - We removed a huge array of constant pointers to constant strings
      in the `psnames' module.   The problem was that  compilations in
      PIC mode (i.e.,  when generating a  Unix shared object/dll)  put
      the array  into the non-shared  writable section of  the library
      since absolute pointers are not relocatable by nature.
      
      This reduces the memory consumption by approximately 16KByte per
      process linked  to FreeType.   We now also store  the array in a
      compressed form (as a trie) which saves about 20KByte of code as
      well.

    - Kirill  Smelkov provided  patches to make  src/raster/ftraster.c
      compile stand-alone again.

svn path=/trunk/; revision=16675
2005-07-21 04:38:26 +00:00
Alex Ionescu
e4549de4a3 - Fix "cd" usage when the initial directory is a directory right on top of the root drive. (Brandon Turner)
svn path=/trunk/; revision=16674
2005-07-21 03:26:42 +00:00
Thomas Bluemel
f479dd02aa - Removed the Rtlp* string functions from the shared rtl library since they don't make sense in umode
- Moved RtlpCreateUnicodeString to ntoskrnl for now, it however is depreciated but still used in various places
- Added RtlpAllocateMemory and RtlpFreeMemory for rtl memory allocations (from paged pool in ntoskrnl and from the process heap in ntdll) that replace the ExAllocatePool* and ExFreePool implementations in ntdll

svn path=/trunk/; revision=16673
2005-07-20 23:35:59 +00:00
Thomas Bluemel
7b6225c3b5 fixed kdbg build
svn path=/trunk/; revision=16672
2005-07-20 21:38:17 +00:00
Magnus Olsen
2e13f4640d fix more cmd goto bugs. found labels bugs, and search label bugs, param bugs. now it should work fine
svn path=/trunk/; revision=16671
2005-07-20 19:44:47 +00:00
Magnus Olsen
368f39faad fix another bug in goto it is internel label :eof jump to end of the bat file
svn path=/trunk/; revision=16670
2005-07-20 18:43:01 +00:00
Hartmut Birr
5fc2cf29e4 Merge r16633:16634 from trunk. This fix prevents from corrupting the message queues.
svn path=/branches/ros-branch-0_2_7/; revision=16669
2005-07-20 17:31:18 +00:00
Magnus Olsen
4365851492 fix one bug with cmd goto so WBAT will work bit more now. thx gasmann to report it.
svn path=/trunk/; revision=16668
2005-07-20 17:06:53 +00:00
Alex Ionescu
8e5b438930 - Final fix.
svn path=/trunk/; revision=16667
2005-07-20 15:56:24 +00:00
Alex Ionescu
9b3250ce17 - Fix one more breakage (funny, the thing built without it for me?!)
svn path=/trunk/; revision=16666
2005-07-20 15:21:52 +00:00
Alex Ionescu
3134614de5 - Fix afd build for real (sorry...rbuild...)
svn path=/trunk/; revision=16665
2005-07-20 14:46:24 +00:00
Alex Ionescu
7ba312f725 - Fix AFD Build.
svn path=/trunk/; revision=16664
2005-07-20 14:45:33 +00:00
Alex Ionescu
0e0a951483 Fix build; sorry, I was waiting for Filip.
svn path=/trunk/; revision=16663
2005-07-20 14:40:20 +00:00
Filip Navara
0be32fc8d7 Build fixes.
svn path=/trunk/; revision=16662
2005-07-20 07:48:10 +00:00
Filip Navara
5fa260d21f Get rid of windows.h include in win32k. Fixes bug #666.
svn path=/trunk/; revision=16661
2005-07-20 07:27:09 +00:00
Alex Ionescu
692af5f653 Dmitry Philippov <shedon@mail.ru>:
- Implemented FindFirstFileExW() and have removed InternalFindFirstFile() in /lib/kernel32/file/find.c, now FindFirstFileA (), FindFirstFileExA () and FindFirstFileW called FindFirstFileExW ()

NOTE: Filip has asked revision "16661" (the next one) to be done by him... sorry if this sounds silly, but please respect his wish :)

svn path=/trunk/; revision=16660
2005-07-20 04:43:12 +00:00
Alex Ionescu
e8ebef770f - Move rosdhcp_public.h to dhcp library include directory.
svn path=/trunk/; revision=16659
2005-07-20 03:50:50 +00:00
Alex Ionescu
86f7b177e0 - Deleted ddk folder
- Moved afd headers to driver include directory

svn path=/trunk/; revision=16658
2005-07-20 03:43:20 +00:00
Alex Ionescu
0452118dc0 - Created include/libs and moved all library headers there.
- Created include/drivers and moved driver headers there.
 - Brought back core.h as diskdump.h, and re-enabled diskdump...it seems even though I was told it doesn't work, it's still very much used.

svn path=/trunk/; revision=16657
2005-07-20 03:42:05 +00:00
Alex Ionescu
f7270f23c4 - Build cdfs, ntfs, vfatfs with PCH
- Remove core.h and disable diskdump driver (never worked, was told it's an abandonned, obsolete driver and I tend to agree.)
 - Rename ROS ntifs.h to ccros.h and moved to root include directory (where all the "temporary" includes are for now).
 - Moved ROS class2.h to drivers/storage/include, per my own and other's recommendation, to make it clear that it's a ros-intenral file only useful for low-level storage drivers (no 3rd party driver needs this, which is why MS doesn't export it).

svn path=/trunk/; revision=16656
2005-07-20 02:52:52 +00:00
Alex Ionescu
832b1aa035 - Move asm.h to NDK.
svn path=/trunk/; revision=16655
2005-07-20 00:33:06 +00:00
Magnus Olsen
3de4927bd6 fixing bug copy file c: by Brandon Turner
svn path=/trunk/; revision=16654
2005-07-19 23:44:22 +00:00
Magnus Olsen
f48a391bbd Make CMD rember startpath when you change from start drive to another drive.
svn path=/trunk/; revision=16653
2005-07-19 23:36:59 +00:00
Magnus Olsen
7928f042c0 Fix some pipe and revirt one erly change as harumt sugest. and add alot errorlevel most command handle the errorlevel right but it is alot work todo
svn path=/trunk/; revision=16652
2005-07-19 23:25:50 +00:00
Magnus Olsen
6e7d8b2e8d add ConErrMessage to deal with error msg and ConOutMessage for other msg. Copy error msg are always pipe with ConOut and CD error msg with ConErr. Thx harmut that remmid me about it. All error msg need to check if they goes with ConErr or ConOut
svn path=/trunk/; revision=16651
2005-07-19 22:48:35 +00:00
Alex Ionescu
73e69c9d9e - 4th out of 5 patch part of ROSRTL removal. This touches fibers:
* Support SxS when available (add new fiber member for this as well).
        * Support FLS when available.
        * Added new Fiber Members for new features in XP/2003 (GuaranteedStackBytes and FlsData)
        * Support FPU State Restore/Save in switch code.
        * Use new common stack/context initialization routines instead of ROSRTL.
        * Change Fiber structure to use CONTEXT directly in order to speed up and generalize
          context creation.
        * Fix BaseFiberStartup to send right parameters.

Note: not yet fully tested with fibertest, I will do this later today and fix any bugs.

svn path=/trunk/; revision=16650
2005-07-19 21:04:19 +00:00
Alex Ionescu
22ef1b4558 - Update ASM header file with more offsets.
svn path=/trunk/; revision=16649
2005-07-19 20:56:38 +00:00
Alex Ionescu
f25f86cc02 - Fix LDR_DATA_TABLE_ENTRY definition.
svn path=/trunk/; revision=16648
2005-07-19 20:55:13 +00:00
Casper Hornstrup
4a454cb7d6 Generate RPC interface headers in intermediate directory
svn path=/trunk/; revision=16647
2005-07-19 18:46:13 +00:00
Magnus Olsen
b44c46dccd Fix all bugs in cmd commands cd, make it rember the last directory for each drive. make c: working, make cd f f working. We can not found any more bugs cd rewriting was done by BrandonTurner and me, Brandon rewrite cmd_chdir and I add two functions that we will use for cd and other commands to get and set current drive path. The /D are also implement in CD
svn path=/trunk/; revision=16646
2005-07-19 18:15:32 +00:00
Eric Kohl
5b843df690 - Implement CM_Get_Depth[_Ex] and CM_Get_DevNode_Status[_Ex].
- Add dummy code for CM_Get_Child_Ex, CM_Get_Parent_Ex and CM_Get_Sibling_Ex. WIDL doesn't support this yet.

svn path=/trunk/; revision=16645
2005-07-19 15:57:30 +00:00
Aleksey Bragin
4e94521b41 usb stack "upgrade", fixes issues with timing, host controller reset, new devices discovery, other small things (better to see diff :) ).
svn path=/trunk/; revision=16644
2005-07-19 14:11:53 +00:00
Aleksey Bragin
1e4f24a1e8 usbcore "upgrade", fixes issues with timing, host controller reset, new devices discovery, other small things (better to see diff :) ).
svn path=/trunk/; revision=16643
2005-07-19 14:06:19 +00:00
Aleksey Bragin
52d68cf938 Implemented needed DMA functions (pool alloc/free, create/destroy, map/unmap single), manipulations with timers (schedule_timeout, schedule_wait).
svn path=/trunk/; revision=16642
2005-07-19 13:19:04 +00:00
James Tabor
8e78ac6a62 Implement GdiGetCharDimensions by Robert Shearman rob@codeweavers.com.
svn path=/trunk/; revision=16641
2005-07-19 11:18:40 +00:00
James Tabor
6f5624c2a4 Fixup UnrealizeObject so it can return the correct state for a Brush Object.
svn path=/trunk/; revision=16640
2005-07-19 03:13:11 +00:00
Magnus Olsen
a6fd14c5c8 Cd does rember the cd c:\gcc and you can do c:
and it jump to c:\gcc not tested in reactos yet. but cd have other bugs that need to be fix. 

svn path=/trunk/; revision=16639
2005-07-19 01:55:16 +00:00
Magnus Olsen
3925d142b0 make GetRootPath bit smarter
svn path=/trunk/; revision=16638
2005-07-19 01:36:54 +00:00
Magnus Olsen
758d835b13 make GetRootPath bit faster if it does not get a drive name with :
svn path=/trunk/; revision=16637
2005-07-18 23:04:39 +00:00
Magnus Olsen
07a3a7ec8e add a new interal function call GetRootPath(TCHAR *InPath,TCHAR *OutPath,INT size) it get the a driver current path without change the current driver directory, it is not in use yet, prep for copy, cd, rm, and all other commands.
svn path=/trunk/; revision=16636
2005-07-18 22:44:13 +00:00
Alex Ionescu
ce7fb8c1b9 - Fix nasty APC delivery bug (in case a Kernel-Mode Special APC still returned with a Normal Routine, the Normal Routine was called with incorrect values (Special Routines take PVOID* arguments, while Normal Routines do not!))
- Remove APC from list before setting it to non-inserted.
 - Do proper thread termination piggybacking; terminate threads in user-mode as Hartmut correctly fixed.

svn path=/trunk/; revision=16635
2005-07-18 19:50:23 +00:00
Hartmut Birr
269fab698e Removed the message also from the senders queue (in MsqCleanupMessageQueue).
svn path=/trunk/; revision=16634
2005-07-18 15:05:58 +00:00
Hervé Poussineau
b9edb4f6e3 Forward more exports to setupapi.dll
svn path=/trunk/; revision=16633
2005-07-18 14:10:56 +00:00
Hervé Poussineau
08711eda61 Move serial ports and mice classes parameters to their own .inf files. They would be regenerated during 2nd stage setup
svn path=/trunk/; revision=16632
2005-07-18 11:57:16 +00:00
Hervé Poussineau
02b9843370 Implement SetupDiGetDeviceRegistryPropertyA/W
Change the way devices are enumerated in SetupDiGetClassDevsExW. Now, it enumerates subkeys of HKLM\SYSTEM\CurrentControlSet\Enum instead of HLKM\SYSTEM\CurrentControlSet\Control\Class ones.
Free the temp buffer in SetupDiGetDeviceRegistryPropertyA only when it is no more usefull
Replace RegOpenKeyEx by RegOpenKeyExW

svn path=/trunk/; revision=16631
2005-07-18 07:17:53 +00:00
James Tabor
d09f528ad2 Implement ShowOwnedPopups and ArrangeIconicWindows. Based on Wine. More work is needed on both.
svn path=/trunk/; revision=16630
2005-07-18 03:13:11 +00:00
James Tabor
35b93a79d6 Implement ShowOwnedPopups and ArrangeIconicWindows. Based on Wine.
svn path=/trunk/; revision=16629
2005-07-18 03:12:01 +00:00
Thomas Bluemel
0825640a24 fixed signed/unsigned comparison warning
svn path=/trunk/; revision=16628
2005-07-17 19:20:12 +00:00
Hartmut Birr
53f97f1bee If the user mode is intercepted by an interrupt, we must deliver user mode apc's.
svn path=/trunk/; revision=16627
2005-07-17 18:36:01 +00:00
Hartmut Birr
2adf26048d - PsKillMostProcesses must be running in the context of the system process.
- The thread terminating apc is a special user mode apc.

svn path=/trunk/; revision=16626
2005-07-17 18:34:23 +00:00
Hartmut Birr
d3493295ab Request the APC_INTERRUPT for the correct processor on smp machines.
svn path=/trunk/; revision=16625
2005-07-17 18:27:46 +00:00
Hartmut Birr
d40d2d7c83 Initialized SetMember as mask of the current processor.
svn path=/trunk/; revision=16624
2005-07-17 18:11:08 +00:00
Hartmut Birr
08e09be28a Changed the type of SetMember within KPRCB structure.
svn path=/trunk/; revision=16623
2005-07-17 18:08:19 +00:00
Hervé Poussineau
6d83f83840 Implement SetupDiGetDeviceInterfaceDetailA/W
svn path=/trunk/; revision=16622
2005-07-17 15:57:41 +00:00
Casper Hornstrup
ad59c91e1b Clean referenced object libraries when cleaning a module
svn path=/trunk/; revision=16621
2005-07-17 15:10:03 +00:00
Hervé Poussineau
d3d7a7f34b Return CR_FAILURE when the function is not implemented
Call the right *_Ex function in CM_Get_Child and CM_Get_Parent

svn path=/trunk/; revision=16620
2005-07-17 14:09:57 +00:00
Hervé Poussineau
28cb187427 Add registry key for PNP root device
svn path=/trunk/; revision=16619
2005-07-17 13:56:22 +00:00
Martin Fuchs
b635d34a4f fix build of ctm
svn path=/trunk/; revision=16618
2005-07-17 13:14:44 +00:00
Martin Fuchs
9c93090a1f replace TIME struct by LARGE_INTEGER
svn path=/trunk/; revision=16617
2005-07-17 12:51:28 +00:00
Martin Fuchs
2a0636a4ef fix ndk header usage
svn path=/trunk/; revision=16616
2005-07-17 12:50:56 +00:00
Martin Fuchs
85da1524b5 fix argc type
svn path=/trunk/; revision=16615
2005-07-17 12:31:31 +00:00
Martin Fuchs
2210ddb826 replace old <defines.h> by <windows.h>
svn path=/trunk/; revision=16614
2005-07-17 12:31:16 +00:00
Martin Fuchs
583ed2bdab replace old <defines.h> by <windows.h>
svn path=/trunk/; revision=16613
2005-07-17 12:30:09 +00:00
James Tabor
56d1785ca5 Implemented NtUser-GetMenuItemRect.
svn path=/trunk/; revision=16612
2005-07-17 12:26:24 +00:00
Filip Navara
612346a8b7 DPC stands for Deferred Procedure Call.
svn path=/trunk/; revision=16611
2005-07-17 12:24:15 +00:00
Casper Hornstrup
07e1646825 Avoid GNU make warnings
svn path=/trunk/; revision=16610
2005-07-17 11:15:55 +00:00
Casper Hornstrup
a04a10667a Add missing directory tag
svn path=/trunk/; revision=16609
2005-07-17 11:07:14 +00:00
Casper Hornstrup
d4ff3d81a2 Prepare cmd for testing
svn path=/trunk/; revision=16608
2005-07-17 10:57:38 +00:00
Martin Fuchs
92106004ec add explorer-ro.rc
svn path=/trunk/; revision=16607
2005-07-17 10:40:43 +00:00
Casper Hornstrup
acbcf1c29a Fix building of tests
svn path=/trunk/; revision=16605
2005-07-17 10:20:18 +00:00
Martin Fuchs
49c3197c28 remove winfile - it's superseded by winefile.
svn path=/trunk/; revision=16604
2005-07-17 09:56:38 +00:00
Eric Kohl
108c748343 - Implement CM_Locate_DevNode_ExW, CM_Get_Device_ID_Size[_Ex] and CM_Get_Device_ID[_Ex]W.
- Add flags for CM_Get_Global_State[_Ex].

svn path=/trunk/; revision=16603
2005-07-17 09:43:54 +00:00
Hartmut Birr
b4d21f4107 Fixed the determining of the file from the output redirection.
svn path=/trunk/; revision=16602
2005-07-17 07:02:20 +00:00
Magnus Olsen
14733418a7 /D /Z are implement in ros cmd copy by BrandonTurner but reactos CopyFile and CopyFileEx does not support it yet, for /D are COPY_FILE_ALLOW_DECRYPTED_DESTNATION for decypt the file when it copy to dest and /Z are COPY_FILE_RESTARTABLE for network. so it is working in windows
svn path=/trunk/; revision=16601
2005-07-17 00:44:33 +00:00
Magnus Olsen
0f1a1d9269 add CopyFileEx flags #define COPY_FILE_ALLOW_DECRYPTED_DESTINATION, COPY_FILE_FAIL_IF_EXISTS, COPY_FILE_RESTARTABLE, COPY_FILE_OPEN_SOURCE_FOR_WRITE
svn path=/trunk/; revision=16600
2005-07-16 23:44:16 +00:00
Eric Kohl
9ebf08eac5 - For bugs for in-string parameters.
- Implement out-string parameters (untested).

svn path=/trunk/; revision=16599
2005-07-16 23:21:36 +00:00
Hartmut Birr
7585ca1273 Merge r16567:16568 from trunk. This fix prevents from corrupting the message queues.
svn path=/branches/ros-branch-0_2_7/; revision=16598
2005-07-16 15:19:52 +00:00
Hartmut Birr
b0c939bf13 Used the kernel base address from the loader structure instead MmSystemRangeStart.
MmSystemRangeStart isn't the base address with the 3GB switch.

svn path=/trunk/; revision=16597
2005-07-16 13:01:18 +00:00
Hartmut Birr
ada13b04e0 Replaced KERNEL_BASE by MmSystemRangeStart.
svn path=/trunk/; revision=16596
2005-07-16 12:35:34 +00:00
Magnus Olsen
5ec1eff5db crop mf logo to 30x280 and it showing right rember do not design higher that 280 on the startmenu logo change.
svn path=/trunk/; revision=16595
2005-07-16 12:18:16 +00:00
Jens Collin
431d4a6295 GetMenuStringA and GetMenuStringW inverted the MF_BYPOSITION parameter. Buffers were incorrectly copied in and wrong size returned in GetMenuItemInfoA ansi-structures.
GetMenuString now works the same on both windows and ROS.

svn path=/trunk/; revision=16594
2005-07-16 11:45:28 +00:00
Maarten Bosma
5638b3729f HUMA2000: Spanish translation
svn path=/trunk/; revision=16593
2005-07-16 10:23:10 +00:00
Hartmut Birr
6088c647a3 - Fixed the size of the hyperspace area (thanks to Filip Navara).
- Enabled Pae mode in freeldr if it is requested.

svn path=/trunk/; revision=16592
2005-07-16 09:01:07 +00:00
Magnus Olsen
6d92ae56c6 part1 of move bug from a volume to another have been solve, the part two are in Reactos MoveFileEx
svn path=/trunk/; revision=16591
2005-07-15 19:15:59 +00:00
Magnus Olsen
eb4fb35571 I should not write code when it is hot outside
clean up a if statement for realloc

svn path=/trunk/; revision=16590
2005-07-15 18:38:01 +00:00
Magnus Olsen
6850597254 in cress COPYCMD param search speed before w3seek does it
svn path=/trunk/; revision=16589
2005-07-15 18:31:42 +00:00
Magnus Olsen
8aa7fc3fb8 last try to fix NULL bug
svn path=/trunk/; revision=16588
2005-07-15 18:25:03 +00:00
Magnus Olsen
8b10660c85 last bugfix did forget use tchar * 512 in malloc I did only use 512 in malloc
svn path=/trunk/; revision=16587
2005-07-15 18:21:17 +00:00
Magnus Olsen
486636c37b did forget check malloc and realloc was NULL and set size to zero. thx w3seek that did see this mistake
svn path=/trunk/; revision=16586
2005-07-15 18:18:40 +00:00
Magnus Olsen
023ebef222 implement $s
svn path=/trunk/; revision=16585
2005-07-15 17:46:26 +00:00
Magnus Olsen
199110e78f bug fix $t so it write out time instead for "current time is xxxxxxx" not it write the time. bug fix $h so it did jump back and erase the char that was there before.
svn path=/trunk/; revision=16584
2005-07-15 17:31:12 +00:00
Magnus Olsen
81517874a0 crop the height of mf new logo so it show right
svn path=/trunk/; revision=16583
2005-07-15 15:31:14 +00:00
Hartmut Birr
050b5c1946 Revert my last commit (r16578).
svn path=/trunk/; revision=16582
2005-07-15 15:30:23 +00:00
Magnus Olsen
9f9dfd53cf revert back startmenu.cpp the change are not complite for mf new logo
svn path=/trunk/; revision=16581
2005-07-15 15:25:34 +00:00
Magnus Olsen
03a11e092f update swedish .rc and rename it from sw to sv, remove the german part in swedish rc. all swedish rc should have sv,
svn path=/trunk/; revision=16580
2005-07-15 15:22:26 +00:00
Magnus Olsen
97d546c77a Forget set some error level and some msg that should have goto ConOut not to ConErr so pipe are working with thuse msg
svn path=/trunk/; revision=16579
2005-07-15 14:50:46 +00:00
Hartmut Birr
bde6eea1e8 Fixed a test condition in IntWaitMessage.
svn path=/trunk/; revision=16578
2005-07-15 14:40:47 +00:00
Hartmut Birr
dfaed2eb99 Returned STATUS_NOT_IMPLEMENTED for requests other than read or write.
svn path=/trunk/; revision=16577
2005-07-15 14:29:58 +00:00
Magnus Olsen
e75662b821 fix a bug from me in COPYCMD check code it was two /V
it should only have been one /N = short file name (dos 8.3 file mname not /S) 

svn path=/trunk/; revision=16576
2005-07-15 14:18:45 +00:00
Magnus Olsen
84dc5b02f3 fix errorlevel for copy. left to do is /D = copy encrypte file and decypte to destinations (NT3.51) /S = make destfile name 8.3 compatible (NT3.51) /Z = restart copy if it fails
svn path=/trunk/; revision=16575
2005-07-15 14:12:48 +00:00
Magnus Olsen
2e307cf29e Add environment variable COPYCMD to copy
svn path=/trunk/; revision=16574
2005-07-15 13:51:38 +00:00
James Tabor
cc3f2972eb Fix up WM_ENABLE ScrollBarWndProc. Looks like we can disable and enable SB Ctrls.
svn path=/trunk/; revision=16573
2005-07-15 11:46:38 +00:00
James Tabor
2aed25b015 Fixed wParam in WM_ENABLE ScrollBarWndProc.
svn path=/trunk/; revision=16572
2005-07-15 02:16:12 +00:00
James Tabor
3c13baae03 Fixing WM_ENABLE ScrollBarWndProc. Tested it with 7-Zip, AbiWord, RegEdit and Winefile, all seem not to use it. Please test this.
svn path=/trunk/; revision=16571
2005-07-15 01:42:22 +00:00
Robert Kopferl
e88126388e the release branch should be dbg=0
svn path=/branches/ros-branch-0_2_7/; revision=16570
2005-07-14 23:11:28 +00:00
Thomas Bluemel
a8f77a38bd don't allow changing the allow and deny checkbox state to checked at the same time
svn path=/trunk/; revision=16569
2005-07-14 21:57:57 +00:00
Hartmut Birr
f0300f5044 Mark the DispatchingListEntry as removed (in MsqSendMessage).
svn path=/trunk/; revision=16568
2005-07-14 21:07:14 +00:00
Magnus Olsen
2032b01e66 fix the second bug for 1>text.txt pipe
svn path=/trunk/; revision=16567
2005-07-14 20:51:39 +00:00
Magnus Olsen
3a00c096a3 fix echo osd 1>text: bug now it should pipe instead it is printing text out text on the screen. need to found the second bug now. but now this pipe are implement.
svn path=/trunk/; revision=16566
2005-07-14 20:26:37 +00:00
Robert Kopferl
00e84692de version info for rc1 build
svn path=/branches/ros-branch-0_2_7/; revision=16565
2005-07-14 19:19:09 +00:00
Magnus Olsen
98d6ba9ebf std_output does handle the : as ms does at pipe and we have also extend it to handle >test.txt: that is not vaild on ms but it should need more code to handle the : as ms does. we can call it reactos extend at cmd
svn path=/trunk/; revision=16564
2005-07-14 19:18:37 +00:00
Magnus Olsen
a292f28ef5 Change some error msg from ConErr to ConOut for they are being pipe so the behover are equal with ms windows cmd
svn path=/trunk/; revision=16563
2005-07-14 18:39:07 +00:00
Magnus Olsen
3aae85b431 Fix a weird bug in piping in some case if you pipe to no exists >pipe: then to a exists >pipe: it did make cmd crash for createfile only SetLastErrror when it fails. and the old one was in the loop. to solv it is to rest the GetLastError code before it is call.
svn path=/trunk/; revision=16562
2005-07-14 18:16:57 +00:00
Magnus Olsen
521a302ab8 Brandon Turner turnerb7@msu.edu Rewrite to clean up copy and support wildcard. and alot of other small bugfix, like does not crash when a file does not exists.
svn path=/trunk/; revision=16561
2005-07-14 14:51:35 +00:00
James Tabor
ad6a045f5b Typo fix. I was thinking oct not dec.
svn path=/trunk/; revision=16560
2005-07-14 00:27:53 +00:00
James Tabor
be123f5a26 Implemented VkKeyScan, GetKeyboardTypeand, GetKeyboardLayout and some Wine ports.
svn path=/trunk/; revision=16559
2005-07-13 23:22:20 +00:00
James Tabor
f84f0b7a10 Implemented VkKeyScan, GetKeyboardTypeand GetKeyboardLayout.
svn path=/trunk/; revision=16558
2005-07-13 23:19:59 +00:00
Hartmut Birr
537bcb48fa Fixed the allocation of the buffer for the environment variable in ProcessInput.
svn path=/trunk/; revision=16557
2005-07-13 17:59:37 +00:00
Hartmut Birr
7a0a377edd Fixed a bug in IsConsoleHandle which was introduced by r16540.
svn path=/trunk/; revision=16556
2005-07-13 17:32:39 +00:00
Thomas Bluemel
d31647b31f only NULL-terminate the string in GetEnvironmentVariableW if the buffer size is greater than 0. Thanks to Joseph Galbraith for the hint
svn path=/trunk/; revision=16555
2005-07-13 16:36:24 +00:00
Alex Ionescu
698dee2b87 Fix macro to be optimized out, thanks to Filip
svn path=/trunk/; revision=16554
2005-07-13 15:46:59 +00:00
Thomas Bluemel
a56f2840b3 handle memory allocation errors in GetEnvironmentVariable() and ensure the string is always null-terminated
svn path=/trunk/; revision=16553
2005-07-13 15:09:52 +00:00
Art Yerkes
90be5e4d9b stop exporting MmCopyFromCaller and kin and make a local version in the
last place we use it, now based on SEH.
we'll remove the copy from caller hack from ntoskrnl soon.

svn path=/trunk/; revision=16552
2005-07-13 08:48:49 +00:00
Alex Ionescu
5f9eec4d04 fix bizarre build error
svn path=/trunk/; revision=16551
2005-07-13 02:45:53 +00:00
Alex Ionescu
2c8f96ecf4 Silence more warnings. Patch by Waxdragon.
svn path=/trunk/; revision=16550
2005-07-13 02:02:08 +00:00
Alex Ionescu
c855fc1edb Expand the wine debug macros in all cases. the actual code will get optimized away, but the variables will appear in use. removes about 100-150 warnings. also fix hidden build breakages when the macros are actually used. thanks to art
svn path=/trunk/; revision=16549
2005-07-13 01:41:13 +00:00
Alex Ionescu
c01f0050df Fix executing applications. Sorry for the delay, this was like finding a needle in a hay stack. Gotta love splitting patches..
svn path=/trunk/; revision=16548
2005-07-13 00:11:11 +00:00
Casper Hornstrup
6f84809a47 Add copyright notices and GPL headers to rbuild
svn path=/trunk/; revision=16547
2005-07-12 16:47:34 +00:00
Casper Hornstrup
b8be54888b Have nci output files depend on input files
svn path=/trunk/; revision=16546
2005-07-12 16:11:30 +00:00
Casper Hornstrup
1f9b723f25 Install freeloader installer.
svn path=/trunk/; revision=16545
2005-07-12 15:04:17 +00:00
Eric Kohl
5e61398fc3 Add CM_Get_Global_State and CM_Get_Global_State_Ex prototypes.
svn path=/trunk/; revision=16544
2005-07-12 12:29:25 +00:00
Alex Ionescu
358a2167ab Part three of patch...
- Created utils.c for the following new functions:
        * BasepCreateStack - Creates a stack for a Thread or Fiber
        * BasepInitializeContext - Initializes the Context for a Process, a Thread, or a Fiber
        * BasepConvertObjectAttributes - Creates a OBJECT_ATTRIBUTES structure based on Win32
                                         lpSecurityAttributes and name.
        * BasepFreestack - Frees the stack created in case of a failure inside code using it.
        * BasepMapFile - Converts a Win32 Path to NT Path and maps a file into a section.
        * Base 8-bit String conversion functions - Use new, more efficient way to select
          between OEM/ANSI strings, based on MSDN Article by Matt Pietrek. Other code needs
          to be chand to use them.
Also added the new ASM for the startup thunks. All of this is still unused and only being committed to simply the diff output. Credits go to Matt Pietrek and his excellent MSDN article for the 8-bit conversion functions and implementaion details.

svn path=/trunk/; revision=16543
2005-07-12 05:00:33 +00:00
Alex Ionescu
e6523bb71e Second part of patch, implements the new RTL functions which will be used (not used by kernel yet).
- RtlCreateUserProcess:
        * Created RtlpInitEnvironment to manage Environment Block creation. Rougly based on
          old KlInitPeb code but with some optimizations.
        * Don't ignore Process Security Descriptor if one was specified.
        * Don't ignore ZeroBits, get correct entrypoint, and don't assume PEB address.
        * Don't close handle of section before closing process handle on failure.
        * Support new undocumented flag which pre-allocates 1MB of memory for Native Processes
        * FIXME: Hande duplication should be done, but wasn't and still isn't.
    
    - RtlpCreateUserStack:
        * New function to create a stack for a Thread, similar to BasepCreateStack but
          has some differences related to StackCommit/StackReserve.
        * Also create Guard Page
        
    - RtlpFreeUserStack:
        * Undoes what the function above does, in case of failure in code using it.
        
    - RtlCreateUserThread:
        * Use the new functions instead of rosrtl.
        
    - RtlInitializeContext:
        * New function similar to BasepInitializeContext but;
            > Uses a single entrypoint, not many possible thunks like Kernel32 (no need)
            > The starting EFLAGS is Interrupts Enabled, not IOPL 3.
            > We don't initialize the same Context Flags
            > The initial context registers are different
            
    - RtlFreeUserThreadStack
        * Don't assume the TEB address
          
    - RtlExitUserThread
        * Remove deprecated stack-switching semantics and use new TEB flag to tell the Kernel
          to deallocate the stack for us.

svn path=/trunk/; revision=16542
2005-07-12 04:41:41 +00:00
James Tabor
36a1230e2b Start integrating and implementing key board functions. More Wine porting with ROS.
svn path=/trunk/; revision=16541
2005-07-12 02:45:33 +00:00
Alex Ionescu
a10ed009b7 Partial patch of larger rosrtl removal patch. This one merely is a structure fix patch, and renames/corrects RTL_USER_PROCESS_INFORMATION (which had the totally wrong names) as well as updates the TEB to the latest version. It also fixes SECTION_IMAGE_INFORMATION to have the right format and names. Also, some callers of CreateProcessW are modified to not send a constant string as lpCommandLine (this was illegal and will crash on Windows/my patch). INITIAL_TEB was also renamed to the more correct fields, although they won't make sense with the current rosrtl/rtl implementation, the names will only make sense with the next patch. Finally NtTerminateThread was fixed to support sending NULL as handle, and PspExitThread was updated to work with the new FreestackOnExit flag, both of which will be used in the next patch.
svn path=/trunk/; revision=16540
2005-07-12 01:56:14 +00:00
Filip Navara
e36f90a9f9 Move Interlocked* routines from ROSRTL to separate INTRLCK library since ROSRTL is going to be removed.
svn path=/trunk/; revision=16539
2005-07-11 23:32:55 +00:00
Thomas Bluemel
fcc95c66a8 return the length of the string excluding the null-termination character on success in GetEnvironmentVariable(). Thanks to Hartmut.
svn path=/trunk/; revision=16536
2005-07-11 20:30:33 +00:00
Hartmut Birr
9b991b83fd Check for a valid console handle in SetConsoleMode.
svn path=/trunk/; revision=16535
2005-07-11 18:22:53 +00:00
Alex Ionescu
eb4f7c8b2f IPConfig Rewrite (Tim Jobling <tjob800@yahoo.co.uk>)
*  Relicense to GPL. 
    *  Display NodeType with meaningfull Human readable names.
    *  Exclusively use TCHAR strings.
    *  Display Physical Address, DHCP enabled state, IP Addresses/Netmasks,
    *  Default Gateway, DHCP server and DHCP Lease times.
    *  Parse command line options.
    *  Default to only showing the IP/SM/DG is no options specified
    *  Handel option: /All and /?
    *  Display message about all unimplemented options.
    *  Changed C++ style commenting to C style

svn path=/trunk/; revision=16534
2005-07-11 17:55:15 +00:00
Gé van Geldorp
34fd8c7135 Sebastian Gasiorek <zebasoftis@gmail.com>
Polish resource files

svn path=/trunk/; revision=16533
2005-07-11 07:51:09 +00:00
James Tabor
c81ba78f7b Connect UnrealizeObject and test debug prints. I assume arg count is one not two. If wrong please correct me.
svn path=/trunk/; revision=16532
2005-07-11 04:56:04 +00:00
James Tabor
6a38a2f69d Fix error return for WIN_ListChildren.
svn path=/trunk/; revision=16531
2005-07-11 02:43:24 +00:00
Magnus Olsen
5c73d34569 forget clean up after me
svn path=/trunk/; revision=16530
2005-07-10 22:23:00 +00:00
Magnus Olsen
58d41e3c76 second try, thx w3seek found out it should be charterer not byte
svn path=/trunk/; revision=16529
2005-07-10 22:19:57 +00:00
Magnus Olsen
e43573196c The return size calculation's of GetEnvironmentVariable string was wrong. Thx to <Bizzy_D> to find out cd %windir% did not work. Now it will
svn path=/trunk/; revision=16528
2005-07-10 22:12:07 +00:00
Gé van Geldorp
67af25e720 i386DX . <i386dx@hotmail.com>
Belgian (point/Flemish) keyboard layout

svn path=/trunk/; revision=16527
2005-07-10 22:05:48 +00:00
Magnus Olsen
fe2f78c54c quick dirty hack getting our copy working with 1>null by me
so we can create reactos iso on ros. bug reported by harteex and Brandon Turner, thanks to Brandon to hunt down where the bug was. 

svn path=/trunk/; revision=16526
2005-07-10 21:26:51 +00:00
Eric Kohl
a5b363cd94 - Implement CM_Get_Global_State/CM_Get_Global_State_Ex.
- All RPC-Calls to umpnpmgr return CONFIGRET.

svn path=/trunk/; revision=16525
2005-07-10 11:49:10 +00:00
Eric Kohl
de63015392 Fix a string length calculation bug in StringTableDuplicate.
svn path=/trunk/; revision=16524
2005-07-09 15:22:07 +00:00
Aleksey Bragin
122bcd196f Add dependence from pnp_client also, since in fact it uses it (includes pnp_c.h). It worked before only because lib/setupapi depends on pnp_c, and it's build earlier than umpnpmgr.
svn path=/trunk/; revision=16523
2005-07-09 13:23:05 +00:00
Thomas Bluemel
97679e7210 fixed the prototypes of GetConsoleAlias, GetConsoleAliasExes and GetConsoleAliasesLength
svn path=/trunk/; revision=16522
2005-07-09 10:31:30 +00:00
James Tabor
c0fb7448b1 Implement MDICascade, MDITile and WIN_ListChildren. This will help Winefile cascade and tile windows. WIN_ListChildren is tmp located here in mdi.c for now.
svn path=/trunk/; revision=16521
2005-07-09 08:54:43 +00:00
Casper Hornstrup
6c73106dfd Don't rebuild the module if a library is changed. Relinking the module is enough.
svn path=/trunk/; revision=16520
2005-07-09 07:50:48 +00:00
James Tabor
5dd6792d1d Fix masking.
svn path=/trunk/; revision=16519
2005-07-09 05:21:10 +00:00
James Tabor
ff7e7c8ae6 Kill debug print out.
svn path=/trunk/; revision=16518
2005-07-09 04:54:01 +00:00
James Tabor
7022204505 Implement ModifyMenu A & W.
svn path=/trunk/; revision=16517
2005-07-09 04:23:34 +00:00
James Tabor
b2bf468fad Implement GetMenuString A & W. Not fully tested.
svn path=/trunk/; revision=16516
2005-07-09 04:19:35 +00:00
James Tabor
5e3cc7bc94 Implement CheckMenuRadioItem. Not fully tested.
svn path=/trunk/; revision=16515
2005-07-09 04:15:44 +00:00
James Tabor
6b36fb6848 Implement DrawMenuBar.
svn path=/trunk/; revision=16514
2005-07-09 04:11:36 +00:00
Casper Hornstrup
91269f987b Check automatic dependencies of referenced object library modules on make <module>_depends
svn path=/trunk/; revision=16513
2005-07-08 19:55:30 +00:00
Thomas Bluemel
876fc32e53 Fixed enumerating the drive strings in SetupCreateDiskSpaceListW
svn path=/trunk/; revision=16512
2005-07-08 19:51:37 +00:00
Thomas Bluemel
d556da508d allocate enough memory for strings, lstrlenW returns the length of the string in characters, not bytes.
svn path=/trunk/; revision=16511
2005-07-08 19:21:28 +00:00
KJK::Hyperion
4c9e39ee83 PE loader: corrected an assertion (fixes bug reported by GvG), added a sanity check, return STATUS_INVALID_IMAGE_PROTECT in case of unrecognized PE signature (to match Windows behavior), removed evil STATUS_UNSUCCESSFUL, corrected successful return code
Memory manager: return STATUS_INVALID_IMAGE_NOT_MZ when no loader accepts the format (to match Windows behavior)

svn path=/trunk/; revision=16510
2005-07-08 16:37:07 +00:00
James Tabor
622c4d86e9 Implement NtUserGetAsyncKeyState and support for TrackMouseEvent.
svn path=/trunk/; revision=16509
2005-07-08 12:16:47 +00:00
James Tabor
6c4cbed9a2 Implement TrackMouseEvent.
svn path=/trunk/; revision=16508
2005-07-08 12:15:07 +00:00
James Tabor
e6ce20818e Add defines for TrackMouseEvent.
svn path=/trunk/; revision=16507
2005-07-08 12:13:23 +00:00
Gé van Geldorp
a340c27ec1 zebasoftis <zebasoftis@gmail.com>:
Polish Resource File for setupapi

svn path=/trunk/; revision=16506
2005-07-08 09:01:23 +00:00
Gé van Geldorp
d3558a7c23 zebasoftis <zebasoftis@gmail.com>:
Polish Resource File for user32

svn path=/trunk/; revision=16505
2005-07-08 08:56:07 +00:00
Gé van Geldorp
8895954185 zebasoftis <zebasoftis@gmail.com>
Polish Resource File for desk.cpl

svn path=/trunk/; revision=16504
2005-07-08 08:50:46 +00:00
James Tabor
953b49324b Kill debug messages.
svn path=/trunk/; revision=16503
2005-07-08 02:06:33 +00:00
James Tabor
31c9627540 Add MIIM_BITMAP & MNS_CHECKORBMP support in menu. Based on Wine port.
svn path=/trunk/; revision=16502
2005-07-07 23:29:53 +00:00
Hervé Poussineau
74346861b0 Minimize differences between GCC and MSVC in header file
Don't define SR_MSR_DSR as it already exists under the name SERIAL_DSR_STATE
Remove $Id: tags

svn path=/trunk/; revision=16501
2005-07-07 23:10:35 +00:00
Magnus Olsen
daafc242e6 Set right %ERRORLEVEL% value, fixing end of line for /? after implement of page break.
svn path=/trunk/; revision=16500
2005-07-07 22:27:30 +00:00
Hervé Poussineau
f7289e9d4a Add missing registry entries for serial ports
svn path=/trunk/; revision=16499
2005-07-07 22:23:26 +00:00
Magnus Olsen
19b47127b0 Set right %ERRORLEVEL% value, fixing end of line for /? for most commands after implement of page break.
svn path=/trunk/; revision=16498
2005-07-07 20:41:13 +00:00
Hartmut Birr
93fc422f43 Fixed a bug which was introduced by r16441.
svn path=/trunk/; revision=16497
2005-07-07 19:54:25 +00:00
Magnus Olsen
2bd961bd1d set right value of %ERRORLEVEL% for vol
svn path=/trunk/; revision=16496
2005-07-07 19:51:09 +00:00
Magnus Olsen
bff830321b add %CMDEXTVERSION% example to use it echo %CMDEXTVERSION% the value are hardcode to 2. for it is that value ms win2k / winxp report back. thx arty to test it in win xp.
svn path=/trunk/; revision=16495
2005-07-07 19:26:46 +00:00
Magnus Olsen
610ec85471 adding %cmdcmdline%, example how to use it echo %CMDCMDLINE%
svn path=/trunk/; revision=16494
2005-07-07 19:16:46 +00:00
Martin Fuchs
497eba8519 Sync to Wine:
- switch to UNICODE compilaton in Wine
- remove separate unixcalls.c file
- don't crash in set_curdir() for NULL in the 'entry' pointer

svn path=/trunk/; revision=16493
2005-07-07 18:44:08 +00:00
Magnus Olsen
dfcc16249d Did forget instate in for loop the patternX, the right way. thx GvG to spot it and tell me how to fix.
svn path=/trunk/; revision=16492
2005-07-07 18:21:44 +00:00
Martin Fuchs
c2db525161 Jonathan Ernst <Jonathan@ErnstFamily.ch>
Updated winefile French resources.

svn path=/trunk/; revision=16491
2005-07-07 18:07:40 +00:00
Magnus Olsen
7d58c61349 move PatternX initiate calculation out from for loop, it should have been outside of the for loop.
svn path=/trunk/; revision=16490
2005-07-07 17:54:50 +00:00
Magnus Olsen
5620de4ea7 adding %RANDOM% example how to use it echo %random%
svn path=/trunk/; revision=16489
2005-07-07 17:09:56 +00:00
Filip Navara
ac3457f145 #include "precomp.h" -> #include <precomp.h>
svn path=/trunk/; revision=16488
2005-07-07 16:45:42 +00:00
Hervé Poussineau
71183fb50d Enumerate serial interfaces by calling QueryDosDevice on Wine
Wine-ify th whole file by removing the L"..." strings, by using debugstr_w(), ...

svn path=/trunk/; revision=16487
2005-07-07 16:32:34 +00:00
Magnus Olsen
7d472ee662 Fix bug "mv foo.txt c:\temp gives you c:\tempfoo.txt" by Brandon Turner
svn path=/trunk/; revision=16486
2005-07-07 16:22:45 +00:00
Magnus Olsen
4e39fcafa0 add %DATE% example echo %date% are working now. Bugfix date so it print out the week days names.
svn path=/trunk/; revision=16485
2005-07-07 16:06:43 +00:00
Gé van Geldorp
d7990aa664 Sync to Wine-20050628:
Alexandre Julliard <julliard@winehq.org>
- Sort entry points in the same order as Windows.
- Added magic comments to all Wine-specific registry accesses to make
  them easier to grep.

svn path=/trunk/; revision=16484
2005-07-07 15:05:36 +00:00
Magnus Olsen
4fedfe1bf7 add %time% and %cd% internal value. Example echo %cd% or echo %time%.
svn path=/trunk/; revision=16483
2005-07-07 13:43:03 +00:00
Magnus Olsen
5aa3039278 Update command help text with \n at the end of the text
svn path=/trunk/; revision=16482
2005-07-07 11:44:15 +00:00
Magnus Olsen
be0b8327dd Fix minior bug in ConPrintfPaging so it count line right and do pause on the screen before it getting full. Fix the row size calc code. Move in page break code to the for. Write one char at time. Need to be fixed so it can write more that one char at time.
svn path=/trunk/; revision=16481
2005-07-07 11:26:38 +00:00
Filip Navara
e64361f015 Once more, this time with proper character encoding.
svn path=/trunk/; revision=16480
2005-07-07 09:56:47 +00:00
Filip Navara
52e8ffce44 Correct the copyright headers.
svn path=/trunk/; revision=16479
2005-07-07 09:48:44 +00:00
Filip Navara
8407954c54 Fix the problems introduced in r16449 by changing "-mdll --dll" to "-shared" and letting the linker generate the relocations in all cases.
svn path=/trunk/; revision=16478
2005-07-07 08:57:03 +00:00
Magnus Olsen
d1c9fb08f5 adding page break on almost all help param and on help command.
svn path=/trunk/; revision=16477
2005-07-07 08:29:22 +00:00
James Tabor
c296b39f61 Added MNS_ defines for MenuInfo dwStyle. Misc Wine Menu porting.
svn path=/trunk/; revision=16476
2005-07-07 00:21:21 +00:00
Gé van Geldorp
af07d5f933 Sync to Wine-20050628:
Alexandre Julliard <julliard@winehq.org>
- Sort entry points in the same order as Windows.

svn path=/trunk/; revision=16475
2005-07-06 22:49:08 +00:00
Hervé Poussineau
23c534f821 Open remote registry if needed in SetupDiCreateDeviceInfoListExW and SetupDiOpenClassRegKeyExW
Set last error in more places
Add my name to copyright due to my recent changes

svn path=/trunk/; revision=16474
2005-07-06 22:47:23 +00:00
Gé van Geldorp
8322ac0d33 Sync to Wine-20050628:
Juan Lang <juan_lang@yahoo.com>
- Fix return code abuse (don't use HRESULT when it isn't meant), make
  functions static where possible, remove unused prototypes.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Make some of the OLE interface vtables const.
Michael Jung <mjung@iss.tu-darmstadt.de>
- Use IShellFolder::GetDisplayNameOf instead of SHGetPathFromIDList to
  be able to browse shell namespace extensions.
Vitaly Lipatov <lav@etersoft.ru>
- Add some descriptions for PageSetupDlg functions.
- Implement user paint hook support and PSD_ENABLEPAGEPAINTHOOK
  checking.
Huw Davies <huw@codeweavers.com>
- If a folder is selected on Open then browse into it, otherwise we
  should return the path in the edit box whether that be a folder or a
  file.
- Don't add extensions to a folder.
- Use DWLP_MSGRESULT to return values from the dialog proc.
- Send CDN_FOLDERCHANGE whenever we change folder.

svn path=/trunk/; revision=16473
2005-07-06 22:40:35 +00:00
Gé van Geldorp
8a79bd9b46 Sync to Wine-20050628:
Robert Shearman <rob@codeweavers.com>
- Document how the native lays out the internal components of
  buttons.
- Fix control to follow these rules.
- Don't redraw disabled buttons.
- Padding is never less that GetSystemMetrics(SM_{CX,CY}EDGE).
- Change default iListGap value to 4 to match native.
- Fix a regression in IE where the Favourites menu didn't appear
  correctly because the height and width were swapped in the pager
  control.
Stefan Huehner <stefan@huehner.org>
- Fix more -Wstrict-prototypes warnings.
Mike McCormack <mike@codeweavers.com>
- Warning fixes for -Wmissing-declarations and -Wwrite-strings.
Felix Nawothnig <felix.nawothnig@t-online.de>
- Fix some missed invalidations after column resize.
- Pass the right hwnd to ReleaseDC().
Kouji Sasaki <taro-x@justsystem.co.jp>
- Added the feature to change row height in owner draw controls.
- Added the callback item processing for LISTVIEW_EndEditLabelT
  function.
- Corrected the priority of operators for LISTVIEW_GetNextItem
  function.
Huw Davies <huw@codeweavers.com>
- For modal propsheets we should run our own message loop rather than
  use a modal dialogbox just like Windows does.  This helps apps that
  subclass the propsheet's wndproc.
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
James Hawkins <truiken@gmail.com>
- Audit the Tab control.
- Factor out common text shifting logic.
- Shift selected tab text up instead of down.
Alex Zorach <info@suscomputing.com>
- Fixed SetFocus behavior.
Krzysztof Foltman <wdev@foltman.com>
- Don't send TVN_SELCHANGING nor TVN_SELCHANGED if the same item is
  selected again.

svn path=/trunk/; revision=16472
2005-07-06 22:33:11 +00:00
Gé van Geldorp
44efc84fb4 Sync to Wine-20050628:
Thomas Weidenmueller <wine-patches@reactsoft.com>
- Removed local variables only used in TRACE statements.
Gerold Jens Wucherpfennig <gjwucherpfennig@gmx.net>
- Some FCI work.

svn path=/trunk/; revision=16471
2005-07-06 22:24:04 +00:00
Gé van Geldorp
0ddd1be07e Sync to Wine-20050628:
Robert Shearman <rob@codeweavers.com>
- Add more struct types for TLB generation.
Stefan Huehner <stefan@huehner.org>
- Fix some -Wmissing-declarations by making functions static.
Huw Davies <huw@codeweavers.com>
- Add comments describing the first DWORD in an import table entry.
Alexandre Julliard <julliard@winehq.org>
- Workaround to allow using the async keyword as method name.

svn path=/trunk/; revision=16470
2005-07-06 22:16:28 +00:00
Gé van Geldorp
28277f305b Sync to Wine-20050628:
Mike McCormack <mike@codeweavers.com>
- Move function prototypes to header.
Eric Pouech <pouech-eric@wanadoo.fr>
- Const correctness fixes.

svn path=/trunk/; revision=16469
2005-07-06 21:40:07 +00:00
Hervé Poussineau
40c9cd2c5d SetupDiGetClassDevsExW: implement DIGCF_ALLCLASSES and DIGCF_DEVICEINTERFACE. use deviceset and enumstr parameters if provided
Set right last error (if needed) in SetupDiCreateDeviceInfoListExW, SetupDiEnumDeviceInfo, SetupDiEnumDeviceInterfaces, SetupDiGetDeviceRegistryPropertyW
Replace some constants by constant names

svn path=/trunk/; revision=16468
2005-07-06 21:32:16 +00:00
Gé van Geldorp
bb29508c33 zebasoftis <zebasoftis@gmail.com>:
Polish Resource File for control.exe

svn path=/trunk/; revision=16467
2005-07-06 21:24:11 +00:00
Gé van Geldorp
dc2b5795d3 zebasoftis <zebasoftis@gmail.com>
Polish Resource File for timedate.cpl

svn path=/trunk/; revision=16466
2005-07-06 21:21:30 +00:00
Magnus Olsen
67984c6757 adding %errorlevel% code for date
it is always 0 

svn path=/trunk/; revision=16465
2005-07-06 20:50:21 +00:00
Eric Kohl
8655ed62ef Move undocumented GUIDs to a new NDK header file.
svn path=/trunk/; revision=16464
2005-07-06 20:20:02 +00:00
Magnus Olsen
7ee590086a set right errorlevel for cd / chdir, left to do we do not have /d param that are new in win2k maby in older windows also
svn path=/trunk/; revision=16463
2005-07-06 20:15:36 +00:00
Magnus Olsen
721be9ec7b remove rem errorlevel it was never set stupied mistake by me.fix call setting errorlevel to 1
svn path=/trunk/; revision=16462
2005-07-06 19:42:41 +00:00
Magnus Olsen
78df6635f5 set %errorlevel% for rem
svn path=/trunk/; revision=16461
2005-07-06 19:13:24 +00:00
Thomas Bluemel
2936d05aa3 don't use the DS_NOFAILCREATE style which I accidentally committed earlier
svn path=/trunk/; revision=16460
2005-07-06 17:18:48 +00:00
Casper Hornstrup
8a1b2d5c2b Generate pre-compiled headers in intermediate directory tree
svn path=/trunk/; revision=16459
2005-07-06 16:56:28 +00:00
Gé van Geldorp
c82da07ee2 Change license to LGPL
svn path=/trunk/; revision=16458
2005-07-06 16:27:58 +00:00
Magnus Olsen
c9b36033d8 hopeful it is last bug in choice.c when you type choice "sadsa" it did not response on key press at all.
svn path=/trunk/; revision=16457
2005-07-06 14:06:33 +00:00
Magnus Olsen
1369d1649e fix a small bug in choice.c so it does print out choice "sadsad" right
svn path=/trunk/; revision=16456
2005-07-06 13:50:08 +00:00
Filip Navara
2fc5a38d16 Remove definitions that are already present in the DDK headers.
svn path=/trunk/; revision=16455
2005-07-06 13:46:42 +00:00
Filip Navara
db15209f07 - Move ReactOS specific code to ReactOS specific files/directories.
- Use NDK instead of redefining the loader structures.

svn path=/trunk/; revision=16454
2005-07-06 13:41:51 +00:00
Magnus Olsen
3b440449dd Add proper memory alloc ProcessInput, the error handling for memory handling need to be improve
svn path=/trunk/; revision=16453
2005-07-06 13:09:23 +00:00
Magnus Olsen
04480b3be7 translate %errorlevel% to a value when it pass at command line. Now is errorlevel implement as it should. left todo check all cmd command that they are setting right value
svn path=/trunk/; revision=16452
2005-07-06 12:20:57 +00:00
Filip Navara
9254444a9c Don't continue processing after displaying the usage screen.
svn path=/trunk/; revision=16451
2005-07-06 11:31:03 +00:00
Filip Navara
8064f8c236 Fix some compilation issues.
svn path=/trunk/; revision=16450
2005-07-06 09:27:08 +00:00
Filip Navara
b6e80ebb53 Generating relocations twice for DLLs? Oh, what a clever idea ... not.
svn path=/trunk/; revision=16449
2005-07-06 08:43:36 +00:00
Filip Navara
8e4e06d0de Report correct system space start address in /3GB case.
svn path=/trunk/; revision=16448
2005-07-06 08:22:13 +00:00
Filip Navara
2773203033 Kernel base address and system space start can be distinct addresses, so use KERNEL_BASE and MmSystemRangeStart accordingly in the code.
svn path=/trunk/; revision=16447
2005-07-06 08:20:26 +00:00
Gé van Geldorp
d64e8b4096 zebasoftis <zebasoftis@gmail.com>:
Polish Resource File for winlogon

svn path=/trunk/; revision=16446
2005-07-06 07:54:04 +00:00
Filip Navara
902a400b19 Put the page tables and hyperspace at the right place in memory (ie. Windows compatible).
svn path=/trunk/; revision=16445
2005-07-06 00:29:39 +00:00
Thomas Bluemel
4ea9392a55 fix gcc4 warnings and indention
svn path=/trunk/; revision=16444
2005-07-06 00:24:08 +00:00
Thomas Bluemel
c75115824f fix warnings with -Wsign-compare for MP builds
svn path=/trunk/; revision=16443
2005-07-05 23:15:22 +00:00
Thomas Bluemel
5979e80363 fix warnings with -Wsign-compare and -Wpointer-arith
svn path=/trunk/; revision=16442
2005-07-05 22:58:11 +00:00
Thomas Bluemel
cc6ffdce48 fixed some signed/unsigned comparison warnings with -Wsign-compare
svn path=/trunk/; revision=16441
2005-07-05 22:35:29 +00:00
Alex Ionescu
c3e6b1f6a4 Ged Murpy <gedmurphy@gmail.com>
* ARP Rewrite, 90% complete (still in progress)

svn path=/trunk/; revision=16440
2005-07-05 22:14:07 +00:00
Alex Ionescu
d9cbcc2128 Fix the build by adding KDPC_DATA as a shared arch structure. Kind of a hack but I could not find another way to avoid the undelrying recursive dependencies that not doing this would cause. Also made an arch-specific fix to KPROCESS and wrote a little comment on it
svn path=/trunk/; revision=16439
2005-07-05 21:57:55 +00:00
Gé van Geldorp
d005fc9f1a Sync to Wine-20050628:
Alexandre Julliard <julliard@winehq.org>
- Generate the resource data directly inside the resource directory.
- Replaced all uses of the __ASM_NAME macro by the asm_name function to
  allow run-time determination of the correct format.
- Beginnings of an infrastructure to allow specifying the target CPU and
  platform at run-time.
- Output the exported names as a C string so that they end up in the
  correct section.
- Reuse output_dll_init for the constructor of debug files.
- Moved all assembly code to the end of the generated C files to avoid
  conflicting with the compiler over section changes.
- Switch back to .data at the end of asm sections to work around an
  optimization in recent gcc versions.
- Remove some i386 ifdefs for 16-bit entry points since they are no
  longer used by default on other platforms anyway.
- Make import thunks position-independent to avoid text relocations.
- Generate proper PIC code for CALL32_CBClient.
- Store a relative pointer for registry entry points to avoid some text
  relocations.
- Allocate ordinals in the order of the declarations in the spec file.
Wolfgang Thaller <wolfgang.thaller@gmx.net>
- Winebuild darwin/x86-specific fixes:
  - Assembler interprets .align as power-of-two
  - Add .weak_reference to output where gcc 3.3 swallows it
- Use __ASM_NAME and HAVE_ASM_DOT_SIZE in a few places in winebuild
  where they have been missing (needed for Darwin/x86).
Pierre d'Herbemont <stegefin@free.fr>
- Use .mod_*_func sections on Mac OS X/i386 instead of the elf
  constructor/destructor.

svn path=/trunk/; revision=16438
2005-07-05 21:17:01 +00:00
Eric Kohl
40dc1919bc Add architecture-specific headers and move I386-specific definitions into them.
svn path=/trunk/; revision=16437
2005-07-05 21:03:46 +00:00
Gé van Geldorp
93232de775 Sync to Wine-20050628:
Eric Pouech <pouech-eric@wanadoo.fr>
- Const correctness fixes.
Mike McCormack <mike@codeweavers.com>
- Fix some declaration and write string warnings.

svn path=/trunk/; revision=16436
2005-07-05 20:47:48 +00:00
Filip Navara
dd349cfd8b Remove spurious "#define _OLEIDL_H".
svn path=/trunk/; revision=16433
2005-07-05 17:13:01 +00:00
Gé van Geldorp
3b9c960f59 Always return a meaningfull status code
svn path=/trunk/; revision=16432
2005-07-05 17:10:52 +00:00
Gé van Geldorp
8e86b33472 Prevent warning in optimized builds
svn path=/trunk/; revision=16431
2005-07-05 17:10:19 +00:00
Gé van Geldorp
f29b15b285 Code generator for 16bpp DIB Blt operations
svn path=/trunk/; revision=16430
2005-07-05 17:08:58 +00:00
Filip Navara
d6ebf05ea0 Get rid of the (incorrect) __attribute__((packed)) usage.
svn path=/trunk/; revision=16429
2005-07-05 17:08:48 +00:00
Filip Navara
51c604714a - Convert pure inline assembler .c files to .S files.
- Move SMP IRQ handlers to irqhand.s (at the same place where the UP ones are).

svn path=/trunk/; revision=16428
2005-07-05 16:40:01 +00:00
Hervé Poussineau
7afd05c217 Fix compilation due to revision 16425.
I forgot a parameter in SetupDiGetClassDevsExA/W ...

svn path=/trunk/; revision=16427
2005-07-05 14:00:33 +00:00
Hervé Poussineau
9b619507af Implement SetupDiGetClassDescriptionExA, by calling SetupDiGetClassDescriptionExW
svn path=/trunk/; revision=16426
2005-07-05 13:15:10 +00:00
Hervé Poussineau
4a200035de Implement SetupDiGetClassDevs(Ex)A/W
svn path=/trunk/; revision=16425
2005-07-05 12:59:14 +00:00
Magnus Olsen
3c215ef287 Brandon Turner turnerb7@msu.edu. Bug fix color now it working as ms cmd color. Please everyone that have done translate of cmd, update the language's file. some text have been modify and add in cmd en.rc
svn path=/trunk/; revision=16424
2005-07-05 12:06:27 +00:00
Hervé Poussineau
a314f1c4ad - Implement SetupDiCreateDeviceInfoListExW
- Do according changes in SetupDiDestroyDeviceInfoList
- Implement SetupDiEnumDeviceInfo
- Don't open registry with full rights in SetupDiClassGuidsFromNameExW
- Set last error in SetupDiClassNameFromGuidExW in case of problem
- Do W->A conversion for InfSectionWithExt string in SetupDiGetActualSectionToInstallA

Following changes break serial port devices enumeration on Wine. I'll work on this problem later.
- Implement SetupDiGetClassDevsW
- Disable some code in SetupDiEnumDeviceInterfaces and SetupDiGetDeviceInterfaceDetailA

Now, you should be able to list devices classes, and enumerate devices related to each class

svn path=/trunk/; revision=16423
2005-07-05 08:48:43 +00:00
Thomas Bluemel
9766bda54e globally enable the -Wpointer-arith warning to prevent usage of GCC's pointer arithmetics extension
svn path=/trunk/; revision=16422
2005-07-05 01:18:07 +00:00
Thomas Bluemel
bd691c850c fix code that depends on GCC's void* pointer arithmetic extension
svn path=/trunk/; revision=16421
2005-07-05 00:57:47 +00:00
Thomas Bluemel
945ed508b6 fix code that depends on GCC's void* pointer arithmetic extension
svn path=/trunk/; revision=16420
2005-07-05 00:24:36 +00:00
Thomas Bluemel
a4a9299b16 fix code that depends on GCC's void* pointer arithmetic extension
svn path=/trunk/; revision=16419
2005-07-04 23:05:17 +00:00
Thomas Bluemel
eea2c1d47c some %x -> %p fixes
svn path=/trunk/; revision=16418
2005-07-04 22:25:46 +00:00
Gunnar Dalsnes
cf3c6e6296 fix premature close og reg key
svn path=/trunk/; revision=16417
2005-07-04 22:22:22 +00:00
Thomas Bluemel
541151ea53 some %x -> %p fixes
svn path=/trunk/; revision=16416
2005-07-04 22:11:00 +00:00
Gunnar Dalsnes
d8e78cc66b hopefully fix something in CreateClassKey
svn path=/trunk/; revision=16415
2005-07-04 21:54:36 +00:00
Filip Navara
199b9bce22 Yet another DPRINT fix.
svn path=/trunk/; revision=16414
2005-07-04 21:46:20 +00:00
Filip Navara
8f08cb04c9 Fix more DPRINTs.
svn path=/trunk/; revision=16413
2005-07-04 21:12:35 +00:00
Hervé Poussineau
382e1c8635 Remove entries that are created by 2nd stage setup, using media/inf/NET_NIC.inf
Fix some obvious wrong copy/pastes
Add correct registry entries for kbdclass and mouclass classes
Fix hard-coded values for serial mice (Serenum doesn't report the exact hardwa

svn path=/trunk/; revision=16412
2005-07-04 21:08:00 +00:00
Alex Ionescu
9b63d671e9 Dprint fixes by our lovely Filip
svn path=/trunk/; revision=16411
2005-07-04 21:01:46 +00:00
Thomas Bluemel
12e95836ec add a quick search feature to the checklist control
svn path=/trunk/; revision=16410
2005-07-04 17:22:18 +00:00
Thomas Bluemel
a11dac9b2a properly handle WM_UPDATEUISTATE
svn path=/trunk/; revision=16409
2005-07-04 13:37:02 +00:00
Thomas Bluemel
8e3b9a7f21 - hide the keyboard focus when appropriate
- add missing definitions to w32api

svn path=/trunk/; revision=16408
2005-07-04 13:21:14 +00:00
Thomas Bluemel
0140b609d9 fixed some scrolling issues
svn path=/trunk/; revision=16407
2005-07-04 11:52:16 +00:00
Thomas Bluemel
48e0fe423b handle resizing of the control
svn path=/trunk/; revision=16406
2005-07-04 11:05:04 +00:00
Thomas Bluemel
a0f4cc2feb get rid of the obsolete Makefile.ros-template files
svn path=/trunk/; revision=16405
2005-07-04 09:46:50 +00:00
Thomas Bluemel
7661ff0d5f properly handle clicks outside a checkbox
svn path=/trunk/; revision=16404
2005-07-04 00:30:23 +00:00
Thomas Bluemel
9d1991ed72 minor bugfixes
svn path=/trunk/; revision=16403
2005-07-04 00:06:52 +00:00
Thomas Bluemel
68a5299cd2 enable editing of the checkboxes and minor bugfixes
svn path=/trunk/; revision=16402
2005-07-03 23:29:36 +00:00
Eric Kohl
fae2febad9 Remove trailing whitespace and fix indentation
svn path=/trunk/; revision=16401
2005-07-03 21:37:16 +00:00
Hervé Poussineau
d3bf39b1f2 Delete unused makefiles
svn path=/trunk/; revision=16400
2005-07-03 21:35:41 +00:00
Eric Kohl
2bdea48b49 - Implement PlugPlayControlProperty and PlugPlayControlGetDeviceDepth
- Move documentation from NDK headers

svn path=/trunk/; revision=16399
2005-07-03 21:25:00 +00:00
Hervé Poussineau
3988ea5599 Implement SetupDiGetDeviceRegistryPropertyA
Add stub for SetupDiGetDeviceRegistryPropertyW

svn path=/trunk/; revision=16398
2005-07-03 20:19:55 +00:00
Martin Fuchs
1d354a90fe fix compile errors
svn path=/trunk/; revision=16397
2005-07-03 20:12:16 +00:00
Thomas Bluemel
7a42053e8b actually disable it, sorry
svn path=/trunk/; revision=16396
2005-07-03 19:32:55 +00:00
Thomas Bluemel
ef28baf965 add support for XP themes (disabled by default)
svn path=/trunk/; revision=16395
2005-07-03 19:32:30 +00:00
Thomas Bluemel
4be9703fa6 - imported uxtheme.dll from WINE-20050703
- added missing definitions in w32api
- imported schemadef.h from WINE and replaced most of tmschema.h with WINE's version (which is much more correct)

svn path=/trunk/; revision=16394
2005-07-03 18:32:22 +00:00
Eric Kohl
89ac547ef5 - Move definitions from ntpnp.h into NDK and DDK
- Remove ntpnp.h

svn path=/trunk/; revision=16393
2005-07-03 15:21:19 +00:00
Martin Fuchs
d46e87dfdb prepare for WINE UNICODE patch
svn path=/trunk/; revision=16392
2005-07-03 13:49:05 +00:00
Hervé Poussineau
5c050fc41f Implement SetupDiGetActualSectionToInstallA
Implement SetupDiCreateDeviceInfoA
Add SetupDiCreateDeviceInfoW stub
Fix SetupDiOpenClassRegKeyExW, by adding { } around the GUID string when opening the registry key
Don't use L"..." notation for wide strings

svn path=/trunk/; revision=16391
2005-07-03 13:46:33 +00:00
Eric Kohl
89d4545331 - Define and use PLUGPLAY_CONTROL_CLASS
- PNP_GetVersion should return an error code
- Rename structs used by NtPlugPlayControl

svn path=/trunk/; revision=16390
2005-07-03 12:18:23 +00:00
Hervé Poussineau
3eb22d7480 Implement CM_Enumerate_Classes and CM_Enumerate_Classes_Ex
svn path=/trunk/; revision=16389
2005-07-03 10:35:56 +00:00
Hervé Poussineau
151fe7f976 Add some missing constants and prototypes related to setupapi/cfgmgr
svn path=/trunk/; revision=16388
2005-07-03 10:33:51 +00:00
Martin Fuchs
7e100086d3 switch to WIN32 API string functions
svn path=/trunk/; revision=16387
2005-07-03 09:39:11 +00:00
James Tabor
c21d161abd Half way implement NtGdiUnrealizedObject.
svn path=/trunk/; revision=16386
2005-07-03 06:43:49 +00:00
Thomas Bluemel
51e10671c0 don't look up list items with negative index
svn path=/trunk/; revision=16385
2005-07-03 02:02:47 +00:00
Thomas Bluemel
79811989d8 - allow changing the focus of the check boxes in the checklist control
- minor fixes

svn path=/trunk/; revision=16384
2005-07-03 01:44:25 +00:00
Eric Kohl
d23d39a743 Implement StringTableDuplicate.
svn path=/trunk/; revision=16383
2005-07-02 21:32:37 +00:00
Eric Kohl
396b274742 Implement GetVersionInfoFromImage.
Add missing prototypes to w32api.

svn path=/trunk/; revision=16382
2005-07-02 19:26:43 +00:00
Martin Fuchs
5f53398bd1 Henning Gerhardt <henning.gerhardt@web.de>: Update German resource files.
svn path=/trunk/; revision=16381
2005-07-02 17:57:51 +00:00
Hervé Poussineau
8925d0aca7 Implement PoRequestPowerIrp
svn path=/trunk/; revision=16380
2005-07-02 14:50:22 +00:00
Eric Kohl
6c58ea3cd7 Implement CenterWindowRelativeToParent.
svn path=/trunk/; revision=16379
2005-07-02 14:05:38 +00:00
Thomas Bluemel
50c2bb7322 - query the domain server if specified by the server
- fixed some minor bugs

svn path=/trunk/; revision=16378
2005-07-02 13:49:23 +00:00
Filip Navara
65ecbfa03d Use RtlExitUserThread instead of NtTerminateThread, so the stack is properly freed.
svn path=/trunk/; revision=16377
2005-07-02 13:45:23 +00:00
Filip Navara
f15bf7924f Add prototypes for RtlExitUserThread and RtlInitializeContext.
svn path=/trunk/; revision=16376
2005-07-02 13:42:43 +00:00
Thomas Bluemel
16c7672bfd enumerate the permission names and display them
svn path=/trunk/; revision=16375
2005-07-02 01:34:18 +00:00
Thomas Bluemel
15436e184a initial (not yet complete) implementation of the checklist control for the permissions editor
svn path=/trunk/; revision=16374
2005-07-01 23:33:34 +00:00
Hervé Poussineau
46903e60ea Set svn:eol-style property to native
svn path=/trunk/; revision=16373
2005-07-01 23:26:01 +00:00
Alex Ionescu
c18f64ffe6 fix tlist
svn path=/trunk/; revision=16372
2005-07-01 19:53:02 +00:00
Magnus Olsen
e2a3507651 Brandon Turner turnerb7@msu.edu
Added ConPrintfPaging and ConOutPrintfPaging
Added /p back in using ConOutPrintfPaging

Me
correct small mistake in en.rc adding newline 
for dir_help text, so it looking bit better when it 
printout

svn path=/trunk/; revision=16371
2005-07-01 18:20:10 +00:00
Alex Ionescu
dca78ab993 remove acledit.h, the interfaces are nt4-only and deprecated, programmers must use ISecurityInformation (which is what Thomas has started to implement as well)
svn path=/trunk/; revision=16370
2005-07-01 16:04:07 +00:00
Alex Ionescu
ff230341e0 Fix DHCP bug (a ReadFile was being done on a BOOLEAN return value instead of the handle, and a thread was never returning), fix 99% of warnings and use PCH
svn path=/trunk/; revision=16369
2005-07-01 15:40:52 +00:00
Hervé Poussineau
5cda38b218 Add '\' between "System\CurrentControlSet\Class" and the GUID when creating the registry key name
Don't return FALSE but INVALID_HANDLE_VALUE in SetupDiOpenClassRegKeyExW

svn path=/trunk/; revision=16368
2005-07-01 15:29:06 +00:00
Thomas Bluemel
15d5aa6c62 query the dacl from the ISecurityInformation server, query the domains name from lsass and list them in the dialog box
svn path=/trunk/; revision=16367
2005-07-01 12:09:04 +00:00
Alex Ionescu
a51afa23e7 These two escaped... fix them too
svn path=/trunk/; revision=16366
2005-07-01 03:58:55 +00:00
Alex Ionescu
aa9df5babf Fix breakage caused by accidental commit in the last revision
svn path=/trunk/; revision=16364
2005-07-01 03:40:52 +00:00
Alex Ionescu
79ab4b5644 Fix explorer/ibrowser build
svn path=/trunk/; revision=16363
2005-07-01 03:25:35 +00:00
Alex Ionescu
919125b189 Kill off more of rosrtl
svn path=/trunk/; revision=16362
2005-07-01 03:14:40 +00:00
Alex Ionescu
14e3b7395b PCH for csrss and win32csr, and remove rosrtl usage
svn path=/trunk/; revision=16361
2005-07-01 03:03:06 +00:00
Alex Ionescu
267707560d PCH for SMSS, and remove rosrtl usage
svn path=/trunk/; revision=16360
2005-07-01 02:47:15 +00:00
Alex Ionescu
4eb4922aad Kill large parts of rosrtl. devmode conversion implented in gdi32 because it's actually an exported api, 2nd converstion used only once so inlined. logfont conversion implented as functions directly in the ddl. rtlrosmin/max replaced by actual macros, and resource rtlros function in aclui replace by actual win32 call. other rosrtl code was already deprecated.
svn path=/trunk/; revision=16359
2005-07-01 01:54:55 +00:00
Alex Ionescu
2125679164 Move some internal headers to /reactos, set it as a default include path, move pseh and elf headers to their respective directories
svn path=/trunk/; revision=16358
2005-06-30 22:40:36 +00:00
Thomas Bluemel
755c848950 - Get rid of GCC specific typecasts to PVOID for pointer arithmetics
- Decrement the AceCount in RtlDeleteAce instead of incrementing it

svn path=/trunk/; revision=16357
2005-06-30 21:38:39 +00:00
Alex Ionescu
084cc36104 rollback change
svn path=/trunk/; revision=16356
2005-06-30 17:00:19 +00:00
Alex Ionescu
077fa44358 rollback change
svn path=/trunk/; revision=16355
2005-06-30 16:59:07 +00:00
Alex Ionescu
30a6f296fd kill rosrtl from system modules
svn path=/trunk/; revision=16354
2005-06-30 16:57:06 +00:00
Alex Ionescu
493ca2fe71 remove roscfg.h
svn path=/trunk/; revision=16353
2005-06-30 16:52:26 +00:00
Alex Ionescu
8539083b08 Add windows.h back, is it futile to remove it
svn path=/trunk/; revision=16352
2005-06-30 16:48:14 +00:00
Alex Ionescu
8209b87210 Remove windows.h from external win32k headers
svn path=/trunk/; revision=16351
2005-06-30 16:39:17 +00:00
Alex Ionescu
5420982bbb Math.c wasn't using the pch header, thanks for the catch, Steven
svn path=/trunk/; revision=16350
2005-06-30 16:31:15 +00:00
Alex Ionescu
eaf273b4ef remove windows.h dependency. Filip said it couldn't be done, so please watch out for flying pigs and hell freezing over
svn path=/trunk/; revision=16349
2005-06-30 16:20:40 +00:00
Alex Ionescu
02bd986e69 Fix win32k warnings, get rid of windowsx.h dependency
svn path=/trunk/; revision=16348
2005-06-30 16:17:45 +00:00
Alex Ionescu
d280ce9240 Kill rosrtl
svn path=/trunk/; revision=16347
2005-06-30 16:04:08 +00:00
Filip Navara
bc4215dca5 Don't use ROSRTL.
svn path=/trunk/; revision=16346
2005-06-30 14:38:53 +00:00
Filip Navara
046d85a84a Use RtlQueryRegistryValues instead of RosReadRegistryValue.
svn path=/trunk/; revision=16345
2005-06-30 13:50:21 +00:00
Alex Ionescu
2170f23f23 Manually define undocumented MS GLU constants
svn path=/trunk/; revision=16344
2005-06-30 12:42:57 +00:00
Thomas Bluemel
444df32c83 implemented NeedCurrentDirectoryForExePathA/W
svn path=/trunk/; revision=16343
2005-06-30 12:33:12 +00:00
Alex Ionescu
005201f320 Delete ddentry.h and create official ddrawgdi.h header instead, delete duplicate GL include folder, move internal headers to internal libs, delete tcpmisc.h and move its defines to official tcpioctl.h, fix up winddi.h and cleanup gdi32 header.
svn path=/trunk/; revision=16342
2005-06-30 12:31:36 +00:00
Filip Navara
56ac965dc9 Move ROSKY to a separate SVN module.
svn path=/trunk/; revision=16341
2005-06-30 12:22:27 +00:00
Filip Navara
f992a4e417 Move ROSKY to a separate SVN module.
svn path=/trunk/; revision=16340
2005-06-30 12:21:30 +00:00
Filip Navara
f5dfe7db02 Move ROSKY to a separate SVN module.
svn path=/trunk/; revision=16339
2005-06-30 12:19:21 +00:00
Filip Navara
ff9c6f6419 Move ROSKY out of the main module.
svn path=/trunk/; revision=16338
2005-06-30 12:17:36 +00:00
Filip Navara
9a7a1b2147 Move ROSKY out of the main module.
svn path=/trunk/; revision=16337
2005-06-30 12:17:30 +00:00
Filip Navara
8ab1501eb8 Move ROSKY out of the main module.
svn path=/trunk/; revision=16336
2005-06-30 12:16:27 +00:00
Alex Ionescu
625fd620c6 Fix warning
svn path=/trunk/; revision=16335
2005-06-30 02:17:47 +00:00
Filip Navara
73970db31b Allow YASM to be used instead of NASM.
svn path=/trunk/; revision=16334
2005-06-29 22:19:47 +00:00
Steven Edwards
3fd1a79ff3 silence some warnings and break it even more
svn path=/trunk/; revision=16333
2005-06-29 20:13:51 +00:00
Steven Edwards
235fba2f3b already moved this to the PSDK
svn path=/trunk/; revision=16332
2005-06-29 20:03:12 +00:00
Steven Edwards
13da42279f correctly convert to all lower case
svn path=/trunk/; revision=16331
2005-06-29 19:47:57 +00:00
Steven Edwards
dbf298de73 correct case of included headers
svn path=/trunk/; revision=16330
2005-06-29 19:36:54 +00:00
Alex Ionescu
8ebf837814 Add a nice little KIDT_ACCESS structure for setting IDT entries in a pretty way
svn path=/trunk/; revision=16329
2005-06-29 19:06:28 +00:00
Alex Ionescu
356bf8d78c Fix halmp build for real
svn path=/trunk/; revision=16328
2005-06-29 19:05:46 +00:00
Filip Navara
f08cae7194 Use the correct structure in SetInterruptGate.
svn path=/trunk/; revision=16327
2005-06-29 18:33:39 +00:00
Filip Navara
06bd6d6ba8 We don't need to have uuids.h in each folder of the source tree, do we?
svn path=/trunk/; revision=16326
2005-06-29 18:26:30 +00:00
Filip Navara
99cf3f8baa I feel like trying to fit a cube into a circle-shaped hole on those little things kids play with... but however ugly the change can look it makes the MP HAL not freeze during boot.
svn path=/trunk/; revision=16325
2005-06-29 18:21:31 +00:00
Gé van Geldorp
28f775e06d zebasoftis <zebasoftis@gmail.com>:
Add Polish translation

svn path=/trunk/; revision=16324
2005-06-29 18:18:19 +00:00
Alex Ionescu
70c62c571a Fix idt descriptor code properly
svn path=/trunk/; revision=16323
2005-06-29 17:36:05 +00:00
Alex Ionescu
ba4e11025f Fix HALMP build
svn path=/trunk/; revision=16322
2005-06-29 17:22:57 +00:00
Filip Navara
a6114ec37f Fix warnings.
svn path=/trunk/; revision=16321
2005-06-29 09:35:02 +00:00
Filip Navara
db07afe07a Move the inclusion of <debug.h> to individual files and consolidate the inclusion of DDRAW/D3D headers a bit.
svn path=/trunk/; revision=16320
2005-06-29 07:09:25 +00:00
Steven Edwards
1d02274287 move a few more headers to the PSDK
svn path=/trunk/; revision=16319
2005-06-29 00:11:39 +00:00
Gunnar Dalsnes
fb6b25f553 use correct resourcefile
svn path=/trunk/; revision=16318
2005-06-28 23:36:28 +00:00
Steven Edwards
753209adc2 move ipexport.h to PSDK
svn path=/trunk/; revision=16317
2005-06-28 23:31:38 +00:00
Steven Edwards
9a714d7f55 remove inclusion of basetsd.h, I did not mean to commit this
svn path=/trunk/; revision=16316
2005-06-28 22:56:09 +00:00
Gé van Geldorp
5a9947460c Start off atoms in life with a ReferenceCount of 1
svn path=/trunk/; revision=16315
2005-06-28 22:33:48 +00:00
Steven Edwards
6d73043da8 move some wine headers to the PSDK
svn path=/trunk/; revision=16314
2005-06-28 22:09:03 +00:00
Alex Ionescu
af4ad253eb Move MS DDK files to DDK
svn path=/trunk/; revision=16313
2005-06-28 21:01:50 +00:00
Alex Ionescu
19fedef475 Copy more official headers to psdk directory
svn path=/trunk/; revision=16312
2005-06-28 20:30:26 +00:00
Alex Ionescu
0b4e482a01 Copy more official headers to psdk directory
svn path=/trunk/; revision=16311
2005-06-28 20:30:21 +00:00
Alex Ionescu
0a57f377c6 Add PSDK headers from ./include to ./w32api, delete some outdated headers and place some in ddk properly
svn path=/trunk/; revision=16310
2005-06-28 16:59:43 +00:00
Eric Kohl
f03def7913 Implement private object security functions.
svn path=/trunk/; revision=16309
2005-06-27 22:42:28 +00:00
Eric Kohl
53dea75f28 - Add Rtl*SecurityObject stubs.
- Export RtlpUnWaitCriticalSection and RtlWaitForCriticalSection.
- Replace DWORDs by ULONGs.

svn path=/trunk/; revision=16308
2005-06-27 21:11:29 +00:00
Hartmut Birr
a484af08a4 Fixed the rule for wrc.o.
svn path=/trunk/; revision=16307
2005-06-27 18:56:50 +00:00
Magnus Olsen
3da468a670 remove blank space at end of line 143 did not see it
sorry for compiling waring

svn path=/trunk/; revision=16306
2005-06-27 18:53:37 +00:00
Magnus Olsen
ef09f963dd Brandon Turner <turnerb7@msu.edu> Implemented /A example "del /A:H /A:-R *.exe -ping.exe"
svn path=/trunk/; revision=16305
2005-06-27 18:46:07 +00:00
Alex Ionescu
9734b13b5c Delete last trace of old headers in NDIS, and clean up some more old headers
svn path=/trunk/; revision=16304
2005-06-26 22:16:39 +00:00
Thomas Bluemel
c717085add - don't use the UNIMPLEMENTED macro in ObFindHandleForObject because it's actually used by win32k already
- set the right generic mapping for desktop and window station handles during win32k startup

svn path=/trunk/; revision=16303
2005-06-26 21:42:30 +00:00
Alex Ionescu
0c07cf98ad Fix boot
svn path=/trunk/; revision=16302
2005-06-26 21:32:48 +00:00
Eric Kohl
566e4b53a3 Build LSASS.
svn path=/trunk/; revision=16301
2005-06-26 21:01:19 +00:00
Eric Kohl
a35b024258 Remove useless Nt*Chanel and NtQueryOleDirectoryFile() prototypes.
svn path=/trunk/; revision=16300
2005-06-26 19:57:29 +00:00
Alex Ionescu
4710304a0d Fix kdbg build and some more header cleanups: add csq.q to ntifs, since it's now fully documented by MS (kept vizzini's comments though), moved af_irda to w32api because it's part of PSDK, moved ntbootvid.h to bootvid directory, removed ldrfuncs.h and add ndk's ldrfuncs.h to umode ndk (it was missing)
svn path=/trunk/; revision=16298
2005-06-26 19:29:12 +00:00
Eric Kohl
7132276795 Revert patch 16283 because it breaks PSDK compatibility.
svn path=/trunk/; revision=16297
2005-06-26 18:04:20 +00:00
Alex Ionescu
025d7c475c Seems I forgot to commit this, sorry
svn path=/trunk/; revision=16296
2005-06-26 18:00:22 +00:00
Eric Kohl
954200311b Add missing base address for cfgmgr32.dll and lsasrv.dll.
svn path=/trunk/; revision=16295
2005-06-26 17:22:34 +00:00
Alex Ionescu
67c200f2f9 Fix build
svn path=/trunk/; revision=16294
2005-06-26 17:11:20 +00:00
Alex Ionescu
3562ba1c03 Finalize organization of rtlfuncs.h and update FIXME status.
svn path=/trunk/; revision=16293
2005-06-26 16:35:51 +00:00
Alex Ionescu
edbcb1e0f4 Remove depcrecated constant
svn path=/trunk/; revision=16292
2005-06-26 16:35:17 +00:00
Alex Ionescu
6a9d46a3bb Update FIXME status.
svn path=/trunk/; revision=16291
2005-06-26 16:07:49 +00:00
Alex Ionescu
fef9d4dc69 Fixes for NDK compatibily (and plain ol' good design): - Use correct LDRP_ flags instead of our own made up ones. - Remove extra Process Info Classes that aren't in winddk, and use an add-on enumeration in the NDK. - Make ntoskrnl even more unaware of Win32K Internals by removing the deprecated PsCreateWin32Process function, moving w32process/thread allocation to win32k, and fixing the PsEstablishWin32Callouts function to use the latest NT prototype and callout data. These changes are similar to the ones done in NT.
svn path=/trunk/; revision=16290
2005-06-26 16:06:32 +00:00
James Tabor
7c91ae9295 Setup support for ShowOwnedPopups and expand new function in NtUserCallTwoParam.
svn path=/trunk/; revision=16289
2005-06-26 15:49:56 +00:00
Alex Ionescu
ce50274dc3 Satisfy blight's excessively arrogant attitude and overblown ego
svn path=/trunk/; revision=16288
2005-06-26 15:22:44 +00:00
Alex Ionescu
7cf07db3d7 Add NDK FIXME List.
svn path=/trunk/; revision=16287
2005-06-26 14:52:15 +00:00
Eric Kohl
ef8c4070db Build lsasrv.dll.
svn path=/trunk/; revision=16286
2005-06-26 14:02:36 +00:00
Hervé Poussineau
daae3048fd Move variable declaration at the top of the function
Remove unneeded affectation of hProcessHeap (already initialized in DllMain)

svn path=/trunk/; revision=16285
2005-06-26 12:51:17 +00:00
Eric Kohl
489bda971f Add cfgmgr32 dll.
This is a forwarder dll that passes all calls to setupapi.dll.

svn path=/trunk/; revision=16284
2005-06-26 12:17:27 +00:00
Eric Kohl
8f6865c18a Don't redefine ANSI_STRING, UNICODE_STRING and OBJECT_ATTRIBUTES if the NDK already defines them.
svn path=/trunk/; revision=16283
2005-06-26 11:14:48 +00:00
Eric Kohl
f0365b3d7a Add missing resource function prototypes.
svn path=/trunk/; revision=16282
2005-06-26 11:07:15 +00:00
Alex Ionescu
ee15175e82 Hasta la vista ntdll/napi headers
svn path=/trunk/; revision=16281
2005-06-26 06:27:34 +00:00
Alex Ionescu
e91e67f144 fix diskdump build
svn path=/trunk/; revision=16280
2005-06-26 06:06:51 +00:00
Alex Ionescu
80a245fca0 Kill NTOS headers. So long, and thanks for all the fish
svn path=/trunk/; revision=16279
2005-06-26 05:52:40 +00:00
Alex Ionescu
068dd36e8b make usb miniports not to use old header
svn path=/trunk/; revision=16278
2005-06-26 05:06:38 +00:00
Alex Ionescu
2d4d9762bb make lsass, win32k and vbe/xbox miniports use ndk instead of old headers
svn path=/trunk/; revision=16277
2005-06-26 05:04:12 +00:00
Alex Ionescu
499eae2bd2 Revert accidental commit
svn path=/trunk/; revision=16276
2005-06-26 04:50:07 +00:00
Alex Ionescu
3251827a3d Imitate NT and set some of the private object info for desktop/winsta inside win32k, not inside the kernel, so we don't need to know about win32k's private objects
svn path=/trunk/; revision=16275
2005-06-26 04:49:10 +00:00
Alex Ionescu
c6af94415d Build videoprt with NDK
svn path=/trunk/; revision=16274
2005-06-26 04:00:25 +00:00
Eric Kohl
ae46f5aa6a Hal needs KPCR_BASE
svn path=/trunk/; revision=16273
2005-06-26 01:12:21 +00:00
Eric Kohl
b9345f5cd1 Fix indentation, remove trailing whitespace and sort prototypes.
svn path=/trunk/; revision=16272
2005-06-26 01:08:55 +00:00
Alex Ionescu
c12e487549 build win32k with NDK, finally\!
svn path=/trunk/; revision=16271
2005-06-25 20:05:56 +00:00
Alex Ionescu
a01ddd88cf fix most parts of the build except win32k
svn path=/trunk/; revision=16270
2005-06-25 18:18:01 +00:00
Alex Ionescu
c6e139c501 Add many more structures to NDK which were incorrectly in the w32api IFS
svn path=/trunk/; revision=16269
2005-06-25 18:08:47 +00:00
Alex Ionescu
deb7a80fdd Large partial cleanup of ntoskrnl internal headers, mostly to delete obsoleted or non-useful headers, to reformat some horrible tab, spaces, etc mixups, and to move to NDK some public structures and remove all the include headers so that the standard one can be added. Note the word partial, meaning more will come in order to fully fix the mess.
svn path=/trunk/; revision=16268
2005-06-25 17:01:17 +00:00
Hervé Poussineau
1e4c8ee564 Remove mouse type selection in usetup.
i8042prt driver is always loaded for keyboard and auto-detects the PS/2 mouse (if any)
sermouse driver is loaded if a serial mouse is enumerated by serenum driver

svn path=/trunk/; revision=16267
2005-06-25 16:01:27 +00:00
Alex Ionescu
95f0ca7fdb Build ntoskrnl with NDK, and don't use rosrtl
svn path=/trunk/; revision=16266
2005-06-25 14:04:56 +00:00
Alex Ionescu
a9a36a579f Forgot this, sorry
svn path=/trunk/; revision=16265
2005-06-25 14:03:51 +00:00
Alex Ionescu
4169a5a54b Build secur32 with NDK
svn path=/trunk/; revision=16264
2005-06-25 13:55:24 +00:00
Alex Ionescu
767c5ce44f Fix token structure, add aux_data, fix KeDisconnectInterrupt and add NtBuildNumber (fixes for NDK)
svn path=/trunk/; revision=16263
2005-06-25 05:01:29 +00:00
Magnus Olsen
8a99b51cbf Brandon Turner <turnerb7@msu.edu>) simple check to fix > and | bug with 'rem' I (greatlord / Magnus Olsen) did small change on his patch so it did null terminate the strings right
svn path=/trunk/; revision=16262
2005-06-24 22:52:21 +00:00
Alex Ionescu
5c2b2a05bf Add missing privileges to winddk
svn path=/trunk/; revision=16261
2005-06-24 20:58:18 +00:00
Casper Hornstrup
59605ac1e7 Search current directory first for #include "".
svn path=/trunk/; revision=16260
2005-06-24 19:39:47 +00:00
Hervé Poussineau
5444c47450 Change STATUS error codes to winerror ones
svn path=/trunk/; revision=16259
2005-06-24 18:28:22 +00:00
Hervé Poussineau
a434b1aa6d Dmitry Philippov (shedon@mail.ru): implement GetCommConfig and SetCommConfig
svn path=/trunk/; revision=16258
2005-06-24 18:19:40 +00:00
Thomas Bluemel
469c016da3 - Moved ntdll's atom table implementation to rtl, rewrote it to use proper structures and share the generic implementation between ntoskrnl and ntdll
- Updated the rtl handle table implementation to use proper structures. Reserved handles are not yet supported correctly.

svn path=/trunk/; revision=16257
2005-06-24 18:11:16 +00:00
Alex Ionescu
ff3d5dbe7d Fix rtshared, didn't know about this module
svn path=/trunk/; revision=16256
2005-06-24 16:39:49 +00:00
Alex Ionescu
c78d9b68e1 Build regtess with standard windows header only, not NTOS
svn path=/trunk/; revision=16255
2005-06-24 15:38:29 +00:00
Alex Ionescu
4a320e11d6 Forgot to commit this fix to ntifs
svn path=/trunk/; revision=16254
2005-06-24 15:34:40 +00:00
Alex Ionescu
758ab5ab61 Build HAL with NDK
svn path=/trunk/; revision=16253
2005-06-24 01:37:08 +00:00
Alex Ionescu
7f2ec8aa5d Build eventlog, umpnpmgr, rpcss with NDK
svn path=/trunk/; revision=16252
2005-06-24 01:31:23 +00:00
Hervé Poussineau
64016b704d Add COMMPROP_INITIALIZED constant. It is used in COMMPROP structure, for dwProvSpec1 field
svn path=/trunk/; revision=16251
2005-06-23 21:36:40 +00:00
Hervé Poussineau
130a036ab2 Assign provider-specific fields in IOCTL_SERIAL_GET_PROPERTIES
Big clean up in serial.h header
Fix header text (remove $Id...)

svn path=/trunk/; revision=16250
2005-06-23 20:34:17 +00:00
Steven Edwards
13c65b3f47 convert all of the gdiplus stuff to lowercase
svn path=/trunk/; revision=16249
2005-06-23 18:15:04 +00:00
Magnus Olsen
366a911edc (Brandon Turner) <turnerb7@msu.edu>) Fixed bug to allow MS style wildcards + code clean up added /y and /-y
svn path=/trunk/; revision=16248
2005-06-23 18:12:17 +00:00
Gé van Geldorp
f887cf0f05 Don't draw 0-width HLine
svn path=/trunk/; revision=16247
2005-06-23 17:54:22 +00:00
Alex Ionescu
7143bd0824 Build stub hal with NDK
svn path=/trunk/; revision=16246
2005-06-23 15:58:03 +00:00
Alex Ionescu
96507ffe7c Fix bug in interrupt code
svn path=/trunk/; revision=16245
2005-06-23 15:29:20 +00:00
Steven Edwards
236ce44dac properly break it. correct typo
svn path=/trunk/; revision=16244
2005-06-23 13:31:33 +00:00
Steven Edwards
f6259d7ec4 break the tree for gcc 3.4.1 and gcc 4 at the request of Alex
svn path=/trunk/; revision=16243
2005-06-23 13:26:18 +00:00
Steven Edwards
efbd608bb5 one has to wonder if I am fixing a kernel build.....
svn path=/trunk/; revision=16242
2005-06-23 12:38:13 +00:00
Alex Ionescu
c0d381402e Revert accidental change
svn path=/trunk/; revision=16241
2005-06-23 12:22:32 +00:00
Thomas Bluemel
4f18890314 flag IsTokenRestricted() as @implemented
svn path=/trunk/; revision=16240
2005-06-23 10:34:16 +00:00
Alex Ionescu
1a1adca582 Fix two more build issues caused by greatlod's d3d header change and ndk bug
svn path=/trunk/; revision=16239
2005-06-23 05:07:25 +00:00
Alex Ionescu
5eefe9bdd1 use DDK for rossym
svn path=/trunk/; revision=16238
2005-06-23 04:53:57 +00:00
Alex Ionescu
f8707b368d fix build...sigh...sorry, my ntoskrnl builds with NDK
svn path=/trunk/; revision=16237
2005-06-23 04:52:27 +00:00
Alex Ionescu
ad71bcda91 Fix more ddk/ndk missing defintions
svn path=/trunk/; revision=16236
2005-06-23 04:42:49 +00:00
Alex Ionescu
610b6a4048 Fix build (my fault now :P)
svn path=/trunk/; revision=16235
2005-06-23 03:24:42 +00:00
Alex Ionescu
3e1728b45b Fix some NDK things and missing w32api defines.
svn path=/trunk/; revision=16234
2005-06-23 03:18:20 +00:00
Alex Ionescu
65fd7f2386 Fix build (no, not because of me, casper)
svn path=/trunk/; revision=16233
2005-06-23 01:36:58 +00:00
Steven Edwards
20e1654594 mark IopCsqCancelRoutine as static. Vizzini really does write good code.
svn path=/trunk/; revision=16232
2005-06-22 23:47:53 +00:00
Alex Ionescu
680c995ee1 Fix typo
svn path=/trunk/; revision=16231
2005-06-22 23:12:49 +00:00
Alex Ionescu
705a57e075 Build diskdump with NDK
svn path=/trunk/; revision=16230
2005-06-22 23:12:24 +00:00
Alex Ionescu
d1258e99fa Fix definition of KINTERRUPT in ROS headers so that moving to NDK will be easier. Also fix KeDisconnectInterrupt to return the old state instead of VOID, and re-write the I/O Interrupt code to work with an array and first object for better speed
svn path=/trunk/; revision=16229
2005-06-22 23:10:15 +00:00
Steven Edwards
9925309a13 added msxmldid.h from wine
svn path=/trunk/; revision=16228
2005-06-22 21:55:43 +00:00
Magnus Olsen
e3ed3792ca move ddrawi.h to ddk there it belong
svn path=/trunk/; revision=16227
2005-06-22 21:51:30 +00:00
Thomas Bluemel
204ad68d21 implemented RtlHashUnicodeString and export it in ntdll
svn path=/trunk/; revision=16226
2005-06-22 21:01:13 +00:00
Steven Edwards
9900f1ee91 remove unnneed function declariation
svn path=/trunk/; revision=16225
2005-06-22 20:51:22 +00:00
Maarten Bosma
588a9bc3cb Removed ddk/ddrawi.h because we have it twice, also removed some defines from ddrawint.h that are already in ddrawi.h
svn path=/trunk/; revision=16224
2005-06-22 19:51:01 +00:00
Alex Ionescu
2778f92cc3 Fix build (eh, Casper? :P)
svn path=/trunk/; revision=16223
2005-06-22 19:33:26 +00:00
Thomas Bluemel
07c4b32cdd close extern "C" block for c++ code
svn path=/trunk/; revision=16222
2005-06-22 19:18:21 +00:00
Alex Ionescu
d3a3c52a0a Fix build
svn path=/trunk/; revision=16221
2005-06-22 18:06:47 +00:00
Hartmut Birr
9633616f5b Added PFILE_ALIGNMENT_INFORMATION.
svn path=/trunk/; revision=16220
2005-06-22 18:03:32 +00:00
Maarten Bosma
5276f2c8bb Change NtGdiD3dContextDestroyAll@4 to @0
svn path=/trunk/; revision=16219
2005-06-22 18:02:33 +00:00
Alex Ionescu
2ab26c9f4d Build tcpip with NDK
svn path=/trunk/; revision=16218
2005-06-22 17:58:42 +00:00
Alex Ionescu
9e8e05cf39 Fix one more bug in NDK, and fix w32api headers to use FLOWSPEC structure inside NDIS.h, and use qos.h instead of winsock2, and implement FLOWSPEC in qos.h, moving it outside from winsock2.
svn path=/trunk/; revision=16217
2005-06-22 17:58:19 +00:00
Hartmut Birr
b5a67666e6 - Initialized Reply with NULL for the first call to NtReplyWaitReceivePort.
- Removed LpcReply because it wasn't really used.

svn path=/trunk/; revision=16216
2005-06-22 17:43:59 +00:00
Magnus Olsen
73abbbd77e Brandon Turner <turnerb7@msu.edu> Added exclusive deletion "del * -abc.txt -text*.txt"
svn path=/trunk/; revision=16215
2005-06-22 17:39:10 +00:00
Alex Ionescu
164b25c391 Fix some NDK issues when attempting to use it from kmode, and fix some winddk/ntifs inconsistencies aswell (move PFILE_QUOTA_INFORMATION and remove all RtlRange functions from the DDK, plus add PPEB)
svn path=/trunk/; revision=16214
2005-06-22 05:04:02 +00:00
Alex Ionescu
3e604d23e7 Large change to modify NTDLL'S CSR Functions to be compatible with NT. They are external and we should at least try to match the number of arguments (one vs eight? come on!). Because this is also the direction that Emanuele wants to be taking, the whole external calling interface was modified to be more compatible with NT (although internally it still isn't, and does not have a reason to be). API Names are now generated by a macro from the Server ID, like Emanuele and I noticed from traces, and I've entirely removed the concept of a reply structure. CSRSS uses full-duplex one-way structures, not dual-strutures (this would've been incompatible with the external interface anyways). I don't seem to have introduced any new bugs (console-ROS works great for me, as does the GUI), but there is still a chance some obscure bug might happen, so please bear with me, I had to hand-edit over 250 calls. Also, this now allows full removal of ntdll headers and the next commits will clean this up
svn path=/trunk/; revision=16213
2005-06-22 04:02:32 +00:00
KJK::Hyperion
321df5d69c Partial merge from the ROX-U branch (various fixes for Visual C++ compilation, see logs for r16198 and r16208)
svn path=/trunk/; revision=16212
2005-06-21 23:42:58 +00:00
Magnus Olsen
1af2b69826 add error code for file not found it was missing on one place
svn path=/trunk/; revision=16211
2005-06-21 22:07:44 +00:00
Hervé Poussineau
a6d58d5291 Silent debug messages
svn path=/trunk/; revision=16210
2005-06-21 21:35:07 +00:00
Maarten Bosma
c9d742f6cf Martin Rottensteiner (2005only@pianonote.at):
- set errorlevel to 9009 if command not found
- implemented exit /b # in batchfiles

svn path=/trunk/; revision=16209
2005-06-21 19:17:49 +00:00
Maarten Bosma
8e3623c1af Copy ddk ddrawi.h to include since it's more uptodate.
svn path=/trunk/; revision=16207
2005-06-21 17:16:25 +00:00
Gé van Geldorp
e3f555a8c9 Patch by Hartmut Birr
Work around what seems to be a bug in GCC for optimized builds. See
http://reactos.com:8080/archives/public/ros-dev/2005-June/003842.html

svn path=/trunk/; revision=16206
2005-06-21 16:35:41 +00:00
Alex Ionescu
3596d2a339 Build kernel32, ntdll, csrss fully with NDK and remove ntdll header usage
svn path=/trunk/; revision=16205
2005-06-21 04:52:46 +00:00
Alex Ionescu
e3cfe86657 Use correct TlsCount/LoadCount definition and fix incorrect usage i code
svn path=/trunk/; revision=16204
2005-06-21 04:28:03 +00:00
Alex Ionescu
77f673dd82 Use LDR_DATA_TABLE_ENTRY instead of LDR_MODULE. the former is the actual structure. would be wise to fix the defs too.
svn path=/trunk/; revision=16203
2005-06-21 04:10:45 +00:00
Alex Ionescu
1595459dbc Last build fix...sorry
svn path=/trunk/; revision=16202
2005-06-21 02:58:22 +00:00
Alex Ionescu
b5e1fdb37a Fix build
svn path=/trunk/; revision=16201
2005-06-21 02:47:55 +00:00
Alex Ionescu
58f27e918c Add uncleaned start of internal ntdll header
svn path=/trunk/; revision=16200
2005-06-21 02:11:45 +00:00
Alex Ionescu
3b2016d0ac Add new header for native user-mode functios inside the NT library inside the NDK, it will end up replacing most of the exported parts of the ntdll headers. It's not used yet as it would conflict, I added a temporary guard for that. Also added many more types to rtlfuncs.h so that it's almost entirely complete, and took out non rtl-stuff and put it into the user-mode NT header
svn path=/trunk/; revision=16199
2005-06-21 02:08:42 +00:00
Alex Ionescu
1d7902f557 Make scsi header um friendly
svn path=/trunk/; revision=16197
2005-06-20 22:54:01 +00:00
Alex Ionescu
4650be627f Remove rosrtl usage from usetup
svn path=/trunk/; revision=16196
2005-06-20 22:51:54 +00:00
Alex Ionescu
ce068ea890 Build usetup with NDK
svn path=/trunk/; revision=16195
2005-06-20 22:49:45 +00:00
Filip Navara
2e4d4d6dfd Remove some non-__USE_W32API guarded blocks.
svn path=/trunk/; revision=16194
2005-06-20 22:48:50 +00:00
Alex Ionescu
8b83fb933a Build winlogon with NDK
svn path=/trunk/; revision=16193
2005-06-20 22:19:18 +00:00
Alex Ionescu
d8de94af8a Build taskmgr with NDK
svn path=/trunk/; revision=16192
2005-06-20 22:15:59 +00:00
Alex Ionescu
725169d745 Build autochk with NDK
svn path=/trunk/; revision=16191
2005-06-20 21:50:02 +00:00
Filip Navara
be5ad51996 Fix build.
svn path=/trunk/; revision=16190
2005-06-20 21:49:00 +00:00
Alex Ionescu
e04c28b61f Build dhcp with ndk
svn path=/trunk/; revision=16189
2005-06-20 21:45:19 +00:00
Alex Ionescu
4d21e1f410 Build format with NDK
svn path=/trunk/; revision=16188
2005-06-20 21:43:14 +00:00
Alex Ionescu
2c52e31b61 Build ntvdm with NDK
svn path=/trunk/; revision=16187
2005-06-20 21:42:52 +00:00
Filip Navara
d373bd32e7 Build GDI32 with NDK and without DDK.
svn path=/trunk/; revision=16186
2005-06-20 21:35:05 +00:00
Alex Ionescu
9eea30f8b3 Build smss with NDK
svn path=/trunk/; revision=16185
2005-06-20 21:16:59 +00:00
Alex Ionescu
c618c35523 Build services with NDK
svn path=/trunk/; revision=16183
2005-06-20 21:04:03 +00:00
Alex Ionescu
5cc3617a10 Build sm with NDK
svn path=/trunk/; revision=16182
2005-06-20 21:03:51 +00:00
Filip Navara
b97fb9c707 Make winddi.h UM-friendly.
svn path=/trunk/; revision=16181
2005-06-20 21:03:41 +00:00
Hartmut Birr
f4d5dc8eb3 Fixed a bug within the calculation of the memory load.
svn path=/trunk/; revision=16180
2005-06-20 20:27:10 +00:00
Alex Ionescu
1bb602a345 Don't use DDK, use NDK for wshirda and ws2help
svn path=/trunk/; revision=16179
2005-06-20 20:26:14 +00:00
Alex Ionescu
0669fda144 Don't use ntdll headers in crt, use ndk
svn path=/trunk/; revision=16178
2005-06-20 20:22:54 +00:00
Alex Ionescu
de322e6992 Build iphlpapi with NDK instead of DDK
svn path=/trunk/; revision=16177
2005-06-20 20:20:40 +00:00
Alex Ionescu
26fca9d4cf Use NDK instead of DDK
svn path=/trunk/; revision=16176
2005-06-20 20:13:58 +00:00
Alex Ionescu
f239820920 jingle bells batman smells, robin laid an egg (build rosrtl with NDK)
svn path=/trunk/; revision=16175
2005-06-20 20:07:52 +00:00
Alex Ionescu
f9eab6bf5e Syssetup has fallen to the dark side
svn path=/trunk/; revision=16174
2005-06-20 19:58:43 +00:00
Alex Ionescu
7fdb1a2266 Build userenv and samlib with NDK
svn path=/trunk/; revision=16173
2005-06-20 19:50:52 +00:00
Alex Ionescu
a1a5cdb7ca Buid vfat(x)lib with NDK
svn path=/trunk/; revision=16172
2005-06-20 19:46:09 +00:00
Alex Ionescu
aa1e7d31e8 Build psapi with NDK
svn path=/trunk/; revision=16171
2005-06-20 19:38:25 +00:00
Alex Ionescu
0bbb2a98cd build lsasrv with NDK
svn path=/trunk/; revision=16170
2005-06-20 19:34:39 +00:00
Alex Ionescu
b19d74062e Build smdll with NDK
svn path=/trunk/; revision=16169
2005-06-20 19:33:08 +00:00
Alex Ionescu
0856013938 Build ws2_32 with NDK
svn path=/trunk/; revision=16168
2005-06-20 19:30:55 +00:00
Alex Ionescu
07d22c372d Compile msafd with NDK
svn path=/trunk/; revision=16167
2005-06-20 19:28:45 +00:00
Alex Ionescu
4cf87b40e7 Build secur32 with NDK
svn path=/trunk/; revision=16166
2005-06-20 19:19:23 +00:00
Hartmut Birr
747c64b7c4 Moved the TRACE_LDR macro from ntdll.h to utils.c.
svn path=/trunk/; revision=16165
2005-06-20 19:18:35 +00:00
Alex Ionescu
ae955c39ed Build epsapi with NDK
svn path=/trunk/; revision=16164
2005-06-20 19:14:08 +00:00
Alex Ionescu
c3151ba005 Build dnsapi with NDK
svn path=/trunk/; revision=16163
2005-06-20 19:05:25 +00:00
Alex Ionescu
d53d55734a build smlib with NDK
svn path=/trunk/; revision=16162
2005-06-20 19:02:23 +00:00
Alex Ionescu
44b8b1697a Remove rosrtl from advapi
svn path=/trunk/; revision=16161
2005-06-20 18:58:56 +00:00
Alex Ionescu
cf9968925b Switch Advapi32 to NDK
svn path=/trunk/; revision=16160
2005-06-20 18:55:05 +00:00
Alex Ionescu
29075cd391 Add missing types to NDK
svn path=/trunk/; revision=16159
2005-06-20 18:54:47 +00:00
Martin Fuchs
0f3a2ad610 sync with Wine's repository
svn path=/trunk/; revision=16158
2005-06-20 18:48:32 +00:00
Alex Ionescu
88b8879367 Compile user32 with NDK, clean up its headers, and separate it from the intenral win32k stuff
svn path=/trunk/; revision=16157
2005-06-20 18:21:07 +00:00
Martin Fuchs
8e0a6b7b07 Sync with Wine repo
svn path=/trunk/; revision=16156
2005-06-20 16:53:47 +00:00
Martin Fuchs
a609b028a1 Stefan Huehner <stefan@huehner.org>:
Remove some -Wstrict-prototypes warnings.

svn path=/trunk/; revision=16155
2005-06-20 16:52:02 +00:00
Maarten Bosma
e133ad2f81 g++ seams to have a problem with this dummy union names.
svn path=/trunk/; revision=16154
2005-06-20 16:32:42 +00:00
Filip Navara
7bf3a79d15 Remove Jamfiles.
svn path=/trunk/; revision=16153
2005-06-20 14:30:44 +00:00
Filip Navara
f266cbb1c2 Fix warnings.
svn path=/trunk/; revision=16152
2005-06-20 14:23:13 +00:00
Filip Navara
d69a2a31dd Fix a cut & paste error.
svn path=/trunk/; revision=16151
2005-06-20 14:08:06 +00:00
Filip Navara
81175de9c1 Fix warnings.
svn path=/trunk/; revision=16150
2005-06-20 13:59:40 +00:00
Filip Navara
6479d4526a Forgot this file in r16147.
svn path=/trunk/; revision=16149
2005-06-20 13:54:52 +00:00
Filip Navara
3b0038292f Remove Jamfiles.
svn path=/trunk/; revision=16148
2005-06-20 13:43:26 +00:00
Filip Navara
cdad35b774 Fix warnings and remove Jamfiles.
svn path=/trunk/; revision=16147
2005-06-20 13:43:05 +00:00
Filip Navara
d160d80677 Fix warnings.
svn path=/trunk/; revision=16146
2005-06-20 13:17:21 +00:00
Filip Navara
aa82a6a072 The DK directory doesn't seem to be used anymore.
svn path=/trunk/; revision=16145
2005-06-20 12:10:46 +00:00
Filip Navara
e0df17c6fd Compile CSRSS and WIN32CSR with NDK headers.
svn path=/trunk/; revision=16144
2005-06-20 11:56:10 +00:00
Gé van Geldorp
59057f2e70 Exclusively lock surface bits before reading or writing them
svn path=/trunk/; revision=16143
2005-06-20 08:31:48 +00:00
Filip Navara
113cab2be5 Fix definition of LPC_MESSAGE_BASE_SIZE.
svn path=/trunk/; revision=16142
2005-06-20 07:18:20 +00:00
Filip Navara
21616080f6 Remove InitializeMessageHeader definition.
svn path=/trunk/; revision=16141
2005-06-20 07:16:51 +00:00
Filip Navara
31ad5f02a9 Fix the definion of SharedUserData.
svn path=/trunk/; revision=16140
2005-06-20 07:06:41 +00:00
Hervé Poussineau
57074db1aa Implement IOCTL_USB_GET_NODE_CONNECTION_NAME, IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME
Fix indices in IOCTL_USB_GET_NODE_CONNECTION_INFORMATION

svn path=/trunk/; revision=16139
2005-06-20 05:54:19 +00:00
Alex Ionescu
0ee8822197 Major cleanup to rtlfuncs.h. Not yet perfect but much better organized.
svn path=/trunk/; revision=16138
2005-06-20 05:36:32 +00:00
Alex Ionescu
4b83cb1f77 Cleanup kernel usage to decrease compilation time/memory
svn path=/trunk/; revision=16136
2005-06-20 04:30:23 +00:00
Alex Ionescu
eb67c61944 Remove rosrtl string macros
svn path=/trunk/; revision=16135
2005-06-20 04:18:03 +00:00
Alex Ionescu
497256b40e Build kernel32 with NDK
svn path=/trunk/; revision=16134
2005-06-20 04:07:49 +00:00
Alex Ionescu
d98066b2aa Final NDK fixes for kernel32
svn path=/trunk/; revision=16133
2005-06-20 04:07:34 +00:00
Alex Ionescu
4a0a216d3e Apply kjk's change to thread.c too
svn path=/trunk/; revision=16132
2005-06-20 04:07:19 +00:00
Alex Ionescu
3bfd20f396 Some NDK Fixes, kernel32 almost compiles
svn path=/trunk/; revision=16131
2005-06-20 03:55:42 +00:00
KJK::Hyperion
8cd2554cff Converted kernel32 process creation to use PSEH (untested change to help Alex)
svn path=/trunk/; revision=16130
2005-06-20 03:42:05 +00:00
Alex Ionescu
f5e002e1c9 Fixed incorrect SetNamedPipeHandleState implementation to use the actual APIs/Structures it should and added one of the missing ones to NTIFS.
svn path=/trunk/; revision=16129
2005-06-20 01:52:47 +00:00
Alex Ionescu
aaad0af903 Add missing stuff to NDK
svn path=/trunk/; revision=16128
2005-06-19 23:59:40 +00:00
Alex Ionescu
16c356bfa1 Ditto for HAL
svn path=/trunk/; revision=16127
2005-06-19 22:53:49 +00:00
Alex Ionescu
b4cb154b4a Blight is cool. oh, right..this is a commt message. err.. oh. include debug.h per-file isntead of globally, or else this breaks NDEBUG
svn path=/trunk/; revision=16126
2005-06-19 22:50:59 +00:00
Filip Navara
94b818d7c0 TIME -> LARGE_INTEGER
svn path=/trunk/; revision=16125
2005-06-19 22:32:51 +00:00
Hervé Poussineau
697e997b8f Implement IRP_MJ_CLEANUP for UHCI controller
svn path=/trunk/; revision=16124
2005-06-19 22:19:11 +00:00
Filip Navara
8098dc0a97 - Don't include ntddk.h from most of the DDK headers and move the includes out of the "extern C" blocks.
- Fix order of STDCALL in few callback defintions.
- Get the sources to build again with these changes.

svn path=/trunk/; revision=16123
2005-06-19 22:13:41 +00:00
Hervé Poussineau
9bd5178ad2 Implement IOCTL_GET_HCD_DRIVERKEY_NAME
Better check for arguments in IOCTL_*
Let IOCTL_USB_GET_ROOT_HUB_NAME use the right structure type
Initialize wrapper around linux code after setting the device extension field

svn path=/trunk/; revision=16122
2005-06-19 22:11:09 +00:00
Alex Ionescu
b76b475c32 Build RTL with NDK
svn path=/trunk/; revision=16121
2005-06-19 22:05:50 +00:00
Alex Ionescu
aec8d2f143 Move internal rtlp functions out of ntos and into internal rosrtl header
svn path=/trunk/; revision=16120
2005-06-19 22:05:18 +00:00
Alex Ionescu
1754d20379 Add free to libsupp
svn path=/trunk/; revision=16119
2005-06-19 21:50:05 +00:00
Alex Ionescu
d3e93a6629 Add include to rosrtl where needed
svn path=/trunk/; revision=16118
2005-06-19 21:40:29 +00:00
Alex Ionescu
9deb8137ef Fix cshort definition
svn path=/trunk/; revision=16117
2005-06-19 21:39:58 +00:00
Alex Ionescu
ef09428e85 Add libsupp.h for rtl's Kernel Allocation functions
svn path=/trunk/; revision=16116
2005-06-19 21:37:01 +00:00
Alex Ionescu
38765d4930 Add missing security types in winnt.h
svn path=/trunk/; revision=16115
2005-06-19 21:35:57 +00:00
Alex Ionescu
a43ea85ae0 User helper header and don't use RTLROS string macros naymore
svn path=/trunk/; revision=16114
2005-06-19 21:08:39 +00:00
Alex Ionescu
4d69a0fddb Fix Build
svn path=/trunk/; revision=16113
2005-06-19 21:03:41 +00:00
Filip Navara
61eed1a9da Fxi build.
svn path=/trunk/; revision=16112
2005-06-19 20:56:11 +00:00
Alex Ionescu
299cedf334 Use RTL_CONSTANT_STRING instead of RtlRos macro
svn path=/trunk/; revision=16111
2005-06-19 20:43:13 +00:00
Alex Ionescu
3b65c45a7c Build NTDLL with NDK
svn path=/trunk/; revision=16110
2005-06-19 20:28:20 +00:00
Alex Ionescu
d3d66f5e68 Final NDK fixes for ntdll
svn path=/trunk/; revision=16109
2005-06-19 20:18:30 +00:00
Filip Navara
514f6f4626 Remove PNP_VETO_TYPE from winddk.h.
svn path=/trunk/; revision=16108
2005-06-19 20:09:32 +00:00
Alex Ionescu
448fd2a82a More NDK fixes, remove duplicated debug functions from ntdll, use rosrtl header where neded in ntdll.
svn path=/trunk/; revision=16107
2005-06-19 20:01:07 +00:00
Filip Navara
fd45cff559 Fix packing.
svn path=/trunk/; revision=16106
2005-06-19 19:56:01 +00:00
Alex Ionescu
3ff128077e More NDK fixes/additions
svn path=/trunk/; revision=16105
2005-06-19 19:36:05 +00:00
Alex Ionescu
93d9bcad1a More NDK fixes (user-mode NDK now works) and guard some stuff in include/ntdll so that ntdll can be build with NDK, but so that other apps not yet using it, but using those headers, can also build
svn path=/trunk/; revision=16104
2005-06-19 19:15:46 +00:00
James Tabor
7d84d6b837 Adding ps.exe to build process.
svn path=/trunk/; revision=16103
2005-06-19 18:54:02 +00:00
James Tabor
b3bc018212 Adding ps.exe to build process.
svn path=/trunk/; revision=16102
2005-06-19 18:53:19 +00:00
Filip Navara
ac4f85a89e Forgot to commit this file in r16097.
svn path=/trunk/; revision=16101
2005-06-19 18:34:35 +00:00
Alex Ionescu
1b74c03fb1 Major cleanup of User-Mode NDK
svn path=/trunk/; revision=16100
2005-06-19 18:21:58 +00:00
Filip Navara
8b3da072dd Cleanup header usage in USER32.
svn path=/trunk/; revision=16099
2005-06-19 18:06:53 +00:00
Filip Navara
3dcd5f1ff6 Remove duplicate header.
svn path=/trunk/; revision=16098
2005-06-19 17:34:05 +00:00
Filip Navara
f2ff7df489 (Re)move USER32 headers from include/user32.
svn path=/trunk/; revision=16097
2005-06-19 17:27:44 +00:00
Filip Navara
8625b6ac08 Remove duplicate headers.
svn path=/trunk/; revision=16096
2005-06-19 16:30:52 +00:00
Filip Navara
2954ec2db0 Better header redefiniton guards.
svn path=/trunk/; revision=16095
2005-06-19 15:40:47 +00:00
Filip Navara
ae8bd99934 - Add definition of DRIVE_LAYOUT_INFORMATION_EX.
- Move CLS defintions from winddk.h to ntnls.h.
- Move EVENT_TRACE_HEADER defintion from winddk.h to evntrace.h.

svn path=/trunk/; revision=16094
2005-06-19 15:27:10 +00:00
Hervé Poussineau
d4719c91ec Implement IRP_MN_QUERY_DEVICE_RELATIONS for USB hubs
Implement IRP_MN_QUERY_ID for devices enumerated by USB hubs

svn path=/trunk/; revision=16093
2005-06-19 14:15:39 +00:00
Magnus Olsen
30eee0c5d1 revert my lattes change some part of head did break
sorry all. 

svn path=/trunk/; revision=16092
2005-06-19 14:12:59 +00:00
Casper Hornstrup
a5e4e00e8a Count only scheduled time when running performance tests
svn path=/trunk/; revision=16091
2005-06-19 12:41:22 +00:00
Magnus Olsen
2caba7c355 add struct DDRAWI_DIRECTDRAW_GBL
svn path=/trunk/; revision=16090
2005-06-19 12:14:31 +00:00
Magnus Olsen
e661bfdc12 Correct the DD_GETDRIVERINFODATA struct it did missing a pointer to DDRAWI_DIRECTDRAW_GBL struct. Some need really check this file if more mistake exists
svn path=/trunk/; revision=16089
2005-06-19 12:13:57 +00:00
Magnus Olsen
17c0f2829a add TAG macro
svn path=/trunk/; revision=16088
2005-06-19 10:10:34 +00:00
Hartmut Birr
499a2712a9 Initialized the system call entry independent of the real type of SystemCall.
svn path=/trunk/; revision=16087
2005-06-19 09:48:14 +00:00
Filip Navara
fbf1722197 Couple of build fixes.
svn path=/trunk/; revision=16086
2005-06-19 09:07:44 +00:00
Filip Navara
068cf10896 Add TAG macro definition.
svn path=/trunk/; revision=16085
2005-06-19 08:21:35 +00:00
Filip Navara
b63e292fbd Add TAG macro definition.
svn path=/trunk/; revision=16084
2005-06-19 08:20:08 +00:00
Filip Navara
d864df4b3b Move the TAG define.
svn path=/trunk/; revision=16083
2005-06-19 08:15:10 +00:00
Filip Navara
887716169a Add TAG macro definition.
svn path=/trunk/; revision=16082
2005-06-19 08:14:18 +00:00
Filip Navara
b76c3856ee Move the TAG define.
svn path=/trunk/; revision=16081
2005-06-19 08:05:01 +00:00
Alex Ionescu
6048617aab Some more NDK fixes
svn path=/trunk/; revision=16080
2005-06-19 07:41:35 +00:00
Alex Ionescu
1311a0191c Fix rtl/rossym
svn path=/trunk/; revision=16079
2005-06-19 07:15:07 +00:00
Alex Ionescu
469fa69ab7 Add NtcurrentThread, ALTERNATIVE_ARCHITECTURE_TYPE, KSYSTEM_TIME, KUSER_SHARED_DATA, REG_CREATED_NEW_KEY, REG_OPENED_EXISTING_KEY, KeRaiseIrqlToSynchLevel to DDK. Remove HANDLE_TABLE_ENTRY_INFO and HANDLE_TABLE_ENTRY from NTIFS. Add NT_PRODUCT_TYPE
svn path=/trunk/; revision=16078
2005-06-19 07:11:49 +00:00
Alex Ionescu
10c1c40139 Fix some ntoskrnl things, like using Rtl instead of RosRtl, and undefining ROUND macros
svn path=/trunk/; revision=16077
2005-06-19 07:11:38 +00:00
Filip Navara
e960d42247 Use RTL_CONSTANT_STRING instead of ROSRTL macros.
svn path=/trunk/; revision=16076
2005-06-19 07:07:52 +00:00
Alex Ionescu
9d04f9a976 More NDK Fixes
svn path=/trunk/; revision=16075
2005-06-19 07:03:18 +00:00
Alex Ionescu
a6c04adbb2 Fix building issues caused by previous patch
svn path=/trunk/; revision=16074
2005-06-19 04:49:14 +00:00
Alex Ionescu
cbe3dc72cb Move Exported functions away from internal/ke.h, move exported data from internal/ex.h, add internal structures to internal/ifs.h, include ntdddisk.h in internal/xhal.h for access to PDRIVE_LAYOUT_INFORMATION, remove DDK function from internal/nls.h, remove KTRAP_FRAME from internal/i386/ke.h, add some more temporary types to krnltypes.h, protect PNP_VETO_TYPE, move EVENT_TRACE_HEADER to DDK, guard disk.h properly, correct DRIVE_LAYOUT_INFORMATION typedef in DDK, add PNP_VETO_TYPE, NLSTABLEINFO, CPTABLEINFO, remove KDPC_DATA, PP_LOOKASIDE_LIST. remove PROCESSOR_POWER_STATE from ntpoapi, remove MAILSLOT_CREATE_PARAMETERS, NAMED_PIPE_CREATE_PARAMETERS, IO_COMPLETION_INFORMATION_CLASS, PAGEFAULT_HISTORY, SECTION_XXX_INFORMATION, RtlSelfRelativeToAbsoluteSD, ZwQuerySection/Object, ZwQuerySystemInformation, ZwSetInformationObject, ZwSetSystemInformation from IFS
svn path=/trunk/; revision=16073
2005-06-19 03:55:48 +00:00
Alex Ionescu
428572a138 Move Exported functions away from internal/ke.h, move exported data from internal/ex.h, add internal structures to internal/ifs.h, include ntdddisk.h in internal/xhal.h for access to PDRIVE_LAYOUT_INFORMATION, remove DDK function from internal/nls.h, remove KTRAP_FRAME from internal/i386/ke.h, add some more temporary types to krnltypes.h, protect PNP_VETO_TYPE, move EVENT_TRACE_HEADER to DDK, guard disk.h properly, correct DRIVE_LAYOUT_INFORMATION typedef in DDK, add PNP_VETO_TYPE, NLSTABLEINFO, CPTABLEINFO, remove KDPC_DATA, PP_LOOKASIDE_LIST. remove PROCESSOR_POWER_STATE from ntpoapi, remove MAILSLOT_CREATE_PARAMETERS, NAMED_PIPE_CREATE_PARAMETERS, IO_COMPLETION_INFORMATION_CLASS, PAGEFAULT_HISTORY, SECTION_XXX_INFORMATION, RtlSelfRelativeToAbsoluteSD, ZwQuerySection/Object, ZwQuerySystemInformation, ZwSetInformationObject, ZwSetSystemInformation from IFS
svn path=/trunk/; revision=16072
2005-06-19 03:55:34 +00:00
Alex Ionescu
0af7b6f7a0 Many fixes to NDK
svn path=/trunk/; revision=16071
2005-06-19 03:25:33 +00:00
Alex Ionescu
5a4296bcec Remove PAGED_CODE, PAGED_CODE_RTL and RTL_ONSTANT_STRING from ntoskrnl.h. The first and last are in DDK, and the second is not used in the kernel and already defined
svn path=/trunk/; revision=16070
2005-06-19 01:10:08 +00:00
Filip Navara
5be76fa181 Use RTL_CONSTANT_STRING instead of ROSRTL macros.
svn path=/trunk/; revision=16069
2005-06-19 00:28:46 +00:00
Filip Navara
cc03f70b55 Use RTL_CONSTANT_STRING instead of ROSRTL macros.
svn path=/trunk/; revision=16068
2005-06-19 00:21:54 +00:00
Filip Navara
7971e8425b - Use regular PE structures in NTOSKRNL/NTDLL/DISKDUMP.
- Add WDMGUID library.
- Get rid of few more headers.

svn path=/trunk/; revision=16067
2005-06-19 00:06:08 +00:00
Alex Ionescu
c09b52bf01 Add NDK 1.00-pre. Needs some TLC in umtypes.h and a lot of fixes. Not used anywhere yet.
svn path=/trunk/; revision=16066
2005-06-18 23:33:40 +00:00
Magnus Olsen
46f26a073b make inline asm -O3 compatible (remove L1 and L2 label) thx blight and alex to explain how to do that.
svn path=/trunk/; revision=16065
2005-06-18 22:54:12 +00:00
Filip Navara
bc47c238df Remove duplicate definition of KdPrintEx.
svn path=/trunk/; revision=16064
2005-06-18 22:06:54 +00:00
Magnus Olsen
5e0373034a make gcc stop nag about uninitialized value in 114: and make -O3 working
svn path=/trunk/; revision=16063
2005-06-18 21:55:59 +00:00
Filip Navara
dc337def98 Get rid of ROS DDK SCSI headers (forgot these files in r16060).
svn path=/trunk/; revision=16061
2005-06-18 21:02:59 +00:00
Filip Navara
fd44a4b514 Get rid of ROS DDK SCSI headers.
svn path=/trunk/; revision=16060
2005-06-18 20:55:09 +00:00
Gé van Geldorp
39da2fef47 Thanks to GreatLord for spotting that we shouldn't access pixels outside the
source surface in EngBitBlt.

svn path=/trunk/; revision=16059
2005-06-18 20:29:31 +00:00
Filip Navara
91a2889e07 - Convert mouclass and sermouse to use official DDK prototypes.
- Get rid of the old ROS DDK headers.

svn path=/trunk/; revision=16058
2005-06-18 20:25:08 +00:00
Gé van Geldorp
95d1b8ae62 Use correct dest rect when preventing copy outside source surf
svn path=/trunk/; revision=16057
2005-06-18 19:53:49 +00:00
Filip Navara
434303caa3 Don't include internal headers.
svn path=/trunk/; revision=16056
2005-06-18 19:30:47 +00:00
Filip Navara
8b43bd8c4c Add __ASM__ guard.
svn path=/trunk/; revision=16055
2005-06-18 19:30:15 +00:00
Filip Navara
31b7f64f58 Fix build. :/
svn path=/trunk/; revision=16054
2005-06-18 19:13:29 +00:00
Filip Navara
52f8761d3a Use W32API for NTOSKRNL.
svn path=/trunk/; revision=16053
2005-06-18 18:32:29 +00:00
Filip Navara
ff246534c9 Fix build.
svn path=/trunk/; revision=16052
2005-06-18 17:22:21 +00:00
Filip Navara
fb0959e85a - Move few non-DDK types from ROS DDK to NTOS headers.
- Fix some __USE_W32API guards.


svn path=/trunk/; revision=16051
2005-06-18 17:17:52 +00:00
Filip Navara
4d14d7da13 Define DRVO_UNLOAD_INVOKED, DRVO_LEGACY_DRIVER, DRVO_BUILTIN_DRIVER, DRVO_REINIT_REGISTERED, DRVO_INITIALIZED, DRVO_BOOTREINIT_REGISTERED and DRVO_LEGACY_RESOURCES. Thanks Alex.
svn path=/trunk/; revision=16050
2005-06-18 16:56:41 +00:00
Filip Navara
bb40279864 Move non-DDK Ps* function prototypes and types from ROS DDK to NTOS headers.
svn path=/trunk/; revision=16049
2005-06-18 16:53:34 +00:00
Filip Navara
a7753f898e Move non-DDK Se* function prototypes and types from ROS DDK to NTOS headers.
svn path=/trunk/; revision=16048
2005-06-18 16:21:46 +00:00
Filip Navara
c818943efa Move InsertAscendingListFIFO, InsertDescendingListFIFO, InsertAscendingList and InsertDescendingList out of the __USE_W32API guarded region.
svn path=/trunk/; revision=16047
2005-06-18 15:58:39 +00:00
Filip Navara
2d6c9998be - Move non-DDK HAL function prototypes from ROS DDK to NTOS headers.
svn path=/trunk/; revision=16046
2005-06-18 15:55:23 +00:00
Filip Navara
73d83fbb2b Fix build.
svn path=/trunk/; revision=16045
2005-06-18 15:50:23 +00:00
Alex Ionescu
7bbb54b0e7 Fix XML bug in hal makefiles
svn path=/trunk/; revision=16044
2005-06-18 15:24:30 +00:00
Filip Navara
0f030a82b0 - Move non-DDK Ke* function prototypes from ROS DDK to NTOS headers.
- Fix calling convention for KeI386* functions.

svn path=/trunk/; revision=16043
2005-06-18 15:15:25 +00:00
Alex Ionescu
99cc88158b Use generic HAL header
svn path=/trunk/; revision=16040
2005-06-18 14:30:09 +00:00
Alex Ionescu
f8d053290e Build Generic HAL with w32api
svn path=/trunk/; revision=16039
2005-06-18 14:29:31 +00:00
Alex Ionescu
06e00cb9c9 Build XBOX HAL with w32api
svn path=/trunk/; revision=16038
2005-06-18 14:29:17 +00:00
Alex Ionescu
762e020a20 Build UP HAL with w32api
svn path=/trunk/; revision=16037
2005-06-18 14:28:55 +00:00
Alex Ionescu
3e334c65fc Build MP HAL with w32api
svn path=/trunk/; revision=16036
2005-06-18 14:28:28 +00:00
Alex Ionescu
a5579f945f Build stub HAL with w32api
svn path=/trunk/; revision=16035
2005-06-18 14:27:44 +00:00
Alex Ionescu
01251016ad Remove weird header and add a missing prototype in halfuncs.h
svn path=/trunk/; revision=16034
2005-06-18 14:26:22 +00:00
Alex Ionescu
eb4f82ce4d Remove IoAdapterObjectType defintion, it doesn't belong in public headers
svn path=/trunk/; revision=16033
2005-06-18 14:10:28 +00:00
Filip Navara
cc6150fb29 Fix SMP version of ASSERT and assert.
svn path=/trunk/; revision=16032
2005-06-18 14:05:56 +00:00
Filip Navara
14b69747a2 Remove duplicate definition of EVENT_QUERY_STATE.
svn path=/trunk/; revision=16031
2005-06-18 13:15:07 +00:00
Filip Navara
6a7e9f4bf7 Correctly pack the KIPCR structure.
svn path=/trunk/; revision=16030
2005-06-18 12:56:11 +00:00
Filip Navara
4fd0801d50 Fix position of the STDCALL keyword. Spotted by KJK::Hyperion.
svn path=/trunk/; revision=16029
2005-06-18 12:55:02 +00:00
Filip Navara
186c8b72d1 ntapi.h:
- Define LANGID and fix definition of PLANGID.
- Define PVM_COUNTERS, SYSTEM_CACHE_INFORMATION and SYSTEM_INTERRUPT_INFORMATION.
- Match the ROS version of LPC_MESSAGE (the structure itself should be named PORT_MESSAGE and belongs to ntifs.h).
- Move KEY_SET_INFORMATION_CLASS definiton to winddk.h.
- Make the first parameter of NtAllocateUuids PULARGE_INTEGER.
- Declare NtSetUuidSeed.
- Fix definition of ATOM_INFORMATION_CLASS and ATOM_BASIC_INFORMATION to match ReactOS versions.
winddk.h:
- Define NTHALAPI and use it to mark HAL exports instead of NTOSAPI.
- Define PADAPTER_OBJECT, EVENT_QUERY_STATE, EVENT_MODIFY_STATE, EVENT_ALL_ACCESS, SEMAPHORE_QUERY_STATE, SEMAPHORE_MODIFY_STATE, SEMAPHORE_ALL_ACCESS, IRP_QUOTA_CHARGED, IRP_ALLOCATED_MUST_SUCCEED, IRP_ALLOCATED_FIXED_SIZE, IRP_LOOKASIDE_ALLOCATION, HalDispatchTableVersion, HalQuerySystemInformation, HalSetSystemInformation, HalQueryBusSlots, HalDeviceControl, HalIoAssignDriveLetters, HalIoReadPartitionTable, HalIoSetPartitionInformation, HalIoWritePartitionTable, HalReferenceHandlerForBus, HalReferenceBusHandler, HalDereferenceBusHandler, IO_TYPE_ADAPTER, IO_TYPE_CONTROLLER, IO_TYPE_DEVICE, IO_TYPE_DRIVER,
IO_TYPE_FILE, IO_TYPE_IRP, IO_TYPE_MASTER_ADAPTER, IO_TYPE_OPEN_PACKET,
IO_TYPE_TIMER, IO_TYPE_VPB, IO_TYPE_ERROR_LOG, IO_TYPE_ERROR_MESSAGE,
IO_TYPE_DEVICE_OBJECT_EXTENSION, IO_FORCE_ACCESS_CHECK and IO_NO_PARAMETER_CHECKING.
- Remove declaration of HalPrivateDispatchTable, it doesn't belong to public headers.
- Fix declaration of WAIT_CONTEXT_BLOCK, HalDispatchTable, DRIVER_EXTENSION, GENERAL_LOOKASIDE, NPAGED_LOOKASIDE_LIST, PAGED_LOOKASIDE_LIST, KPCR_TIB, MmHighestUserAddress, MmSystemRangeStart, MmUserProbeAddress, KdDebuggerNotPresent and KdDebuggerEnabled.
- Declare KEY_WRITE_TIME_INFORMATION, KEY_USER_FLAGS_INFORMATION, KEY_SET_INFORMATION_CLASS, KfAcquireSpinLock, KfReleaseSpinLock and ExfInterlockedCompareExchange64.
winnt4.h:
- Declare HalAcquireDisplayOwnership and HalAllocateAdapterChannel.
ntifs.h:
- Fix definition of NTKERNELAPI.
- Fix declaration of FsRtlLegalAnsiCharacterArray, FsRtlNotifyInitializeSync, FsRtlNotifyUninitializeSync, IoCheckFunctionAccess and PsGetProcessExitTime.
- Declare IoStatisticsLock, IoReadOperationCount, IoWriteOperationCount, IoOtherOperationCount, IoReadTransferCount, IoWriteTransferCount,
IoOtherTransferCount, FSRTL_ADVANCED_FCB_HEADER, FSRTL_PER_STREAM_CONTEXT, PFILTER_REPORT_CHANGE, FS_FILTER_SECTION_SYNC_TYPE, FS_FILTER_PARAMETERS, FS_FILTER_CALLBACK_DATA, PFS_FILTER_CALLBACK, PFS_FILTER_COMPLETION_CALLBACK, FS_FILTER_CALLBACKS, READ_LIST, ExInitializeRundownProtection, ExReInitializeRundownProtection, ExAcquireRundownProtection, ExAcquireRundownProtectionEx, ExReleaseRundownProtection, ExReleaseRundownProtectionEx, ExRundownCompleted, ExWaitForRundownProtectionRelease, FsRtlMdlReadDev, FsRtlPrepareMdlWriteDev, PFSRTL_STACK_OVERFLOW_ROUTINE, FsRtlPostStackOverflow, FsRtlPostPagingFileStackOverflow, IoAttachDeviceToDeviceStackSafe, IoQueueThreadIrp, KeInitializeMutant, KeReadStateMutant, KeReleaseMutant and PsIsSystemThread.
- Define FSRTL_FAT_LEGAL, FSRTL_HPFS_LEGAL, FSRTL_NTFS_LEGAL, FSRTL_WILD_CHARACTER, FSRTL_OLE_LEGAL, FSRTL_NTFS_STREAM_LEGAL, EX_RUNDOWN_ACTIVE, EX_RUNDOWN_COUNT_SHIFT, EX_RUNDOWN_COUNT_INC, FsRtlIsLeadDbcsCharacter and FsRtlIsAnsiCharacterWild.
- Remove declaration of SYSTEM_CACHE_INFORMATION and SeCreateAccessState, they don't belong to public headers.

svn path=/trunk/; revision=16028
2005-06-18 12:39:24 +00:00
Filip Navara
69b04c6fd2 Define PAGE_WRITECOMBINE, IMAGE_OPTIONAL_HEADER32, IMAGE_OPTIONAL_HEADER64, IMAGE_NT_HEADERS32 and IMAGE_NT_HEADERS64.
svn path=/trunk/; revision=16027
2005-06-18 12:12:41 +00:00
Gregor Anich
eb4f850ff3 Fix stupid bug...
svn path=/trunk/; revision=16026
2005-06-18 11:42:42 +00:00
Eric Kohl
65a5620cd8 Implement basic string table functions
svn path=/trunk/; revision=16025
2005-06-18 11:30:49 +00:00
Casper Hornstrup
1ac8300db4 DIB_24BPP_ColorFill performance test
svn path=/trunk/; revision=16024
2005-06-18 08:04:30 +00:00
Martin Fuchs
2486be430f remove superfluous include
svn path=/trunk/; revision=16023
2005-06-18 07:43:49 +00:00
Casper Hornstrup
37e38723e7 Prepare win32k for tests
svn path=/trunk/; revision=16022
2005-06-18 06:17:10 +00:00
Filip Navara
fbf52b7050 Fix "make test".
svn path=/trunk/; revision=16021
2005-06-17 22:59:39 +00:00
Alex Ionescu
b7754ab78d Add KIPCR which will be needed soon and add one more internal function
svn path=/trunk/; revision=16020
2005-06-17 22:05:16 +00:00
Filip Navara
7cee43970a Remove few more dead headers.
svn path=/trunk/; revision=16019
2005-06-17 21:35:33 +00:00
Gé van Geldorp
c37765923c - Correctly translate output rect
- Don't call DIB routines for empty (clipped away) rectangles

svn path=/trunk/; revision=16018
2005-06-17 20:54:24 +00:00
Martin Fuchs
5d7043ea5a remove tabs for proper indenting
svn path=/trunk/; revision=16017
2005-06-17 20:32:22 +00:00
Casper Hornstrup
da4957ec53 External modules area
svn path=/trunk/; revision=16016
2005-06-17 20:30:57 +00:00
Martin Fuchs
f53f915435 sync to Wine's latest "warning fixes"
svn path=/trunk/; revision=16015
2005-06-17 20:28:06 +00:00
Martin Fuchs
836c8f9265 remove old headerfile "license.h"
svn path=/trunk/; revision=16014
2005-06-17 20:23:31 +00:00
Martin Fuchs
3f0cb9fa9f Update Copyright information from Wine's repository
svn path=/trunk/; revision=16013
2005-06-17 20:22:08 +00:00
Filip Navara
609922c292 Add definition of PKBUGCHECK_REASON_CALLBACK_ROUTINE, KBUGCHECK_REASON_CALLBACK_RECORD and KBUGCHECK_CALLBACK_REASON.
svn path=/trunk/; revision=16012
2005-06-17 20:09:20 +00:00
Filip Navara
6c512c6430 Cleanup the indenting of HAL types and move the STDCALL/FASTCALL keywords at the right place in the declarations.
svn path=/trunk/; revision=16011
2005-06-17 20:01:51 +00:00
Filip Navara
d1dbe1be23 Remove definiton of PHAL_RESET_DISPLAY_PARAMETERS.
svn path=/trunk/; revision=16010
2005-06-17 19:43:51 +00:00
Filip Navara
a8f8cec2a4 Be W32API friendly.
svn path=/trunk/; revision=16009
2005-06-17 19:27:49 +00:00
Alex Ionescu
d143eebd0f Add missing HAL types to DDK
svn path=/trunk/; revision=16008
2005-06-17 18:02:31 +00:00
Alex Ionescu
4b08e9770a Oops. Thanks w3seek
svn path=/trunk/; revision=16007
2005-06-17 17:59:11 +00:00
Filip Navara
0a48555ba9 - Comment out the call to SHObjectProperties. The one who added it must have been complete freak since the parameters were completely wrong. Don't let me do "svn log" ...
- Remove duplicate definition from version.h.

svn path=/trunk/; revision=16006
2005-06-17 17:44:39 +00:00
Filip Navara
7af0efc0bc - Define SHOP_PRINTERNAME, SHOP_FILEPATH and SHOP_VOLUMEGUID.
- Declare SHObjectProperties.

svn path=/trunk/; revision=16005
2005-06-17 17:37:54 +00:00
Gregor Anich
3ab6c437cc longjmp() should return 1 if 0 is passed as return value (0 should only be returned by setjmp)
svn path=/trunk/; revision=16004
2005-06-17 17:33:47 +00:00
Gregor Anich
402b13b071 Fix another broken setjmp.
svn path=/trunk/; revision=16003
2005-06-17 17:27:03 +00:00
Gregor Anich
faeb567e1c Fix setjmp (didn't save correct ESP, so it crashed after longjmp).
Fix the kernel debugger.

svn path=/trunk/; revision=16002
2005-06-17 17:25:02 +00:00
Hervé Poussineau
8502799382 Implement IRP_MN_QUERY_CAPABILITIES, IRP_MN_QUERY_RESOURCES, IRP_MN_QUERY_RESOURCE_REQUIREMENTS
svn path=/trunk/; revision=16001
2005-06-17 17:22:57 +00:00
Alex Ionescu
ffe54a1108 Enable PCH for NTDLL. This is commit 16000. Alex pwns you all.
svn path=/trunk/; revision=16000
2005-06-17 17:22:44 +00:00
Alex Ionescu
2df663e3fe Use NTDLL Common Header.
svn path=/trunk/; revision=15999
2005-06-17 17:22:27 +00:00
Alex Ionescu
5e400ded46 Add NTDLL Common Header
svn path=/trunk/; revision=15998
2005-06-17 17:22:19 +00:00
Alex Ionescu
46794424c7 Enable PCH for rtl
svn path=/trunk/; revision=15997
2005-06-17 17:22:12 +00:00
Gregor Anich
bfe3229a7d Remove #include <poppack.h> - there is no pshpack beeing included.
svn path=/trunk/; revision=15996
2005-06-17 17:18:58 +00:00
Filip Navara
ef09f86407 Use W32API.
svn path=/trunk/; revision=15995
2005-06-17 17:15:55 +00:00
Filip Navara
580b785a18 Fix the export of HalExamineMBR. It mustn't be aliased since we need to have it named correctly in the import library.
svn path=/trunk/; revision=15994
2005-06-17 17:14:57 +00:00
Filip Navara
b4a5cd914f - Move DRIVE_LAYOUT_INFORMATION_MBR, DRIVE_LAYOUT_INFORMATION_GPT and
PARTITION_INFORMATION_MBR structures from winddk.h to ntdddisk.h.
- Add definitions of IOCTL_DISK_HISTOGRAM_STRUCTURE, IOCTL_DISK_HISTOGRAM_DATA,
  IOCTL_DISK_HISTOGRAM_RESET, IOCTL_DISK_LOGGING, IOCTL_DISK_REQUEST_DATA,
  IOCTL_DISK_REQUEST_STRUCTURE, PARTITION_INFORMATION_MBR,
  DRIVE_LAYOUT_INFORMATION and IO_QUERY_DEVICE_DATA_FORMAT.

svn path=/trunk/; revision=15993
2005-06-17 17:12:17 +00:00
Filip Navara
0794ad5aa6 - Get rid of STDCALL_FUNC usage in napi/core.h.
- Allow including ntos.h and ntdddisk.h at the same time.

svn path=/trunk/; revision=15992
2005-06-17 17:08:04 +00:00
Filip Navara
c57e3d0690 Fix definition of LPC_MAX_MESSAGE for __USE_W32API case.
svn path=/trunk/; revision=15991
2005-06-17 16:58:15 +00:00
Filip Navara
300fd866a2 Fix packing of structures.
svn path=/trunk/; revision=15990
2005-06-17 16:35:17 +00:00
Thomas Bluemel
dfe571622c - fixed a possible deadlock in SmBeginClientInitialization
- fixed SmCompleteClientInitialization to return success when the client data could be found
- don't copy the program name to a NULL pointer in SmCreateClient in case allocating the storage failed

svn path=/trunk/; revision=15989
2005-06-17 16:26:04 +00:00
Casper Hornstrup
ac243d95f2 Build wrc in output tree.
Patch by Sylvain Petreolle [spetreolle@yahoo.fr].


svn path=/trunk/; revision=15988
2005-06-17 16:12:33 +00:00
Hervé Poussineau
a9a05b022d Disable some code in cromwell, as you get an infinite loop on some hardware ("ERR: drivers\usb\cromwell\uhci\uhci-hcd.c: 1060: host controller halted. very bad during boot")
svn path=/trunk/; revision=15987
2005-06-17 15:48:15 +00:00
Magnus Olsen
2e71724ae1 New icon from mf. same as cmd icon
svn path=/trunk/; revision=15986
2005-06-17 15:47:10 +00:00
Filip Navara
ddec33b110 Use W32API.
svn path=/trunk/; revision=15985
2005-06-17 15:10:01 +00:00
Filip Navara
f44cbee050 Get rid of obsolete makefile.
svn path=/trunk/; revision=15984
2005-06-17 14:00:19 +00:00
Filip Navara
e37f6810a5 CSQ is linked to the kernel also, so make that work.
svn path=/trunk/; revision=15983
2005-06-17 13:59:47 +00:00
Filip Navara
7554c281d5 Use W32API.
svn path=/trunk/; revision=15982
2005-06-17 13:24:50 +00:00
Filip Navara
8342ea7301 Remove KEBUGCHECK and KEBUGCHECKEX definitions.
svn path=/trunk/; revision=15981
2005-06-17 13:22:12 +00:00
Filip Navara
3f77a1c166 Fix a typo. :(
svn path=/trunk/; revision=15980
2005-06-17 13:17:46 +00:00
Filip Navara
a4cb3017e6 Define KEBUGCHECK and KEBUGCHECKEX here.
svn path=/trunk/; revision=15979
2005-06-17 13:13:37 +00:00
Filip Navara
05548c5587 A bit of W32API friendliness...
svn path=/trunk/; revision=15978
2005-06-17 13:12:45 +00:00
Filip Navara
bae68b41b1 Use W32API.
svn path=/trunk/; revision=15977
2005-06-17 13:05:11 +00:00
Filip Navara
6a36797b61 Allow csq.h to be included along with ntddk.h.
svn path=/trunk/; revision=15976
2005-06-17 13:00:03 +00:00
Filip Navara
1b5f61f4e6 Include the prototypes for CcRosInitializeFileCache and CcRosReleaseFileCache even when compiling w/ W32API.
svn path=/trunk/; revision=15975
2005-06-17 12:59:27 +00:00
Filip Navara
4cd0b32494 - Fix prototype of IoCsqInitialize.
- Define IO_TYPE_CSQ and IO_TYPE_CSQ_IRP_CONTEXT.

svn path=/trunk/; revision=15974
2005-06-17 12:57:31 +00:00
Filip Navara
a965b968f2 Get rid of obsolete makefile.
svn path=/trunk/; revision=15973
2005-06-17 12:31:49 +00:00
Filip Navara
e0463986d3 Build file system drivers w/ W32API headers.
svn path=/trunk/; revision=15972
2005-06-17 12:29:33 +00:00
Filip Navara
b0d3f5b991 Make the ASSERT macros GCC friendly.
svn path=/trunk/; revision=15971
2005-06-17 12:24:29 +00:00
Filip Navara
317d4942bd Use W32API.
svn path=/trunk/; revision=15970
2005-06-17 11:40:11 +00:00
Filip Navara
d604caaaf3 Get rid of the prehistoric GNU Windows32 headers.
svn path=/trunk/; revision=15969
2005-06-17 11:29:07 +00:00
Filip Navara
14e5873c84 Do NOT include defines.h in .rc files.
svn path=/trunk/; revision=15968
2005-06-17 11:28:23 +00:00
Filip Navara
bd0ef4def4 Use W32API.
svn path=/trunk/; revision=15967
2005-06-17 11:22:47 +00:00
Filip Navara
aab0294f3b Use W32API.
svn path=/trunk/; revision=15966
2005-06-17 11:05:49 +00:00
Filip Navara
ab4dfd00f0 Don't include windows.h in drivers.
svn path=/trunk/; revision=15965
2005-06-17 10:54:34 +00:00
Filip Navara
3fb65d4597 - Use W32API.
- Fix some protoypes.

svn path=/trunk/; revision=15964
2005-06-17 10:43:58 +00:00
Filip Navara
19955a57e1 Fix declaration of AdvancedDocumentProperties[AW].
svn path=/trunk/; revision=15963
2005-06-17 10:43:16 +00:00
Thomas Bluemel
acfd0635dd implemented the TokenRestrictedSids information class for NtQueryInformationToken, however restricted SIDs are not yet supported!
svn path=/trunk/; revision=15962
2005-06-17 10:30:59 +00:00
Filip Navara
785eb54c6a Use W32API.
svn path=/trunk/; revision=15961
2005-06-17 10:15:21 +00:00
Filip Navara
37bfae8d86 Use W32API.
svn path=/trunk/; revision=15960
2005-06-17 09:57:53 +00:00
Filip Navara
ba98c65d7a - Declare IO_ERROR_LOG_MESSAGE.
- Define ERROR_LOG_LIMIT_SIZE and IO_ERROR_LOG_MESSAGE_HEADER_LENGTH.

svn path=/trunk/; revision=15959
2005-06-17 09:57:28 +00:00
Thomas Bluemel
f6e5d12f4c implemented IsTokenRestricted(), inspired by a patch to winehq by James Hawkins
svn path=/trunk/; revision=15958
2005-06-17 09:46:29 +00:00
Filip Navara
a50fde81ae Use W32API.
svn path=/trunk/; revision=15957
2005-06-17 09:46:21 +00:00
Filip Navara
204dc0088b Use W32API.
svn path=/trunk/; revision=15956
2005-06-17 09:46:03 +00:00
Filip Navara
826e4d001b Use W32API.
svn path=/trunk/; revision=15955
2005-06-17 09:45:42 +00:00
Filip Navara
99e07a1ddf Use W32API.
svn path=/trunk/; revision=15954
2005-06-17 08:12:20 +00:00
Filip Navara
138bbbaa3a Use W32API.
svn path=/trunk/; revision=15953
2005-06-17 08:08:58 +00:00
Filip Navara
05061cedaa Use W32API.
svn path=/trunk/; revision=15952
2005-06-17 08:05:58 +00:00
Filip Navara
63ac2d0f1f Cleanup the usage of W32API.
svn path=/trunk/; revision=15951
2005-06-17 08:02:05 +00:00
Filip Navara
754ccb0eb6 Use W32API.
svn path=/trunk/; revision=15950
2005-06-17 08:00:30 +00:00
Filip Navara
3814e88279 Use W32API.
svn path=/trunk/; revision=15949
2005-06-17 07:59:43 +00:00
Filip Navara
d4e71ef096 Use W32API.
svn path=/trunk/; revision=15948
2005-06-17 07:57:37 +00:00
Filip Navara
7ccf07aecc A bit of W32API friendliness...
svn path=/trunk/; revision=15947
2005-06-17 07:55:45 +00:00
Filip Navara
81405a8541 Use W32API.
svn path=/trunk/; revision=15946
2005-06-17 07:53:58 +00:00
Filip Navara
c893e787ea - Use standard TLS instead of custom TEB field.
- Use W32API.

svn path=/trunk/; revision=15945
2005-06-17 07:53:34 +00:00
Filip Navara
c7ccd70dbd Add definitions of ACCESS_MAX_MS_V2_ACE_TYPE, ACCESS_ALLOWED_COMPOUND_ACE_TYPE, ACCESS_MAX_MS_V3_ACE_TYPE, ACCESS_MIN_MS_OBJECT_ACE_TYPE, ACCESS_ALLOWED_OBJECT_ACE_TYPE, ACCESS_DENIED_OBJECT_ACE_TYPE, SYSTEM_AUDIT_OBJECT_ACE_TYPE, SYSTEM_ALARM_OBJECT_ACE_TYPE, ACCESS_MAX_MS_OBJECT_ACE_TYPE, ACCESS_MAX_MS_V4_ACE_TYPE, ACCESS_MAX_MS_ACE_TYPE, ACCESS_ALLOWED_CALLBACK_ACE_TYPE, ACCESS_DENIED_CALLBACK_ACE_TYPE, ACCESS_ALLOWED_CALLBACK_OBJECT_ACE_TYPE, ACCESS_DENIED_CALLBACK_OBJECT_ACE_TYPE, SYSTEM_AUDIT_CALLBACK_ACE_TYPE, SYSTEM_ALARM_CALLBACK_ACE_TYPE, SYSTEM_AUDIT_CALLBACK_OBJECT_ACE_TYPE, SYSTEM_ALARM_CALLBACK_OBJECT_ACE_TYPE, ACCESS_MAX_MS_V5_ACE_TYPE, SID_MAX_SUB_AUTHORITIES, SID_RECOMMENDED_SUB_AUTHORITIES, SE_OWNER_DEFAULTED, SE_GROUP_DEFAULTED, SE_DACL_PRESENT, SE_DACL_DEFAULTED, SE_SACL_PRESENT, SE_SACL_DEFAULTED, SE_DACL_UNTRUSTED, SE_SERVER_SECURITY, SE_DACL_AUTO_INHERIT_REQ, SE_SACL_AUTO_INHERIT_REQ, SE_DACL_AUTO_INHERITED, SE_SACL_AUTO_INHERITED, SE_DACL_PROTECTED, SE_SACL_PROTECTED, SE_RM_CONTROL_VALID and SE_SELF_RELATIVE.
svn path=/trunk/; revision=15944
2005-06-17 07:16:01 +00:00
Filip Navara
59801357f9 - Declare POLICY_NOTIFICATION_INFORMATION_CLASS and SECURITY_LOGON_SESSION_DATA.
- Fix declaration of CRITICAL_SECTION and RTL_CRITICAL_SECTION.

svn path=/trunk/; revision=15943
2005-06-17 07:12:16 +00:00
Alex Ionescu
314e0eaf59 Fix bug in gate code
svn path=/trunk/; revision=15942
2005-06-17 00:13:44 +00:00
Alex Ionescu
c2167ebb58 Fix strpbrk
svn path=/trunk/; revision=15941
2005-06-17 00:13:10 +00:00
Gé van Geldorp
66c72376e1 Declare Guarded Mutex functions and export them
svn path=/trunk/; revision=15940
2005-06-16 22:15:43 +00:00
Hervé Poussineau
f104c62bd6 Add "depends" target for makefiles
svn path=/trunk/; revision=15939
2005-06-16 21:02:52 +00:00
James Tabor
11ae17704c Plugging in CallMsgFilter.
svn path=/trunk/; revision=15938
2005-06-16 20:47:47 +00:00
James Tabor
1284e1351f Pluged in CallMsgFilter.
svn path=/trunk/; revision=15937
2005-06-16 20:47:09 +00:00
Hervé Poussineau
192c84808f Use <ifnot property="ARCH" value="i386"> instead of <if property="ARCH" value="unknown">, because ARCH would never be defined to unknown
svn path=/trunk/; revision=15936
2005-06-16 20:46:48 +00:00
James Tabor
2054ea72e9 Pluged in CallMsgFilter, I tested this and no crashes on real hardware.
svn path=/trunk/; revision=15935
2005-06-16 20:46:39 +00:00
Hervé Poussineau
8f5dd38cdd Implement <ifnot>
svn path=/trunk/; revision=15934
2005-06-16 20:37:50 +00:00
Gé van Geldorp
2cc8819bc6 Fix warning
svn path=/trunk/; revision=15933
2005-06-16 09:25:51 +00:00
Hartmut Birr
f31239f089 Changed InterlockedIncrement and InterlockedDecrement to return the modified value.
svn path=/trunk/; revision=15932
2005-06-15 23:08:33 +00:00
Hartmut Birr
c8ba8dd860 Removed intrlck.c, because it is already in lib\rtl.
svn path=/trunk/; revision=15931
2005-06-15 23:00:10 +00:00
Hartmut Birr
3ab1c49a3e Removed strpbrk.c.
svn path=/trunk/; revision=15930
2005-06-15 22:52:03 +00:00
Hartmut Birr
251cbb167f Add an optimized version of strpbrk to the string library.
svn path=/trunk/; revision=15929
2005-06-15 22:47:12 +00:00
Hartmut Birr
60410fb891 Used the assembler source for the i386 architecture.
svn path=/trunk/; revision=15928
2005-06-15 22:39:03 +00:00
KJK::Hyperion
cba0f39ae7 No reason KiDoubleFaultHandler should return a value - in fact it doesn't return at all
svn path=/trunk/; revision=15927
2005-06-15 21:55:36 +00:00
Steven Edwards
f050a320ca Added new better tracert replacement by Ged Murphy
svn path=/trunk/; revision=15926
2005-06-15 20:24:31 +00:00
Steven Edwards
4345881c2a Use w32api
svn path=/trunk/; revision=15925
2005-06-15 20:05:54 +00:00
Steven Edwards
6dfaa9b3a5 some magic to make w32api happy when using a [arch]-linux compiler rather than mingw32
svn path=/trunk/; revision=15924
2005-06-15 19:45:28 +00:00
Maarten Bosma
87ee9dfafb delete .cvsignore
svn path=/trunk/; revision=15923
2005-06-15 17:51:54 +00:00
Maarten Bosma
84321058f9 removed rules.mak and outdated entries from readme.txt
svn path=/trunk/; revision=15922
2005-06-15 17:42:12 +00:00
Maarten Bosma
f30aac562d remove old makefile
svn path=/trunk/; revision=15921
2005-06-15 17:37:14 +00:00
Maarten Bosma
3bf9dce002 Created XML makefiles for rosapps. You need to checkout /rosapps in your /reactos folder to use it. This projects do not build: /lib/dflat32 and /welcome (I don't know if they did before). Winemine does not work. (but it builds) /test makefiles are not done yet.
svn path=/trunk/; revision=15920
2005-06-15 17:19:52 +00:00
Hervé Poussineau
0d5c780913 Add Green driver, that emulates a VT100 compatible server.
Input won't work as long as we don't have a kdbclass driver.Add stubs for IOCTL_USB_GET_NODE_CONNECTION_NAME, IOCTL_USB_GET_NODE_CONNECTION_INFORMATION, IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION

svn path=/trunk/; revision=15919
2005-06-15 17:11:36 +00:00
KJK::Hyperion
390d16bed5 Removed empty directory
svn path=/trunk/; revision=15918
2005-06-14 22:08:13 +00:00
Filip Navara
9e9a326ead Add Nokia/Ericsson vitrual key codes.
svn path=/trunk/; revision=15917
2005-06-14 21:59:07 +00:00
Filip Navara
095faa8449 - Remove KeAttachProcess and KeDetachProcess prototypes from winddk.h.
- Remove non-public object manager stuff from W32API and ROS headers.

svn path=/trunk/; revision=15916
2005-06-14 20:41:49 +00:00
Filip Navara
a6b2363ea0 Use KeStackAttachProcess/KeUnstackDetachProcess instead of KeAttachProcess/KeDetachProcess.
svn path=/trunk/; revision=15915
2005-06-14 20:24:02 +00:00
Filip Navara
56f5461bff Revert r15906 change.
svn path=/trunk/; revision=15914
2005-06-14 18:39:12 +00:00
Gregor Anich
88e9416cb8 Fix compilation.
svn path=/trunk/; revision=15913
2005-06-14 18:33:59 +00:00
Hartmut Birr
83ff161361 It was a bad idea to manipulate the length of the given unicode string if we don't like the the starting back slash.
svn path=/trunk/; revision=15912
2005-06-14 18:33:02 +00:00
Alex Ionescu
d101bc4e2d Add an ARC Header for future purposes (PPC, ARM, etc, ARCLoader) and implement KeFindConfigurationNextEntry and fix the definition
svn path=/trunk/; revision=15911
2005-06-14 17:37:07 +00:00
Filip Navara
f4ff6e70b3 Accidently removed one line in the last commit ... gotta love this header hell. :/
svn path=/trunk/; revision=15910
2005-06-14 14:44:11 +00:00
Filip Navara
83210a64d6 A bit of W32API magic.
svn path=/trunk/; revision=15909
2005-06-14 13:50:23 +00:00
Filip Navara
17990a22f5 Fix compilation error (try 2).
svn path=/trunk/; revision=15908
2005-06-14 13:46:32 +00:00
Filip Navara
cd1a3da016 Fix compilation error.
svn path=/trunk/; revision=15907
2005-06-14 13:45:31 +00:00
Filip Navara
b2970c097e - Fix the declarations of PDRIVER_CANCEL, KeGetCurrentProcessorNumber and KPCR in ROS headers.
- Fix the declarations of KeGetCurrentProcessorNumber, PIO_QUERY_DEVICE_ROUTINE, THREAD_STATE, KPCR and KeAttachProcess in W32API headers.
- Remove KeInitializeApc, KEVENT_PAIR and TERMINATION_PORT declarations from W32API, they don't belong there.
- Correct the STDCALL order in callback declarations in winddk.h.

svn path=/trunk/; revision=15906
2005-06-14 13:10:40 +00:00
Hervé Poussineau
819d60094a Enumerate root hub connected to UHCI controller
Use Cromwell USB stack to initialize UHCI controller

svn path=/trunk/; revision=15905
2005-06-14 12:31:51 +00:00
Alex Ionescu
2e0ff75066 Remove excessive debugging messages used during testing
svn path=/trunk/; revision=15904
2005-06-14 03:35:23 +00:00
Alex Ionescu
28c50308c7 Fix OB Bug and port ObQueryNameString from my branch so Herve can get back to working on USB. Sorry for taking so long, hpoussin\!
svn path=/trunk/; revision=15903
2005-06-14 03:33:21 +00:00
Gé van Geldorp
9c3a32fd9e Re-apply r15878 as it wasn't the cause of the problems
svn path=/trunk/; revision=15902
2005-06-13 22:27:09 +00:00
Gé van Geldorp
08d5e5e7e5 We were changing the edi register, but not informing the compiler about this.
For certain optimization combinations, the compiler would assume edi was
unchanged. Fixed by adding %edi to the clobber list.

svn path=/trunk/; revision=15901
2005-06-13 22:24:28 +00:00
Hervé Poussineau
f5f855488d Handle DeviceId property
Change InstanceId to Serenum\Mouse

svn path=/trunk/; revision=15900
2005-06-13 21:51:42 +00:00
Hervé Poussineau
a189416191 Fix string returned by IoRegisterDeviceInterface()
svn path=/trunk/; revision=15899
2005-06-13 21:44:32 +00:00
Hervé Poussineau
d520f41934 Add registry entries related to USB hub driver
svn path=/trunk/; revision=15898
2005-06-13 20:51:07 +00:00
Hervé Poussineau
ed558f123b Silent some debug messages
svn path=/trunk/; revision=15897
2005-06-13 20:45:52 +00:00
Hervé Poussineau
925b767f99 Add usb hub driver. It is linked with cromwell usb stack
svn path=/trunk/; revision=15896
2005-06-13 20:41:59 +00:00
Hervé Poussineau
6b3ec8469e Disable some usb empty drivers. We will use thoses in drivers/usb/cromwell
svn path=/trunk/; revision=15895
2005-06-13 20:37:33 +00:00
KJK::Hyperion
f5b60bc69e longjmp should restore the stack pointer as it would be *after* setjmp returns. Since the PSEH implementation of setjmp is __stdcall, this value differs from the usual esp+4, because *after* return *two* doublewords are popped (return IP and parameter). Thanks to blight_ for reporting
svn path=/trunk/; revision=15894
2005-06-13 20:31:55 +00:00
Maarten Bosma
ca33e9fc4f set svn:eol-style native
svn path=/trunk/; revision=15893
2005-06-13 18:33:08 +00:00
Maarten Bosma
ab2a7524d0 remove empty dir
svn path=/trunk/; revision=15892
2005-06-13 18:09:27 +00:00
Maarten Bosma
9631980621 remove empty dir
svn path=/trunk/; revision=15891
2005-06-13 18:09:22 +00:00
Maarten Bosma
9038f375f7 remove empty dir
svn path=/trunk/; revision=15890
2005-06-13 18:09:16 +00:00
Maarten Bosma
c1d7682a91 remove empty dir
svn path=/trunk/; revision=15889
2005-06-13 18:09:11 +00:00
Maarten Bosma
c50ea61c80 remove empty dir
svn path=/trunk/; revision=15888
2005-06-13 18:09:05 +00:00
Maarten Bosma
d4e3987bad remove empty dir
svn path=/trunk/; revision=15887
2005-06-13 18:07:56 +00:00
Maarten Bosma
45c9cc8bde remove content of empty dir (cvsignore)
svn path=/trunk/; revision=15886
2005-06-13 18:06:30 +00:00
Gregor Anich
584e9b9488 Fix warnings in inline assembly (I hope this doesnt expose a GCC bug and thus break the build for others, using 3.4.2 myself and everything works)
svn path=/trunk/; revision=15884
2005-06-13 15:29:05 +00:00
KJK::Hyperion
e3502f710b did I miss a "the tree isn't supposed to build anymore" memo or what? fixes for compilation with GCC 3.3.3
svn path=/trunk/; revision=15883
2005-06-13 14:36:02 +00:00
Maarten Bosma
5347091d15 XML Makefiles
svn path=/trunk/; revision=15882
2005-06-13 13:21:34 +00:00
Magnus Olsen
0aec39dcbe revert back to 15869 for current change break 32 / 8 bpp for vbe drv, and vmware drv the mouse did not redaw some dialog box was wrong. and alot more
svn path=/trunk/; revision=15881
2005-06-13 02:02:21 +00:00
Magnus Olsen
99848068d0 32dib remove one of color fill optimizing until it can be fix for oarch=pentiun2 DBG=0 with vmware drv
svn path=/trunk/; revision=15880
2005-06-13 01:58:57 +00:00
Magnus Olsen
9d5a92b86b fix bug in color fill inline asm code. Did crash cirrus drv, vmware 5 drv and if the buffer was not align. Clean up inline asm code.
svn path=/trunk/; revision=15879
2005-06-12 19:23:40 +00:00
Gé van Geldorp
8ab10b3efd Clip lines totally outside the clip region
svn path=/trunk/; revision=15878
2005-06-12 19:06:38 +00:00
Hartmut Birr
f4732fef7d Print more informations on a BSOD by enabling the debug prints to the screen.
svn path=/trunk/; revision=15877
2005-06-12 16:20:10 +00:00
Casper Hornstrup
45a93411a7 Show execution time of tests
svn path=/trunk/; revision=15876
2005-06-12 15:33:34 +00:00
Martin Fuchs
4f0032f8d7 remove duplicate toolbar button
svn path=/trunk/; revision=15875
2005-06-12 14:09:39 +00:00
Gé van Geldorp
83804c9749 Allow logging of calls into display driver (disabled by default)
svn path=/trunk/; revision=15874
2005-06-12 13:11:36 +00:00
Martin Fuchs
53a8f66404 small adjustements:
- #ifdef for WINE specific menu item
- C style comment
- white space

svn path=/trunk/; revision=15873
2005-06-12 11:30:17 +00:00
Casper Hornstrup
ad1bdc040e Document well-known targets
svn path=/trunk/; revision=15872
2005-06-12 10:52:18 +00:00
Hartmut Birr
ad04a63867 Preinitialize the Provider to prevent from crashing if no sockets were given.
svn path=/trunk/; revision=15871
2005-06-12 10:33:22 +00:00
Hartmut Birr
95aa074b1e - Fixed the calculation of some offset values.
- Used the correct flag for testing of a bss section.

svn path=/trunk/; revision=15870
2005-06-12 10:25:49 +00:00
Hartmut Birr
b2f1b36fd9 - Fixed the inline assembler in DIB_16BPP_ColorFill.
- Calculated the color value outside of the loop in DIB_16BPP_ColorFill.

svn path=/trunk/; revision=15869
2005-06-12 10:23:04 +00:00
Casper Hornstrup
321c3545d8 Support module_depends target
svn path=/trunk/; revision=15868
2005-06-12 10:18:51 +00:00
Martin Fuchs
639193ca53 - standardize resource scripts: align code and remove tabs
- ifdef __WINE__ for ID_ABOUT_WINE

svn path=/trunk/; revision=15867
2005-06-12 10:14:37 +00:00
Casper Hornstrup
bfef768a76 Make test pass
svn path=/trunk/; revision=15866
2005-06-12 09:36:25 +00:00
Martin Fuchs
bef9eaff74 remove unnecessary paint code
svn path=/trunk/; revision=15865
2005-06-12 09:17:06 +00:00
Martin Fuchs
ed5cf2efc8 remove unsued compilation unit
svn path=/trunk/; revision=15864
2005-06-12 09:14:12 +00:00
Martin Fuchs
c25cc23eb8 remove unused variable
svn path=/trunk/; revision=15863
2005-06-12 09:13:45 +00:00
Aleksey Bragin
8addb6ae11 Fix pdo->fdo typo, causing serious errors, ending up driver unloadable at all.
svn path=/trunk/; revision=15862
2005-06-11 21:29:59 +00:00
Magnus Olsen
6eab0b40a0 fix fill color and hline asm code
thx tamlin to notice some mistake

svn path=/trunk/; revision=15861
2005-06-11 19:56:12 +00:00
Hervé Poussineau
03586e2534 Patch by Sylvain Petreolle <spetreolle@yahoo.fr>: Fix bug 646
- Remove duplicate dll entries in reactos.dff,
- Move some at their correct place.

svn path=/trunk/; revision=15860
2005-06-11 19:09:42 +00:00
Magnus Olsen
c1643db40b speed up 24bpp small fill and fill
svn path=/trunk/; revision=15859
2005-06-11 13:36:00 +00:00
Magnus Olsen
7c9de0d8d6 Speed up Fill and Small fill. for 16bpp
svn path=/trunk/; revision=15858
2005-06-11 12:13:28 +00:00
Magnus Olsen
c507c88f25 adding __volatile__ on all DIB32 inline asm to ensure it doesn't get modified when optimizations are enabled
Thx w3seek 

svn path=/trunk/; revision=15857
2005-06-11 10:19:33 +00:00
Magnus Olsen
1503cdc0b4 Fix align 4 problem with color fill and hline.
Now OARCH=pentium2 working with 32bpp


svn path=/trunk/; revision=15856
2005-06-11 09:53:14 +00:00
Hervé Poussineau
df3ceea77c Set svn:eol-style property to native
svn path=/trunk/; revision=15855
2005-06-10 22:54:11 +00:00
Alex Ionescu
2dc107e012 Support QEMU Hardware Acceleration
svn path=/trunk/; revision=15854
2005-06-10 21:46:16 +00:00
Hervé Poussineau
64bd0a6bd1 Add a pointer to the root hub PDO in the usb controller device extension
svn path=/trunk/; revision=15853
2005-06-10 21:25:55 +00:00
Aleksey Bragin
988bbc4f12 Add scrollbar to timezone selection comboboxes. Patch by unC0Rr.
svn path=/trunk/; revision=15852
2005-06-10 21:13:15 +00:00
Martin Fuchs
d92ffc0b93 Patch from WineHQ:
Mike McCormack <mike@codeweavers.com>
Fix more warnings.

svn path=/trunk/; revision=15851
2005-06-10 20:41:26 +00:00
Gé van Geldorp
15e83c5e04 Re-apply fix to dib16bpp and fix the root cause
svn path=/trunk/; revision=15850
2005-06-09 20:40:44 +00:00
Magnus Olsen
5ecd1f57d9 dib16_hline revert GvG change until some rewrite the asm code to handler the 4 align right. for now it does
the test 0x01,%%edi is wrong it must be test 0x03,%%edi
for not break cmd in 16bpp and other apps

svn path=/trunk/; revision=15849
2005-06-09 20:18:32 +00:00
Gé van Geldorp
bb18fc25e9 Speed up 24bpp fills
svn path=/trunk/; revision=15848
2005-06-09 19:04:32 +00:00
Magnus Olsen
ecb9480129 correct the spelling for some comment thx w3seek
svn path=/trunk/; revision=15847
2005-06-09 18:33:45 +00:00
Magnus Olsen
e4d12844dc fix a comment
svn path=/trunk/; revision=15846
2005-06-09 18:03:05 +00:00
Magnus Olsen
a89c7dcf3d fix a bug in hline for 16bpp it did not do Align to fullword boundary correct GvG did spot this lite bug. fix fill bug in 8bpp now it will boot agein thx waxdragon that did spot this problem.
svn path=/trunk/; revision=15845
2005-06-09 17:58:33 +00:00
James Tabor
ba8d788967 Added HcdInterfaceName from hpoussin new uhci devctrl.c.
svn path=/trunk/; revision=15844
2005-06-09 02:12:33 +00:00
James Tabor
26d0d00e72 Attached Linux device to Device Extension.
svn path=/trunk/; revision=15843
2005-06-09 02:01:06 +00:00
James Tabor
7240f0cf76 Fixing to start pnp of usb drivers.
svn path=/trunk/; revision=15842
2005-06-09 01:43:07 +00:00
Magnus Olsen
e87cc02785 add my self to CREDITS
svn path=/trunk/; revision=15841
2005-06-08 17:29:59 +00:00
Magnus Olsen
f0881728a7 Optimze DIB32_bitblt for both DGB=0 and DGB=1
Can not geting it faster with current c code


svn path=/trunk/; revision=15840
2005-06-08 16:28:41 +00:00
Gé van Geldorp
ec70aa71b0 Revert r15838 since it breaks the build
svn path=/trunk/; revision=15839
2005-06-07 23:11:35 +00:00
Gé van Geldorp
5fb6c9fc9c Add getnameinfoA/W
svn path=/trunk/; revision=15838
2005-06-07 22:04:54 +00:00
Filip Navara
e5541e23e6 Fix prototypes for non-GDI_DEBUG case.
svn path=/trunk/; revision=15837
2005-06-07 21:23:30 +00:00
Hartmut Birr
b494dd6e5e Changed back to the GPL.
svn path=/trunk/; revision=15836
2005-06-07 20:15:16 +00:00
Filip Navara
cb3ec720bd Fix a cut & paste mistake.
svn path=/trunk/; revision=15835
2005-06-07 20:10:16 +00:00
Filip Navara
7aea00d1d6 - Repair GDI handle debugging functionality.
- Fix locking in NtGdiGetTextFace.

svn path=/trunk/; revision=15834
2005-06-07 20:02:22 +00:00
Martin Fuchs
7a4b2f8d8f sync winefile resource wcripts with WINE and adjust INFO entries
svn path=/trunk/; revision=15833
2005-06-07 17:13:38 +00:00
Hartmut Birr
b4f774ec1e - Removed the process member from the memory area structure.
- Add the copyright notice and all programmers.

svn path=/trunk/; revision=15832
2005-06-07 17:07:34 +00:00
Filip Navara
cc0fc0d35c Implementation of DragDetect. Based on Wine code (C) 1993, 1994 Alexandre Julliard.
svn path=/trunk/; revision=15831
2005-06-07 16:54:15 +00:00
Filip Navara
4619446ed0 - Unlock GDI objects by pointer, not by handle.
- Fix a few invalid lock cases.
- Add support for shared GDI object locks and use it for locking surfaces.

svn path=/trunk/; revision=15830
2005-06-07 16:34:07 +00:00
Filip Navara
e7f345e0a2 Fix buffer size checks for IOCTL_VIDEO_SET_COLOR_REGISTERS.
svn path=/trunk/; revision=15829
2005-06-07 16:26:14 +00:00
Gregor Anich
d06d236296 Add 'l' suffix to shr in DIB_16BPP_VLine.
svn path=/trunk/; revision=15828
2005-06-07 15:13:14 +00:00
Gregor Anich
2b005b9bfa Remove a comment which i forgot to remove, oops.
svn path=/trunk/; revision=15827
2005-06-07 15:10:56 +00:00
Gregor Anich
85b03712d5 Assembly for DIB_16BPP_VLine, nearly no performance increase, but could be useful later anyway.
svn path=/trunk/; revision=15826
2005-06-07 15:09:02 +00:00
Thomas Bluemel
72448a5e50 use %lu instead of %d for unsigned formatting
svn path=/trunk/; revision=15825
2005-06-07 13:53:37 +00:00
Thomas Bluemel
1413f0bd4c delete obsolete folder
svn path=/trunk/; revision=15824
2005-06-07 13:51:58 +00:00
Eric Kohl
518bede98c Use #if 0 ... #endif to disable source code.
svn path=/trunk/; revision=15823
2005-06-06 20:39:25 +00:00
Eric Kohl
a344dd8f15 NtPlugPlayControl: Implement PLUGPLAY_GET_RELATED_DEVICE and PLUGPLAY_DEVICE_STATUS.
svn path=/trunk/; revision=15822
2005-06-06 20:31:56 +00:00
Hartmut Birr
700e2c8098 - Changed the calculation of the base address of an image section.
- Removed some unnecessary members from section object.  
- Changed the allocation of a section object back to paged pool.

svn path=/trunk/; revision=15821
2005-06-06 20:27:49 +00:00
Klemens Friedl
6193faf9cd cmd update:
* add 'help' command: list all available commands plus show a short description
* update english and german language resource files

svn path=/trunk/; revision=15820
2005-06-06 20:05:14 +00:00
Eric Kohl
794ac95666 Disable patch 15796 because it breaks the bootcd.
svn path=/trunk/; revision=15819
2005-06-06 19:34:36 +00:00
Hartmut Birr
5e938a6c68 Allocate the section object from non paged pool because the storage for a spin lock must be in non paged memory.
svn path=/trunk/; revision=15818
2005-06-05 23:07:51 +00:00
Hartmut Birr
9ea1665416 Fixed the clean rule.
svn path=/trunk/; revision=15817
2005-06-05 21:30:41 +00:00
Hartmut Birr
1272e9ca67 Revert my changes from rev 15805.
svn path=/trunk/; revision=15816
2005-06-05 21:24:36 +00:00
Hartmut Birr
f97e4e54cd Allocate the section segments from non paged pool because the storage for fast mutex must be in non paged memory.
svn path=/trunk/; revision=15815
2005-06-05 21:12:30 +00:00
Gé van Geldorp
be1ac79fa0 Implement /LOADSYMBOLS and /NOLOADSYMBOLS command line option
Note to self: send shipping address for coffee mug to Alex

svn path=/trunk/; revision=15814
2005-06-05 20:56:14 +00:00
Hervé Poussineau
170980ae6f Include French resources in explorer
svn path=/trunk/; revision=15813
2005-06-05 20:05:56 +00:00
Magnus Olsen
3ed044e92e more optimze of bitblt for dib32
svn path=/trunk/; revision=15812
2005-06-05 18:15:08 +00:00
Casper Hornstrup
012786bd8f Clean proxy makefiles on 'make clean'
svn path=/trunk/; revision=15810
2005-06-05 16:47:42 +00:00
Casper Hornstrup
5c0d2bc84c Remove old makefiles
svn path=/trunk/; revision=15809
2005-06-05 16:32:33 +00:00
Casper Hornstrup
2163a01133 Generate proxy makefiles in output tree.
svn path=/trunk/; revision=15808
2005-06-05 15:59:18 +00:00
James Tabor
4c7bbd9c39 Adding symbolic link to USBFDO.
svn path=/trunk/; revision=15807
2005-06-05 15:50:55 +00:00
Hartmut Birr
34fea9606b Forgot this file.
Make the bochs debug output in the very early boot phase available, if AUTO_ENABLE_BOCHS is defined.

svn path=/trunk/; revision=15806
2005-06-05 14:03:55 +00:00
Hartmut Birr
09b3ff1ebb Don't lock the kernel address space while solving faults from the paged pool.
It is possible, that someone try to access memory from paged pool 
while the kernel address space is already locked.

svn path=/trunk/; revision=15805
2005-06-05 14:01:58 +00:00
Casper Hornstrup
00457dbaa6 Document rbuild flags.
svn path=/trunk/; revision=15804
2005-06-05 12:53:22 +00:00
Martin Fuchs
ef499ee12a refresh window content after context menu popups only if any command has been executed
svn path=/trunk/; revision=15803
2005-06-05 12:20:07 +00:00
Casper Hornstrup
dba8d6b88a Correct dependencies for 'make <module>_install'
svn path=/trunk/; revision=15802
2005-06-05 12:08:39 +00:00
Casper Hornstrup
1aa91e26e5 * Support enabling/disabling modules depending on configuration.
* Enable halup for MP=0 configuration and halmp for MP=1 configuration.


svn path=/trunk/; revision=15801
2005-06-05 11:22:16 +00:00
Gé van Geldorp
34ef0d66de Use standard debug macros
svn path=/trunk/; revision=15800
2005-06-05 11:05:47 +00:00
Gé van Geldorp
0d7ebb711c Lucio Diaz-Flores Varela <reactos_translate@yahoo.es>
Add Spanish translation

svn path=/trunk/; revision=15799
2005-06-05 08:33:52 +00:00
James Tabor
a104816de4 Fixed Interface.
svn path=/trunk/; revision=15798
2005-06-05 00:40:40 +00:00
Eric Kohl
355593bafa - Create device instance key for root device node.
- Add DeviceReference value for each non-root device node.

svn path=/trunk/; revision=15796
2005-06-04 22:55:58 +00:00
Aleksey Bragin
607f793fc0 Fix a few critical typos/mistakes (like interruptvector/interruptlevel), stdcall for thread's func, etc. Also added some "hacks" into hub's thread, but at least it leads to first steps to device enumeration.
Driver (OHCI) bugchecks on my_pci_pool_allocation now (when trying to send URB).

svn path=/trunk/; revision=15795
2005-06-04 21:35:07 +00:00
Alex Ionescu
2fb48b3787 Fix filip's fixme and alex's fixme (ie: make IRP cancellation work properly). This should appease Hartmut even more =).
svn path=/trunk/; revision=15794
2005-06-04 21:07:00 +00:00
Martin Fuchs
14245cb4ed german resource for property dialog
svn path=/trunk/; revision=15793
2005-06-04 20:48:51 +00:00
Martin Fuchs
9dafeab3da sync winefile's header between WINE and ReactOS
svn path=/trunk/; revision=15792
2005-06-04 20:37:15 +00:00
Filip Navara
4b55dd45ab Correctly handle NOT operator in window style definitions.
svn path=/trunk/; revision=15788
2005-06-04 19:44:50 +00:00
Klemens Friedl
f40c4fef66 add property page winapi (not finished, I will implement it)
svn path=/trunk/; revision=15787
2005-06-04 19:21:15 +00:00
Magnus Olsen
633fbd38c8 fix head so it compile agein
svn path=/trunk/; revision=15786
2005-06-04 19:11:11 +00:00
Magnus Olsen
de07d08907 sorry revert to 15772
svn path=/trunk/; revision=15777
2005-06-04 18:43:39 +00:00
Magnus Olsen
33798a8e08 dib32 more speed optimze
svn path=/trunk/; revision=15774
2005-06-04 17:36:59 +00:00
Magnus Olsen
daaeafc22b small optimze and bug fix optimze color fill for DIB32_BltBit
svn path=/trunk/; revision=15772
2005-06-04 16:09:39 +00:00
Alex Ionescu
59b2cea3cd Sorry I was errm a bit...dizzy
svn path=/trunk/; revision=15771
2005-06-04 13:38:48 +00:00
Alex Ionescu
fd884b9ca2 Fix HEader
svn path=/trunk/; revision=15770
2005-06-04 13:24:50 +00:00
Alex Ionescu
e24313d28a Optimized DstInvert32
svn path=/trunk/; revision=15769
2005-06-04 13:20:34 +00:00
Hartmut Birr
e13bb66f6e Make the bochs debug output in the very early boot phase available, if AUTO_ENABLE_BOCHS is defined.
svn path=/trunk/; revision=15768
2005-06-04 10:05:20 +00:00
Alex Ionescu
651c6eedd3 Add inbv header, stub InvbDisplayString, fix BSOD to always show on screen like it should, make bugcheck macros show the bugcheck data in the debug output. I hope this appeases Hartmut a bit =)
svn path=/trunk/; revision=15763
2005-06-04 00:25:04 +00:00
Magnus Olsen
9f03cb709d more optimze of blt. icon draw lite faster
svn path=/trunk/; revision=15762
2005-06-03 23:21:21 +00:00
Hervé Poussineau
bf82efbfa5 Don't define asm macros that are not used
svn path=/trunk/; revision=15761
2005-06-03 22:44:38 +00:00
Gé van Geldorp
238b5dae79 Fix DBG := 0 build
svn path=/trunk/; revision=15760
2005-06-03 21:18:09 +00:00
Martin Fuchs
44917b7007 remove resrc1.h
svn path=/trunk/; revision=15759
2005-06-03 19:54:52 +00:00
Martin Fuchs
4a13ec527a split the big explorer resource file into smaller language specific rescource scripts
svn path=/trunk/; revision=15758
2005-06-03 19:36:03 +00:00
Magnus Olsen
1ec0b9da80 sorry foregt test one optimze
remove it until futer

svn path=/trunk/; revision=15757
2005-06-03 19:11:10 +00:00
Magnus Olsen
bf66d82efc optimze for bitblt dib32bpp.c
NOTSRCERASE, DSTINVERT
you can gain more speed from these

svn path=/trunk/; revision=15756
2005-06-03 18:57:53 +00:00
Klemens Friedl
3c262aeb05 update resource file (convert linux file to windows linebreak-compatible)
svn path=/trunk/; revision=15755
2005-06-03 18:33:15 +00:00
Klemens Friedl
c46d9a027b Add german language resource file
svn path=/trunk/; revision=15754
2005-06-03 18:23:18 +00:00
Klemens Friedl
a41298140f Add german language resource to the ReactOS Command Processor
(not completely finished, I will update it as soon as possible)

svn path=/trunk/; revision=15753
2005-06-03 18:21:50 +00:00
Maarten Bosma
5fd1b3d346 Some new features like Login, Config.h and Idle message
svn path=/trunk/; revision=15752
2005-06-03 17:28:53 +00:00
Hervé Poussineau
525d26d031 Wait the opening of mouclass device to connect the underlying mouse port driver
svn path=/trunk/; revision=15751
2005-06-03 17:09:47 +00:00
Magnus Olsen
5a2cbdf365 bitblt srcpy optimze it can be more optimze
svn path=/trunk/; revision=15750
2005-06-03 16:57:55 +00:00
Hervé Poussineau
47418050f9 Save DriverObject pointer to device extension
Use INTERFACE_TYPE type instead of ULONG
Use OBJ_KERNEL_HANDLE when opening \Device\PhysicalMemory

svn path=/trunk/; revision=15749
2005-06-03 16:56:27 +00:00
Hartmut Birr
2bb29cba04 Fixed the compiling with DBG set to 1.
svn path=/trunk/; revision=15748
2005-06-03 16:04:40 +00:00
Magnus Olsen
0bbffbfe78 activate 32 to 32 bitblt code
svn path=/trunk/; revision=15747
2005-06-03 12:30:09 +00:00
Hervé Poussineau
8c8bc52df8 Delete unneeded makefile
svn path=/trunk/; revision=15746
2005-06-03 12:03:44 +00:00
Gregor Anich
e631ea01ae DIB_32BPP_BitBlt: Fix ROP4_SRCCOPY case for 32bpp.
This file is ugly!

svn path=/trunk/; revision=15745
2005-06-03 01:45:26 +00:00
Magnus Olsen
f240bd9f61 blt fill did broke winquake fix it now.
svn path=/trunk/; revision=15744
2005-06-03 01:18:02 +00:00
Magnus Olsen
253b2e8c8a thx agein blight and alex.
we got alot faster blt for source copy for 
32bpp to 32bpp now.

svn path=/trunk/; revision=15743
2005-06-03 00:35:31 +00:00
Magnus Olsen
848d499f3d sorry wrong optimze for black and white fixing the start menu
svn path=/trunk/; revision=15742
2005-06-03 00:10:18 +00:00
Martin Fuchs
5416ad8915 Sync from Wine - Henning Gerhardt <henning.gerhardt@web.de>: Update German resource files
svn path=/trunk/; revision=15741
2005-06-02 22:14:53 +00:00
Martin Fuchs
d0551f0760 convert info strings to UTF-16
svn path=/trunk/; revision=15740
2005-06-02 22:09:06 +00:00
Martin Fuchs
9719715092 implemented file properties dialog (partly based on Rob D.'s winfile code)
svn path=/trunk/; revision=15739
2005-06-02 21:39:00 +00:00
Martin Fuchs
dcf3800a39 fix column headers
svn path=/trunk/; revision=15738
2005-06-02 21:32:21 +00:00
Aleksey Bragin
c7f2fa3f15 First version of Explorer's translation into Russian. Done by Dmitry Philippov, checked by me, DarkHobbit and others.
But still needs extensive checking.

svn path=/trunk/; revision=15737
2005-06-02 21:09:29 +00:00
Aleksey Bragin
ab4e0e3543 Changed dialog's size, and sizes of its elements, so russian translation looks nice in it.
By M. Zvyozdochkin.

svn path=/trunk/; revision=15736
2005-06-02 20:47:15 +00:00
Magnus Olsen
34b6e5c4e2 sorry did foregt ;
svn path=/trunk/; revision=15735
2005-06-02 20:47:11 +00:00
Aleksey Bragin
65c31ced72 Fix grammar typo (notinserted -> not inserted) in russian translation.
By M. Zvyozdochkin.

svn path=/trunk/; revision=15734
2005-06-02 20:38:18 +00:00
Steven Edwards
fbb262fc76 add cabinet.dll to the cd
svn path=/trunk/; revision=15733
2005-06-02 20:14:23 +00:00
Magnus Olsen
bd38382acb lite Optimze only for dib32bpp.c
thanks Blight for the inline asm for hline 
bitblt have got optimze for fill black and white color
only. more will come

svn path=/trunk/; revision=15732
2005-06-02 20:12:58 +00:00
Gregor Anich
83c66bb1c1 Make formatting of half-verbose output the same for linux as for windows (add quotes to the echos)
svn path=/trunk/; revision=15731
2005-06-02 19:56:12 +00:00
Emanuele Aliberti
4276c73ec9 svn propset
svn path=/trunk/; revision=15730
2005-06-02 13:20:04 +00:00
Emanuele Aliberti
da87b75712 SM/CSR: move win32k.sys loading from the SM to the Win32 user mode server.
svn path=/trunk/; revision=15729
2005-06-02 13:17:37 +00:00
Emanuele Aliberti
114fa63aa5 Correct midimap location.
svn path=/trunk/; revision=15728
2005-06-02 13:10:57 +00:00
Alex Ionescu
2565867874 Fix midimap/wavemap build
svn path=/trunk/; revision=15727
2005-06-02 03:21:17 +00:00
Steven Edwards
278d41accc this was moved
svn path=/trunk/; revision=15726
2005-06-02 02:12:48 +00:00
James Tabor
13d5ffb301 Removed makefiles.
svn path=/trunk/; revision=15725
2005-06-02 01:37:38 +00:00
James Tabor
bdcd967755 Fixed xml problem.
svn path=/trunk/; revision=15724
2005-06-02 01:36:20 +00:00
James Tabor
59a36a978f Fixed xml problem.
svn path=/trunk/; revision=15723
2005-06-02 01:36:07 +00:00
Hervé Poussineau
c5bcf76042 Don't close port if opening failed
svn path=/trunk/; revision=15722
2005-06-01 23:09:36 +00:00
Eric Kohl
793415253c - Start the logging thread from ServiceMain.
- Move UNICODE definition to the configuration file.
- Code cleanup.

svn path=/trunk/; revision=15721
2005-06-01 21:57:52 +00:00
James Tabor
372172fd93 Adding Cromwell to usb.
svn path=/trunk/; revision=15720
2005-06-01 21:55:36 +00:00
James Tabor
e8d9ee409c Adding Cromwell to usb.
svn path=/trunk/; revision=15719
2005-06-01 21:55:09 +00:00
Eric Kohl
8ebdfa0f0d Build the UNICODE version of the eventlog service.
svn path=/trunk/; revision=15718
2005-06-01 19:43:32 +00:00
Thomas Bluemel
592490d2ae fixed warnings
svn path=/trunk/; revision=15717
2005-06-01 19:01:12 +00:00
Magnus Olsen
1983bc6012 small optimze for StretchBlt
Thanks Alex for the idea with neg for statement
it is still a ref implemnet and have some limits


svn path=/trunk/; revision=15716
2005-06-01 18:11:26 +00:00
Casper Hornstrup
0e6919a8c0 Build with MP=1
svn path=/trunk/; revision=15715
2005-06-01 17:28:51 +00:00
Casper Hornstrup
2786a429ac Remove unneded file
svn path=/trunk/; revision=15714
2005-06-01 17:27:55 +00:00
2262 changed files with 90745 additions and 136138 deletions

View File

@@ -12,18 +12,11 @@
#include "trim.h"
#include "IRCClient.h"
#include "config.h"
using std::string;
using std::vector;
#if defined(_DEBUG) && 0
const char* BOTNAME = "RoyBot";
const char* CHANNEL = "#RoyBotTest";
#else
const char* BOTNAME = "ArchBlackmann";
const char* CHANNEL = "#ReactOS";
#endif
//vector<string> tech, module, dev, stru, period, status, type, func, irql, curse, cursecop;
class List
@@ -157,14 +150,46 @@ bool isop ( const string& who )
return false;
}
// do custom stuff with the IRCClient from your subclass via the provided callbacks...
class MyIRCClient : public IRCClient
{
File flog;
clock_t brake_silence;
// wait another 30 mins to brake the silence
#define NOIDLE brake_silence = clock () + 30 * CLK_TCK * 60
void CheckIdle ( void )
{
while (true) // _inRun
{
while (clock() < brake_silence)
Sleep(10000);
string out = TaggedReply("idle");
if ( !strnicmp ( out.c_str(), "/me ", 4 ) )
Action ( CHANNEL, &out[4] );
else
PrivMsg ( CHANNEL, out );
NOIDLE;
}
}
static void THREADAPI CallMe ( MyIRCClient* irc )
{
irc->CheckIdle();
}
public:
MyIRCClient()
{
flog.open ( "arch.log", "w+" );
NOIDLE;
ThreadPool::Instance().Launch ( (ThreadPoolFunc*)MyIRCClient::CallMe, this );
flog.open ( "arch.log", "r+" );
}
// see IRCClient.h for documentation on these callbacks...
bool OnConnected()
@@ -173,7 +198,7 @@ public:
}
bool OnJoin ( const string& user, const string& channel )
{
printf ( "user '%s' joined channel '%s'\n", user.c_str(), channel.c_str() );
//printf ( "user '%s' joined channel '%s'\n", user.c_str(), channel.c_str() );
return true;
}
bool OnPart ( const std::string& user, const std::string& channel )
@@ -207,11 +232,18 @@ public:
}
bool OnPrivMsg ( const string& from, const string& text )
{
//flog.flush();
printf ( "<%s> %s\n", from.c_str(), text.c_str() );
flog.printf ( "<%s> %s\n", from.c_str(), text.c_str() );
if ( strnicmp ( text.c_str(), "!say ", 5 ) || !isop(from) )
if ( !isop(from) )
return PrivMsg ( from, "hey, your tongue doesn't belong there!" );
else if ( strnicmp ( text.c_str(), "!say ", 5 ) )
return PrivMsg ( from, "Talk to me on normal Chanel" );
string say = trim(&text[5]);
if ( !strnicmp ( say.c_str(), "/me ", 4 ) )
return Action ( CHANNEL, trim(&say[4]) );
else
@@ -219,140 +251,176 @@ public:
}
bool OnChannelMsg ( const string& channel, const string& from, const string& text )
{
fflush ( flog );
printf ( "%s <%s> %s\n", channel.c_str(), from.c_str(), text.c_str() );
flog.printf ( "%s <%s> %s\n", channel.c_str(), from.c_str(), text.c_str() );
NOIDLE; // add 30 mins till idle
bool found_name = false;
string text2 ( text );
strlwr ( &text2[0] );
if ( !strnicmp ( text.c_str(), BOTNAME, strlen(BOTNAME) ) )
found_name = true;
else if ( !strnicmp ( text.c_str(), "arch ", 5 ) )
found_name = true;
string s ( text );
if ( found_name )
{
string s ( text );
gobble ( s, " \t" ); // remove bot name
found_name = true;
if ( s[0] == '!' )
// command
if ( s[0] == '!' )
{
bool from_op = isop(from);
string cmd = gobble ( s, " \t" );
// from all
if ( false && cmd == "!svn" && from == "TechBot" ) // || cmd == "!help" && !TechBotOnline
{
bool from_op = isop(from);
string cmd = gobble ( s, " \t" );
if ( !from_op )
PrivMsg ( channel, "For my help try !what." );
}
// from normel user
else if ( !from_op )
{
if ( cmd == "!grovel" )
{
if ( cmd == "!grovel" )
{
string out = ssprintf(TaggedReply("nogrovel").c_str(),from.c_str());
if ( !strnicmp ( out.c_str(), "/me ", 4 ) )
return Action ( channel, &out[4] );
else
return PrivMsg ( channel, out );
}
return PrivMsg ( channel, ssprintf("%s: I don't take commands from non-ops",from.c_str()) );
}
if ( cmd == "!add" )
{
string listname = gobble ( s, " \t" );
int i = GetListIndex ( listname.c_str() );
if ( i == -1 )
return PrivMsg ( channel, ssprintf("%s: I don't have a list named '%s'",from.c_str(),listname.c_str()) );
List& list = lists[i];
if ( s[0] == '\"' || s[0] == '\'' )
{
char delim = s[0];
const char* p = &s[1];
const char* p2 = strchr ( p, delim );
if ( !p2 )
return PrivMsg ( channel, ssprintf("%s: Couldn't add, unmatched quotes",from.c_str()) );
s = string ( p, p2-p );
}
for ( i = 0; i < list.list.size(); i++ )
{
if ( list.list[i] == s )
return PrivMsg ( channel, ssprintf("%s: entry already exists in list '%s'",from.c_str(),listname.c_str()) );
}
if ( !stricmp ( listname.c_str(), "curse" ) )
strlwr ( &s[0] );
list.list.push_back ( s );
{
File f ( ssprintf("%s.txt",list.name.c_str()), "w" );
for ( i = 0; i < list.list.size(); i++ )
f.printf ( "%s\n", list.list[i].c_str() );
}
return PrivMsg ( channel, ssprintf("%s: entry added to list '%s'",from.c_str(),listname.c_str()) );
}
else if ( cmd == "!remove" )
{
string listname = gobble ( s, " \t" );
int i = GetListIndex ( listname.c_str() );
if ( i == -1 )
return PrivMsg ( channel, ssprintf("%s: I don't have a list named '%s'",from.c_str(),listname.c_str()) );
List& list = lists[i];
if ( s[0] == '\"' || s[0] == '\'' )
{
char delim = s[0];
const char* p = &s[1];
const char* p2 = strchr ( p, delim );
if ( !p2 )
return PrivMsg ( channel, ssprintf("%s: Couldn't add, unmatched quotes",from.c_str()) );
s = string ( p, p2-p );
}
for ( i = 0; i < list.list.size(); i++ )
{
if ( list.list[i] == s )
{
list.list.erase ( &list.list[i] );
{
File f ( ssprintf("%s.txt",list.name.c_str()), "w" );
for ( i = 0; i < list.list.size(); i++ )
f.printf ( "%s\n", list.list[i].c_str() );
}
return PrivMsg ( channel, ssprintf("%s: entry removed from list '%s'",from.c_str(),listname.c_str()) );
}
}
return PrivMsg ( channel, ssprintf("%s: entry doesn't exist in list '%s'",from.c_str(),listname.c_str()) );
}
else if ( cmd == "!grovel" )
{
string out = ssprintf(TaggedReply("grovel").c_str(),from.c_str());
string out = ssprintf(TaggedReply("nogrovel").c_str(),from.c_str());
if ( !strnicmp ( out.c_str(), "/me ", 4 ) )
return Action ( channel, &out[4] );
else
return PrivMsg ( channel, out );
}
else if ( cmd == "!kiss" )
else if ( cmd == "!what" )
{
if ( s.size() )
return Action ( channel, ssprintf("kisses %s",s.c_str()) );
else
return PrivMsg ( channel, ssprintf("%s: huh?",from.c_str()) );
return PrivMsg ( channel, ssprintf("For you, %s, I only support the \"!grovel\" command.", from.c_str()).c_str() );
}
else if ( cmd == "!hug" )
else if ( cmd == "!grovel" || cmd == "!kiss" || cmd == "!hug"
|| cmd == "!give" || cmd == "!what" || cmd == "!add" || cmd == "!remove" )
{
if ( s.size() )
return Action ( channel, ssprintf("hugs %s",s.c_str()) );
else
return PrivMsg ( channel, ssprintf("%s: huh?",from.c_str()) );
}
else if ( cmd == "!give" )
{
string who = gobble(s," \t");
if ( who.size() && s.size() )
return Action ( channel, ssprintf("gives %s a %s",who.c_str(),s.c_str()) );
else
return PrivMsg ( channel, ssprintf("%s: huh?",from.c_str()) );
}
else
{
return PrivMsg ( channel, ssprintf("%s: huh?",from.c_str()) );
PrivMsg ( channel, ssprintf("%s: I only take commands from ops",from.c_str()) );
}
}
}
// from op
else if ( cmd == "!grovel" )
{
string out = ssprintf(TaggedReply("grovel").c_str(),from.c_str());
if ( !strnicmp ( out.c_str(), "/me ", 4 ) )
return Action ( channel, &out[4] );
else
return PrivMsg ( channel, out );
}
else if ( cmd == "!kiss" )
{
if ( s.size() )
return Action ( channel, ssprintf("kisses %s",s.c_str()) );
else
return PrivMsg ( channel, ssprintf("%s: huh?",from.c_str()) );
}
else if ( cmd == "!hug" )
{
if ( s.size() )
return Action ( channel, ssprintf("hugs %s",s.c_str()) );
else
return PrivMsg ( channel, ssprintf("%s: huh?",from.c_str()) );
}
else if ( cmd == "!give" )
{
string who = gobble(s," \t");
if ( who.size() && s.size() )
return Action ( channel, ssprintf("gives %s a %s",who.c_str(),s.c_str()) );
else
return PrivMsg ( channel, ssprintf("%s: huh?",from.c_str()) );
}
else if ( cmd == "!what" )
{
PrivMsg ( channel, "For ops I support the following commands:" );
PrivMsg ( channel, "!grovel" );
PrivMsg ( channel, "!kiss" );
PrivMsg ( channel, "!hug" );
PrivMsg ( channel, "!give" );
PrivMsg ( channel, "!say (the input is a private message)" );
PrivMsg ( channel, "!add" );
PrivMsg ( channel, "!remove" );
PrivMsg ( channel, " - for more info see wiki" );
}
else if ( cmd == "!add" )
{
string listname = gobble ( s, " \t" );
int i = GetListIndex ( listname.c_str() );
if ( i == -1 )
return PrivMsg ( channel, ssprintf("%s: I don't have a list named '%s'",from.c_str(),listname.c_str()) );
List& list = lists[i];
if ( s[0] == '\"' || s[0] == '\'' )
{
char delim = s[0];
const char* p = &s[1];
const char* p2 = strchr ( p, delim );
if ( !p2 )
return PrivMsg ( channel, ssprintf("%s: Couldn't add, unmatched quotes",from.c_str()) );
s = string ( p, p2-p );
}
for ( i = 0; i < list.list.size(); i++ )
{
if ( list.list[i] == s )
return PrivMsg ( channel, ssprintf("%s: entry already exists in list '%s'",from.c_str(),listname.c_str()) );
}
if ( !stricmp ( listname.c_str(), "curse" ) )
strlwr ( &s[0] );
list.list.push_back ( s );
{
File f ( ssprintf("%s.txt",list.name.c_str()), "w" );
for ( i = 0; i < list.list.size(); i++ )
f.printf ( "%s\n", list.list[i].c_str() );
}
return PrivMsg ( channel, ssprintf("%s: entry added to list '%s'",from.c_str(),listname.c_str()) );
}
else if ( cmd == "!remove" )
{
string listname = gobble ( s, " \t" );
int i = GetListIndex ( listname.c_str() );
if ( i == -1 )
return PrivMsg ( channel, ssprintf("%s: I don't have a list named '%s'",from.c_str(),listname.c_str()) );
List& list = lists[i];
if ( s[0] == '\"' || s[0] == '\'' )
{
char delim = s[0];
const char* p = &s[1];
const char* p2 = strchr ( p, delim );
if ( !p2 )
return PrivMsg ( channel, ssprintf("%s: Couldn't add, unmatched quotes",from.c_str()) );
s = string ( p, p2-p );
}
for ( i = 0; i < list.list.size(); i++ )
{
if ( list.list[i] == s )
{
list.list.erase ( &list.list[i] );
{
File f ( ssprintf("%s.txt",list.name.c_str()), "w" );
for ( i = 0; i < list.list.size(); i++ )
f.printf ( "%s\n", list.list[i].c_str() );
}
return PrivMsg ( channel, ssprintf("%s: entry removed from list '%s'",from.c_str(),listname.c_str()) );
}
}
return PrivMsg ( channel, ssprintf("%s: entry doesn't exist in list '%s'",from.c_str(),listname.c_str()) );
}
else
{
if (found_name)
return PrivMsg ( channel, ssprintf("%s: huh?",from.c_str()) );
}
} // if (command)
bool found_curse = false;
static vector<string>& curse = GetList("curse").list;
text2 = ssprintf(" %s ",text2.c_str());
text2 = " " + text2 + " ";
for ( int i = 0; i < curse.size() && !found_curse; i++ )
{
if ( strstr ( text2.c_str(), curse[i].c_str() ) )
@@ -363,7 +431,12 @@ public:
static List& cursecop = GetList("cursecop");
return PrivMsg ( channel, ssprintf("%s: %s", from.c_str(), ListRand(cursecop)) );
}
else if ( found_name )
string botname (BOTNAME);
strlwr ( &botname[0] );
//botname = " " + botname + " ";
if ( strstr(text2.c_str(), botname.c_str()) || strstr(text2.c_str(), " arch ") || found_name )
{
string out = ssprintf("%s: %s", from.c_str(), TaggedReply("tech").c_str());
flog.printf ( "TECH-REPLY: %s\n", out.c_str() );
@@ -373,7 +446,9 @@ public:
return PrivMsg ( channel, out );
}
return true;
}
} // On Chanel Message
bool OnChannelMode ( const string& channel, const string& mode )
{
//printf ( "OnChannelMode(%s,%s)\n", channel.c_str(), mode.c_str() );
@@ -439,6 +514,16 @@ public:
//printf ( "\n" );
return true;
}
bool OnKick ( void )
{
Join(CHANNEL);
return true;
}
bool OnBanned ( const std::string& channel )
{
Sleep(10000);
return Join(CHANNEL);
}
};
int main ( int argc, char** argv )
@@ -461,50 +546,59 @@ int main ( int argc, char** argv )
ImportList ( "cursecop", false );
ImportList ( "grovel", false );
ImportList ( "nogrovel", false );
ImportList ( "idle", false );
#ifdef _DEBUG
printf ( "initializing IRCClient debugging\n" );
IRCClient::SetDebug ( true );
#endif//_DEBUG
printf ( "calling suStartup()\n" );
suStartup();
printf ( "creating IRCClient object\n" );
MyIRCClient irc;
printf ( "connecting to freenode\n" );
//const char* server = "212.204.214.114";
const char* server = "irc.freenode.net";
while (true)
{
printf ( "calling suStartup()\n" );
suStartup();
printf ( "creating IRCClient object\n" );
MyIRCClient irc;
printf ( "connecting to freenode\n" );
if ( !irc.Connect ( server ) ) // irc.freenode.net
{
printf ( "couldn't connect to server\n" );
return -1;
if ( !irc.Connect ( SERVER ) ) // irc.freenode.net
{
printf ( "couldn't connect to server\n" );
Sleep(10000);
continue;
}
printf ( "sending user command\n" );
if ( !irc.User ( BOTNAME, "reactos.com", SERVER, "ArchBlackmann" ) )
{
printf ( "USER command failed, retying ...\n" );
Sleep(10000);
continue;
}
printf ( "sending nick\n" );
if ( !irc.Nick ( BOTNAME ) )
{
printf ( "NICK command failed, retying ...\n" );
Sleep(10000);
continue;
}
printf ( "setting mode\n" );
if ( !irc.Mode ( MODE ) )
{
printf ( "MODE command failed, retying ...\n" );
Sleep(10000);
continue;
}
printf ( "joining channel\n" );
if ( !irc.Join ( CHANNEL ) )
{
printf ( "JOIN command failed, retying ...\n" );
Sleep(10000);
continue;
}
printf ( "entering irc client processor\n" );
irc.Run ( false ); // do the processing in this thread...
}
printf ( "sending user command\n" );
if ( !irc.User ( BOTNAME, "", "irc.freenode.net", BOTNAME ) )
{
printf ( "USER command failed\n" );
return -1;
}
printf ( "sending nick\n" );
if ( !irc.Nick ( BOTNAME ) )
{
printf ( "NICK command failed\n" );
return -1;
}
printf ( "setting mode\n" );
if ( !irc.Mode ( "+i" ) )
{
printf ( "MODE command failed\n" );
return -1;
}
printf ( "joining channel\n" );
if ( !irc.Join ( CHANNEL ) )
{
printf ( "JOIN command failed\n" );
return -1;
}
printf ( "entering irc client processor\n" );
irc.Run ( false ); // do the processing in this thread...
return 0;
}

View File

@@ -110,6 +110,10 @@ SOURCE=.\chomp.h
# End Source File
# Begin Source File
SOURCE=.\config.h
# End Source File
# Begin Source File
SOURCE=.\cram_md5.cpp
# End Source File
# Begin Source File

View File

@@ -16,6 +16,7 @@
#include "chomp.h"
#include "SplitJoin.h"
#include "base64.h"
#include "config.h"
using std::string;
using std::stringstream;
@@ -23,6 +24,8 @@ using std::vector;
bool IRCClient::_debug = true;
// see rfc1459 for IRC-Protocoll Reference
IRCClient::IRCClient()
: _timeout(10*60*1000), _inRun(false)
{
@@ -51,7 +54,9 @@ bool
IRCClient::Nick ( const string& nick )
{
_nick = nick;
return Send ( "NICK " + _nick + "\n" );
Send ( "NICK " + _nick + "\n" );
PrivMsg ("NickServ", "IDENTIFY " + (string)PASS);
return true;
}
bool
@@ -75,7 +80,7 @@ IRCClient::Mode ( const string& channel, const string& mode, const string& targe
bool
IRCClient::Join ( const string& channel )
{
return Send ( "JOIN " + channel + "\n" );
return Send("JOIN " + channel + "\n");
}
bool
@@ -145,7 +150,7 @@ int IRCClient::Run ( bool launch_thread )
{
ThreadPool::Instance().Launch ( (ThreadPoolFunc*)IRCClient::Callback, this );
return 1;
}
}
_inRun = true;
if ( _debug ) printf ( "IRCClient::Run() - waiting for responses\n" );
string buf;
@@ -296,6 +301,7 @@ int IRCClient::Run ( bool launch_thread )
}
else if ( cmd == "join" )
{
mychannel = text;
OnJoin ( src, text );
}
else if ( cmd == "part" )
@@ -306,14 +312,20 @@ int IRCClient::Run ( bool launch_thread )
{
OnNick ( src, text );
}
else if ( cmd == "kick" )
{
OnKick ();
}
else if ( isdigit(cmd[0]) )
{
int i = atoi(cmd.c_str());
switch ( i )
{
case 1: // "Welcome!" - i.e. it's okay to issue commands now...
OnConnected();
break;
case 353: // user list for channel....
{
p = text.c_str();
@@ -336,6 +348,7 @@ int IRCClient::Run ( bool launch_thread )
OnChannelUsers ( channel, users );
}
break;
case 366: // END of user list for channel
{
p = text.c_str();
@@ -345,6 +358,38 @@ int IRCClient::Run ( bool launch_thread )
OnEndChannelUsers ( channel );
}
break;
case 474: // You are banned
{
p = text.c_str();
p2 = strpbrk ( p, " :" );
if ( !p2 ) continue;
string channel ( p, p2-p );
OnBanned ( channel );
}
break;
case 433: // Nick in Use
{
string nick = _nick;
Nick (nick + "_");
PrivMsg ("NickServ", "GHOST " + nick + " " + PASS);
// HACK HACK HACK
Mode ( "+i" );
Join ( CHANNEL ); // this is because IRC client does not review if his commands were sucessfull
Sleep ( 1000 );
Nick ( nick );
}
break;
case 2: //MOTD
case 376: //MOTD
case 372:
break;
default:
if ( _debug ) printf ( "unknown command %i: %s", i, buf.c_str() );
break;

View File

@@ -12,9 +12,11 @@
class IRCClient : public suBufferedRecvSocket
{
public:
IRCClient();
std::string mychannel;
static bool GetDebug() { return _debug; }
static bool SetDebug ( bool debug ) { bool old = _debug; _debug = debug; return old; }
@@ -99,6 +101,12 @@ public:
virtual bool OnChannelUsers ( const std::string& channel, const std::vector<std::string>& users )
{ return true; }
// OnKick: if the client has been kicked
virtual bool OnKick ( void ) { return true; }
// OnKick: if the client has been kicked
virtual bool OnBanned ( const std::string& channel ) { return true; }
// notification that you have received the entire list of users for a channel
virtual bool OnEndChannelUsers ( const std::string& channel ) { return true; }

View File

@@ -0,0 +1,7 @@
#define SERVER "irc.freenode.net"
#define BOTNAME "ArchBlackmann"
#define CHANNEL "#ReactOS"
#define MODE "+i"
#define PASS "ilovebunnies"

View File

@@ -24,3 +24,4 @@ goat.cx
ekush
akshor
poop
guten morgen

View File

@@ -0,0 +1 @@
/me is bored

View File

@@ -46,6 +46,7 @@ Jason Weiler
David Welch <welch@cwcom.net>
Jonathan Wilson <jonwil@tpgi.com.au>
Art Yerkes <ayerkes@speakeasy.net>
Magnus Olsen (magnus@greatlord.com)
Graphic Design from

View File

@@ -1,3 +1,52 @@
# Well-known targets:
#
# all (default target)
# This target builds all of ReactOS.
#
# module
# These targets builds a single module. Replace module with the name of
# the module you want to build.
#
# bootcd
# This target builds an ISO (ReactOS.iso) from which ReactOS can be booted
# and installed.
#
# livecd
# This target builds an ISO (ReactOS-Live.iso) from which ReactOS can be
# booted, but not installed.
#
# install
# This target installs all of ReactOS to a location specified by the
# ROS_INSTALL environment variable.
#
# module_install
# These targets installs a single module to a location specified by the
# ROS_INSTALL environment variable. Replace module with the name of the
# module you want to install.
#
# clean
# This target cleans (deletes) all files that are generated when building
# ReactOS.
#
# module_clean
# These targets cleans (deletes) files that are generated when building a
# single module. Replace module with the name of the module you want to
# clean.
#
# depends
# This target does a complete dependency check of the ReactOS codebase.
# This can require several minutes to complete. If you only need to check
# dependencies for a single or few modules then you can use the
# module_depends targets instead. This target can also repair a damaged or
# missing makefile.auto if needed.
#
# module_depends
# These targets do a dependency check of individual modules. Replace module
# with the name of the module for which you want to check dependencies.
# This is faster than the depends target which does a complete dependency
# check of the ReactOS codebase.
#
#
# Accepted environment variables:
#
# ROS_PREFIX
@@ -50,11 +99,18 @@
#
# ROS_RBUILDFLAGS
# Pass parameters to rbuild.
# -v Be verbose.
# -c Clean as you go. Delete generated files as soon as they are not needed anymore.
# -dd Disable automatic dependencies.
# -dm{module} Check only automatic dependencies for this module.
# -mi Let make handle creation of install directories. Rbuild will not generate the directories.
# -ps Generate proxy makefiles in source tree instead of the output tree.
.PHONY: all
.PHONY: clean
all: makefile.auto
.SUFFIXES:
ifeq ($(HOST),)
@@ -81,33 +137,39 @@ else
BUILDNO_QUIET = -q
endif
endif
ifeq ($(HOST),mingw32-linux)
QUOTE = "
else
QUOTE =
endif
ifeq ($(HALFVERBOSEECHO),yes)
ECHO_CP =@echo [COPY] $@
ECHO_MKDIR =@echo [MKDIR] $@
ECHO_BUILDNO =@echo [BUILDNO] $@
ECHO_INVOKE =@echo [INVOKE] $<
ECHO_PCH =@echo [PCH] $@
ECHO_CC =@echo [CC] $<
ECHO_GAS =@echo [GAS] $<
ECHO_NASM =@echo [NASM] $<
ECHO_AR =@echo [AR] $@
ECHO_WINEBLD =@echo [WINEBLD] $@
ECHO_WRC =@echo [WRC] $@
ECHO_WIDL =@echo [WIDL] $@
ECHO_BIN2RES =@echo [BIN2RES] $<
ECHO_DLLTOOL =@echo [DLLTOOL] $@
ECHO_LD =@echo [LD] $@
ECHO_NM =@echo [NM] $@
ECHO_OBJDUMP =@echo [OBJDUMP] $@
ECHO_RBUILD =@echo [RBUILD] $@
ECHO_RSYM =@echo [RSYM] $@
ECHO_WMC =@echo [WMC] $@
ECHO_NCI =@echo [NCI] $@
ECHO_CABMAN =@echo [CABMAN] $<
ECHO_CDMAKE =@echo [CDMAKE] $@
ECHO_MKHIVE =@echo [MKHIVE] $@
ECHO_REGTESTS=@echo [REGTESTS] $@
ECHO_TEST =@echo [TEST] $@
ECHO_CP =@echo $(QUOTE)[COPY] $@$(QUOTE)
ECHO_MKDIR =@echo $(QUOTE)[MKDIR] $@$(QUOTE)
ECHO_BUILDNO =@echo $(QUOTE)[BUILDNO] $@$(QUOTE)
ECHO_INVOKE =@echo $(QUOTE)[INVOKE] $<$(QUOTE)
ECHO_PCH =@echo $(QUOTE)[PCH] $@$(QUOTE)
ECHO_CC =@echo $(QUOTE)[CC] $<$(QUOTE)
ECHO_GAS =@echo $(QUOTE)[GAS] $<$(QUOTE)
ECHO_NASM =@echo $(QUOTE)[NASM] $<$(QUOTE)
ECHO_AR =@echo $(QUOTE)[AR] $@$(QUOTE)
ECHO_WINEBLD =@echo $(QUOTE)[WINEBLD] $@$(QUOTE)
ECHO_WRC =@echo $(QUOTE)[WRC] $@$(QUOTE)
ECHO_WIDL =@echo $(QUOTE)[WIDL] $@$(QUOTE)
ECHO_BIN2RES =@echo $(QUOTE)[BIN2RES] $<$(QUOTE)
ECHO_DLLTOOL =@echo $(QUOTE)[DLLTOOL] $@$(QUOTE)
ECHO_LD =@echo $(QUOTE)[LD] $@$(QUOTE)
ECHO_NM =@echo $(QUOTE)[NM] $@$(QUOTE)
ECHO_OBJDUMP =@echo $(QUOTE)[OBJDUMP] $@$(QUOTE)
ECHO_RBUILD =@echo $(QUOTE)[RBUILD] $@$(QUOTE)
ECHO_RSYM =@echo $(QUOTE)[RSYM] $@$(QUOTE)
ECHO_WMC =@echo $(QUOTE)[WMC] $@$(QUOTE)
ECHO_NCI =@echo $(QUOTE)[NCI] $@$(QUOTE)
ECHO_CABMAN =@echo $(QUOTE)[CABMAN] $<$(QUOTE)
ECHO_CDMAKE =@echo $(QUOTE)[CDMAKE] $@$(QUOTE)
ECHO_MKHIVE =@echo $(QUOTE)[MKHIVE] $@$(QUOTE)
ECHO_REGTESTS=@echo $(QUOTE)[REGTESTS] $@$(QUOTE)
ECHO_TEST =@echo $(QUOTE)[TEST] $@$(QUOTE)
ECHO_GENDIB =@echo $(QUOTE)[GENDIB] $@$(QUOTE)
else
ECHO_CP =
ECHO_MKDIR =
@@ -135,6 +197,7 @@ else
ECHO_MKHIVE =
ECHO_REGTESTS=
ECHO_TEST =
ECHO_GENDIB =
endif
@@ -236,7 +299,8 @@ PREAUTO := \
$(BUGCODES_RC) \
$(ERRCODES_H) \
$(ERRCODES_RC) \
$(NCI_SERVICE_FILES)
$(NCI_SERVICE_FILES) \
$(GENDIB_DIB_FILES)
makefile.auto: $(RBUILD_TARGET) $(PREAUTO) $(XMLBUILDFILES)
$(ECHO_RBUILD)

View File

@@ -28,8 +28,10 @@
<define name="KDBG" value="1" />
<property name="DBG_OR_KDBG" value="true" />
</if>
<compilerflag>-Wpointer-arith</compilerflag>
<include>include</include>
<include>include/reactos</include>
<include>w32api/include</include>
<include>w32api/include/ddk</include>
@@ -57,6 +59,9 @@
<directory name="media">
<xi:include href="media/directory.xml" />
</directory>
<directory name="modules">
<xi:include href="modules/directory.xml" />
</directory>
<directory name="ntoskrnl">
<xi:include href="ntoskrnl/ntoskrnl.xml" />
</directory>

View File

@@ -1,13 +0,0 @@
# $Id$
#
# ReactOS apps and tools makefile to generate Doxygen documentation
#
docu:
doxygen Doxyfile
.PHONY: docu
# EOF

View File

@@ -1,162 +0,0 @@
#
# ReactOS system testsets makefile
#
PATH_TO_TOP = ../..
include $(PATH_TO_TOP)/rules.mak
# Testset applications
TEST_SETS = loadlib
TEST_KERNEL32 =
TEST_MSVCRT =
TEST_COM =
TEST_SEH =
TEST_REGRESSIONS =
all: $(TEST_SETS) $(TEST_KERNEL32) $(TEST_MSVCRT) $(TEST_COM) $(TEST_SEH) $(TEST_REGRESSIONS)
depends:
implib: $(TEST_SETS:%=%_implib) \
$(TEST_KERNEL32:%=%_implib) \
$(TEST_MSVCRT:%=%_implib) \
$(TEST_COM:%=%_implib) \
$(TEST_SEH:%=%_implib) \
$(TEST_REGRESSIONS:%=%_implib)
clean: $(TEST_SETS:%=%_clean) \
$(TEST_KERNEL32:%=%_clean) \
$(TEST_MSVCRT:%=%_clean) \
$(TEST_COM:%=%_clean) \
$(TEST_SEH:%=%_clean) \
$(TEST_REGRESSIONS:%=%_clean)
install: $(TEST_SETS:%=%_install) \
$(TEST_KERNEL32:%=%_install) \
$(TEST_MSVCRT:%=%_install) \
$(TEST_COM:%=%_install) \
$(TEST_SEH:%=%_install) \
$(TEST_REGRESSIONS:%=%_install)
.PHONY: all depends implib clean install
#
# Testset Applications
#
$(TEST_SETS): %:
$(MAKE) -C $*
$(TEST_SETS:%=%_implib): %_implib:
$(MAKE) -C $* implib
$(TEST_SETS:%=%_clean): %_clean:
$(MAKE) -C $* clean
$(TEST_SETS:%=%_install): %_install:
$(MAKE) -C $* install
.PHONY: $(TEST_SETS) $(TEST_SETS:%=%_implib) $(TEST_SETS:%=%_clean) $(TEST_SETS:%=%_install)
#
# Kernel32 Test Applications
#
$(TEST_KERNEL32): %:
$(MAKE) -C kernel32/$*
$(TEST_KERNEL32:%=%_implib): %_implib:
$(MAKE) -C kernel32/$* implib
$(TEST_KERNEL32:%=%_clean): %_clean:
$(MAKE) -C kernel32/$* clean
$(TEST_KERNEL32:%=%_install): %_install:
$(MAKE) -C kernel32/$* install
.PHONY: $(TEST_KERNEL32) $(TEST_KERNEL32:%=%_implib) $(TEST_KERNEL32:%=%_clean) $(TEST_KERNEL32:%=%_install)
#
# msvcrt Test Applications
#
$(TEST_MSVCRT): %:
$(MAKE) -C msvcrt/$*
$(TEST_MSVCRT:%=%_implib): %_implib:
$(MAKE) -C msvcrt/$* implib
$(TEST_MSVCRT:%=%_clean): %_clean:
$(MAKE) -C msvcrt/$* clean
$(TEST_MSVCRT:%=%_install): %_install:
$(MAKE) -C msvcrt/$* install
.PHONY: $(TEST_MSVCRT) $(TEST_MSVCRT:%=%_implib) $(TEST_MSVCRT:%=%_clean) $(TEST_MSVCRT:%=%_install)
#
# COM Test Applications
#
$(TEST_COM): %:
$(MAKE) -C com/$*
$(TEST_COM:%=%_implib): %_implib:
$(MAKE) -C com/$* implib
$(TEST_COM:%=%_clean): %_clean:
$(MAKE) -C com/$* clean
$(TEST_COM:%=%_install): %_install:
$(MAKE) -C com/$* install
.PHONY: $(TEST_COM) $(TEST_COM:%=%_implib) $(TEST_COM:%=%_clean) $(TEST_COM:%=%_install)
#
# SEH Test Applications
#
$(TEST_SEH): %:
$(MAKE) -C seh/$*
$(TEST_SEH:%=%_implib): %_implib:
$(MAKE) -C seh/$* implib
$(TEST_SEH:%=%_clean): %_clean:
$(MAKE) -C seh/$* clean
$(TEST_SEH:%=%_install): %_install:
$(MAKE) -C seh/$* install
.PHONY: $(TEST_SEH) $(TEST_SEH:%=%_implib) $(TEST_SEH:%=%_clean) $(TEST_SEH:%=%_install)
#
# Regression Test Applications
#
$(TEST_REGRESSIONS): %:
$(MAKE) -C regres/$*
$(TEST_REGRESSIONS:%=%_implib): %_implib:
$(MAKE) -C regres/$* implib
$(TEST_REGRESSIONS:%=%_clean): %_clean:
$(MAKE) -C regres/$* clean
$(TEST_REGRESSIONS:%=%_install): %_install:
$(MAKE) -C regres/$* install
.PHONY: $(TEST_REGRESSIONS) $(TEST_REGRESSIONS:%=%_implib) $(TEST_REGRESSIONS:%=%_clean) $(TEST_REGRESSIONS:%=%_install)
etags:
find . -name "*.[ch]" -print | etags --language=c -
# EOF

View File

@@ -1,24 +0,0 @@
#
# $Id: makefile,v 1.0
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = loadlib
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API -DUNICODE -D_UNICODE
TARGET_SDKLIBS = kernel32.a ntdll.a
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,27 +0,0 @@
#
# $Id: makefile,v 1.0
PATH_TO_TOP = ../../../..
TEST_ROOT = $(PATH_TO_TOP)/apps/testsets/test
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = fileio
#TARGET_CFLAGS = -I$(TEST_ROOT) -DDBG -DUNICODE -D_UNICODE
TARGET_CFLAGS = -I$(TEST_ROOT) -DDBG
TARGET_SDKLIBS = ntdll.a kernel32.a
TARGET_OBJECTS = $(TARGET_NAME).o wfileio.o main.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,21 +0,0 @@
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = binpatch
TARGET_SDKLIBS =
TARGET_OBJECTS = patch.o
TARGET_CFLAGS += -Wall -Werror
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,21 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = cat
TARGET_OBJECTS = $(TARGET_NAME).o
TARGET_CFLAGS = -Wall -Werror
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -4,4 +4,7 @@
<directory name="rosperf">
<xi:include href="rosperf/rosperf.xml" />
</directory>
<directory name="ps">
<xi:include href="ps/ps.xml" />
</directory>

View File

@@ -1,21 +0,0 @@
PATH_TO_TOP = ../../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = load
TARGET_CFLAGS = -DUNICODE -D_UNICODE
TARGET_SDKLIBS = ntdll.a
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,21 +0,0 @@
PATH_TO_TOP = ../../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = unload
TARGET_CFLAGS = -DUNICODE -D_UNICODE
TARGET_SDKLIBS = ntdll.a
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,21 +0,0 @@
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = windows
TARGET_NAME = infinst
TARGET_SDKLIBS = comdlg32.a setupapi.a
TARGET_OBJECTS = infinst.o
TARGET_CFLAGS = -Wall -Werror
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,99 +1,465 @@
/*
* arp - display ARP cache from the IP stack parameters.
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS arp utility
* FILE: apps/utils/net/arp/arp.c
* PURPOSE: view and manipulate the ARP cache
* PROGRAMMERS: Ged Murphy (gedmurphy@gmail.com)
* REVISIONS:
* GM 27/06/05 Created
*
* This source code is in the PUBLIC DOMAIN and has NO WARRANTY.
*
* Robert Dickenson <robd@reactos.org>, August 15, 2002.
*/
#include <stdio.h>
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <tchar.h>
#include <time.h>
#include <iptypes.h>
#include <ipexport.h>
#include <string.h>
#include <ctype.h>
#include <winsock2.h>
#include <iphlpapi.h>
#include <snmp.h>
#include "trace.h"
VOID SNMP_FUNC_TYPE SnmpSvcInitUptime();
DWORD SNMP_FUNC_TYPE SnmpSvcGetUptime();
////////////////////////////////////////////////////////////////////////////////
const char szUsage[] = { "\n" \
"Displays and modifies the IP Protocol to physical address translation tables\n" \
"used by address resolution protocol (ARP).\n" \
"\n" \
"ARP -s inet_addr eth_addr [if_addr]\n" \
"ARP -d inet_addr [if_addr]\n" \
"ARP -a [inet_addr] [-N if_addr]\n" \
"\n" \
" -a Displays the active ARP table by querying the current protocol\n" \
" data. If inet_addr is specified, the IP and physical addresses\n" \
" for the specified address are displayed. If more than one\n" \
" network interface is using ARP, each interfaces ARP table is\n" \
" displayed.\n" \
" -g Indentical to -a.\n" \
" inet_addr Specifies the IP address.\n" \
" -N if_addr Displays the ARP table for the specified interface only\n" \
" -d Deletes the host entry specified by inet_addr. inet_addr may be\n" \
" wildcarded with * to delete all host entries in the ARP table.\n" \
" -s Adds the host and associates the IP address inet_addr with the\n" \
" physical address eth_addr. The physical address must be specified\n" \
" as 6 hexadecimal characters delimited by hyphens. The new entry\n" \
" will become permanent in the ARP table.\n" \
" eth_addr Specifies the interface physical address.\n" \
" if_addr If present, this specifies the IP address of the interface whose\n" \
" address translation table should be modified. If not present, the\n" \
" first applicable interface will be used.\n" \
"Example:\n" \
" > arp -s 192.168.0.12 55-AA-55-01-02-03 .... Static entry creation.\n" \
" > arp -a .... ARP table display.\n" \
" > arp -d * .... Delete all ARP table entries.\n"
};
void usage(void)
#define WIN32_LEAN_AND_MEAN
#define UNICODE
#define _UNICODE
/*
* Globals
*/
const char SEPERATOR = '-';
/*
* function declerations
*/
INT DisplayArpEntries(PTCHAR pszInetAddr, PTCHAR pszIfAddr);
INT PrintEntries(PMIB_IPNETROW pIpAddRow);
INT Addhost(PTCHAR pszInetAddr, PTCHAR pszEthAddr, PTCHAR pszIfAddr);
INT Deletehost(PTCHAR pszInetAddr, PTCHAR pszIfAddr);
VOID Usage(VOID);
/*
*
* Takes optional parameters of an internet address and interface address.
* Retrieve all entries in the ARP cache. If an internet address is
* specified, display the ARP entry relating to that address. If an
* interface address is specified, display all entries relating to
* that interface.
*
*/
/* FIXME: allow user to specify an interface address, via pszIfAddr */
INT DisplayArpEntries(PTCHAR pszInetAddr, PTCHAR pszIfAddr)
{
// fprintf(stderr,"USAGE:\n");
fputs(szUsage, stderr);
}
int main(int argc, char *argv[])
{
TCHAR szComputerName[50];
DWORD dwSize = 50;
int nBytes = 500;
BYTE* pCache;
if (argc > 1) {
usage();
return 1;
}
SnmpSvcInitUptime();
GetComputerName(szComputerName, &dwSize);
_tprintf(_T("ReactOS ARP cache on Computer Name: %s\n"), szComputerName);
pCache = (BYTE*)SnmpUtilMemAlloc(nBytes);
Sleep(2500);
if (pCache != NULL) {
DWORD dwUptime = SnmpSvcGetUptime();
_tprintf(_T("SNMP uptime: %ld\n"), dwUptime);
SnmpUtilMemFree(pCache);
INT iRet;
UINT i, k;
PMIB_IPNETTABLE pIpNetTable;
PMIB_IPADDRTABLE pIpAddrTable;
ULONG ulSize = 0;
struct in_addr inaddr, inaddr2;
DWORD dwSize = 0;
PTCHAR pszIpAddr;
TCHAR szIntIpAddr[20];
/* Return required buffer size */
GetIpNetTable(NULL, &ulSize, 0);
/* allocate memory for ARP address table */
pIpNetTable = (PMIB_IPNETTABLE) malloc(ulSize * sizeof(BYTE));
ZeroMemory(pIpNetTable, sizeof(*pIpNetTable));
/* get Arp address table */
if (pIpNetTable != NULL) {
GetIpNetTable(pIpNetTable, &ulSize, TRUE);
} else {
_tprintf(_T("ERROR: call to SnmpUtilMemAlloc() failed\n"));
return 1;
_tprintf(_T("failed to allocate memory for GetIpNetTable\n"));
free(pIpNetTable);
return -1;
}
return 0;
}
/* check there are entries in the table */
if (pIpNetTable->dwNumEntries == 0) {
_tprintf(_T("No ARP entires found\n"));
free(pIpNetTable);
return -1;
}
/* try doing this in the way it's done above, it's clearer */
/* Retrieve the interface-to-ip address mapping
* table to get the IP address for adapter */
pIpAddrTable = (MIB_IPADDRTABLE *) malloc(dwSize);
GetIpAddrTable(pIpAddrTable, &dwSize, 0); // NULL ?
pIpAddrTable = (MIB_IPADDRTABLE *) malloc(dwSize);
//ZeroMemory(pIpAddrTable, sizeof(*pIpAddrTable));
if ((iRet = GetIpAddrTable(pIpAddrTable, &dwSize, TRUE)) != NO_ERROR) { // NO_ERROR = 0
_tprintf(_T("GetIpAddrTable failed: %d\n"), iRet);
_tprintf(_T("error: %d\n"), WSAGetLastError());
}
for (k=0; k < pIpAddrTable->dwNumEntries; k++) {
if (pIpNetTable->table[0].dwIndex == pIpAddrTable->table[k].dwIndex) {
//printf("printing pIpAddrTable->table[?].dwIndex = %lx\n", pIpNetTable->table[k].dwIndex);
inaddr2.s_addr = pIpAddrTable->table[k].dwAddr;
pszIpAddr = inet_ntoa(inaddr2);
strcpy(szIntIpAddr, pszIpAddr);
}
}
/* print header, including interface IP address and index number */
_tprintf(_T("\nInterface: %s --- 0x%lx \n"), szIntIpAddr, pIpNetTable->table[0].dwIndex);
_tprintf(_T(" Internet Address Physical Address Type\n"));
/* go through all ARP entries */
for (i=0; i < pIpNetTable->dwNumEntries; i++) {
/* if the user has supplied their own internet addesss *
* only print the arp entry which matches that */
if (pszInetAddr) {
inaddr.S_un.S_addr = pIpNetTable->table[i].dwAddr;
pszIpAddr = inet_ntoa(inaddr);
/* check if it matches, print it */
if (strcmp(pszIpAddr, pszInetAddr) == 0) {
PrintEntries(&pIpNetTable->table[i]);
}
} else {
/* if an address is not supplied, print all entries */
PrintEntries(&pIpNetTable->table[i]);
}
}
free(pIpNetTable);
free(pIpAddrTable);
return 0;
}
/*
*
* Takes an ARP entry and prints the IP address,
* the MAC address and the entry type to screen
*
*/
INT PrintEntries(PMIB_IPNETROW pIpAddRow)
{
IN_ADDR inaddr;
TCHAR cMacAddr[20];
/* print IP addresses */
inaddr.S_un.S_addr = pIpAddRow->dwAddr;
_tprintf(_T(" %-22s"), inet_ntoa(inaddr)); //error checking
/* print MAC address */
_stprintf(cMacAddr, _T("%02x-%02x-%02x-%02x-%02x-%02x"),
pIpAddRow->bPhysAddr[0],
pIpAddRow->bPhysAddr[1],
pIpAddRow->bPhysAddr[2],
pIpAddRow->bPhysAddr[3],
pIpAddRow->bPhysAddr[4],
pIpAddRow->bPhysAddr[5]);
_tprintf(_T("%-22s"), cMacAddr);
/* print cache type */
switch (pIpAddRow->dwType) {
case MIB_IPNET_TYPE_DYNAMIC : _tprintf(_T("dynamic\n"));
break;
case MIB_IPNET_TYPE_STATIC : _tprintf(_T("static\n"));
break;
case MIB_IPNET_TYPE_INVALID : _tprintf(_T("invalid\n"));
break;
case MIB_IPNET_TYPE_OTHER : _tprintf(_T("other\n"));
break;
}
return 0;
}
/*
*
* Takes an internet address, a MAC address and an optional interface
* address as arguments and checks their validity.
* Fill out an MIB_IPNETROW structure and insert the data into the
* ARP cache as a static entry.
*
*/
INT Addhost(PTCHAR pszInetAddr, PTCHAR pszEthAddr, PTCHAR pszIfAddr)
{
PMIB_IPNETROW pAddHost;
PMIB_IPADDRTABLE pIpAddrTable;
DWORD dwIpAddr;
DWORD dwSize = 0;
INT iRet, i, val;
TCHAR c;
/* error checking */
/* check IP address */
if (pszInetAddr != NULL) {
if ((dwIpAddr = inet_addr(pszInetAddr)) == INADDR_NONE) {
_tprintf(_T("ARP: bad IP address: %s\n"), pszInetAddr);
return -1;
}
} else {
Usage();
return -1;
}
/* check MAC address */
if (strlen(pszEthAddr) != 17) {
_tprintf(_T("ARP: bad argument: %s\n"), pszEthAddr);
return -1;
}
for (i=0; i<17; i++) {
if (pszEthAddr[i] == SEPERATOR) {
continue;
}
if (!isxdigit(pszEthAddr[i])) {
_tprintf(_T("ARP: bad argument: %s\n"), pszEthAddr);
return -1;
}
}
/* reserve memory on heap and zero */
pAddHost = (MIB_IPNETROW *) malloc(sizeof(MIB_IPNETROW));
ZeroMemory(pAddHost, sizeof(MIB_IPNETROW));
/* set dwIndex field to the index of a local IP address to
* indicate the network on which the ARP entry applies */
if (pszIfAddr) {
sscanf(pszIfAddr, "%lx", &pAddHost->dwIndex);
} else {
/* map the IP to the index */
pIpAddrTable = (MIB_IPADDRTABLE *) malloc(dwSize);
GetIpAddrTable(pIpAddrTable, &dwSize, 0);
pIpAddrTable = (MIB_IPADDRTABLE *) malloc(dwSize);
if ((iRet = GetIpAddrTable(pIpAddrTable, &dwSize, TRUE)) != NO_ERROR) { // NO_ERROR = 0
_tprintf(_T("GetIpAddrTable failed: %d\n"), iRet);
_tprintf(_T("error: %d\n"), WSAGetLastError());
}
printf("printing pIpAddrTable->table[0].dwIndex = %lx\n", pIpAddrTable->table[0].dwIndex);
pAddHost->dwIndex = 4;
free(pIpAddrTable);
}
/* Set MAC address to 6 bytes (typical) */
pAddHost->dwPhysAddrLen = 6;
/* Encode bPhysAddr into correct byte array */
for (i=0; i<6; i++) {
val =0;
c = toupper(pszEthAddr[i*3]);
c = c - (isdigit(c) ? '0' : ('A' - 10));
val += c;
val = (val << 4);
c = toupper(pszEthAddr[i*3 + 1]);
c = c - (isdigit(c) ? '0' : ('A' - 10));
val += c;
pAddHost->bPhysAddr[i] = val;
}
/* copy converted IP address */
pAddHost->dwAddr = dwIpAddr;
/* set type to static */
pAddHost->dwType = MIB_IPNET_TYPE_STATIC;
/* Add the ARP entry */
if ((iRet = SetIpNetEntry(pAddHost)) != NO_ERROR) {
_tprintf(_T("The ARP entry addition failed: %d\n"), iRet);
return -1;
}
free(pAddHost);
return 0;
}
/*
*
* Takes an internet address and an optional interface address as
* arguments and checks their validity.
* Add the interface number and IP to an MIB_IPNETROW structure
* and remove the entrty from the ARP cache.
*
*/
INT Deletehost(PTCHAR pszInetAddr, PTCHAR pszIfAddr)
{
PMIB_IPNETROW pDelHost;
PMIB_IPADDRTABLE pIpAddrTable;
DWORD dwIpAddr;
DWORD dwSize = 0;
INT iret;
/* error checking */
/* check IP address */
if (pszInetAddr != NULL) {
if ((dwIpAddr = inet_addr(pszInetAddr)) == INADDR_NONE) {
_tprintf(_T("ARP: bad IP address: %s\n"), pszInetAddr);
return -1;
}
} else {
Usage();
return -1;
}
pIpAddrTable = (MIB_IPADDRTABLE*) malloc(sizeof(MIB_IPADDRTABLE));
pDelHost = (MIB_IPNETROW *) malloc(sizeof(MIB_IPNETROW));
ZeroMemory(pIpAddrTable, sizeof(MIB_IPADDRTABLE));
ZeroMemory(pDelHost, sizeof(MIB_IPNETROW));
/* set dwIndex field to the index of a local IP address to
* indicate the network on which the ARP entry applies */
if (pszIfAddr) {
sscanf(pszIfAddr, "%lx", &pDelHost->dwIndex);
} else {
/* map the IP to the index */
if (GetIpAddrTable(pIpAddrTable, &dwSize, 0) == ERROR_INSUFFICIENT_BUFFER) {
pIpAddrTable = (MIB_IPADDRTABLE *) malloc(dwSize);
}
if ((iret = GetIpAddrTable(pIpAddrTable, &dwSize, TRUE)) != NO_ERROR) {
_tprintf(_T("GetIpAddrTable failed: %d\n"), iret);
_tprintf(_T("error: %d\n"), WSAGetLastError());
}
pDelHost->dwIndex = 4; //pIpAddrTable->table[0].dwIndex;
}
/* copy converted IP address */
pDelHost->dwAddr = dwIpAddr;
/* Add the ARP entry */
if ((iret = DeleteIpNetEntry(pDelHost)) != NO_ERROR) {
_tprintf(_T("The ARP entry deletion failed: %d\n"), iret);
return -1;
}
free(pIpAddrTable);
free(pDelHost);
return 0;
}
/*
*
* print program usage to screen
*
*/
VOID Usage(VOID)
{
_tprintf(_T("\nDisplays and modifies the IP-to-Physical address translation tables used by\n"
"address resolution protocol (ARP).\n"
"\n"
"ARP -s inet_addr eth_addr [if_addr]\n"
"ARP -d inet_addr [if_addr]\n"
"ARP -a [inet_addr] [-N if_addr]\n"
"\n"
" -a Displays current ARP entries by interrogating the current\n"
" protocol data. If inet_addr is specified, the IP and Physical\n"
" addresses for only the specified computer are displayed. If\n"
" more than one network interface uses ARP, entries for each ARP\n"
" table are displayed.\n"
" -g Same as -a.\n"
" inet_addr Specifies an internet address.\n"
" -N if_addr Displays the ARP entries for the network interface specified\n"
" by if_addr.\n"
" -d Deletes the host specified by inet_addr. inet_addr may be\n"
" wildcarded with * to delete all hosts.\n"
" -s Adds the host and associates the Internet address inet_addr\n"
" with the Physical address eth_addr. The Physical address is\n"
" given as 6 hexadecimal bytes separated by hyphens. The entry\n"
" is permanent.\n"
" eth_addr Specifies a physical address.\n"
" if_addr If present, this specifies the Internet address of the\n"
" interface whose address translation table should be modified.\n"
" If not present, the first applicable interface will be used.\n"
"Example:\n"
" > arp -s 157.55.85.212 00-aa-00-62-c6-09 .... Adds a static entry.\n"
" > arp -a .... Displays the arp table.\n\n"));
}
/*
*
* Program entry.
* Parse command line and call the required function
*
*/
INT main(int argc, char* argv[])
{
const char N[] = "-N";
if ((argc < 2) || (argc > 5))
{
Usage();
return FALSE;
}
if (argv[1][0] == '-') {
switch (argv[1][1]) {
/* FIX ME */
/* need better control for -a, as -N might not be arg 4 */
case 'a': if (argc == 2)
DisplayArpEntries(NULL, NULL);
else if (argc == 3)
DisplayArpEntries(argv[2], NULL);
else if ((argc == 5) && ((strcmp(argv[3], N)) == 0))
DisplayArpEntries(argv[2], argv[4]);
else
Usage();
break;
case 'g': break;
case 'd': if (argc == 3)
Deletehost(argv[2], NULL);
else if (argc == 4)
Deletehost(argv[2], argv[3]);
else
Usage();
break;
case 's': if (argc == 4)
Addhost(argv[2], argv[3], NULL);
else if (argc == 5)
Addhost(argv[2], argv[3], argv[4]);
else
Usage();
break;
default:
Usage();
return -1;
}
} else {
Usage();
return -1;
}
return 0;
}

View File

@@ -1,6 +1,5 @@
/* $Id$ */
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS TCP/IPv4 Win32 arp\0"
#define REACTOS_STR_INTERNAL_NAME "arp\0"
#define REACTOS_STR_ORIGINAL_FILENAME "arp.exe\0"
#define REACTOS_STR_ORIGINAL_COPYRIGHT "Ged Murphy (gedmurphy@gmail.com)\0"
#include <reactos/version.rc>

View File

@@ -2,8 +2,10 @@
<include base="arp">.</include>
<define name="__USE_W32API" />
<library>kernel32</library>
<library>user32</library>
<library>snmpapi</library>
<library>iphlpapi</library>
<library>ws2_32</library>
<library>shlwapi</library>
<file>arp.c</file>
<file>arp.rc</file>
</module>

View File

@@ -22,6 +22,9 @@
<directory name="telnet">
<xi:include href="telnet/telnet.xml" />
</directory>
<directory name="tracert">
<xi:include href="tracert/tracert.xml" />
</directory>
<directory name="whois">
<xi:include href="whois/whois.xml" />
</directory>

View File

@@ -1,5 +1,6 @@
<module name="finger" type="win32cui" installbase="system32" installname="finger.exe">
<include base="finger">.</include>
<define name="__USE_W32API" />
<define name="__USE_W32_SOCKETS" />
<library>kernel32</library>
<library>ws2_32</library>

View File

@@ -59,7 +59,7 @@ netfinger(char *name)
return;
*host++ = '\0';
if (isdigit(*host) && (defaddr.s_addr = inet_addr(host)) != -1) {
if (isdigit(*host) && (defaddr.s_addr = inet_addr(host)) != (unsigned long)-1) {
def.h_name = host;
def.h_addr_list = alist;
def.h_addr = (char *)&defaddr;

View File

@@ -100,7 +100,7 @@ int fgetcSocket(int s)
index = 0;
total = recv(s, buffer, sizeof(buffer), 0);
if (total == INVALID_SOCKET)
if (total == SOCKET_ERROR)
{
total = 0;
return ERROR;

View File

@@ -119,7 +119,7 @@ char *hookup(char *host, int port)
bzero((char *)&hisctladdr, sizeof (hisctladdr));
hisctladdr.sin_addr.s_addr = inet_addr(host);
if (hisctladdr.sin_addr.s_addr != -1) {
if (hisctladdr.sin_addr.s_addr != (unsigned long)-1) {
hisctladdr.sin_family = AF_INET;
(void) strncpy(hostnamebuf, host, sizeof(hostnamebuf));
} else {

View File

@@ -1,5 +0,0 @@
# This file is automatically generated.
TOP = ..\..\..\..
DEFAULT = ftp
include $(TOP)/proxy.mak

View File

@@ -1,10 +1,30 @@
/* $Id: ipconfig.c
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Ipconfig utility
* FILE: apps/utils/net/ipconfig/ipconfig.c
* PURPOSE: Show and set network interface IP parameters
*/
/*
* ipconfig - display IP stack parameters.
* History:
*
* This source code is in the PUBLIC DOMAIN and has NO WARRANTY.
* 15/8/2002 (Robert Dickenson <robd@reactos.org>)
* Original version (PUBLIC DOMAIN and NO WARRANTY)
*
* Robert Dickenson <robd@reactos.org>, August 15, 2002.
*/
* 26/6/2005 (Tim Jobling <tjob800@yahoo.co.uk>)
* Relicense to GPL.
* Display NodeType with meaningfull Human readable names.
* Exclusively use TCHAR strings.
* Display Physical Address, DHCP enabled state, IP Addresses/Netmasks,
* Default Gateway, DHCP server and DHCP Lease times.
* Parse command line options.
* Default to only showing the IP/SM/DG is no options specified
* Handel option: /All and /?
* Display message about all unimplemented options.
* Changed C++ style commenting to C style
*
*/
#include <stdio.h>
#include <windows.h>
#include <tchar.h>
@@ -18,8 +38,6 @@
#include "trace.h"
#endif
////////////////////////////////////////////////////////////////////////////////
/* imported from iphlpapi.dll
GetAdapterOrderMap
@@ -30,18 +48,43 @@ NhpAllocateAndGetInterfaceInfoFromStack
*/
static TCHAR* GetNodeTypeName(int nNodeType)
static TCHAR* GetNodeTypeName(UINT nNodeType)
{
switch (nNodeType) {
case 0: return _T("zero");
case 1: return _T("one");
case 2: return _T("two");
case 3: return _T("three");
case 4: return _T("mixed");
case 1: return _T("Broadcast");
case 2: return _T("Peer To Peer");
case 4: return _T("Mixed");
case 8: return _T("Hybrid");
default: return _T("unknown");
}
}
static TCHAR* GetInterfaceTypeName(UINT nInterfaceType)
{
switch (nInterfaceType) {
case MIB_IF_TYPE_OTHER: return _T("Other");
case MIB_IF_TYPE_ETHERNET: return _T("Ethernet");
case MIB_IF_TYPE_TOKENRING: return _T("Token Ring");
case MIB_IF_TYPE_FDDI: return _T("FDDI");
case MIB_IF_TYPE_PPP: return _T("PPP");
case MIB_IF_TYPE_LOOPBACK: return _T("Loopback");
case MIB_IF_TYPE_SLIP: return _T("SLIP");
default: return _T("unknown");
}
}
void PrintPhysicalAddr(PBYTE Addr, UINT len)
{
UINT i=0;
for (i=0; i<len; i++)
{
_tprintf(_T("%02X"), Addr[i]);
if ((i+1)<len)
_tprintf(_T("-"));
}
_tprintf(_T("\n"));
}
static void ShowNetworkFixedInfo()
{
FIXED_INFO* pFixedInfo = NULL;
@@ -52,7 +95,7 @@ static void ShowNetworkFixedInfo()
if (result == ERROR_BUFFER_OVERFLOW) {
pFixedInfo = (FIXED_INFO*)malloc(OutBufLen);
if (!pFixedInfo) {
_tprintf(_T("ERROR: failed to allocate 0x%08X bytes of memory\n"), OutBufLen);
_tprintf(_T("ERROR: failed to allocate 0x%08lX bytes of memory\n"), OutBufLen);
return;
}
} else {
@@ -64,27 +107,28 @@ static void ShowNetworkFixedInfo()
if (result == ERROR_SUCCESS) {
IP_ADDR_STRING* pIPAddr;
printf("\tHostName. . . . . . . . . . . : %s\n", pFixedInfo->HostName);
printf("\tDomainName. . . . . . . . . . : %s\n", pFixedInfo->DomainName);
//
printf("\tDNS Servers . . . . . . . . . : %s\n", pFixedInfo->DnsServerList.IpAddress.String);
_tprintf(_T("\tHostName. . . . . . . . . . . : %s\n"), pFixedInfo->HostName);
_tprintf(_T("\tDomainName. . . . . . . . . . : %s\n"), pFixedInfo->DomainName);
_tprintf(_T("\tDNS Servers . . . . . . . . . : %s\n"), pFixedInfo->DnsServerList.IpAddress.String);
pIPAddr = pFixedInfo->DnsServerList.Next;
while (pIPAddr) {
printf("\t\t\t\t : %s\n", pIPAddr->IpAddress.String);
_tprintf(_T("\t\t\t\t : %s\n"), pIPAddr->IpAddress.String);
pIPAddr = pIPAddr->Next;
}
//
_tprintf(_T("\tNodeType. . . . . . . . . . . : %d (%s)\n"), pFixedInfo->NodeType, GetNodeTypeName(pFixedInfo->NodeType));
printf("\tScopeId . . . . . . . . . . . : %s\n", pFixedInfo->ScopeId);
_tprintf(_T("\tScopeId . . . . . . . . . . . : %s\n"), pFixedInfo->ScopeId);
_tprintf(_T("\tEnableRouting . . . . . . . . : %s\n"), pFixedInfo->EnableRouting ? _T("yes") : _T("no"));
_tprintf(_T("\tEnableProxy . . . . . . . . . : %s\n"), pFixedInfo->EnableProxy ? _T("yes") : _T("no"));
_tprintf(_T("\tEnableDns . . . . . . . . . . : %s\n"), pFixedInfo->EnableDns ? _T("yes") : _T("no"));
_tprintf(_T("\n"));
//_tprintf(_T("\n"),);
//_tprintf(_T("GetNetworkParams() returned with %d\n"), pIfTable->NumAdapters);
// _tprintf(_T("\tConnection specific DNS suffix: %s\n"), pFixedInfo->EnableDns ? _T("yes") : _T("no"));
/*
_tprintf(_T("\n"),);
_tprintf(_T("GetNetworkParams() returned with %d\n"), pIfTable->NumAdapters);
_tprintf(_T("\tConnection specific DNS suffix: %s\n"), pFixedInfo->EnableDns ? _T("yes") : _T("no"));
*/
} else {
switch (result) {
case ERROR_BUFFER_OVERFLOW:
@@ -100,7 +144,7 @@ static void ShowNetworkFixedInfo()
_tprintf(_T("This function is not supported on the operating system in use on the local system\n"));
break;
default:
_tprintf(_T("0x%08X - Use FormatMessage to obtain the message string for the returned error\n"), result);
_tprintf(_T("0x%08lX - Use FormatMessage to obtain the message string for the returned error\n"), result);
break;
}
}
@@ -114,20 +158,21 @@ static void ShowNetworkInterfaces()
DWORD dwOutBufLen = 0;
if ((result = GetNumberOfInterfaces(&dwNumIf)) != NO_ERROR) {
_tprintf(_T("GetNumberOfInterfaces() failed with code 0x%08X - Use FormatMessage to obtain the message string for the returned error\n"), result);
_tprintf(_T("GetNumberOfInterfaces() failed with code 0x%08lX - Use FormatMessage to obtain the message string for the returned error\n"), result);
return;
} else {
_tprintf(_T("GetNumberOfInterfaces() returned %d\n"), dwNumIf);
_tprintf(_T("GetNumberOfInterfaces() returned %lu\n"), dwNumIf);
}
result = GetInterfaceInfo(pIfTable, &dwOutBufLen);
// dwOutBufLen = sizeof(IP_INTERFACE_INFO) + dwNumIf * sizeof(IP_ADAPTER_INDEX_MAP);
// _tprintf(_T("GetNumberOfInterfaces() returned %d, dwOutBufLen %d\n"), dwNumIf, dwOutBufLen);
// _tprintf(_T("sizeof(IP_INTERFACE_INFO) %d, sizeof(IP_ADAPTER_INDEX_MAP) %d\n"), sizeof(IP_INTERFACE_INFO), sizeof(IP_ADAPTER_INDEX_MAP));
/*
dwOutBufLen = sizeof(IP_INTERFACE_INFO) + dwNumIf * sizeof(IP_ADAPTER_INDEX_MAP);
_tprintf(_T("GetNumberOfInterfaces() returned %d, dwOutBufLen %d\n"), dwNumIf, dwOutBufLen);
_tprintf(_T("sizeof(IP_INTERFACE_INFO) %d, sizeof(IP_ADAPTER_INDEX_MAP) %d\n"), sizeof(IP_INTERFACE_INFO), sizeof(IP_ADAPTER_INDEX_MAP));
*/
pIfTable = (IP_INTERFACE_INFO*)malloc(dwOutBufLen);
if (!pIfTable) {
_tprintf(_T("ERROR: failed to allocate 0x%08X bytes of memory\n"), dwOutBufLen);
_tprintf(_T("ERROR: failed to allocate 0x%08lX bytes of memory\n"), dwOutBufLen);
return;
}
/*
@@ -143,17 +188,13 @@ typedef struct _IP_INTERFACE_INFO {
*/
result = GetInterfaceInfo(pIfTable, &dwOutBufLen);
if (result == NO_ERROR) {
int i;
_tprintf(_T("GetInterfaceInfo() returned with %d adaptor entries\n"), pIfTable->NumAdapters);
UINT i;
_tprintf(_T("GetInterfaceInfo() returned with %ld adaptor entries\n"), pIfTable->NumAdapters);
for (i = 0; i < pIfTable->NumAdapters; i++) {
wprintf(L"[%d] %s\n", i + 1, pIfTable->Adapter[i].Name);
//wprintf(L"[%d] %s\n", pIfTable->Adapter[i].Index, pIfTable->Adapter[i].Name);
/*wprintf(L"[%d] %s\n", pIfTable->Adapter[i].Index, pIfTable->Adapter[i].Name);*/
// \DEVICE\TCPIP_{DB0E61C1-3498-4C5F-B599-59CDE8A1E357}
// \DEVICE\TCPIP_{BD445697-0945-4591-AE7F-2AB0F383CA87}
// \DEVICE\TCPIP_{6D87DC08-6BC5-4E78-AB5F-18CAB785CFFE}
//HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces\Tcpip_{DB0E61C1-3498-4C5F-B599-59CDE8A1E357}
/*HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces\Tcpip_{DB0E61C1-3498-4C5F-B599-59CDE8A1E357}*/
}
} else {
switch (result) {
@@ -162,13 +203,13 @@ typedef struct _IP_INTERFACE_INFO {
break;
case ERROR_INSUFFICIENT_BUFFER:
_tprintf(_T("The buffer pointed to by the pIfTable parameter is not large enough. The required size is returned in the DWORD variable pointed to by the dwOutBufLen parameter\n"));
_tprintf(_T("\tdwOutBufLen: %d\n"), dwOutBufLen);
_tprintf(_T("\tdwOutBufLen: %lu\n"), dwOutBufLen);
break;
case ERROR_NOT_SUPPORTED:
_tprintf(_T("This function is not supported on the operating system in use on the local system\n"));
break;
default:
_tprintf(_T("0x%08X - Use FormatMessage to obtain the message string for the returned error\n"), result);
_tprintf(_T("0x%08lX - Use FormatMessage to obtain the message string for the returned error\n"), result);
break;
}
}
@@ -213,13 +254,20 @@ Ethernet adapter VMware Virtual Ethernet Adapter (Network Address Translation (N
a Lease Obtained. . . . . . . . . . : Monday, 30 December 2002 5:56:53 PM
b Lease Expires . . . . . . . . . . : Monday, 30 December 2002 6:26:53 PM
*/
static void ShowAdapterInfo()
static void ShowAdapterInfo(BOOL ShowAll)
{
IP_ADAPTER_INFO* pAdaptorInfo;
ULONG ulOutBufLen;
DWORD dwRetVal;
PIP_ADDR_STRING pIpAddrString;
struct tm *LeaseTime;
if (ShowAll)
{
_tprintf(_T("\nAdaptor Information\t\n"));
}
_tprintf(_T("\nAdaptor Information\t\n"));
pAdaptorInfo = (IP_ADAPTER_INFO*)GlobalAlloc(GPTR, sizeof(IP_ADAPTER_INFO));
ulOutBufLen = sizeof(IP_ADAPTER_INFO);
@@ -227,18 +275,61 @@ static void ShowAdapterInfo()
GlobalFree(pAdaptorInfo);
pAdaptorInfo = (IP_ADAPTER_INFO*)GlobalAlloc(GPTR, ulOutBufLen);
}
if (dwRetVal = GetAdaptersInfo(pAdaptorInfo, &ulOutBufLen)) {
_tprintf(_T("Call to GetAdaptersInfo failed. Return Value: %08x\n"), dwRetVal);
if ((dwRetVal = GetAdaptersInfo(pAdaptorInfo, &ulOutBufLen))) {
_tprintf(_T("Call to GetAdaptersInfo failed. Return Value: 0x%08lx\n"), dwRetVal);
} else {
while (pAdaptorInfo) {
printf(" AdapterName: %s\n", pAdaptorInfo->AdapterName);
printf(" Description: %s\n", pAdaptorInfo->Description);
/* print the type of interface before the Name of it */
_tprintf(_T("\n%s Adapter %s:\n\n"), GetInterfaceTypeName(pAdaptorInfo->Type), pAdaptorInfo->AdapterName);
if (ShowAll)
{
_tprintf(_T("\tDescription. . . . . . : %s\n"), pAdaptorInfo->Description);
/* print the Physical address to the screen*/
_tprintf(_T("\tPhysical Address . . . : "));
PrintPhysicalAddr(pAdaptorInfo->Address, pAdaptorInfo->AddressLength);
/* Now the DHCP state */
_tprintf(_T("\tDHCP Enabled . . . . . : %s\n"), pAdaptorInfo->DhcpEnabled ? _T("Yes") : _T("No"));
}
/* IP Addresses/Netmasks, there may be more than one */
pIpAddrString = &pAdaptorInfo->IpAddressList;
do{
_tprintf(_T("\tIP Address . . . . . . : %s\n"), pIpAddrString->IpAddress.String);
_tprintf(_T("\tSubnet Mask. . . . . . : %s\n"), pIpAddrString->IpMask.String);
pIpAddrString = pIpAddrString->Next;
}while (pIpAddrString!=NULL);
/* Default Gateway */
pIpAddrString = &pAdaptorInfo->GatewayList;
_tprintf(_T("\tDefault Gateway. . . . : %s\n"), pIpAddrString->IpAddress.String);
/* Print some stuff that is only relevant it dhcp is enabled */
if((pAdaptorInfo->DhcpEnabled)&&(ShowAll))
{
/* Display the DHCP server address */
pIpAddrString = &pAdaptorInfo->DhcpServer;
_tprintf(_T("\tDHCP Server. . . . . . : %s\n"), pIpAddrString->IpAddress.String);
/* Display the Lease times*/
LeaseTime = localtime(&pAdaptorInfo->LeaseObtained);
_tprintf(_T("\tLease Obtained . . . . : %s"), asctime(LeaseTime));
LeaseTime = localtime(&pAdaptorInfo->LeaseExpires);
_tprintf(_T("\tLease Expieres . . . . : %s"), asctime(LeaseTime));
}
pAdaptorInfo = pAdaptorInfo->Next;
}
}
}
const char szUsage[] = { "USAGE:\n" \
const TCHAR szUsage[] = { _T("USAGE:\n" \
" ipconfig [/? | /all | /release [adapter] | /renew [adapter]\n" \
" | /flushdns | /registerdns\n" \
" | /showclassid adapter\n" \
@@ -259,7 +350,7 @@ const char szUsage[] = { "USAGE:\n" \
" /setclassid Modifies the dhcp class id.\n" \
"\n" \
"The default is to display only the IP address, subnet mask and\n" \
"default gateway for each adapter bound to TCP/IP.\n"
"default gateway for each adapter bound to TCP/IP.\n")
};
/*
"\n" \
@@ -279,21 +370,114 @@ const char szUsage[] = { "USAGE:\n" \
static void usage(void)
{
fputs(szUsage, stderr);
_fputts(szUsage, stderr);
}
int main(int argc, char *argv[])
int _tmain(int argc, TCHAR *argv[])
{
// 10.0.0.100 // As of build 0.0.20 this is hardcoded in the ip stack
BOOL DoUsage=FALSE;
BOOL DoAll=FALSE;
BOOL DoRelease=FALSE;
BOOL DoRenew=FALSE;
BOOL DoFlushdns=FALSE;
BOOL DoRegisterdns=FALSE;
BOOL DoDisplaydns=FALSE;
BOOL DoShowclassid=FALSE;
BOOL DoSetclassid=FALSE;
if (argc > 1) {
usage();
return 1;
_tprintf(_T("\nReactOS IP Configuration\n\n"));
/*
Parse command line for options we have been given.
*/
if ( ((argc > 1))&&((argv[1][0]=='/')||(argv[1][0]=='-')) )
{
if( !_tcsicmp( &argv[1][1], _T("?") ))
{
DoUsage = TRUE;
}
else if( !_tcsnicmp( &argv[1][1], _T("ALL"), _tcslen(&argv[1][1]) ))
{
DoAll = TRUE;
}
else if( !_tcsnicmp( &argv[1][1], _T("RELEASE"), _tcslen(&argv[1][1]) ))
{
DoRelease = TRUE;
}
else if( ! _tcsnicmp( &argv[1][1], _T("RENEW"), _tcslen(&argv[1][1]) ))
{
DoRenew = TRUE;
}
else if( ! _tcsnicmp( &argv[1][1], _T("FLUSHDNS"), _tcslen(&argv[1][1]) ))
{
DoFlushdns = TRUE;
}
else if( ! _tcsnicmp( &argv[1][1], _T("REGISTERDNS"), _tcslen(&argv[1][1]) ))
{
DoRegisterdns = TRUE;
}
else if( ! _tcsnicmp( &argv[1][1], _T("DISPLAYDNS"), _tcslen(&argv[1][1]) ))
{
DoDisplaydns = TRUE;
}
else if( ! _tcsnicmp( &argv[1][1], _T("SHOWCLASSID"), _tcslen(&argv[1][1]) ))
{
DoShowclassid = TRUE;
}
else if( ! _tcsnicmp( &argv[1][1], _T("SETCLASSID"), _tcslen(&argv[1][1]) ))
{
DoSetclassid = TRUE;
}
}
_tprintf(_T("ReactOS IP Configuration\n"));
ShowNetworkFixedInfo();
ShowNetworkInterfaces();
ShowAdapterInfo();
return 0;
switch (argc)
{
case 1: /* Default behaviour if options are given specified*/
ShowAdapterInfo(FALSE);
break;
case 2: /* Process all the options that take no paramiters */
if ( DoUsage)
usage();
else if ( DoAll)
{
ShowNetworkFixedInfo();
ShowNetworkInterfaces();
ShowAdapterInfo(TRUE);
}
else if ( DoRelease)
printf("\nSorry /Release is not implemented yet\n");
else if ( DoRenew)
printf("\nSorry /Renew is not implemented yet\n");
else if ( DoFlushdns)
printf("\nSorry /Flushdns is not implemented yet\n");
else if ( DoRegisterdns)
printf("\nSorry /Registerdns is not implemented yet\n");
else if ( DoDisplaydns)
printf("\nSorry /Displaydns is not implemented yet\n");
else
usage();
break;
case 3: /* Process all the options that can have 1 paramiters */
if ( DoRelease)
printf("\nSorry /Release is not implemented yet\n");
else if ( DoRenew)
printf("\nSorry /Renew is not implemented yet\n");
else if ( DoShowclassid)
printf("\nSorry /Showclassid is not implemented yet\n");
else
usage();
break;
case 4: /* Process all the options that can have 2 paramiters */
if ( DoSetclassid)
printf("\nSorry /Setclassid is not implemented yet\n");
else
usage();
break;
default:
usage();
}
return 0;
}

View File

@@ -16,6 +16,7 @@
#include <winsock.h>
#include <tchar.h>
#include <stdio.h>
#include <ctype.h>
#include <time.h>
#include <iptypes.h>
@@ -56,31 +57,32 @@ VOID PrintError(DWORD ErrorCode)
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, ErrorCode, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
(LPTSTR)&lpMsgBuf, 0, NULL);
printf("%s\n", lpMsgBuf);
printf("%s\n", (TCHAR*)lpMsgBuf);
LocalFree(lpMsgBuf);
}
#if 0
static void ShowTcpStatistics()
{
MIB_TCPSTATS TcpStatsMIB;
GetTcpStatistics(&TcpStatsMIB);
_tprintf(_T("TCP/IP Statistics\t\n"));
_tprintf(_T(" time-out algorithm:\t\t%d\n"), TcpStatsMIB.dwRtoAlgorithm);
_tprintf(_T(" minimum time-out:\t\t%d\n"), TcpStatsMIB.dwRtoMin);
_tprintf(_T(" maximum time-out:\t\t%d\n"), TcpStatsMIB.dwRtoMax);
_tprintf(_T(" maximum connections:\t\t%d\n"), TcpStatsMIB.dwMaxConn);
_tprintf(_T(" active opens:\t\t\t%d\n"), TcpStatsMIB.dwActiveOpens);
_tprintf(_T(" passive opens:\t\t\t%d\n"), TcpStatsMIB.dwPassiveOpens);
_tprintf(_T(" failed attempts:\t\t%d\n"), TcpStatsMIB.dwAttemptFails);
_tprintf(_T(" established connections reset:\t%d\n"), TcpStatsMIB.dwEstabResets);
_tprintf(_T(" established connections:\t%d\n"), TcpStatsMIB.dwCurrEstab);
_tprintf(_T(" segments received:\t\t%d\n"), TcpStatsMIB.dwInSegs);
_tprintf(_T(" segment sent:\t\t\t%d\n"), TcpStatsMIB.dwOutSegs);
_tprintf(_T(" segments retransmitted:\t\t%d\n"), TcpStatsMIB.dwRetransSegs);
_tprintf(_T(" incoming errors:\t\t%d\n"), TcpStatsMIB.dwInErrs);
_tprintf(_T(" outgoing resets:\t\t%d\n"), TcpStatsMIB.dwOutRsts);
_tprintf(_T(" cumulative connections:\t\t%d\n"), TcpStatsMIB.dwNumConns);
_tprintf(_T(" time-out algorithm:\t\t%lu\n"), TcpStatsMIB.dwRtoAlgorithm);
_tprintf(_T(" minimum time-out:\t\t%lu\n"), TcpStatsMIB.dwRtoMin);
_tprintf(_T(" maximum time-out:\t\t%lu\n"), TcpStatsMIB.dwRtoMax);
_tprintf(_T(" maximum connections:\t\t%lu\n"), TcpStatsMIB.dwMaxConn);
_tprintf(_T(" active opens:\t\t\t%lu\n"), TcpStatsMIB.dwActiveOpens);
_tprintf(_T(" passive opens:\t\t\t%lu\n"), TcpStatsMIB.dwPassiveOpens);
_tprintf(_T(" failed attempts:\t\t%lu\n"), TcpStatsMIB.dwAttemptFails);
_tprintf(_T(" established connections reset:\t%lu\n"), TcpStatsMIB.dwEstabResets);
_tprintf(_T(" established connections:\t%lu\n"), TcpStatsMIB.dwCurrEstab);
_tprintf(_T(" segments received:\t\t%lu\n"), TcpStatsMIB.dwInSegs);
_tprintf(_T(" segment sent:\t\t\t%lu\n"), TcpStatsMIB.dwOutSegs);
_tprintf(_T(" segments retransmitted:\t\t%lu\n"), TcpStatsMIB.dwRetransSegs);
_tprintf(_T(" incoming errors:\t\t%lu\n"), TcpStatsMIB.dwInErrs);
_tprintf(_T(" outgoing resets:\t\t%lu\n"), TcpStatsMIB.dwOutRsts);
_tprintf(_T(" cumulative connections:\t\t%lu\n"), TcpStatsMIB.dwNumConns);
}
static void ShowUdpStatistics()
@@ -89,11 +91,11 @@ static void ShowUdpStatistics()
GetUdpStatistics(&UDPStatsMIB);
_tprintf(_T("UDP Statistics\t\n"));
_tprintf(_T(" received datagrams:\t\t\t%d\n"), UDPStatsMIB.dwInDatagrams);
_tprintf(_T(" datagrams for which no port exists:\t%d\n"), UDPStatsMIB.dwNoPorts);
_tprintf(_T(" errors on received datagrams:\t\t%d\n"), UDPStatsMIB.dwInErrors);
_tprintf(_T(" sent datagrams:\t\t\t\t%d\n"), UDPStatsMIB.dwOutDatagrams);
_tprintf(_T(" number of entries in listener table:\t%d\n"), UDPStatsMIB.dwNumAddrs);
_tprintf(_T(" received datagrams:\t\t\t%lu\n"), UDPStatsMIB.dwInDatagrams);
_tprintf(_T(" datagrams for which no port exists:\t%lu\n"), UDPStatsMIB.dwNoPorts);
_tprintf(_T(" errors on received datagrams:\t\t%lu\n"), UDPStatsMIB.dwInErrors);
_tprintf(_T(" sent datagrams:\t\t\t\t%lu\n"), UDPStatsMIB.dwOutDatagrams);
_tprintf(_T(" number of entries in listener table:\t%lu\n"), UDPStatsMIB.dwNumAddrs);
}
static void ShowIpStatistics()
@@ -102,27 +104,27 @@ static void ShowIpStatistics()
GetIpStatistics(&IPStatsMIB);
_tprintf(_T("IP Statistics\t\n"));
_tprintf(_T(" IP forwarding enabled or disabled:\t%d\n"), IPStatsMIB.dwForwarding);
_tprintf(_T(" default time-to-live:\t\t\t%d\n"), IPStatsMIB.dwDefaultTTL);
_tprintf(_T(" datagrams received:\t\t\t%d\n"), IPStatsMIB.dwInReceives);
_tprintf(_T(" received header errors:\t\t\t%d\n"), IPStatsMIB.dwInHdrErrors);
_tprintf(_T(" received address errors:\t\t%d\n"), IPStatsMIB.dwInAddrErrors);
_tprintf(_T(" datagrams forwarded:\t\t\t%d\n"), IPStatsMIB.dwForwDatagrams);
_tprintf(_T(" datagrams with unknown protocol:\t%d\n"), IPStatsMIB.dwInUnknownProtos);
_tprintf(_T(" received datagrams discarded:\t\t%d\n"), IPStatsMIB.dwInDiscards);
_tprintf(_T(" received datagrams delivered:\t\t%d\n"), IPStatsMIB.dwInDelivers);
_tprintf(_T(" sent datagrams discarded:\t\t%d\n"), IPStatsMIB.dwOutDiscards);
_tprintf(_T(" datagrams for which no route exists:\t%d\n"), IPStatsMIB.dwOutNoRoutes);
_tprintf(_T(" datagrams for which frags didn't arrive:%d\n"), IPStatsMIB.dwReasmTimeout);
_tprintf(_T(" datagrams requiring reassembly:\t\t%d\n"), IPStatsMIB.dwReasmReqds);
_tprintf(_T(" successful reassemblies:\t\t%d\n"), IPStatsMIB.dwReasmOks);
_tprintf(_T(" failed reassemblies:\t\t\t%d\n"), IPStatsMIB.dwReasmFails);
_tprintf(_T(" successful fragmentations:\t\t%d\n"), IPStatsMIB.dwFragOks);
_tprintf(_T(" failed fragmentations:\t\t\t%d\n"), IPStatsMIB.dwFragFails);
_tprintf(_T(" datagrams fragmented:\t\t\t%d\n"), IPStatsMIB.dwFragCreates);
_tprintf(_T(" number of interfaces on computer:\t%d\n"), IPStatsMIB.dwNumIf);
_tprintf(_T(" number of IP address on computer:\t%d\n"), IPStatsMIB.dwNumAddr);
_tprintf(_T(" number of routes in routing table:\t%d\n"), IPStatsMIB.dwNumRoutes);
_tprintf(_T(" IP forwarding enabled or disabled:\t%lu\n"), IPStatsMIB.dwForwarding);
_tprintf(_T(" default time-to-live:\t\t\t%lu\n"), IPStatsMIB.dwDefaultTTL);
_tprintf(_T(" datagrams received:\t\t\t%lu\n"), IPStatsMIB.dwInReceives);
_tprintf(_T(" received header errors:\t\t\t%lu\n"), IPStatsMIB.dwInHdrErrors);
_tprintf(_T(" received address errors:\t\t%lu\n"), IPStatsMIB.dwInAddrErrors);
_tprintf(_T(" datagrams forwarded:\t\t\t%lu\n"), IPStatsMIB.dwForwDatagrams);
_tprintf(_T(" datagrams with unknown protocol:\t%lu\n"), IPStatsMIB.dwInUnknownProtos);
_tprintf(_T(" received datagrams discarded:\t\t%lu\n"), IPStatsMIB.dwInDiscards);
_tprintf(_T(" received datagrams delivered:\t\t%lu\n"), IPStatsMIB.dwInDelivers);
_tprintf(_T(" sent datagrams discarded:\t\t%lu\n"), IPStatsMIB.dwOutDiscards);
_tprintf(_T(" datagrams for which no route exists:\t%lu\n"), IPStatsMIB.dwOutNoRoutes);
_tprintf(_T(" datagrams for which frags didn't arrive:%lu\n"), IPStatsMIB.dwReasmTimeout);
_tprintf(_T(" datagrams requiring reassembly:\t\t%lu\n"), IPStatsMIB.dwReasmReqds);
_tprintf(_T(" successful reassemblies:\t\t%lu\n"), IPStatsMIB.dwReasmOks);
_tprintf(_T(" failed reassemblies:\t\t\t%lu\n"), IPStatsMIB.dwReasmFails);
_tprintf(_T(" successful fragmentations:\t\t%lu\n"), IPStatsMIB.dwFragOks);
_tprintf(_T(" failed fragmentations:\t\t\t%lu\n"), IPStatsMIB.dwFragFails);
_tprintf(_T(" datagrams fragmented:\t\t\t%lu\n"), IPStatsMIB.dwFragCreates);
_tprintf(_T(" number of interfaces on computer:\t%lu\n"), IPStatsMIB.dwNumIf);
_tprintf(_T(" number of IP address on computer:\t%lu\n"), IPStatsMIB.dwNumAddr);
_tprintf(_T(" number of routes in routing table:\t%lu\n"), IPStatsMIB.dwNumRoutes);
}
static void ShowNetworkParams()
@@ -140,8 +142,8 @@ static void ShowNetworkParams()
GlobalFree(FixedInfo);
FixedInfo =(FIXED_INFO*)GlobalAlloc(GPTR, ulOutBufLen);
}
if (dwRetVal = GetNetworkParams(FixedInfo, &ulOutBufLen)) {
_tprintf(_T("Call to GetNetworkParams failed. Return Value: %08x\n"), dwRetVal);
if ((dwRetVal = GetNetworkParams(FixedInfo, &ulOutBufLen))) {
_tprintf(_T("Call to GetNetworkParams failed. Return Value: 0x%08lx\n"), dwRetVal);
} else {
printf(" Host Name: %s", FixedInfo->HostName);
printf("\n Domain Name: %s", FixedInfo->DomainName);
@@ -168,8 +170,8 @@ static void ShowAdapterInfo()
GlobalFree(pAdaptorInfo);
pAdaptorInfo = (IP_ADAPTER_INFO*)GlobalAlloc(GPTR, ulOutBufLen);
}
if (dwRetVal = GetAdaptersInfo(pAdaptorInfo, &ulOutBufLen)) {
_tprintf(_T("Call to GetAdaptersInfo failed. Return Value: %08x\n"), dwRetVal);
if ((dwRetVal = GetAdaptersInfo(pAdaptorInfo, &ulOutBufLen))) {
_tprintf(_T("Call to GetAdaptersInfo failed. Return Value: 0x%08lx\n"), dwRetVal);
} else {
while (pAdaptorInfo) {
printf(" AdapterName: %s\n", pAdaptorInfo->AdapterName);
@@ -178,6 +180,7 @@ static void ShowAdapterInfo()
}
}
}
#endif
/*
typedef struct {
@@ -271,7 +274,7 @@ GetPortName(DWORD Flags, UINT port, PCHAR proto, PCHAR name, int namelen)
return name;
}
// Try to translate to a name
if (psrvent = getservbyport(port, proto)) {
if ((psrvent = getservbyport(port, proto))) {
strcpy(name, psrvent->s_name );
} else {
sprintf(name, "%d", htons((WORD)port));
@@ -351,9 +354,9 @@ GetIpHostName(DWORD Flags, BOOL local, UINT ipaddr, PCHAR name, int namelen)
BOOLEAN usage(void)
{
TCHAR buffer[MAX_RESLEN];
TCHAR buffer[MAX_RESLEN];
int length = LoadString(GetModuleHandle(NULL), IDS_APP_USAGE, buffer, sizeof(buffer)/sizeof(buffer[0]));
LoadString(GetModuleHandle(NULL), IDS_APP_USAGE, buffer, sizeof(buffer)/sizeof(buffer[0]));
_fputts(buffer, stderr);
return FALSE;
}

View File

@@ -1,31 +0,0 @@
# $Id$
PATH_TO_TOP = ../../../..
TARGET_PATH = common
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = roshttpd
TARGET_CPPFLAGS = -I./include -DUNICODE -D_UNICODE -DDBG -D__USE_W32API -Wno-deprecated
TARGET_GCCLIBS = stdc++
TARGET_SDKLIBS = kernel32.a ws2_32.a user32.a
MAIN_OBJECTS = roshttpd.o config.o error.o http.o httpd.o
COMMON_OBJECTS = common/list.o common/socket.o common/thread.o
TARGET_OBJECTS = $(MAIN_OBJECTS) $(COMMON_OBJECTS)
TARGET_CLEAN = common/*.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -36,7 +36,7 @@ int print_routes() {
DWORD Error;
ULONG Size = 0;
char Destination[IPBUF], Gateway[IPBUF], Netmask[IPBUF];
int i;
unsigned int i;
if( (Error = GetIpForwardTable( NULL, &Size, TRUE )) ==
ERROR_INSUFFICIENT_BUFFER ) {

View File

@@ -1,195 +0,0 @@
/*
* Copyright (c) 1982, 1986, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)ip.h 8.2 (Berkeley) 6/1/94
* $FreeBSD: src/sys/netinet/ip.h,v 1.16 1999/08/28 00:49:19 peter Exp $
*/
#ifndef _NETINET_IP_H_
#define _NETINET_IP_H_
/*
* Definitions for internet protocol version 4.
* Per RFC 791, September 1981.
*/
#define IPVERSION 4
/* A little magic to make the Windows build happy. */
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <winsock2.h>
#include <ws2tcpip.h>
#include <time.h>
typedef u_short n_short;
typedef u_int n_long;
typedef u_int n_time;
#define EMSGSIZE WSAEMSGSIZE
#define ENETUNREACH WSAENETUNREACH
#define EHOSTUNREACH WSAEHOSTUNREACH
#endif
/*
* Structure of an internet header, naked of options.
*/
struct ip {
#ifdef _IP_VHL
u_char ip_vhl; /* version << 4 | header length >> 2 */
#else
#if BYTE_ORDER == LITTLE_ENDIAN
u_int ip_hl:4, /* header length */
ip_v:4; /* version */
#endif
#if BYTE_ORDER == BIG_ENDIAN
u_int ip_v:4, /* version */
ip_hl:4; /* header length */
#endif
#endif /* not _IP_VHL */
u_char ip_tos; /* type of service */
u_short ip_len; /* total length */
u_short ip_id; /* identification */
u_short ip_off; /* fragment offset field */
#define IP_RF 0x8000 /* reserved fragment flag */
#define IP_DF 0x4000 /* don't fragment flag */
#define IP_MF 0x2000 /* more fragments flag */
#define IP_OFFMASK 0x1fff /* mask for fragmenting bits */
u_char ip_ttl; /* time to live */
u_char ip_p; /* protocol */
u_short ip_sum; /* checksum */
struct in_addr ip_src,ip_dst; /* source and dest address */
};
#ifdef _IP_VHL
#define IP_MAKE_VHL(v, hl) ((v) << 4 | (hl))
#define IP_VHL_HL(vhl) ((vhl) & 0x0f)
#define IP_VHL_V(vhl) ((vhl) >> 4)
#define IP_VHL_BORING 0x45
#endif
#define IP_MAXPACKET 65535 /* maximum packet size */
/*
* Definitions for IP type of service (ip_tos)
*/
#define IPTOS_LOWDELAY 0x10
#define IPTOS_THROUGHPUT 0x08
#define IPTOS_RELIABILITY 0x04
#define IPTOS_MINCOST 0x02
/*
* Definitions for IP precedence (also in ip_tos) (hopefully unused)
*/
#define IPTOS_PREC_NETCONTROL 0xe0
#define IPTOS_PREC_INTERNETCONTROL 0xc0
#define IPTOS_PREC_CRITIC_ECP 0xa0
#define IPTOS_PREC_FLASHOVERRIDE 0x80
#define IPTOS_PREC_FLASH 0x60
#define IPTOS_PREC_IMMEDIATE 0x40
#define IPTOS_PREC_PRIORITY 0x20
#define IPTOS_PREC_ROUTINE 0x00
/*
* Definitions for options.
*/
#define IPOPT_COPIED(o) ((o)&0x80)
#define IPOPT_CLASS(o) ((o)&0x60)
#define IPOPT_NUMBER(o) ((o)&0x1f)
#define IPOPT_CONTROL 0x00
#define IPOPT_RESERVED1 0x20
#define IPOPT_DEBMEAS 0x40
#define IPOPT_RESERVED2 0x60
#define IPOPT_EOL 0 /* end of option list */
#define IPOPT_NOP 1 /* no operation */
#define IPOPT_RR 7 /* record packet route */
#define IPOPT_TS 68 /* timestamp */
#define IPOPT_SECURITY 130 /* provide s,c,h,tcc */
#define IPOPT_LSRR 131 /* loose source route */
#define IPOPT_SATID 136 /* satnet id */
#define IPOPT_SSRR 137 /* strict source route */
#define IPOPT_RA 148 /* router alert */
/*
* Offsets to fields in options other than EOL and NOP.
*/
#define IPOPT_OPTVAL 0 /* option ID */
#define IPOPT_OLEN 1 /* option length */
#define IPOPT_OFFSET 2 /* offset within option */
#define IPOPT_MINOFF 4 /* min value of above */
/*
* Time stamp option structure.
*/
struct ip_timestamp {
u_char ipt_code; /* IPOPT_TS */
u_char ipt_len; /* size of structure (variable) */
u_char ipt_ptr; /* index of current entry */
#if BYTE_ORDER == LITTLE_ENDIAN
u_int ipt_flg:4, /* flags, see below */
ipt_oflw:4; /* overflow counter */
#endif
#if BYTE_ORDER == BIG_ENDIAN
u_int ipt_oflw:4, /* overflow counter */
ipt_flg:4; /* flags, see below */
#endif
union ipt_timestamp {
n_long ipt_time[1];
struct ipt_ta {
struct in_addr ipt_addr;
n_long ipt_time;
} ipt_ta[1];
} ipt_timestamp;
};
/* flag bits for ipt_flg */
#define IPOPT_TS_TSONLY 0 /* timestamps only */
#define IPOPT_TS_TSANDADDR 1 /* timestamps and addresses */
#define IPOPT_TS_PRESPEC 3 /* specified modules only */
/* bits for security (not byte swapped) */
#define IPOPT_SECUR_UNCLASS 0x0000
#define IPOPT_SECUR_CONFID 0xf135
#define IPOPT_SECUR_EFTO 0x789a
#define IPOPT_SECUR_MMMM 0xbc4d
#define IPOPT_SECUR_RESTR 0xaf13
#define IPOPT_SECUR_SECRET 0xd788
#define IPOPT_SECUR_TOPSECRET 0x6bc5
/*
* Internet implementation parameters.
*/
#define MAXTTL 255 /* maximum time to live (seconds) */
#define IPDEFTTL 64 /* default ttl, from RFC 1340 */
#define IPFRAGTTL 60 /* time to live for frags, slowhz */
#define IPTTLDEC 1 /* subtracted when forwarding */
#define IP_MSS 576 /* default maximum segment size */
#endif

View File

@@ -1,186 +0,0 @@
/*
* Copyright (c) 1982, 1986, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)ip_icmp.h 8.1 (Berkeley) 6/10/93
* $FreeBSD: src/sys/netinet/ip_icmp.h,v 1.13 1999/08/28 00:49:24 peter Exp $
*/
#ifndef _NETINET_IP_ICMP_H_
#define _NETINET_IP_ICMP_H_
/*
* Interface Control Message Protocol Definitions.
* Per RFC 792, September 1981.
*/
/*
* Internal of an ICMP Router Advertisement
*/
struct icmp_ra_addr {
u_int32_t ira_addr;
u_int32_t ira_preference;
};
/*
* Structure of an icmp header.
*/
struct icmp {
u_char icmp_type; /* type of message, see below */
u_char icmp_code; /* type sub code */
u_short icmp_cksum; /* ones complement cksum of struct */
union {
u_char ih_pptr; /* ICMP_PARAMPROB */
struct in_addr ih_gwaddr; /* ICMP_REDIRECT */
struct ih_idseq {
n_short icd_id;
n_short icd_seq;
} ih_idseq;
int ih_void;
/* ICMP_UNREACH_NEEDFRAG -- Path MTU Discovery (RFC1191) */
struct ih_pmtu {
n_short ipm_void;
n_short ipm_nextmtu;
} ih_pmtu;
struct ih_rtradv {
u_char irt_num_addrs;
u_char irt_wpa;
u_int16_t irt_lifetime;
} ih_rtradv;
} icmp_hun;
#define icmp_pptr icmp_hun.ih_pptr
#define icmp_gwaddr icmp_hun.ih_gwaddr
#define icmp_id icmp_hun.ih_idseq.icd_id
#define icmp_seq icmp_hun.ih_idseq.icd_seq
#define icmp_void icmp_hun.ih_void
#define icmp_pmvoid icmp_hun.ih_pmtu.ipm_void
#define icmp_nextmtu icmp_hun.ih_pmtu.ipm_nextmtu
#define icmp_num_addrs icmp_hun.ih_rtradv.irt_num_addrs
#define icmp_wpa icmp_hun.ih_rtradv.irt_wpa
#define icmp_lifetime icmp_hun.ih_rtradv.irt_lifetime
union {
struct id_ts {
n_time its_otime;
n_time its_rtime;
n_time its_ttime;
} id_ts;
struct id_ip {
struct ip idi_ip;
/* options and then 64 bits of data */
} id_ip;
struct icmp_ra_addr id_radv;
u_int32_t id_mask;
char id_data[1];
} icmp_dun;
#define icmp_otime icmp_dun.id_ts.its_otime
#define icmp_rtime icmp_dun.id_ts.its_rtime
#define icmp_ttime icmp_dun.id_ts.its_ttime
#define icmp_ip icmp_dun.id_ip.idi_ip
#define icmp_radv icmp_dun.id_radv
#define icmp_mask icmp_dun.id_mask
#define icmp_data icmp_dun.id_data
};
/*
* Lower bounds on packet lengths for various types.
* For the error advice packets must first insure that the
* packet is large enough to contain the returned ip header.
* Only then can we do the check to see if 64 bits of packet
* data have been returned, since we need to check the returned
* ip header length.
*/
#define ICMP_MINLEN 8 /* abs minimum */
#define ICMP_TSLEN (8 + 3 * sizeof (n_time)) /* timestamp */
#define ICMP_MASKLEN 12 /* address mask */
#define ICMP_ADVLENMIN (8 + sizeof (struct ip) + 8) /* min */
#ifndef _IP_VHL
#define ICMP_ADVLEN(p) (8 + ((p)->icmp_ip.ip_hl << 2) + 8)
/* N.B.: must separately check that ip_hl >= 5 */
#else
#define ICMP_ADVLEN(p) (8 + (IP_VHL_HL((p)->icmp_ip.ip_vhl) << 2) + 8)
/* N.B.: must separately check that header length >= 5 */
#endif
/*
* Definition of type and code field values.
*/
#define ICMP_ECHOREPLY 0 /* echo reply */
#define ICMP_UNREACH 3 /* dest unreachable, codes: */
#define ICMP_UNREACH_NET 0 /* bad net */
#define ICMP_UNREACH_HOST 1 /* bad host */
#define ICMP_UNREACH_PROTOCOL 2 /* bad protocol */
#define ICMP_UNREACH_PORT 3 /* bad port */
#define ICMP_UNREACH_NEEDFRAG 4 /* IP_DF caused drop */
#define ICMP_UNREACH_SRCFAIL 5 /* src route failed */
#define ICMP_UNREACH_NET_UNKNOWN 6 /* unknown net */
#define ICMP_UNREACH_HOST_UNKNOWN 7 /* unknown host */
#define ICMP_UNREACH_ISOLATED 8 /* src host isolated */
#define ICMP_UNREACH_NET_PROHIB 9 /* prohibited access */
#define ICMP_UNREACH_HOST_PROHIB 10 /* ditto */
#define ICMP_UNREACH_TOSNET 11 /* bad tos for net */
#define ICMP_UNREACH_TOSHOST 12 /* bad tos for host */
#define ICMP_UNREACH_FILTER_PROHIB 13 /* admin prohib */
#define ICMP_UNREACH_HOST_PRECEDENCE 14 /* host prec vio. */
#define ICMP_UNREACH_PRECEDENCE_CUTOFF 15 /* prec cutoff */
#define ICMP_SOURCEQUENCH 4 /* packet lost, slow down */
#define ICMP_REDIRECT 5 /* shorter route, codes: */
#define ICMP_REDIRECT_NET 0 /* for network */
#define ICMP_REDIRECT_HOST 1 /* for host */
#define ICMP_REDIRECT_TOSNET 2 /* for tos and net */
#define ICMP_REDIRECT_TOSHOST 3 /* for tos and host */
#define ICMP_ECHO 8 /* echo service */
#define ICMP_ROUTERADVERT 9 /* router advertisement */
#define ICMP_ROUTERSOLICIT 10 /* router solicitation */
#define ICMP_TIMXCEED 11 /* time exceeded, code: */
#define ICMP_TIMXCEED_INTRANS 0 /* ttl==0 in transit */
#define ICMP_TIMXCEED_REASS 1 /* ttl==0 in reass */
#define ICMP_PARAMPROB 12 /* ip header bad */
#define ICMP_PARAMPROB_OPTABSENT 1 /* req. opt. absent */
#define ICMP_TSTAMP 13 /* timestamp request */
#define ICMP_TSTAMPREPLY 14 /* timestamp reply */
#define ICMP_IREQ 15 /* information request */
#define ICMP_IREQREPLY 16 /* information reply */
#define ICMP_MASKREQ 17 /* address mask request */
#define ICMP_MASKREPLY 18 /* address mask reply */
#define ICMP_MAXTYPE 18
#define ICMP_INFOTYPE(type) \
((type) == ICMP_ECHOREPLY || (type) == ICMP_ECHO || \
(type) == ICMP_ROUTERADVERT || (type) == ICMP_ROUTERSOLICIT || \
(type) == ICMP_TSTAMP || (type) == ICMP_TSTAMPREPLY || \
(type) == ICMP_IREQ || (type) == ICMP_IREQREPLY || \
(type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)
#ifdef KERNEL
void icmp_error __P((struct mbuf *, int, int, n_long, struct ifnet *));
void icmp_input __P((struct mbuf *, int));
#endif
#endif

View File

@@ -1,20 +0,0 @@
PATH_TO_TOP = ../../../..
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = tracert
TARGET_INSTALLDIR = system32
TARGET_SDKLIBS = ws2_32.a iphlpapi.a ntdll.a
TARGET_OBJECTS = \
$(TARGET_NAME).o
TARGET_GCCLIBS =
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,80 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS traceroute utility
* FILE: apps/utils/net/tracert/tracert.h
* PURPOSE: trace a packets route through a network
* PROGRAMMERS: Ged Murphy (gedmurphy@gmail.com)
* REVISIONS:
* GM 03/05/05 Created
*/
#define ECHO_REPLY 0
#define DEST_UNREACHABLE 3
#define ECHO_REQUEST 8
#define TTL_EXCEEDED 11
#define ICMP_MIN_SIZE 8
#define ICMP_MAX_SIZE 65535
#define PACKET_SIZE 32
/* we need this for packets which have the 'dont fragment'
* bit set, as they can get quite large otherwise
* (I've seen some reach 182 bytes */
#define MAX_REC_SIZE 200
/* pack the structures */
#pragma pack(1)
/* IPv4 Header, 20 bytes */
typedef struct IPv4Header {
BYTE h_len:4;
BYTE version:4;
BYTE tos;
USHORT length;
USHORT id;
USHORT flag_frag;
BYTE ttl;
BYTE proto;
USHORT checksum;
ULONG source;
ULONG dest;
} IPv4_HEADER, *PIPv4_HEADER;
/* ICMP Header, 8 bytes */
typedef struct ICMPHeader {
BYTE type;
BYTE code;
USHORT checksum;
USHORT id; // not used in time exceeded
USHORT seq; // not used in time exceeded
} ICMP_HEADER, *PICMP_HEADER;
/* ICMP Echo Reply Header, 12 bytes */
typedef struct EchoReplyHeader {
struct ICMPHeader icmpheader;
struct timeval timestamp;
} ECHO_REPLY_HEADER, *PECHO_REPLY_HEADER;
/* ICMP Echo Reply Header, 12 bytes */
typedef struct TTLExceedHeader {
struct ICMPHeader icmpheader;
struct IPv4Header ipheader;
struct ICMPHeader OrigIcmpHeader;
} TTL_EXCEED_HEADER, *PTTL_EXCEED_HEADER;
/* return to normal */
#pragma pack()
/* function definitions */
//BOOL ParseCmdline(int argc, char* argv[]);
INT Driver(void);
INT Setup(INT ttl);
VOID SetupTimingMethod(void);
VOID ResolveHostname(void);
VOID PreparePacket(INT packetSize, INT seqNum);
INT SendPacket(INT datasize);
INT ReceivePacket(INT datasize);
INT DecodeResponse(INT packetSize, INT seqNum);
LONG GetTime(void);
WORD CheckSum(PUSHORT data, UINT size);
VOID Usage(void);

View File

@@ -1,6 +1,5 @@
/* $Id: route.rc 11816 2004-11-26 06:51:47Z arty $ */
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS TCP/IPv4 Traceroute\0"
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS TCP/IPv4 Win32 Traceroute\0"
#define REACTOS_STR_INTERNAL_NAME "tracert\0"
#define REACTOS_STR_ORIGINAL_FILENAME "tracert.exe\0"
#define REACTOS_STR_ORIGINAL_COPYRIGHT "Ged Murphy (gedmurphy@gmail.com)\0"
#include <reactos/version.rc>

View File

@@ -0,0 +1,12 @@
<module name="tracert" type="win32cui" installbase="system32" installname="tracert.exe">
<include base="tracert">.</include>
<define name="__USE_W32API" />
<define name="__USE_W32_SOCKETS" />
<define name="_WIN32_IE">0x600</define>
<define name="_WIN32_WINNT">0x501</define>
<library>kernel32</library>
<library>ws2_32</library>
<library>winmm</library>
<file>tracert.c</file>
<file>tracert.rc</file>
</module>

View File

@@ -1,4 +1,5 @@
<module name="whois" type="win32cui" installbase="system32" installname="whois.exe">
<define name="__USE_W32API" />
<include base="whois">.</include>
<library>kernel32</library>
<library>ws2_32</library>

View File

@@ -1,23 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = nts2w32err
TARGET_SDKLIBS = ntdll.a
TARGET_OBJECTS = $(TARGET_NAME).o
TARGET_CFLAGS = -Wall -Werror
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -12,8 +12,9 @@
* 2004-01-10 Emanuele Aliberti
*
*/
#include <ddk/ntddk.h>
#include <windows.h>
#include <ddk/ntddk.h>
#include <stdio.h>
int main (int argc, char * argv [])

View File

@@ -1,23 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = objdir
TARGET_SDKLIBS = ntdll.a kernel32.a
TARGET_OBJECTS = $(TARGET_NAME).o
TARGET_CFLAGS = -Wall -Werror
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,23 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = partinfo
TARGET_CFLAGS = -D__USE_W32API -Wall -Werror -Wno-format
TARGET_SDKLIBS = ntdll.a kernel32.a
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,21 +0,0 @@
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = patchnv4
TARGET_SDKLIBS =
TARGET_OBJECTS = patchnv4.o
TARGET_CFLAGS += -Wall -Werror
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,20 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = pesum
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,37 +0,0 @@
#CC = gcc
#CFLAGS := -g -Wall -fomit-frame-pointer -O2
#LDFLAGS := -dynamic
#-lncurses
#OBJS = main.o terminal.o
#
#loader: $(OBJS)
# $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^
#clean:
# @echo deleting all intermediate files
# @rm $(OBJS) loader -f
# make
PATH_TO_TOP = ../../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = loader
TARGET_CFLAGS = -g -fomit-frame-pointer
TARGET_SDKLIBS =
TARGET_OBJECTS = main.o terminal.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View File

@@ -1,17 +0,0 @@
# $Id$
all:
$(MAKE) -C loader
$(MAKE) -C module
implib:
$(MAKE) -C loader implib
$(MAKE) -C module implib
clean:
$(MAKE) -C loader clean
$(MAKE) -C module clean
install:
$(MAKE) -C loader install
$(MAKE) -C module install

View File

@@ -1,35 +0,0 @@
PATH_TO_TOP = ../../../..
TARGET_TYPE = driver
TARGET_NAME = pice
TARGET_CFLAGS := -g -I../../../../ntoskrnl/include -DDEBUG
TARGET_SDK_LIBS :=
TARGET_OBJECTS = \
hardware.o \
dblflt.o \
debug.o \
disassembler.o \
gpfault.o \
bp.o \
hercules.o \
hooks.o \
init.o \
output.o \
parse.o \
patch.o \
pgflt.o \
privateice.o \
serial.o \
shell.o \
symbols.o \
syscall.o \
trace.o \
vga.o \
vga_utils.o \
utils.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk

View File

@@ -167,7 +167,7 @@ BOOLEAN ListUserModules( PPEB peb )
{
PLIST_ENTRY UserModuleListHead;
PLIST_ENTRY Entry;
PLDR_MODULE Module;
PLDR_DATA_TABLE_ENTRY Module;
PPEB_LDR_DATA Ldr;
ENTER_FUNC();
@@ -179,7 +179,7 @@ BOOLEAN ListUserModules( PPEB peb )
Entry = UserModuleListHead->Flink;
while (Entry != UserModuleListHead)
{
Module = CONTAINING_RECORD(Entry, LDR_MODULE, InLoadOrderModuleList);
Module = CONTAINING_RECORD(Entry, LDR_DATA_TABLE_ENTRY, InLoadOrderModuleList);
//DbgPrint("Module: %x, BaseAddress: %x\n", Module, Module->BaseAddress);
DPRINT((0,"FullName: %S, BaseName: %S, Length: %ld, EntryPoint: %x, BaseAddress: %x\n", Module->FullDllName.Buffer,

View File

@@ -1,23 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = pnpdump
TARGET_CFLAGS = -D__USE_W32API -Wall -Werror
TARGET_SDKLIBS = ntdll.a kernel32.a
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,23 +0,0 @@
#
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = ps
TARGET_CFLAGS = -D__USE_W32API -DANONYMOUSUNIONS -Werror -Wall
TARGET_SDKLIBS = ntdll.a kernel32.a user32.a
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -23,8 +23,8 @@
*/
#include <windows.h>
/* NOTE: W32API ddk/ntapi.h header has wrong definition of SYSTEM_PROCESSES. */
#include <ntos/types.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
typedef struct _SYSTEM_THREADS
{
@@ -213,7 +213,7 @@ int main()
unsigned char minute, minute1, tmin, tmin1;
unsigned char seconds, seconds1, tsec, tsec1;
int ti;
unsigned int ti;
LARGE_INTEGER ptime;
ptime.QuadPart = CurrentProcess->KernelTime.QuadPart;

View File

@@ -0,0 +1,8 @@
<module name="ps" type="win32cui" installbase="bin" installname="ps.exe">
<include base="ps">.</include>
<define name="__USE_W32API" />
<library>user32</library>
<library>kernel32</library>
<library>ntdll</library>
<file>ps.c</file>
</module>

View File

@@ -36,7 +36,7 @@ FillSmallProc(void *Context, PPERF_INFO PerfInfo, unsigned Reps)
{
#define SMALL_SIZE 16
unsigned Rep;
unsigned x, y;
int x, y;
x = 0;
y = 0;

View File

@@ -60,7 +60,7 @@ void
LinesHorizontalProc(void *Context, PPERF_INFO PerfInfo, unsigned Reps)
{
unsigned Rep;
unsigned y;
int y;
HDC Dc;
for (Rep = 0; Rep < Reps; )
@@ -79,7 +79,7 @@ void
LinesVerticalProc(void *Context, PPERF_INFO PerfInfo, unsigned Reps)
{
unsigned Rep;
unsigned x;
int x;
HDC Dc;
for (Rep = 0; Rep < Reps; )

View File

@@ -28,8 +28,8 @@ typedef struct tagPERF_INFO
COLORREF BackgroundColor;
HDC ForegroundDc;
HDC BackgroundDc;
ULONG WndWidth;
ULONG WndHeight;
INT WndWidth;
INT WndHeight;
} PERF_INFO, *PPERF_INFO;
typedef unsigned (*INITTESTPROC)(void **Context, PPERF_INFO PerfInfo, unsigned Reps);

View File

@@ -1,26 +0,0 @@
#
# $Id: makefile,v 1.0
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_INSTALLDIR = system32
TARGET_NAME = sc
TARGET_CFLAGS = -D__USE_W32API -DDBG -Werror -Wall
TARGET_SDKLIBS = kernel32.a ntdll.a advapi32.a
TARGET_OBJECTS = command.o config.o main.o query.o setup.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -89,7 +89,7 @@ typedef NTSTATUS NTAPI (*PSYSMOD_ENUM_ROUTINE)
typedef NTSTATUS NTAPI (*PPROCMOD_ENUM_ROUTINE)
(
IN HANDLE ProcessHandle,
IN PLDR_MODULE CurrentModule,
IN PLDR_DATA_TABLE_ENTRY CurrentModule,
IN OUT PVOID CallbackContext
);

View File

@@ -1,25 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_INSTALLDIR = system32
TARGET_NAME = shutdown
TARGET_SDKLIBS = kernel32.a user32.a
TARGET_OBJECTS = shutdown.o
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API -D_WIN32_WINNT=0x0501
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,23 +0,0 @@
# $Id$
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = stats
TARGET_SDKLIBS = kernel32.a
TARGET_OBJECTS = $(TARGET_NAME).o
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,19 +0,0 @@
# $Id$
PATH_TO_TOP = ../../../..
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = themedump
TARGET_SDKLIBS = kernel32.a uxtheme.a
TARGET_OBJECTS = $(TARGET_NAME).o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,21 +0,0 @@
PATH_TO_TOP = ../../..
TARGET_NORC = yes
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = tickcount
TARGET_SDKLIBS = kernel32.a
TARGET_OBJECTS = tickcount.o
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,23 +0,0 @@
PATH_TO_TOP = ../../..
TARGET_TYPE = program
TARGET_APPTYPE = console
TARGET_NAME = winetest
TARGET_SDKLIBS = comctl32.a comdlg32.a ws2_32.a
TARGET_OBJECTS = \
main.o \
send.o \
util.o \
gui.o
TARGET_CFLAGS = -Wall -Werror -D__USE_W32API
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
# EOF

View File

@@ -1,6 +1,7 @@
<property name="BASEADDRESS_REGTESTS" value="0x07000000" />
<property name="BASEADDRESS_NOTIFYHOOK" value="0x08000000" />
<property name="BASEADDRESS_DEVENUM" value="0x35680000" />
<property name="BASEADDRESS_UXTHEME" value="0x5AD70000" />
<property name="BASEADDRESS_DINPUT" value="0x5F580000" />
<property name="BASEADDRESS_TIMEDATE" value="0x64DA0000" />
<property name="BASEADDRESS_SYSDM" value="0x64DD0000" />
@@ -36,6 +37,7 @@
<property name="BASEADDRESS_LZ32" value="0x73d80000" />
<property name="BASEADDRESS_USERENV" value="0x74850000" />
<property name="BASEADDRESS_SYSSETUP" value="0x74a30000" />
<property name="BASEADDRESS_SAMSRV" value="0x74f30000" />
<property name="BASEADDRESS_SAMLIB" value="0x750C0000" />
<property name="BASEADDRESS_CABINET" value="0x75120000" />
<property name="BASEADDRESS_MSGINA" value="0x75970000" />
@@ -48,7 +50,9 @@
<property name="BASEADDRESS_RICHED32" value="0x76340000" />
<property name="BASEADDRESS_RICHED20" value="0x76360000" />
<property name="BASEADDRESS_TWAIN_32" value="0x76380000" />
<property name="BASEADDRESS_LSASRV" value="0x76540000" />
<property name="BASEADDRESS_MIDIMAP" value="0x76600000" />
<property name="BASEADDRESS_WAVEMAP" value="0x76610000" />
<property name="BASEADDRESS_MPR" value="0x76620000" />
<property name="BASEADDRESS_SETUPAPI" value="0x76660000" />
<property name="BASEADDRESS_GDIPLUS" value="0x76a00000" />
@@ -58,6 +62,7 @@
<property name="BASEADDRESS_IPHLPAPI" value="0x77300000" />
<property name="BASEADDRESS_MMDRV" value="0x77500000" />
<property name="BASEADDRESS_CRTDLL" value="0x77630000" />
<property name="BASEADDRESS_CFGMGR32" value="0x77700000" />
<property name="BASEADDRESS_MSAFD" value="0x777a0000" />
<property name="BASEADDRESS_MSI" value="0x777b0000" />
<property name="BASEADDRESS_SNMPAPI" value="0x777c0000" />
@@ -94,7 +99,6 @@
<property name="BASEADDRESS_OLEDLG" value="0x74d00000" />
<property name="BASEADDRESS_COMMCTRL" value="0x75e60000" />
<property name="BASEADDRESS_D3D8THK" value="0x76340000" />
<property name="BASEADDRESS_LSASRV" value="0x76540000" />
<property name="BASEADDRESS_ODBC32" value="0x76660000" />
<property name="BASEADDRESS_MSACM32" value="0x77400000" />
<property name="BASEADDRESS_PACKET" value="0x77780000" />

View File

@@ -1,54 +0,0 @@
#
# FreeLoader
# Copyright (C) 1999, 2000, 2001 Brian Palmer <brianp@sginet.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
PATH_TO_TOP = ../..
include rules.mak
include $(PATH_TO_TOP)/config
all:
$(MAKE) -C tools
$(MAKE) -C bootsect
$(MAKE) -C freeldr
$(MAKE) -C install
$(MAKE) -C fdebug
test:
clean:
$(MAKE) -C bootsect clean
$(MAKE) -C freeldr clean
$(MAKE) -C install clean
$(MAKE) -C fdebug clean
$(MAKE) -C tools clean
bootcd:
ifeq ($(ARCH),i386)
$(CP) bootsect/isoboot.bin ${BOOTCD_DIR}/../isoboot.bin
$(CP) bootsect/dosmbr.bin ${BOOTCD_DIR}/loader/dosmbr.bin
$(CP) bootsect/ext2.bin ${BOOTCD_DIR}/loader/ext2.bin
$(CP) bootsect/fat.bin ${BOOTCD_DIR}/loader/fat.bin
$(CP) bootsect/fat32.bin ${BOOTCD_DIR}/loader/fat32.bin
$(CP) bootsect/isoboot.bin ${BOOTCD_DIR}/loader/isoboot.bin
$(CP) freeldr/freeldr.sys ${BOOTCD_DIR}/loader/freeldr.sys
$(CP) freeldr/setupldr.sys ${BOOTCD_DIR}/loader/setupldr.sys
endif
.PHONY : clean

View File

@@ -1,52 +0,0 @@
all: $(BIN2C) dosmbr.bin fat.bin fat32.bin isoboot.bin ext2.bin
$(BIN2C) :
@$(MAKE) --no-print-directory -C $(FREELDR_TOOLS_PATH)
dosmbr.bin : dosmbr.asm
@echo ===================================================== Assembling dosmbr
@$(NASM_CMD) $(NFLAGS) -o dosmbr.bin -f bin dosmbr.asm
fat.bin : fat.asm $(BIN2C)
@echo ===================================================== Assembling fat
@$(NASM_CMD) $(NFLAGS) -o fat.bin -f bin fat.asm
@$(BIN2C) fat.bin fat.h fat_data
fat32.bin : fat32.asm $(BIN2C)
@echo ===================================================== Assembling fat32
@$(NASM_CMD) $(NFLAGS) -o fat32.bin -f bin fat32.asm
@$(BIN2C) fat32.bin fat32.h fat32_data
isoboot.bin : isoboot.asm
@echo ===================================================== Assembling isoboot
@$(NASM_CMD) $(NFLAGS) -o isoboot.bin -f bin isoboot.asm
ext2.bin : ext2.asm
@echo ===================================================== Assembling ext2
@$(NASM_CMD) $(NFLAGS) -o ext2.bin -f bin ext2.asm
@$(BIN2C) ext2.bin ext2.h ext2_data
.PHONY : bootcd
bootcd: bootcd_dirs isoboot.bin
$(CP) isoboot.bin $(BOOTCD_DIR)
$(CP) dosmbr.bin $(BOOTCD_DIR)/disk/loader
$(CP) ext2.bin $(BOOTCD_DIR)/disk/loader
$(CP) fat.bin $(BOOTCD_DIR)/disk/loader
$(CP) fat32.bin $(BOOTCD_DIR)/disk/loader
$(CP) isoboot.bin $(BOOTCD_DIR)/disk/loader
.PHONY : bootcd_dirs
bootcd_dirs:
$(MKDIR) $(BOOTCD_DIR)
$(MKDIR) $(BOOTCD_DIR)/disk
$(MKDIR) $(BOOTCD_DIR)/disk/reactos
$(MKDIR) $(BOOTCD_DIR)/disk/install
$(MKDIR) $(BOOTCD_DIR)/disk/bootdisk
$(MKDIR) $(BOOTCD_DIR)/disk/loader
clean:
@-$(RM) *.bin
@-$(RM) *.h
@echo Clean ALL done.

View File

@@ -1,35 +0,0 @@
TOOLS=$(PATH_TO_TOP)/tools
SECTIONS= \
--only-section=.text \
--only-section=.data \
--only-section=.bss
LDSECT= -Ttext 0xe00000 -Tdata 0xe10000
OBJS=ofwboot.o freeldr.o
CFLAGS=-mbig -meabi -fPIC -fno-builtin -I../freeldr/include
FREELDR=../freeldr/freeldr.sys
.SUFFIXES: .c .o
all: ofwldr
hack-coff$(EXEEXT):
$(HOST_CC) -I../freeldr/include hack-coff.c -o $@
ofwboot.o: ofwboot.s
$(NASM_CMD) $< -c -o $@
$(FREELDR):
$(MAKE) -C ../freeldr
freeldr.o: $(FREELDR)
$(TOOLS)/ppc-le2be $< freeldr.tmp
$(OBJCOPY) -I binary -O elf32-powerpc -B powerpc:common freeldr.tmp $@
rm freeldr.tmp
ofwldr: $(OBJS)
$(LD) -melf32ppc --no-omagic $(LDSECT) $(OBJS) -g -o $@.elf
$(OBJCOPY) $(SECTIONS) -O aixcoff-rs6000 $@.elf $@
$(TOOLS)/hack-coff $@
clean:
rm -rf ofwldr *.o *.elf *.tmp

View File

@@ -1,52 +0,0 @@
#
# FreeLoader
# Copyright (C) 1999 - 2003 Brian Palmer <brianp@sginet.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
PATH_TO_TOP = ../../..
include ../rules.mak
FLAGS = -Wall
OBJS = rs232.o fdebug.o fdebug.res
.PHONY : clean
all: fdebug.exe
fdebug.exe: $(OBJS)
@echo freeldr: LINKING fdebug
$(CC) $(FLAGS) -o fdebug.exe $(OBJS) -lgdi32 -lcomdlg32 -Wl,--subsystem,windows
fdebug.res: fdebug.rc resource.h
@echo freeldr: Compiling $*
$(RC) -o fdebug.res fdebug.rc -O coff
fdebug.o: fdebug.c rs232.h
@echo freeldr: Compiling $*
$(CC) $(FLAGS) -o fdebug.o -c fdebug.c
rs232.o: rs232.c rs232.h
@echo freeldr: Compiling $*
$(CC) $(FLAGS) -o rs232.o -c rs232.c
clean:
@-$(RM) *.o
@-$(RM) *.res
@-$(RM) *.exe
@echo freeldr: Clean ALL done.

View File

@@ -363,7 +363,7 @@ DetectPnpBios(FRLDRHKEY SystemKey, ULONG *BusNumber)
FullResourceDescriptor->PartialResourceList.PartialDescriptors[0].ShareDisposition =
CmResourceShareUndetermined;
Ptr = (char *)(((PVOID)&FullResourceDescriptor->PartialResourceList.PartialDescriptors[0]) +
Ptr = (char *)(((ULONG_PTR)&FullResourceDescriptor->PartialResourceList.PartialDescriptors[0]) +
sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR));
/* Set instalation check data */
@@ -460,7 +460,7 @@ SetHarddiskConfigurationData(FRLDRHKEY DiskKey,
sizeof(CM_DISK_GEOMETRY_DEVICE_DATA);
/* Get pointer to geometry data */
DiskGeometry = ((PVOID)FullResourceDescriptor) + sizeof(CM_FULL_RESOURCE_DESCRIPTOR);
DiskGeometry = (PVOID)(((ULONG_PTR)FullResourceDescriptor) + sizeof(CM_FULL_RESOURCE_DESCRIPTOR));
/* Get the disk geometry */
ExtGeometry.Size = sizeof(EXTENDED_GEOMETRY);
@@ -648,7 +648,7 @@ DetectBiosDisks(FRLDRHKEY SystemKey,
sizeof(CM_INT13_DRIVE_PARAMETER) * DiskCount;
/* Get harddisk Int13 geometry data */
Int13Drives = ((PVOID)FullResourceDescriptor) + sizeof(CM_FULL_RESOURCE_DESCRIPTOR);
Int13Drives = (PVOID)(((ULONG_PTR)FullResourceDescriptor) + sizeof(CM_FULL_RESOURCE_DESCRIPTOR));
for (i = 0; i < DiskCount; i++)
{
if (MachDiskGetDriveGeometry(0x80 + i, &Geometry))
@@ -744,7 +744,7 @@ GetInt1eTable(VOID)
PUSHORT SegPtr = (PUSHORT)0x7A;
PUSHORT OfsPtr = (PUSHORT)0x78;
return (PVOID)(((ULONG)(*SegPtr)) << 4) + (ULONG)(*OfsPtr);
return (PVOID)((ULONG_PTR)(((ULONG)(*SegPtr)) << 4) + (ULONG)(*OfsPtr));
}
@@ -814,7 +814,7 @@ DetectBiosFloppyPeripheral(FRLDRHKEY ControllerKey)
PartialDescriptor->ShareDisposition = CmResourceShareUndetermined;
PartialDescriptor->u.DeviceSpecificData.DataSize = sizeof(CM_FLOPPY_DEVICE_DATA);
FloppyData = ((PVOID)FullResourceDescriptor) + sizeof(CM_FULL_RESOURCE_DESCRIPTOR);
FloppyData = (PVOID)(((ULONG_PTR)FullResourceDescriptor) + sizeof(CM_FULL_RESOURCE_DESCRIPTOR));
FloppyData->Version = 2;
FloppyData->Revision = 0;
FloppyData->MaxDensity = MaxDensity[FloppyType];
@@ -1691,7 +1691,7 @@ DetectKeyboardPeripheral(FRLDRHKEY ControllerKey)
PartialDescriptor->ShareDisposition = CmResourceShareUndetermined;
PartialDescriptor->u.DeviceSpecificData.DataSize = sizeof(CM_KEYBOARD_DEVICE_DATA);
KeyboardData = ((PVOID)FullResourceDescriptor) + sizeof(CM_FULL_RESOURCE_DESCRIPTOR);
KeyboardData = (PVOID)(((ULONG_PTR)FullResourceDescriptor) + sizeof(CM_FULL_RESOURCE_DESCRIPTOR));
KeyboardData->Version = 0;
KeyboardData->Revision = 0;
KeyboardData->Type = 4;

View File

@@ -208,7 +208,7 @@ DetectPciIrqRoutingTable(FRLDRHKEY BusKey)
PartialDescriptor->ShareDisposition = CmResourceShareUndetermined;
PartialDescriptor->u.DeviceSpecificData.DataSize = Table->Size;
memcpy(((PVOID)FullResourceDescriptor) + sizeof(CM_FULL_RESOURCE_DESCRIPTOR),
memcpy((PVOID)((ULONG_PTR)FullResourceDescriptor + sizeof(CM_FULL_RESOURCE_DESCRIPTOR)),
Table,
Table->Size);

View File

@@ -52,10 +52,10 @@
// Boot information structure
//
EXTERN(_multiboot_memory_map_descriptor_size)
EXTERN(_reactos_memory_map_descriptor_size)
.long 0
EXTERN(_multiboot_memory_map)
EXTERN(_reactos_memory_map)
.rept (32 * /*sizeof(memory_map_t)*/24)
.byte 0
.endr
@@ -72,7 +72,7 @@ _kernel_pagetable:
.fill 2*4096, 1, 0
_hyperspace_pagetable:
.fill 4096, 1, 0
.fill 2*4096, 1, 0
_apic_pagetable:
.fill 4096, 1, 0

View File

@@ -258,7 +258,7 @@ static BOOL PcDiskReadLogicalSectorsCHS(ULONG DriveNumber, ULONGLONG SectorNumbe
// of checking the sector read count we will rely solely
// on the carry flag being set on error
Buffer += (NumberOfSectorsToRead * DriveGeometry.BytesPerSector);
Buffer = (PVOID)((ULONG_PTR)Buffer + (NumberOfSectorsToRead * DriveGeometry.BytesPerSector));
SectorCount -= NumberOfSectorsToRead;
SectorNumber += NumberOfSectorsToRead;
}

View File

@@ -387,7 +387,7 @@ XboxDiskPolledRead(ULONG CommandPort,
if (Junk == FALSE)
{
IDEReadBlock(CommandPort, Buffer, IDE_SECTOR_BUF_SZ);
Buffer += IDE_SECTOR_BUF_SZ;
Buffer = (PVOID)((ULONG_PTR)Buffer + IDE_SECTOR_BUF_SZ);
}
else
{

View File

@@ -164,14 +164,14 @@ BOOL CacheReadDiskSectors(ULONG DiskNumber, ULONG StartSector, ULONG SectorCount
// Copy the portion requested into the buffer
//
RtlCopyMemory(Buffer,
(CacheBlock->BlockData + (SectorOffsetInStartBlock * CacheManagerDrive.BytesPerSector)),
(PVOID)((ULONG_PTR)CacheBlock->BlockData + (SectorOffsetInStartBlock * CacheManagerDrive.BytesPerSector)),
(CopyLengthInStartBlock * CacheManagerDrive.BytesPerSector));
DbgPrint((DPRINT_CACHE, "1 - RtlCopyMemory(0x%x, 0x%x, %d)\n", Buffer, (CacheBlock->BlockData + (SectorOffsetInStartBlock * CacheManagerDrive.BytesPerSector)), (CopyLengthInStartBlock * CacheManagerDrive.BytesPerSector)));
//
// Update the buffer address
//
Buffer += (CopyLengthInStartBlock * CacheManagerDrive.BytesPerSector);
Buffer = (PVOID)((ULONG_PTR)Buffer + (CopyLengthInStartBlock * CacheManagerDrive.BytesPerSector));
//
// Update the block count
@@ -204,7 +204,7 @@ BOOL CacheReadDiskSectors(ULONG DiskNumber, ULONG StartSector, ULONG SectorCount
//
// Update the buffer address
//
Buffer += CacheManagerDrive.BlockSize * CacheManagerDrive.BytesPerSector;
Buffer = (PVOID)((ULONG_PTR)Buffer + (CacheManagerDrive.BlockSize * CacheManagerDrive.BytesPerSector));
//
// Update the block count
@@ -237,7 +237,7 @@ BOOL CacheReadDiskSectors(ULONG DiskNumber, ULONG StartSector, ULONG SectorCount
//
// Update the buffer address
//
Buffer += SectorOffsetInEndBlock * CacheManagerDrive.BytesPerSector;
Buffer = (PVOID)((ULONG_PTR)Buffer + (SectorOffsetInEndBlock * CacheManagerDrive.BytesPerSector));
//
// Update the block count

View File

@@ -74,6 +74,7 @@
<directory name="reactos">
<file>arcname.c</file>
<file>binhive.c</file>
<file>loader.c</file>
<file>reactos.c</file>
<file>registry.c</file>
</directory>
@@ -102,7 +103,6 @@
</directory>
<file>freeldr.c</file>
<file>debug.c</file>
<file>multiboot.c</file>
<file>version.c</file>
<file>cmdline.c</file>
<file>machine.c</file>

View File

@@ -192,7 +192,7 @@ FILE* Ext2OpenFile(PCHAR FileName)
*/
BOOL Ext2LookupFile(PCHAR FileName, PEXT2_FILE_INFO Ext2FileInfoPointer)
{
int i;
UINT i;
ULONG NumberOfPathParts;
CHAR PathPart[261];
PVOID DirectoryBuffer;
@@ -298,7 +298,7 @@ BOOL Ext2SearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectorySize
for (CurrentOffset=0; CurrentOffset<DirectorySize; )
{
CurrentDirectoryEntry = (PEXT2_DIR_ENTRY)(DirectoryBuffer + CurrentOffset);
CurrentDirectoryEntry = (PEXT2_DIR_ENTRY)((ULONG_PTR)DirectoryBuffer + CurrentOffset);
if (CurrentDirectoryEntry->rec_len == 0)
{
@@ -401,7 +401,7 @@ BOOL Ext2ReadFile(FILE *FileHandle, ULONGLONG BytesToRead, ULONGLONG* BytesRead,
DbgPrint((DPRINT_FILESYSTEM, "Reading fast symbolic link data\n"));
// Copy the data from the link
RtlCopyMemory(Buffer, (PVOID)(Ext2FileInfo->Inode.i_block) + Ext2FileInfo->FilePointer, BytesToRead);
RtlCopyMemory(Buffer, (PVOID)((ULONG_PTR)Ext2FileInfo->FilePointer + Ext2FileInfo->Inode.i_block), BytesToRead);
if (BytesRead != NULL)
{
@@ -466,7 +466,7 @@ BOOL Ext2ReadFile(FILE *FileHandle, ULONGLONG BytesToRead, ULONGLONG* BytesRead,
}
BytesToRead -= LengthInBlock;
Ext2FileInfo->FilePointer += LengthInBlock;
Buffer += LengthInBlock;
Buffer = (PVOID)((ULONG_PTR)Buffer + LengthInBlock);
}
//
@@ -497,7 +497,7 @@ BOOL Ext2ReadFile(FILE *FileHandle, ULONGLONG BytesToRead, ULONGLONG* BytesRead,
}
BytesToRead -= Ext2BlockSizeInBytes;
Ext2FileInfo->FilePointer += Ext2BlockSizeInBytes;
Buffer += Ext2BlockSizeInBytes;
Buffer = (PVOID)((ULONG_PTR)Buffer + Ext2BlockSizeInBytes);
NumberOfBlocks--;
}
}
@@ -523,7 +523,7 @@ BOOL Ext2ReadFile(FILE *FileHandle, ULONGLONG BytesToRead, ULONGLONG* BytesRead,
}
Ext2FileInfo->FilePointer += BytesToRead;
BytesToRead -= BytesToRead;
Buffer += BytesToRead;
Buffer = (PVOID)((ULONG_PTR)Buffer + (ULONG_PTR)BytesToRead);
}
return TRUE;
@@ -878,7 +878,7 @@ BOOL Ext2ReadPartialBlock(ULONG BlockNumber, ULONG StartingOffset, ULONG Length,
return FALSE;
}
memcpy(Buffer, ((PVOID)FILESYSBUFFER + StartingOffset), Length);
memcpy(Buffer, (PVOID)((ULONG_PTR)FILESYSBUFFER + StartingOffset), Length);
return TRUE;
}

View File

@@ -689,7 +689,7 @@ BOOL FatXSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG DirectorySize
*/
BOOL FatLookupFile(PCHAR FileName, PFAT_FILE_INFO FatFileInfoPointer)
{
int i;
UINT i;
ULONG NumberOfPathParts;
CHAR PathPart[261];
PVOID DirectoryBuffer;
@@ -827,9 +827,9 @@ void FatParseShortFileName(PCHAR Buffer, PDIRENTRY DirEntry)
BOOL FatGetFatEntry(ULONG Cluster, ULONG* ClusterPointer)
{
ULONG fat = 0;
int FatOffset;
int ThisFatSecNum;
int ThisFatEntOffset;
UINT FatOffset;
UINT ThisFatSecNum;
UINT ThisFatEntOffset;
DbgPrint((DPRINT_FILESYSTEM, "FatGetFatEntry() Retrieving FAT entry for cluster %d.\n", Cluster));
@@ -860,7 +860,7 @@ BOOL FatGetFatEntry(ULONG Cluster, ULONG* ClusterPointer)
}
}
fat = *((USHORT *) ((PVOID)FILESYSBUFFER + ThisFatEntOffset));
fat = *((USHORT *) ((ULONG_PTR)FILESYSBUFFER + ThisFatEntOffset));
if (Cluster & 0x0001)
fat = fat >> 4; /* Cluster number is ODD */
else
@@ -880,7 +880,7 @@ BOOL FatGetFatEntry(ULONG Cluster, ULONG* ClusterPointer)
return FALSE;
}
fat = *((USHORT *) ((PVOID)FILESYSBUFFER + ThisFatEntOffset));
fat = *((USHORT *) ((ULONG_PTR)FILESYSBUFFER + ThisFatEntOffset));
break;
@@ -897,7 +897,7 @@ BOOL FatGetFatEntry(ULONG Cluster, ULONG* ClusterPointer)
}
// Get the fat entry
fat = (*((ULONG *) ((PVOID)FILESYSBUFFER + ThisFatEntOffset))) & 0x0FFFFFFF;
fat = (*((ULONG *) ((ULONG_PTR)FILESYSBUFFER + ThisFatEntOffset))) & 0x0FFFFFFF;
break;
@@ -1091,7 +1091,7 @@ BOOL FatReadClusterChain(ULONG StartClusterNumber, ULONG NumberOfClusters, PVOID
//
// Increment buffer address by cluster size
//
Buffer += SectorsPerCluster * BytesPerSector;
Buffer = (PVOID)((ULONG_PTR)Buffer + (SectorsPerCluster * BytesPerSector));
//
// Get next cluster
@@ -1132,7 +1132,7 @@ BOOL FatReadPartialCluster(ULONG ClusterNumber, ULONG StartingOffset, ULONG Leng
return FALSE;
}
memcpy(Buffer, ((PVOID)FILESYSBUFFER + StartingOffset), Length);
memcpy(Buffer, (PVOID)((ULONG_PTR)FILESYSBUFFER + StartingOffset), Length);
return TRUE;
}
@@ -1234,7 +1234,7 @@ BOOL FatReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Bu
}
BytesToRead -= LengthInCluster;
FatFileInfo->FilePointer += LengthInCluster;
Buffer += LengthInCluster;
Buffer = (PVOID)((ULONG_PTR)Buffer + LengthInCluster);
}
//
@@ -1265,7 +1265,7 @@ BOOL FatReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Bu
}
BytesToRead -= (NumberOfClusters * BytesPerCluster);
FatFileInfo->FilePointer += (NumberOfClusters * BytesPerCluster);
Buffer += (NumberOfClusters * BytesPerCluster);
Buffer = (PVOID)((ULONG_PTR)Buffer + (NumberOfClusters * BytesPerCluster));
}
}
@@ -1290,7 +1290,7 @@ BOOL FatReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Bu
}
FatFileInfo->FilePointer += BytesToRead;
BytesToRead -= BytesToRead;
Buffer += BytesToRead;
Buffer = (PVOID)((ULONG_PTR)Buffer + BytesToRead);
}
return TRUE;

View File

@@ -339,10 +339,10 @@ BOOL FsIsEndOfFile(PFILE FileHandle)
*/
ULONG FsGetNumPathParts(PCHAR Path)
{
ULONG i;
size_t i;
ULONG num;
for (i=0,num=0; i<(int)strlen(Path); i++)
for (i=0,num=0; i<strlen(Path); i++)
{
if ((Path[i] == '\\') || (Path[i] == '/'))
{
@@ -364,12 +364,12 @@ ULONG FsGetNumPathParts(PCHAR Path)
*/
VOID FsGetFirstNameFromPath(PCHAR Buffer, PCHAR Path)
{
ULONG i;
size_t i;
// Copy all the characters up to the end of the
// string or until we hit a '\' character
// and put them in Buffer
for (i=0; i<(int)strlen(Path); i++)
for (i=0; i<strlen(Path); i++)
{
if ((Path[i] == '\\') || (Path[i] == '/'))
{

View File

@@ -81,12 +81,12 @@ static BOOL IsoSearchDirectoryBufferForFile(PVOID DirectoryBuffer, ULONG Directo
while (TRUE)
{
Offset = Offset + Record->RecordLength;
Record = (PDIR_RECORD)(DirectoryBuffer + Offset);
Record = (PDIR_RECORD)((ULONG_PTR)DirectoryBuffer + Offset);
if (Record->RecordLength == 0)
{
Offset = ROUND_UP(Offset, SECTORSIZE);
Record = (PDIR_RECORD)(DirectoryBuffer + Offset);
Record = (PDIR_RECORD)((ULONG_PTR)DirectoryBuffer + Offset);
}
if (Offset >= DirectoryLength)
@@ -159,7 +159,7 @@ static PVOID IsoBufferDirectory(ULONG DirectoryStartSector, ULONG DirectoryLengt
//
// Now read directory contents into DirectoryBuffer
//
for (i = 0, Ptr = DirectoryBuffer; i < SectorCount; i++, Ptr += SECTORSIZE)
for (i = 0, Ptr = DirectoryBuffer; i < SectorCount; i++, Ptr = (PVOID)((ULONG_PTR)Ptr + SECTORSIZE))
{
if (!MachDiskReadLogicalSectors(IsoDriveNumber, DirectoryStartSector + i, 1, (PVOID)DISKREADBUFFER))
{
@@ -182,7 +182,7 @@ static PVOID IsoBufferDirectory(ULONG DirectoryStartSector, ULONG DirectoryLengt
*/
static BOOL IsoLookupFile(PCHAR FileName, PISO_FILE_INFO IsoFileInfoPointer)
{
int i;
UINT i;
ULONG NumberOfPathParts;
CHAR PathPart[261];
PVOID DirectoryBuffer;
@@ -377,14 +377,14 @@ BOOL IsoReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Bu
{
return FALSE;
}
RtlCopyMemory(Buffer, ((PVOID)DISKREADBUFFER + OffsetInSector), LengthInSector);
RtlCopyMemory(Buffer, (PVOID)((ULONG_PTR)DISKREADBUFFER + OffsetInSector), LengthInSector);
if (BytesRead != NULL)
{
*BytesRead += LengthInSector;
}
BytesToRead -= LengthInSector;
IsoFileInfo->FilePointer += LengthInSector;
Buffer += LengthInSector;
Buffer = (PVOID)((ULONG_PTR)Buffer + LengthInSector);
}
//
@@ -417,7 +417,7 @@ BOOL IsoReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Bu
}
BytesToRead -= SECTORSIZE;
IsoFileInfo->FilePointer += SECTORSIZE;
Buffer += SECTORSIZE;
Buffer = (PVOID)((ULONG_PTR)Buffer + SECTORSIZE);
}
}
@@ -442,7 +442,7 @@ BOOL IsoReadFile(FILE *FileHandle, ULONG BytesToRead, ULONG* BytesRead, PVOID Bu
}
IsoFileInfo->FilePointer += BytesToRead;
BytesToRead -= BytesToRead;
Buffer += BytesToRead;
Buffer = (PVOID)((ULONG_PTR)Buffer + BytesToRead);
}
DbgPrint((DPRINT_FILESYSTEM, "IsoReadFile() done\n"));

View File

@@ -1,6 +1,6 @@
/*
* FreeLoader NTFS support
* Copyright (C) 2004 Filip Navara <xnavara@volny.cz>
* Copyright (C) 2004 Filip Navara <xnavara@volny.cz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -168,7 +168,7 @@ BOOL NtfsDiskRead(ULONGLONG Offset, ULONGLONG Length, PCHAR Buffer)
}
/* II. Read all complete 64-sector blocks. */
while (Length >= 64 * NtfsBootSector->BytesPerSector)
while (Length >= (ULONGLONG)64 * (ULONGLONG)NtfsBootSector->BytesPerSector)
{
if (!MachDiskReadLogicalSectors(NtfsDriveNumber, NtfsSectorOfClusterZero + (Offset / NtfsBootSector->BytesPerSector), 64, (PCHAR)DISKREADBUFFER))
return FALSE;

View File

@@ -1,6 +1,6 @@
/*
* FreeLoader NTFS support
* Copyright (C) 2004 Filip Navara <xnavara@volny.cz>
* Copyright (C) 2004 Filip Navara <xnavara@volny.cz>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by

View File

@@ -28,10 +28,6 @@
#define RMODE_CS 0x18 /* RMode code selector, base 0 limit 64k */
#define RMODE_DS 0x20 /* RMode data selector, base 0 limit 64k */
#define KERNEL_BASE 0xC0000000
#define KERNEL_CS 0x08
#define KERNEL_DS 0x10
#define CR0_PE_SET 0x00000001 /* OR this value with CR0 to enable pmode */
#define CR0_PE_CLR 0xFFFFFFFE /* AND this value with CR0 to disable pmode */

View File

@@ -21,8 +21,8 @@
#define __FREELDR_H
#include <ddk/ntddk.h>
#include <ndk/ntndk.h>
#include <arch.h>
#include <reactos.h>
#include <rtl.h>
#include <disk.h>
#include <fs.h>
@@ -33,6 +33,7 @@
#include <inifile.h>
#include <video.h>
#include <portio.h>
#include <reactos.h>
#define ROUND_UP(N, S) (((N) + (S) - 1) & ~((S) - 1))
#define ROUND_DOWN(N, S) ((N) & ~((S) - 1))

View File

@@ -52,7 +52,6 @@
#define MB_INFO_FLAG_BOOT_LOADER_NAME 0x00000200
#define MB_INFO_FLAG_APM_TABLE 0x00000400
#define MB_INFO_FLAG_GRAPHICS_TABLE 0x00000800
#define MB_INFO_FLAG_ACPI_TABLE 0x00001000
#ifndef ASM
/* Do not include here in boot.S. */
@@ -90,35 +89,6 @@ typedef struct elf_section_header_table
unsigned long shndx;
} elf_section_header_table_t;
typedef struct _LOADER_PARAMETER_BLOCK
{
ULONG Flags;
ULONG MemLower;
ULONG MemHigher;
ULONG BootDevice;
ULONG CommandLine;
ULONG ModsCount;
ULONG ModsAddr;
UCHAR Syms[12];
ULONG MmapLength;
ULONG MmapAddr;
ULONG DrivesCount;
ULONG DrivesAddr;
ULONG ConfigTable;
ULONG BootLoaderName;
ULONG PageDirectoryStart;
ULONG PageDirectoryEnd;
ULONG KernelBase;
} LOADER_PARAMETER_BLOCK, *PLOADER_PARAMETER_BLOCK;
/* The module structure. */
typedef struct _FRLDR_MODULE {
ULONG_PTR ModuleStart;
ULONG_PTR ModuleEnd;
LPSTR ModuleName;
ULONG Reserved;
} FRLDR_MODULE, *PFRLDR_MODULE;
/* The memory map. Be careful that the offset 0 is base_addr_low
but no size. */
typedef struct memory_map
@@ -132,94 +102,6 @@ typedef struct memory_map
unsigned long reserved;
} memory_map_t;
LOADER_PARAMETER_BLOCK LoaderBlock; /* Multiboot info structure passed to kernel */
char multiboot_kernel_cmdline[255]; // Command line passed to kernel
FRLDR_MODULE multiboot_modules[64]; // Array to hold boot module info loaded for the kernel
char multiboot_module_strings[64][256]; // Array to hold module names
unsigned long multiboot_memory_map_descriptor_size;
memory_map_t multiboot_memory_map[32]; // Memory map
void boot_reactos(void);
#include "fs.h" // Included FILE structure definition
BOOL
STDCALL
FrLdrBootReactOs(VOID);
BOOL
STDCALL
FrLdrMapKernel(FILE *KernelImage);
ULONG_PTR
STDCALL
FrLdrCreateModule(LPSTR ModuleName);
ULONG_PTR
STDCALL
FrLdrLoadModule(FILE *ModuleImage,
LPSTR ModuleName,
PULONG ModuleSize);
BOOL
STDCALL
FrLdrLoadKernel(PCHAR szFileName,
INT nPos);
BOOL
FrLdrLoadNlsFile(PCHAR szSystemRoot,
PCHAR szErrorOut);
BOOL
FrLdrLoadDriver(PCHAR szFileName,
INT nPos);
BOOL
LoadSymbolFile(PCHAR szSystemRoot,
PCHAR ModuleName,
INT nPos);
VOID
FrLdrLoadBootDrivers(PCHAR szSystemRoot,
INT nPos);
BOOL
STDCALL
FrLdrCloseModule(ULONG_PTR ModuleBase,
ULONG dwModuleSize);
VOID
STDCALL
FrLdrStartup(ULONG Magic);
VOID
FASTCALL
FrLdrGetKernelBase(VOID);
VOID
FASTCALL
FrLdrSetupPae(ULONG Magic);
VOID
FASTCALL
FrLdrGetPaeMode(VOID);
VOID
FASTCALL
FrLdrSetupPageDirectory(VOID);
VOID
LoadAndBootReactOS(PCHAR OperatingSystemName);
VOID FASTCALL AsmCode(VOID);
typedef VOID (FASTCALL *ASMCODE)(ULONG Magic,
PLOADER_PARAMETER_BLOCK LoaderBlock);
int GetBootPartition(char *OperatingSystemName);
#endif /* ! ASM */

View File

@@ -44,5 +44,27 @@ BOOL DissectArcPath(CHAR *ArcPath, CHAR *BootPath, ULONG* BootDrive, ULONG* Boot
VOID ConstructArcPath(PCHAR ArcPath, PCHAR SystemFolder, ULONG Disk, ULONG Partition);
ULONG ConvertArcNameToBiosDriveNumber(PCHAR ArcPath);
///////////////////////////////////////////////////////////////////////////////////////
//
// Loader Functions And Definitions
//
///////////////////////////////////////////////////////////////////////////////////////
extern LOADER_PARAMETER_BLOCK LoaderBlock; /* Multiboot info structure passed to kernel */
extern char reactos_kernel_cmdline[255]; // Command line passed to kernel
extern LOADER_MODULE reactos_modules[64]; // Array to hold boot module info loaded for the kernel
extern char reactos_module_strings[64][256]; // Array to hold module names
extern unsigned long reactos_memory_map_descriptor_size;
extern memory_map_t reactos_memory_map[32]; // Memory map
VOID FASTCALL FrLdrSetupPae(ULONG Magic);
VOID FASTCALL FrLdrSetupPageDirectory(VOID);
VOID FASTCALL FrLdrGetPaeMode(VOID);
BOOL STDCALL FrLdrMapKernel(FILE *KernelImage);
ULONG_PTR STDCALL FrLdrCreateModule(LPSTR ModuleName);
ULONG_PTR STDCALL FrLdrLoadModule(FILE *ModuleImage, LPSTR ModuleName, PULONG ModuleSize);
BOOL STDCALL FrLdrCloseModule(ULONG_PTR ModuleBase, ULONG dwModuleSize);
VOID STDCALL FrLdrStartup(ULONG Magic);
typedef VOID (FASTCALL *ASMCODE)(ULONG Magic, PLOADER_PARAMETER_BLOCK LoaderBlock);
#endif // defined __REACTOS_H

View File

@@ -42,7 +42,7 @@ void * memset(void *src, int val, size_t count);
// Standard Library Functions
//
///////////////////////////////////////////////////////////////////////////////////////
int atoi(char *string);
int atoi(const char *string);
char * itoa(int value, char *string, int radix);
int toupper(int c);
int tolower(int c);
@@ -75,8 +75,8 @@ void sound(int freq);
//
///////////////////////////////////////////////////////////////////////////////////////
void print(char *str);
void printf(char *fmt, ...);
void sprintf(char *buffer, char *format, ...);
int printf(const char *fmt, ...);
int sprintf(char *buffer, const char *format, ...);
///////////////////////////////////////////////////////////////////////////////////////
//

View File

@@ -56,7 +56,7 @@ typedef struct _INFCACHELINE
struct _INFCACHELINE *Next;
struct _INFCACHELINE *Prev;
LONG FieldCount;
ULONG FieldCount;
PCHAR Key;
@@ -437,7 +437,7 @@ inline static int is_eol( struct parser *parser, const CHAR *ptr )
/* push data from current token start up to pos into the current token */
static int push_token( struct parser *parser, const CHAR *pos )
{
int len = pos - parser->start;
unsigned int len = pos - parser->start;
const CHAR *src = parser->start;
CHAR *dst = parser->token + parser->token_len;

View File

@@ -346,7 +346,7 @@ BOOL LinuxReadSetupSector(PFILE LinuxKernelFile)
// Read in the rest of the linux setup sectors
FsSetFilePointer(LinuxKernelFile, 1024);
if (!FsReadFile(LinuxKernelFile, SetupSectorSize - 512, NULL, ((PVOID)LinuxSetupSector) + 512))
if (!FsReadFile(LinuxKernelFile, SetupSectorSize - 512, NULL, (PVOID)((ULONG_PTR)LinuxSetupSector + 512)))
{
return FALSE;
}
@@ -400,7 +400,7 @@ BOOL LinuxReadKernel(PFILE LinuxKernelFile)
}
BytesLoaded += LINUX_READ_CHUNK_SIZE;
LoadAddress += LINUX_READ_CHUNK_SIZE;
LoadAddress = (PVOID)((ULONG_PTR)LoadAddress + LINUX_READ_CHUNK_SIZE);
UiDrawProgressBarCenter(BytesLoaded, LinuxKernelSize + LinuxInitrdSize, LinuxBootDescription);
}
@@ -491,7 +491,7 @@ BOOL LinuxReadInitrd(PFILE LinuxInitrdFile)
}
BytesLoaded += LINUX_READ_CHUNK_SIZE;
LinuxInitrdLoadAddress += LINUX_READ_CHUNK_SIZE;
LinuxInitrdLoadAddress = (PVOID)((ULONG_PTR)LinuxInitrdLoadAddress + LINUX_READ_CHUNK_SIZE);
UiDrawProgressBarCenter(BytesLoaded + LinuxKernelSize, LinuxInitrdSize + LinuxKernelSize, LinuxBootDescription);
}

View File

@@ -264,7 +264,7 @@ VOID MmInitPageLookupTable(PVOID PageLookupTable, ULONG TotalPageCount, PBIOS_ME
// Mark the pages that the lookup tabel occupies as reserved
PageLookupTableStartPage = MmGetPageNumberFromAddress(PageLookupTable);
PageLookupTablePageCount = MmGetPageNumberFromAddress(PageLookupTable + ROUND_UP(TotalPageCount * sizeof(PAGE_LOOKUP_TABLE_ITEM), MM_PAGE_SIZE)) - PageLookupTableStartPage;
PageLookupTablePageCount = MmGetPageNumberFromAddress((PVOID)((ULONG_PTR)PageLookupTable + ROUND_UP(TotalPageCount * sizeof(PAGE_LOOKUP_TABLE_ITEM), MM_PAGE_SIZE))) - PageLookupTableStartPage;
DbgPrint((DPRINT_MEMORY, "Marking the page lookup table pages as reserved StartPage: %d PageCount: %d\n", PageLookupTableStartPage, PageLookupTablePageCount));
MmMarkPagesInLookupTable(PageLookupTable, PageLookupTableStartPage, PageLookupTablePageCount, MEMTYPE_RESERVED);
}
@@ -384,8 +384,8 @@ ULONG MmFindAvailablePagesBeforePage(PVOID PageLookupTable, ULONG TotalPageCount
VOID MmFixupSystemMemoryMap(PBIOS_MEMORY_MAP BiosMemoryMap, ULONG* MapCount)
{
int Index;
int Index2;
UINT Index;
UINT Index2;
// Loop through each entry in the array
for (Index=0; Index<*MapCount; Index++)

View File

@@ -72,7 +72,7 @@ PVOID MmAllocateMemory(ULONG MemorySize)
MemorySize = ROUND_UP(MemorySize, 4);
if (MemorySize <= SubAllocationRest)
{
MemPointer = SubAllocationPage + MM_PAGE_SIZE - SubAllocationRest;
MemPointer = (PVOID)((ULONG_PTR)SubAllocationPage + MM_PAGE_SIZE - SubAllocationRest);
SubAllocationRest -= MemorySize;
return MemPointer;
}

View File

@@ -1360,10 +1360,10 @@ RegImportValue (PHBIN RootBin,
PWCHAR wName;
PCHAR cName;
LONG Error;
LONG DataSize;
ULONG DataSize;
PCHAR cBuffer;
PWCHAR wBuffer;
LONG i;
ULONG i;
if (ValueCell->CellSize >= 0 || ValueCell->Id != REG_VALUE_CELL_ID)
{

View File

@@ -1,10 +1,22 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: Freeloader
* FILE: boot/freeldr/freeldr/multiboot.c
* PURPOSE: ReactOS Loader
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
* Hartmut Birr - SMP/PAE Code
* FreeLoader
* Copyright (C) 1998-2003 Brian Palmer <brianp@sginet.com>
* Copyright (C) 2005 Alex Ionescu <alex@relsoft.net>
* Copyright (C) 2005 Hartmut Birr <hartmut.birr@gmx.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <freeldr.h>
@@ -20,7 +32,7 @@
#define PFN_SHIFT 12
/* Bits to shift to convert a Virtual Address into an Offset in the Page Directory */
#define PDE_SHIFT 20
#define PDE_SHIFT 22
#define PDE_SHIFT_PAE 18
@@ -36,20 +48,21 @@
#define PaToPfn(p) \
((p) >> PFN_SHIFT)
#define STARTUP_BASE 0xF0000000
#define HYPERSPACE_BASE 0xF0800000
#define STARTUP_BASE 0xC0000000
#define HYPERSPACE_BASE 0xC0400000
#define HYPERSPACE_PAE_BASE 0xC0800000
#define APIC_BASE 0xFEC00000
#define KPCR_BASE 0xFF000000
#define LowMemPageTableIndex 0
#define StartupPageTableIndex (STARTUP_BASE >> 20) / sizeof(HARDWARE_PTE_X86)
#define HyperspacePageTableIndex (HYPERSPACE_BASE >> 20) / sizeof(HARDWARE_PTE_X86)
#define KpcrPageTableIndex (KPCR_BASE >> 20) / sizeof(HARDWARE_PTE_X86)
#define ApicPageTableIndex (APIC_BASE >> 20) / sizeof(HARDWARE_PTE_X86)
#define StartupPageTableIndex (STARTUP_BASE >> 22)
#define HyperspacePageTableIndex (HYPERSPACE_BASE >> 22)
#define KpcrPageTableIndex (KPCR_BASE >> 22)
#define ApicPageTableIndex (APIC_BASE >> 22)
#define LowMemPageTableIndexPae 0
#define StartupPageTableIndexPae (STARTUP_BASE >> 21)
#define HyperspacePageTableIndexPae (HYPERSPACE_BASE >> 21)
#define HyperspacePageTableIndexPae (HYPERSPACE_PAE_BASE >> 21)
#define KpcrPageTableIndexPae (KPCR_BASE >> 21)
#define ApicPageTableIndexPae (APIC_BASE >> 21)
@@ -60,7 +73,7 @@
ULONG_PTR NextModuleBase = 0;
/* Currently Opened Module */
PFRLDR_MODULE CurrentModule = NULL;
PLOADER_MODULE CurrentModule = NULL;
/* Unrelocated Kernel Base in Virtual Memory */
ULONG_PTR KernelBase;
@@ -71,41 +84,6 @@ BOOLEAN PaeModeEnabled;
/* Kernel Entrypoint in Physical Memory */
ULONG_PTR KernelEntry;
/* Page Directory and Tables for non-PAE Systems */
extern ULONG_PTR startup_pagedirectory;
extern ULONG_PTR lowmem_pagetable;
extern ULONG_PTR kernel_pagetable;
extern ULONG_PTR hyperspace_pagetable;
extern ULONG_PTR _pae_pagedirtable;
extern ULONG_PTR apic_pagetable;
extern ULONG_PTR kpcr_pagetable;
/* Page Directory and Tables for PAE Systems */
extern ULONG_PTR startup_pagedirectorytable_pae;
extern ULONG_PTR startup_pagedirectory_pae;
extern ULONG_PTR lowmem_pagetable_pae;
extern ULONG_PTR kernel_pagetable_pae;
extern ULONG_PTR hyperspace_pagetable_pae;
extern ULONG_PTR pagedirtable_pae;
extern ULONG_PTR apic_pagetable_pae;
extern ULONG_PTR kpcr_pagetable_pae;
typedef struct _HARDWARE_PTE_X86 {
ULONG Valid : 1;
ULONG Write : 1;
ULONG Owner : 1;
ULONG WriteThrough : 1;
ULONG CacheDisable : 1;
ULONG Accessed : 1;
ULONG Dirty : 1;
ULONG LargePage : 1;
ULONG Global : 1;
ULONG CopyOnWrite : 1;
ULONG Prototype : 1;
ULONG reserved : 1;
ULONG PageFrameNumber : 20;
} HARDWARE_PTE_X86, *PHARDWARE_PTE_X86;
typedef struct _HARDWARE_PTE_X64 {
ULONG Valid : 1;
ULONG Write : 1;
@@ -126,7 +104,7 @@ typedef struct _HARDWARE_PTE_X64 {
typedef struct _PAGE_DIRECTORY_X86 {
HARDWARE_PTE_X86 Pde[1024];
} PAGE_DIRECTORY_x86, *PPAGE_DIRECTORY_X86;
} PAGE_DIRECTORY_X86, *PPAGE_DIRECTORY_X86;
typedef struct _PAGE_DIRECTORY_X64 {
HARDWARE_PTE_X64 Pde[2048];
@@ -136,6 +114,25 @@ typedef struct _PAGE_DIRECTORY_TABLE_X64 {
HARDWARE_PTE_X64 Pde[4];
} PAGE_DIRECTORY_TABLE_X64, *PPAGE_DIRECTORY_TABLE_X64;
/* Page Directory and Tables for non-PAE Systems */
extern PAGE_DIRECTORY_X86 startup_pagedirectory;
extern PAGE_DIRECTORY_X86 lowmem_pagetable;
extern PAGE_DIRECTORY_X86 kernel_pagetable;
extern ULONG_PTR hyperspace_pagetable;
extern ULONG_PTR _pae_pagedirtable;
extern PAGE_DIRECTORY_X86 apic_pagetable;
extern PAGE_DIRECTORY_X86 kpcr_pagetable;
/* Page Directory and Tables for PAE Systems */
extern PAGE_DIRECTORY_TABLE_X64 startup_pagedirectorytable_pae;
extern PAGE_DIRECTORY_X64 startup_pagedirectory_pae;
extern PAGE_DIRECTORY_X64 lowmem_pagetable_pae;
extern PAGE_DIRECTORY_X64 kernel_pagetable_pae;
extern ULONG_PTR hyperspace_pagetable_pae;
extern ULONG_PTR pagedirtable_pae;
extern PAGE_DIRECTORY_X64 apic_pagetable_pae;
extern PAGE_DIRECTORY_X64 kpcr_pagetable_pae;
/* FUNCTIONS *****************************************************************/
/*++
@@ -213,7 +210,7 @@ FrLdrSetupPae(ULONG Magic)
Ke386SetCr0(Ke386GetCr0() | X86_CR0_PG | X86_CR0_WP);
/* Jump to Kernel */
PagedJump = (ASMCODE)KernelEntryPoint;
PagedJump = (ASMCODE)(PVOID)(KernelEntryPoint);
PagedJump(Magic, &LoaderBlock);
}
@@ -239,6 +236,9 @@ FrLdrGetKernelBase(VOID)
{
PCHAR p;
/* Set KernelBase */
LoaderBlock.KernelBase = KernelBase;
/* Read Command Line */
p = (PCHAR)LoaderBlock.CommandLine;
while ((p = strchr(p, '/')) != NULL) {
@@ -250,15 +250,13 @@ FrLdrGetKernelBase(VOID)
if (p[4] == ' ' || p[4] == 0) {
/* Use 3GB */
KernelBase = 0xC0000000;
KernelBase = 0xE0000000;
LoaderBlock.KernelBase = 0xC0000000;
}
}
p++;
}
/* Set KernelBase */
LoaderBlock.KernelBase = KernelBase;
}
/*++
@@ -420,7 +418,7 @@ FrLdrSetupPageDirectory(VOID)
} else {
/* Get the Kernel Table Index */
KernelPageTableIndex = (KernelBase >> PDE_SHIFT) / sizeof(HARDWARE_PTE_X86);
KernelPageTableIndex = KernelBase >> PDE_SHIFT;
/* Get the Startup Page Directory */
PageDir = (PPAGE_DIRECTORY_X86)&startup_pagedirectory;
@@ -447,6 +445,9 @@ FrLdrSetupPageDirectory(VOID)
PageDir->Pde[HyperspacePageTableIndex].Valid = 1;
PageDir->Pde[HyperspacePageTableIndex].Write = 1;
PageDir->Pde[HyperspacePageTableIndex].PageFrameNumber = PaPtrToPfn(hyperspace_pagetable);
PageDir->Pde[HyperspacePageTableIndex + 1].Valid = 1;
PageDir->Pde[HyperspacePageTableIndex + 1].Write = 1;
PageDir->Pde[HyperspacePageTableIndex + 1].PageFrameNumber = PaPtrToPfn(hyperspace_pagetable + 4096);
/* Set up the Apic PDE */
PageDir->Pde[ApicPageTableIndex].Valid = 1;
@@ -528,7 +529,7 @@ FrLdrMapKernel(FILE *KernelImage)
ULONG_PTR SourceSection;
ULONG_PTR TargetSection;
ULONG SectionSize;
LONG i;
INT i;
PIMAGE_DATA_DIRECTORY RelocationDDir;
PIMAGE_BASE_RELOCATION RelocationDir, RelocationEnd;
ULONG Count;
@@ -588,7 +589,7 @@ FrLdrMapKernel(FILE *KernelImage)
Section += SectionCount;
/* Walk each section backwards */
for (i=SectionCount; i >= 0; i--, Section--) {
for (i=(INT)SectionCount; i >= 0; i--, Section--) {
/* Get the disk location and the memory location, and the size */
SourceSection = RaToPa(Section->PointerToRawData);
@@ -636,13 +637,10 @@ FrLdrMapKernel(FILE *KernelImage)
/* Calculate the Offset of the Type */
TypeOffset = (PUSHORT)(RelocationDir + 1);
for (i = 0; i < Count; i++) {
for (i = 0; i < (INT)Count; i++) {
ShortPtr = (PUSHORT)(Address + (*TypeOffset & 0xFFF));
/* Don't relocate after the end of the loaded driver */
if ((ULONG_PTR)ShortPtr >= MaxAddress) break;
switch (*TypeOffset >> 12) {
case IMAGE_REL_BASED_ABSOLUTE:
@@ -683,12 +681,12 @@ FrLdrLoadModule(FILE *ModuleImage,
PULONG ModuleSize)
{
ULONG LocalModuleSize;
PFRLDR_MODULE ModuleData;
PLOADER_MODULE ModuleData;
LPSTR NameBuffer;
LPSTR TempName;
/* Get current module data structure and module name string array */
ModuleData = &multiboot_modules[LoaderBlock.ModsCount];
ModuleData = &reactos_modules[LoaderBlock.ModsCount];
/* Get only the Module Name */
do {
@@ -700,24 +698,24 @@ FrLdrLoadModule(FILE *ModuleImage,
}
} while(TempName);
NameBuffer = multiboot_module_strings[LoaderBlock.ModsCount];
NameBuffer = reactos_module_strings[LoaderBlock.ModsCount];
/* Get Module Size */
LocalModuleSize = FsGetFileSize(ModuleImage);
/* Fill out Module Data Structure */
ModuleData->ModuleStart = NextModuleBase;
ModuleData->ModuleEnd = NextModuleBase + LocalModuleSize;
ModuleData->ModStart = NextModuleBase;
ModuleData->ModEnd = NextModuleBase + LocalModuleSize;
/* Save name */
strcpy(NameBuffer, ModuleName);
ModuleData->ModuleName = NameBuffer;
ModuleData->String = (ULONG_PTR)NameBuffer;
/* Load the file image */
FsReadFile(ModuleImage, LocalModuleSize, NULL, (PVOID)NextModuleBase);
/* Move to next memory block and increase Module Count */
NextModuleBase = ROUND_UP(ModuleData->ModuleEnd, PAGE_SIZE);
NextModuleBase = ROUND_UP(ModuleData->ModEnd, PAGE_SIZE);
LoaderBlock.ModsCount++;
/* Return Module Size if required */
@@ -725,33 +723,33 @@ FrLdrLoadModule(FILE *ModuleImage,
*ModuleSize = LocalModuleSize;
}
return(ModuleData->ModuleStart);
return(ModuleData->ModStart);
}
ULONG_PTR
STDCALL
FrLdrCreateModule(LPSTR ModuleName)
{
PFRLDR_MODULE ModuleData;
PLOADER_MODULE ModuleData;
LPSTR NameBuffer;
/* Get current module data structure and module name string array */
ModuleData = &multiboot_modules[LoaderBlock.ModsCount];
NameBuffer = multiboot_module_strings[LoaderBlock.ModsCount];
ModuleData = &reactos_modules[LoaderBlock.ModsCount];
NameBuffer = reactos_module_strings[LoaderBlock.ModsCount];
/* Set up the structure */
ModuleData->ModuleStart = NextModuleBase;
ModuleData->ModuleEnd = -1;
ModuleData->ModStart = NextModuleBase;
ModuleData->ModEnd = -1;
/* Copy the name */
strcpy(NameBuffer, ModuleName);
ModuleData->ModuleName = NameBuffer;
ModuleData->String = (ULONG_PTR)NameBuffer;
/* Set the current Module */
CurrentModule = ModuleData;
/* Return Module Base Address */
return(ModuleData->ModuleStart);
return(ModuleData->ModStart);
}
BOOL
@@ -759,19 +757,19 @@ STDCALL
FrLdrCloseModule(ULONG_PTR ModuleBase,
ULONG ModuleSize)
{
PFRLDR_MODULE ModuleData = CurrentModule;
PLOADER_MODULE ModuleData = CurrentModule;
/* Make sure a module is opened */
if (ModuleData) {
/* Make sure this is the right module and that it hasn't been closed */
if ((ModuleBase == ModuleData->ModuleStart) && (ModuleData->ModuleEnd == -1)) {
if ((ModuleBase == ModuleData->ModStart) && (ModuleData->ModEnd == (ULONG_PTR)-1)) {
/* Close the Module */
ModuleData->ModuleEnd = ModuleData->ModuleStart + ModuleSize;
ModuleData->ModEnd = ModuleData->ModStart + ModuleSize;
/* Set the next Module Base and increase the number of modules */
NextModuleBase = ROUND_UP(ModuleData->ModuleEnd, PAGE_SIZE);
NextModuleBase = ROUND_UP(ModuleData->ModEnd, PAGE_SIZE);
LoaderBlock.ModsCount++;
/* Close the currently opened module */

View File

@@ -1,13 +1,25 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: Freeloader
* FILE: boot/freeldr/freeldr/reactos/rosboot.c
* PURPOSE: ReactOS Loader
* PROGRAMMERS: Alex Ionescu (alex@relsoft.net)
* FreeLoader
*
* Copyright (C) 1998-2003 Brian Palmer <brianp@sginet.com>
* Copyright (C) 2005 Alex Ionescu <alex@relsoft.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <freeldr.h>
#include <internal/i386/ke.h>
#include <reactos/rossym.h>
#include "registry.h"
@@ -15,6 +27,13 @@
#define NDEBUG
#include <debug.h>
LOADER_PARAMETER_BLOCK LoaderBlock;
char reactos_kernel_cmdline[255]; // Command line passed to kernel
LOADER_MODULE reactos_modules[64]; // Array to hold boot module info loaded for the kernel
char reactos_module_strings[64][256]; // Array to hold module names
unsigned long reactos_memory_map_descriptor_size;
memory_map_t reactos_memory_map[32]; // Memory map
BOOL
STDCALL
FrLdrLoadKernel(PCHAR szFileName,
@@ -559,7 +578,7 @@ LoadAndBootReactOS(PCHAR OperatingSystemName)
CHAR szHalName[1024];
CHAR szFileName[1024];
CHAR szBootPath[256];
INT i;
UINT i;
CHAR MsgBuffer[256];
ULONG SectionId;
@@ -584,42 +603,42 @@ LoadAndBootReactOS(PCHAR OperatingSystemName)
/*
* Setup multiboot information structure
*/
LoaderBlock.Flags = MB_INFO_FLAG_MEM_SIZE | MB_INFO_FLAG_BOOT_DEVICE | MB_INFO_FLAG_COMMAND_LINE | MB_INFO_FLAG_MODULES;
LoaderBlock.Flags = MB_FLAGS_BOOT_DEVICE | MB_FLAGS_COMMAND_LINE | MB_FLAGS_MODULE_INFO;
LoaderBlock.PageDirectoryStart = (ULONG)&PageDirectoryStart;
LoaderBlock.PageDirectoryEnd = (ULONG)&PageDirectoryEnd;
LoaderBlock.BootDevice = 0xffffffff;
LoaderBlock.CommandLine = (unsigned long)multiboot_kernel_cmdline;
LoaderBlock.CommandLine = (unsigned long)reactos_kernel_cmdline;
LoaderBlock.ModsCount = 0;
LoaderBlock.ModsAddr = (unsigned long)multiboot_modules;
LoaderBlock.MmapLength = (unsigned long)MachGetMemoryMap((PBIOS_MEMORY_MAP)(PVOID)&multiboot_memory_map, 32) * sizeof(memory_map_t);
LoaderBlock.ModsAddr = (unsigned long)reactos_modules;
LoaderBlock.MmapLength = (unsigned long)MachGetMemoryMap((PBIOS_MEMORY_MAP)(PVOID)&reactos_memory_map, 32) * sizeof(memory_map_t);
if (LoaderBlock.MmapLength)
{
LoaderBlock.MmapAddr = (unsigned long)&multiboot_memory_map;
LoaderBlock.Flags |= MB_INFO_FLAG_MEM_SIZE | MB_INFO_FLAG_MEMORY_MAP;
multiboot_memory_map_descriptor_size = sizeof(memory_map_t); // GetBiosMemoryMap uses a fixed value of 24
LoaderBlock.MmapAddr = (unsigned long)&reactos_memory_map;
LoaderBlock.Flags |= MB_FLAGS_MEM_INFO | MB_FLAGS_MMAP_INFO;
reactos_memory_map_descriptor_size = sizeof(memory_map_t); // GetBiosMemoryMap uses a fixed value of 24
DbgPrint((DPRINT_REACTOS, "memory map length: %d\n", LoaderBlock.MmapLength));
DbgPrint((DPRINT_REACTOS, "dumping memory map:\n"));
for (i=0; i<(LoaderBlock.MmapLength/sizeof(memory_map_t)); i++)
{
if (MEMTYPE_USABLE == multiboot_memory_map[i].type &&
0 == multiboot_memory_map[i].base_addr_low)
if (MEMTYPE_USABLE == reactos_memory_map[i].type &&
0 == reactos_memory_map[i].base_addr_low)
{
LoaderBlock.MemLower = (multiboot_memory_map[i].base_addr_low + multiboot_memory_map[i].length_low) / 1024;
LoaderBlock.MemLower = (reactos_memory_map[i].base_addr_low + reactos_memory_map[i].length_low) / 1024;
if (640 < LoaderBlock.MemLower)
{
LoaderBlock.MemLower = 640;
}
}
if (MEMTYPE_USABLE == multiboot_memory_map[i].type &&
multiboot_memory_map[i].base_addr_low <= 1024 * 1024 &&
1024 * 1024 <= multiboot_memory_map[i].base_addr_low + multiboot_memory_map[i].length_low)
if (MEMTYPE_USABLE == reactos_memory_map[i].type &&
reactos_memory_map[i].base_addr_low <= 1024 * 1024 &&
1024 * 1024 <= reactos_memory_map[i].base_addr_low + reactos_memory_map[i].length_low)
{
LoaderBlock.MemHigher = (multiboot_memory_map[i].base_addr_low + multiboot_memory_map[i].length_low) / 1024 - 1024;
LoaderBlock.MemHigher = (reactos_memory_map[i].base_addr_low + reactos_memory_map[i].length_low) / 1024 - 1024;
}
DbgPrint((DPRINT_REACTOS, "start: %x\t size: %x\t type %d\n",
multiboot_memory_map[i].base_addr_low,
multiboot_memory_map[i].length_low,
multiboot_memory_map[i].type));
reactos_memory_map[i].base_addr_low,
reactos_memory_map[i].length_low,
reactos_memory_map[i].type));
}
}
DbgPrint((DPRINT_REACTOS, "low_mem = %d\n", LoaderBlock.MemLower));
@@ -647,13 +666,13 @@ LoadAndBootReactOS(PCHAR OperatingSystemName)
/* Normalize */
MachDiskGetBootPath(SystemPath, sizeof(SystemPath));
strcat(SystemPath, "\\reactos");
strcat(strcpy(multiboot_kernel_cmdline, SystemPath),
strcat(strcpy(reactos_kernel_cmdline, SystemPath),
" /MININT");
}
else
{
/* copy system path into kernel command line */
strcpy(multiboot_kernel_cmdline, SystemPath);
strcpy(reactos_kernel_cmdline, SystemPath);
}
/*
@@ -661,8 +680,8 @@ LoadAndBootReactOS(PCHAR OperatingSystemName)
*/
if (IniReadSettingByName(SectionId, "Options", value, 1024))
{
strcat(multiboot_kernel_cmdline, " ");
strcat(multiboot_kernel_cmdline, value);
strcat(reactos_kernel_cmdline, " ");
strcat(reactos_kernel_cmdline, value);
}
@@ -674,7 +693,7 @@ LoadAndBootReactOS(PCHAR OperatingSystemName)
*/
MachHwDetect();
if (AcpiPresent) LoaderBlock.Flags |= MB_INFO_FLAG_ACPI_TABLE;
if (AcpiPresent) LoaderBlock.Flags |= MB_FLAGS_ACPI_TABLE;
UiDrawStatusText("Loading...");
UiDrawProgressBarCenter(0, 100, "Loading ReactOS...");

View File

@@ -210,7 +210,7 @@ RegCreateKey(FRLDRHKEY ParentKey,
PFRLDRHKEY Key)
{
PLIST_ENTRY Ptr;
FRLDRHKEY SearchKey = INVALID_HANDLE_VALUE;
FRLDRHKEY SearchKey = NULL;
FRLDRHKEY CurrentKey;
FRLDRHKEY NewKey;
PCHAR p;
@@ -388,7 +388,7 @@ RegOpenKey(FRLDRHKEY ParentKey,
PFRLDRHKEY Key)
{
PLIST_ENTRY Ptr;
FRLDRHKEY SearchKey = INVALID_HANDLE_VALUE;
FRLDRHKEY SearchKey = NULL;
FRLDRHKEY CurrentKey;
PCHAR p;
PCHAR name;

View File

@@ -21,9 +21,6 @@
#ifndef __REGISTRY_H
#define __REGISTRY_H
#define INVALID_HANDLE_VALUE NULL
typedef struct _REG_KEY
{
LIST_ENTRY KeyList;
@@ -64,127 +61,8 @@ typedef struct _REG_VALUE
#define ERROR_MORE_DATA 234L
#define ERROR_NO_MORE_ITEMS 259L
#define assert(x)
/*
* VOID
* InitializeListHead (
* PLIST_ENTRY ListHead
* );
*
* FUNCTION: Initializes a double linked list
* ARGUMENTS:
* ListHead = Caller supplied storage for the head of the list
*/
#define InitializeListHead(ListHead) \
{ \
(ListHead)->Flink = (ListHead); \
(ListHead)->Blink = (ListHead); \
}
/*
* VOID
* InsertHeadList (
* PLIST_ENTRY ListHead,
* PLIST_ENTRY Entry
* );
*
* FUNCTION: Inserts an entry in a double linked list
* ARGUMENTS:
* ListHead = Head of the list
* Entry = Entry to insert
*/
#define InsertHeadList(ListHead, ListEntry) \
{ \
PLIST_ENTRY OldFlink; \
OldFlink = (ListHead)->Flink; \
(ListEntry)->Flink = OldFlink; \
(ListEntry)->Blink = (ListHead); \
OldFlink->Blink = (ListEntry); \
(ListHead)->Flink = (ListEntry); \
assert((ListEntry) != NULL); \
assert((ListEntry)->Blink!=NULL); \
assert((ListEntry)->Blink->Flink == (ListEntry)); \
assert((ListEntry)->Flink != NULL); \
assert((ListEntry)->Flink->Blink == (ListEntry)); \
}
/*
* VOID
* InsertTailList (
* PLIST_ENTRY ListHead,
* PLIST_ENTRY Entry
* );
*
* FUNCTION:
* Inserts an entry in a double linked list
*
* ARGUMENTS:
* ListHead = Head of the list
* Entry = Entry to insert
*/
#define InsertTailList(ListHead, ListEntry) \
{ \
PLIST_ENTRY OldBlink; \
OldBlink = (ListHead)->Blink; \
(ListEntry)->Flink = (ListHead); \
(ListEntry)->Blink = OldBlink; \
OldBlink->Flink = (ListEntry); \
(ListHead)->Blink = (ListEntry); \
assert((ListEntry) != NULL); \
assert((ListEntry)->Blink != NULL); \
assert((ListEntry)->Blink->Flink == (ListEntry)); \
assert((ListEntry)->Flink != NULL); \
assert((ListEntry)->Flink->Blink == (ListEntry)); \
}
/*
*VOID
*RemoveEntryList (
* PLIST_ENTRY Entry
* );
*
* FUNCTION:
* Removes an entry from a double linked list
*
* ARGUMENTS:
* ListEntry = Entry to remove
*/
#define RemoveEntryList(ListEntry) \
{ \
PLIST_ENTRY OldFlink; \
PLIST_ENTRY OldBlink; \
assert((ListEntry) != NULL); \
assert((ListEntry)->Blink!=NULL); \
assert((ListEntry)->Blink->Flink == (ListEntry)); \
assert((ListEntry)->Flink != NULL); \
assert((ListEntry)->Flink->Blink == (ListEntry)); \
OldFlink = (ListEntry)->Flink; \
OldBlink = (ListEntry)->Blink; \
OldFlink->Blink = OldBlink; \
OldBlink->Flink = OldFlink; \
(ListEntry)->Flink = NULL; \
(ListEntry)->Blink = NULL; \
}
#define REG_NONE 0
#define REG_SZ 1
#define REG_EXPAND_SZ 2
#define REG_BINARY 3
#define REG_DWORD 4
#define REG_DWORD_BIG_ENDIAN 5
#define REG_DWORD_LITTLE_ENDIAN 4
#define REG_LINK 6
#define REG_MULTI_SZ 7
#define REG_RESOURCE_LIST 8
#define REG_FULL_RESOURCE_DESCRIPTOR 9
#define REG_RESOURCE_REQUIREMENTS_LIST 10
VOID
RegInitializeRegistry(VOID);

View File

@@ -33,6 +33,12 @@
#include "registry.h"
LOADER_PARAMETER_BLOCK LoaderBlock;
char reactos_kernel_cmdline[255]; // Command line passed to kernel
LOADER_MODULE reactos_modules[64]; // Array to hold boot module info loaded for the kernel
char reactos_module_strings[64][256]; // Array to hold module names
unsigned long reactos_memory_map_descriptor_size;
memory_map_t reactos_memory_map[32]; // Memory map
#define USE_UI
@@ -240,7 +246,7 @@ VOID RunLoader(VOID)
ULONG Size;
char *SourcePath;
char *LoadOptions;
int i;
UINT i;
HINF InfHandle;
ULONG ErrorLine;
@@ -250,41 +256,41 @@ VOID RunLoader(VOID)
extern ULONG PageDirectoryEnd;
/* Setup multiboot information structure */
LoaderBlock.Flags = MB_INFO_FLAG_BOOT_DEVICE | MB_INFO_FLAG_COMMAND_LINE | MB_INFO_FLAG_MODULES;
LoaderBlock.Flags = MB_FLAGS_BOOT_DEVICE | MB_FLAGS_COMMAND_LINE | MB_FLAGS_MODULE_INFO;
LoaderBlock.PageDirectoryStart = (ULONG)&PageDirectoryStart;
LoaderBlock.PageDirectoryEnd = (ULONG)&PageDirectoryEnd;
LoaderBlock.BootDevice = 0xffffffff;
LoaderBlock.CommandLine = (unsigned long)multiboot_kernel_cmdline;
LoaderBlock.CommandLine = (unsigned long)reactos_kernel_cmdline;
LoaderBlock.ModsCount = 0;
LoaderBlock.ModsAddr = (unsigned long)multiboot_modules;
LoaderBlock.MmapLength = (unsigned long)MachGetMemoryMap((PBIOS_MEMORY_MAP)(PVOID)&multiboot_memory_map, 32) * sizeof(memory_map_t);
LoaderBlock.ModsAddr = (unsigned long)reactos_modules;
LoaderBlock.MmapLength = (unsigned long)MachGetMemoryMap((PBIOS_MEMORY_MAP)(PVOID)&reactos_memory_map, 32) * sizeof(memory_map_t);
if (LoaderBlock.MmapLength)
{
LoaderBlock.MmapAddr = (unsigned long)&multiboot_memory_map;
LoaderBlock.Flags |= MB_INFO_FLAG_MEM_SIZE | MB_INFO_FLAG_MEMORY_MAP;
multiboot_memory_map_descriptor_size = sizeof(memory_map_t); // GetBiosMemoryMap uses a fixed value of 24
LoaderBlock.MmapAddr = (unsigned long)&reactos_memory_map;
LoaderBlock.Flags |= MB_FLAGS_MEM_INFO | MB_FLAGS_MMAP_INFO;
reactos_memory_map_descriptor_size = sizeof(memory_map_t); // GetBiosMemoryMap uses a fixed value of 24
for (i = 0; i < (LoaderBlock.MmapLength / sizeof(memory_map_t)); i++)
{
if (MEMTYPE_USABLE == multiboot_memory_map[i].type &&
0 == multiboot_memory_map[i].base_addr_low)
if (MEMTYPE_USABLE == reactos_memory_map[i].type &&
0 == reactos_memory_map[i].base_addr_low)
{
LoaderBlock.MemLower = (multiboot_memory_map[i].base_addr_low + multiboot_memory_map[i].length_low) / 1024;
LoaderBlock.MemLower = (reactos_memory_map[i].base_addr_low + reactos_memory_map[i].length_low) / 1024;
if (640 < LoaderBlock.MemLower)
{
LoaderBlock.MemLower = 640;
}
}
if (MEMTYPE_USABLE == multiboot_memory_map[i].type &&
multiboot_memory_map[i].base_addr_low <= 1024 * 1024 &&
1024 * 1024 <= multiboot_memory_map[i].base_addr_low + multiboot_memory_map[i].length_low)
if (MEMTYPE_USABLE == reactos_memory_map[i].type &&
reactos_memory_map[i].base_addr_low <= 1024 * 1024 &&
1024 * 1024 <= reactos_memory_map[i].base_addr_low + reactos_memory_map[i].length_low)
{
LoaderBlock.MemHigher = (multiboot_memory_map[i].base_addr_low + multiboot_memory_map[i].length_low) / 1024 - 1024;
LoaderBlock.MemHigher = (reactos_memory_map[i].base_addr_low + reactos_memory_map[i].length_low) / 1024 - 1024;
}
#if 0
printf("start: %x\t size: %x\t type %d\n",
multiboot_memory_map[i].base_addr_low,
multiboot_memory_map[i].length_low,
multiboot_memory_map[i].type);
reactos_memory_map[i].base_addr_low,
reactos_memory_map[i].length_low,
reactos_memory_map[i].type);
#endif
}
}
@@ -369,8 +375,8 @@ VOID RunLoader(VOID)
}
/* Set kernel command line */
MachDiskGetBootPath(multiboot_kernel_cmdline, sizeof(multiboot_kernel_cmdline));
strcat(strcat(strcat(multiboot_kernel_cmdline, SourcePath), " "),
MachDiskGetBootPath(reactos_kernel_cmdline, sizeof(reactos_kernel_cmdline));
strcat(strcat(strcat(reactos_kernel_cmdline, SourcePath), " "),
LoadOptions);
/* Load ntoskrnl.exe */

View File

@@ -27,7 +27,7 @@
*/
void print(char *str)
{
int i;
size_t i;
for (i = 0; i < strlen(str); i++)
MachConsPutChar(str[i]);
@@ -37,7 +37,7 @@ void print(char *str)
* printf() - prints formatted text to stdout
* originally from GRUB
*/
void printf(char *format, ... )
int printf(const char *format, ... )
{
va_list ap;
va_start(ap,format);
@@ -102,9 +102,11 @@ void printf(char *format, ... )
}
va_end(ap);
return 0;
}
void sprintf(char *buffer, char *format, ... )
int sprintf(char *buffer, const char *format, ... )
{
va_list ap;
char c, *ptr, str[16];
@@ -178,4 +180,6 @@ void sprintf(char *buffer, char *format, ... )
}
va_end(ap);
*p=0;
return 0;
}

View File

@@ -127,11 +127,11 @@ int tolower(int c)
return c;
}
int atoi(char *string)
int atoi(const char *string)
{
int base;
int result = 0;
char *str;
const char *str;
if((string[0] == '0') && (string[1] == 'x'))
{

Some files were not shown because too many files have changed in this diff Show More