reactos.git
19 years agoand now it should really build
Steven Edwards [Wed, 12 Jan 2005 20:30:04 +0000 (20:30 +0000)]
and now it should really build

svn path=/trunk/; revision=12994

19 years agook one more time
Steven Edwards [Wed, 12 Jan 2005 20:28:59 +0000 (20:28 +0000)]
ok one more time

svn path=/trunk/; revision=12993

19 years agoa few more minor changes
Steven Edwards [Wed, 12 Jan 2005 20:27:23 +0000 (20:27 +0000)]
a few more minor changes

svn path=/trunk/; revision=12992

19 years agoSync to Wine-20050111:
Gé van Geldorp [Wed, 12 Jan 2005 20:23:51 +0000 (20:23 +0000)]
Sync to Wine-20050111:
Robert Shearman <rob@codeweavers.com>
- Remove unnecessary WNDPROC casts.
- Implement RPC_E_DISCONNECTED in proxies.
Mike McCormack <mike@codeweavers.com>
- Use CreateEventW in preference to CreateEventA for unnamed events.
Michael Stefaniuc <mstefani@redhat.de>
- Do not check for non NULL pointer before HeapFree'ing it. It's
  redundant.
Bill Medland <billmedland@mercuryspeed.com>
- Implemented DceErrorInqText.

svn path=/trunk/; revision=12991

19 years agoelf.c renamed to elf.inc.h. There, happy?
KJK::Hyperion [Wed, 12 Jan 2005 20:18:57 +0000 (20:18 +0000)]
elf.c renamed to elf.inc.h. There, happy?

svn path=/trunk/; revision=12990

19 years agoAdded a port of BSD traceroute. needs work
Steven Edwards [Wed, 12 Jan 2005 20:18:50 +0000 (20:18 +0000)]
Added a port of BSD traceroute. needs work

svn path=/trunk/; revision=12989

19 years agoSync to Wine-20050111:
Gé van Geldorp [Wed, 12 Jan 2005 20:12:53 +0000 (20:12 +0000)]
Sync to Wine-20050111:
Michael Stefaniuc <mstefani@redhat.de>
- Do not check for non NULL pointer before HeapFree'ing it. It's
  redundant.
Eric Pouech <pouech-eric@wanadoo.fr>
- Fixed some errors in function prototypes.
Robert Shearman <rob@codeweavers.com>
- Remove unnecessary WNDPROC casts.

svn path=/trunk/; revision=12988

19 years agoSync to Wine-20050111:
Gé van Geldorp [Wed, 12 Jan 2005 19:51:40 +0000 (19:51 +0000)]
Sync to Wine-20050111:
Eric Pouech <pouech-eric@wanadoo.fr>
- Removed excessive statement (break after return or goto, not useful
  break, not needed vars...)
- Fixed some errors in function prototypes.
- Some missing const correctness fixes.
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Robert Shearman <rob@codeweavers.com>
- Make the DECIMAL_SETZERO macro take a DECIMAL instead of a DECIMAL* as
  in the Microsoft headers and fix up the only caller.
Michael Stefaniuc <mstefani@redhat.de>
- Do not check for non NULL pointer before HeapFree'ing it. It's
  redundant.
Bill Medland <billmedland@mercuryspeed.com>
- Fully initialise the structure to prevent ill-defined behaviour.
Jon Griffiths <jon_p_griffiths@yahoo.com>
- Remove unneeded headers to reduce unneeded rebuilds.
Robert Shearman <rob@codeweavers.com>
- Implement RPC_E_DISCONNECTED in proxies.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Add Russian translations.
Huw Davies <huw@codeweavers.com>
- The value of a packed VARIANT can be up to 1L << 26 - 1.
- Fix comment to reflect reality and indeed the code.
- Remove the remaining dependencies on internal structures from Invoke.
- GetTypeAttr should deep copy the typedesc.
- Fix return value of GetVarIndexOfMemId.
- Remove Invoke's dependence on the internal TLBFuncDesc structure.
- Fix memory leaks in some failure cases.
- GetFuncIndexOfMemId should respect invkind and return
  TYPE_E_ELEMENTNOTFOUND if the function cannot be found.
- Allocate the TYPEATTR rather than copying it.
- For a dual interface the dispinterface's cfuncs should include the
  inherited functions, cbSizeVft should just be the size of IDispatch's
  vtbl and we should strip TYPEFLAG_FOLEAUTOMATION.
- Fix typelib generation of CARRAYs.
Paul Vriens <Paul.Vriens@xs4all.nl>
- use Interlocked* functions in AddRef and Release.
- store the result of the Interlocked functions and use only this.
Walt Ogburn <reuben@ugcs.caltech.edu>
- In OlePictureImpl_Load, always use DIB_RGB_COLORS because no indexed
  palette has been defined.
Alexandre Julliard <julliard@winehq.org>
- Another warning fix.
- Avoid warnings.

svn path=/trunk/; revision=12987

19 years agoAdd new file
Gé van Geldorp [Wed, 12 Jan 2005 19:51:26 +0000 (19:51 +0000)]
Add new file

svn path=/trunk/; revision=12986

19 years agoAdd possibility to make KDB break on module-loads. Fix handling of breakpoints in...
Gregor Anich [Wed, 12 Jan 2005 19:04:06 +0000 (19:04 +0000)]
Add possibility to make KDB break on module-loads. Fix handling of breakpoints in usermode with KDB. Set ExceptionRecord->ExceptionFlags to 0 for breakpoints/singlesteps and noncontinuable for everything else. Fix WriteProcessMemory.

svn path=/trunk/; revision=12973

19 years ago- Fix compilation error in KeIpiGenericCall.
Filip Navara [Wed, 12 Jan 2005 16:09:12 +0000 (16:09 +0000)]
- Fix compilation error in KeIpiGenericCall.
- Revert my last changes in RPoolMgr.h. Currently they cause more harm than good. :(

svn path=/trunk/; revision=12972

19 years agoPortability fixes.
Filip Navara [Wed, 12 Jan 2005 15:35:12 +0000 (15:35 +0000)]
Portability fixes.

svn path=/trunk/; revision=12971

19 years agoKJK::Hyperion <noog@libero.it>
Filip Navara [Wed, 12 Jan 2005 15:00:32 +0000 (15:00 +0000)]
KJK::Hyperion <noog@libero.it>
Mark ELF sections as non-paged for now.
Fix 64bit compilation warning in PeFmtCreateSection.

svn path=/trunk/; revision=12970

19 years agoPortability fixes.
Filip Navara [Wed, 12 Jan 2005 14:57:03 +0000 (14:57 +0000)]
Portability fixes.

svn path=/trunk/; revision=12969

19 years agoFix definition of RtlRetrieveUlong to be 64bit safe.
Filip Navara [Wed, 12 Jan 2005 14:51:38 +0000 (14:51 +0000)]
Fix definition of RtlRetrieveUlong to be 64bit safe.

svn path=/trunk/; revision=12968

19 years agoFix the build, sorry.
Filip Navara [Wed, 12 Jan 2005 14:09:07 +0000 (14:09 +0000)]
Fix the build, sorry.

svn path=/trunk/; revision=12967

19 years agoBasic support for priority boosting.
Filip Navara [Wed, 12 Jan 2005 13:43:05 +0000 (13:43 +0000)]
Basic support for priority boosting.

svn path=/trunk/; revision=12965

19 years agoAdd definiton of RPC_E_INVALID_OBJREF.
Filip Navara [Wed, 12 Jan 2005 13:35:43 +0000 (13:35 +0000)]
Add definiton of RPC_E_INVALID_OBJREF.

svn path=/trunk/; revision=12964

19 years agoHerve Poussineau <poussine@freesurf.fr>
Filip Navara [Wed, 12 Jan 2005 13:15:24 +0000 (13:15 +0000)]
Herve Poussineau <poussine@freesurf.fr>
Simpily the VFAT/FATX detection.

svn path=/trunk/; revision=12963

19 years agoHerve Poussineau <poussine@freesurf.fr>
Filip Navara [Wed, 12 Jan 2005 13:07:17 +0000 (13:07 +0000)]
Herve Poussineau <poussine@freesurf.fr>
Use MmGetSystemAddressForMdlSafe instead of MmGetSystemAddressForMdl.

svn path=/trunk/; revision=12962

19 years agoBased on a patch by Herve Poussineau <poussine@freesurf.fr>:
Filip Navara [Wed, 12 Jan 2005 13:00:43 +0000 (13:00 +0000)]
Based on a patch by Herve Poussineau <poussine@freesurf.fr>:
Add basic cache manager and Fast I/O callbacks and don't use ReactOS specific cache manager / filesystem features if USE_ROS_CC_AND_FS is not defined.

svn path=/trunk/; revision=12961

19 years agoBased on a patch by Herve Poussineau <poussine@freesurf.fr>:
Filip Navara [Wed, 12 Jan 2005 12:33:57 +0000 (12:33 +0000)]
Based on a patch by Herve Poussineau <poussine@freesurf.fr>:
- Clean up #includes.
- Get rid of ROSRTL dependancy.

svn path=/trunk/; revision=12960

19 years agoAdd definition of RTL_CONSTANT_STRING.
Filip Navara [Wed, 12 Jan 2005 12:32:06 +0000 (12:32 +0000)]
Add definition of RTL_CONSTANT_STRING.

svn path=/trunk/; revision=12959

19 years agoremove leftovers
Gunnar Dalsnes [Wed, 12 Jan 2005 12:31:10 +0000 (12:31 +0000)]
remove leftovers

svn path=/trunk/; revision=12958

19 years agoBased on a patch by Herve Poussineau <poussine@freesurf.fr>:
Filip Navara [Wed, 12 Jan 2005 12:06:15 +0000 (12:06 +0000)]
Based on a patch by Herve Poussineau <poussine@freesurf.fr>:
- Compile using W32API.
- Use documented structures names instead of ReactOS equivalent.
- Get rid of MAX_PATH constant (only valid in user mode).

svn path=/trunk/; revision=12957

19 years agoHerve Poussineau <poussine@freesurf.fr>
Filip Navara [Wed, 12 Jan 2005 11:07:31 +0000 (11:07 +0000)]
Herve Poussineau <poussine@freesurf.fr>
- Use documented structures names instead of ReactOS equivalents.
- Replace CcMapData with CcPinRead on places where we're modifying the data.

svn path=/trunk/; revision=12956

19 years agoOops, forgot to patch one place.
Filip Navara [Wed, 12 Jan 2005 10:49:47 +0000 (10:49 +0000)]
Oops, forgot to patch one place.

svn path=/trunk/; revision=12955

19 years agoHerve Poussineau <poussine@freesurf.fr>
Filip Navara [Wed, 12 Jan 2005 10:46:13 +0000 (10:46 +0000)]
Herve Poussineau <poussine@freesurf.fr>
Use DDK types instead of Win32 types (BOOL, WORD, DWORD).

svn path=/trunk/; revision=12954

19 years agoHervé Poussineau <poussine@freesurf.fr>
Filip Navara [Wed, 12 Jan 2005 10:24:56 +0000 (10:24 +0000)]
Hervé Poussineau <poussine@freesurf.fr>
Fill DriverName field in DRIVER_OBJECT structure.

svn path=/trunk/; revision=12953

19 years agoSync to Wine-20050111:
Gé van Geldorp [Wed, 12 Jan 2005 10:23:25 +0000 (10:23 +0000)]
Sync to Wine-20050111:
Michael Stefaniuc <mstefani@redhat.de>
- Do not check for non NULL pointer before HeapFree'ing it. It's
  redundant.
Eric Pouech <pouech-eric@wanadoo.fr>
- Fixed some errors in function prototypes.
- ReadFile and WriteFile must be passed a parameter for the number of
  handled bytes when no overlapped operation is done.
- Removed excessive statement (break after return or goto, not useful
  break, not needed vars...)
Robert Shearman <rob@codeweavers.com>
- Remove unnecessary WNDPROC casts.
- Document how thread-safety is ensured for each member of the
  stub_manager and ifstub structs.
- Make stub_manager ref counted to ensure it doesn't get freed whilst
  it is still being used.
- ifstubs are now freed only when the controlling stub_manager is freed.
- Rename stub_manager_ref/unref to stub_manager_ext_addref/release
  respectively and make then take an unsigned long to prevent
  malicious callers from passing in a negative value and corrupting
  the ref count.
- Rename iid in wine_marshal_id to ipid and use IPIDs instead of IIDs in
  the stub manager.
- The channel buffer can be NULL if the proxy is disconnected, so check
  for this before releasing it.
- Make the ClassFactory proxy support aggregation.
- Document how thread-safety is ensured for each member of the
  stub_manager and ifstub structs.
- Make stub_manager ref counted to ensure it doesn't get freed whilst
  it is still being used.
- ifstubs are now freed only when the controlling stub_manager is freed.
- Rename stub_manager_ref/unref to stub_manager_ext_addref/release
  respectively and make then take an unsigned long to prevent
  malicious callers from passing in a negative value and corrupting
  the ref count.
- The current architecture cannot handle pipes changing address, so use
  a static array. Fixes memory corruption that sometimes occurs when
  using multiple pipes.
- Fix race on apartment creation.
- Display errors in decimal to make searching for the meaning in
  winerror.h easier.
- Move named pipe macros into rpc.c.
- Remove unneeded function.
- Implement COM local servers using table marshaling to avoid doing the
  marshaling in a child thread where COM has not been initialized.
- Remove unneeded includes and the unused COMPOBJ_hInstance32 variable.
- Make the wine_marshal_id structure more like the DCOM OBJREF
  structure, by replacing the process id field by apartment id (OXID),
  changing the users of the process id field to use the new field and
  renaming the objectid field to oid.
- Fix StdMarshalImpl_UnmarshalInterface to invalidate and release its
  stub when doing a same apartment marshal.
- Fixed incorrect unsigned test.
- Add tracing for proxy ref count functions.
- Release the channel on proxy destruction.
- Implement proxy manager.
- Add documentation to several functions.
- Coding style changes according to the style Mike and I have agreed
  upon for COM related files.
- Use OBJREF on the wire for generic marshaling functions.
- Add some function declarations to objbase.h.
- Add stubs for server ref counting.
- Implement HRESULT marshaling.
- Make struct oletls ref counted so that it is only detached from the
  apartment on the final CoUninitialize.
- Decrease the size of the crit sec on destroying an apartment - it is
  only needed for touching the apartment list.
- Small cleanups.
Mike Hearn <mh@codeweavers.com>
- Implement the COM stub manager, refactor the current stub code.
- Begin implementing interface stubs.
- Make apartment access thread-safe by introducing refcounting and
  wider usage of the apartment lock.
- Rework OLE TLS management to eliminate uninitialised apartments and
  parent chaining.
- Comment out an assert, as we don't yet implement IRemUnknown.
- Propagate apartments through the intermediate threads, make listener
  thread apartment scoped.
- Rename the STUBMGR thread to more accurately reflect its purpose.
- Add a DCOM todo list.
Mike McCormack <mike@codeweavers.com>
- Test and fix a few problems with OLE storage streams.
- Allow COM to start services containing COM servers.
- Tests and fixes for StgOpenStorage.
- Test and fix StgCreateDocFile grfModes.
Paul Vriens <Paul.Vriens@xs4all.nl>
- use Interlocked* functions in AddRef and Release.
- store the result of the Interlocked functions and use only this.
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Alexandre Julliard <julliard@winehq.org>
- Janitorial: C booleans must not be compared against TRUE.
Bill Medland <billmedland@mercuryspeed.com>
- Corrected testing for multithreaded (based upon observations by Paul
  Vriens, Christian Costa and Robert Shearman).
- Added TRACE for investigating OXID errors.

svn path=/trunk/; revision=12952

19 years agoSync to Wine-20050111
Gé van Geldorp [Wed, 12 Jan 2005 10:22:33 +0000 (10:22 +0000)]
Sync to Wine-20050111

svn path=/trunk/; revision=12951

19 years agoPortability fixes.
Filip Navara [Wed, 12 Jan 2005 10:05:31 +0000 (10:05 +0000)]
Portability fixes.

svn path=/trunk/; revision=12950

19 years agoPortability fixes.
Filip Navara [Wed, 12 Jan 2005 10:05:05 +0000 (10:05 +0000)]
Portability fixes.

svn path=/trunk/; revision=12949

19 years agoSync to Wine-20050111:
Gé van Geldorp [Wed, 12 Jan 2005 09:31:44 +0000 (09:31 +0000)]
Sync to Wine-20050111:
Vitaly Lipatov <lav@etersoft.ru>
- Get real screen properties.
- Add description for MsiGetMode, MSIRUNMODE constants.
- Add ScreenX, ScreenY, ColorBits installer properties.
Mike McCormack <mike@codeweavers.com>
- Add a simple test case for MSI databases.
- Remove unneeded whitespace, indent correctly.
- Remove more fixed length buffers, rewrite functions to return
malloc'ed memory.
- Remove a lot of fixed length buffers.
- Implement thread safety for records.
- Fix selecting string columns and matching against a wildcard.
- Implement MsiRecordSetStreamA/W and add tests for records containing
streams.
- Fix records according to test cases.
- Fix transposition of 4 byte values when reading in table data from
storage.
- MsiCloseAllHandles only closes handles allocated in the calling
thread.
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Aric Stewart <aric@codeweavers.com>
- Make all custom type 1 actions happen in a seperate thread and close
all handles for that thread when it exits. Honors the concept of
temporary MSI handles for custom actions.
- Properly deformat keys written to the registry.
- Because directory mappings can change between the CostFinalize step
  and the InstallFiles step we need to do a final resolution of the
  target file name before installing.
- When checking for an existing .lnk shortcut extension on the filename
do not just search for '.' but actually verify it is '.lnk'.
- CustomAction 35 should call SetTargetPath not just set the property.
- TARGETDIR and SOURCEDIR may not be entries 0 in the directory
  tables. So when resolving the folder we need to seek them out.
- When we handle SetTargetPath we need to be sure to recalculate the
  resulting paths as things with the now set Directory as the parent
  will change.
- Change how we install files so that we extract files as we need them,
cuts down on extraction time and unused files.
- Improve progress bar tracking.
- Be sure that set paths are terminated with a backslash.
- Free allocated buffers.
- Parse out the full features by using the ',' character and do
comparisons based on the full feature names.
- Continue when a duplicate component is found and loaded.
- Rework how we handle Feature and Component States. I have confirmed
  from testing that, although documented nowhere, having ADDLOCAL on
  the install line overrides INSTALLLEVEL.
- Track all files extracted from cabinents as tempfiles so they can be
  removed at the end of the install to not leave uninstalled but
  uncabbed files laying around.
- Move Install Features selection and evaluation into CostFinalize.
- Allow for end of install actions.
- Create the shortcut directory if it does not exist.
- Set the INSTALLLEVEL in CostFinalize if it is not set.
- Eliminate some fixed length buffers.
- Enable asynchronous dll custom action calls.
- Make sure to include trailing backslash in path.
- Move around and rename some functions.
- Fix incorrect return code check.
- Fix folder resolution.
- Let negative number be parsed correctly. Needed for accessing actions
with sequences such as -1.
- Added MsiSetExternalUIW.
- Include a System16Folder definition.
- Free allocated buffers.
- Blank the property buffers even if the property is not found.
- Include the trailing backslash on the Windows volume.
- Fix folder resolution.
Eric Pouech <pouech-eric@wanadoo.fr>
- Fixed some errors in function prototypes.
Steven Edwards <steven@codeweavers.com>
- Add and fix some stubs.
Ulrich Czekalla <ulrich@codeweavers.com>
- Set the out buffer count to zero on read error.
Michael Stefaniuc <mstefani@redhat.de>
- Add missing HeapFree's (found by smatch).
Paul Vriens <Paul.Vriens@xs4all.nl>
- Use Interlocked* functions in AddRef and Release.

svn path=/trunk/; revision=12948

19 years agoadd MakeSureDirectoryPathExistsExA/W
Gunnar Dalsnes [Wed, 12 Jan 2005 07:51:11 +0000 (07:51 +0000)]
add MakeSureDirectoryPathExistsExA/W

svn path=/trunk/; revision=12945

19 years ago-move alert stuff into own file
Gunnar Dalsnes [Tue, 11 Jan 2005 23:31:58 +0000 (23:31 +0000)]
-move alert stuff into own file
-only use Thread->Alerted[0]. Alerted[1] is not used.
-misc

svn path=/trunk/; revision=12942

19 years agoSync to Wine-20050111:
Gé van Geldorp [Tue, 11 Jan 2005 23:19:40 +0000 (23:19 +0000)]
Sync to Wine-20050111:
Mike McCormack <mike@codeweavers.com>
- Add proxy authentication dialog.
Michael Stefaniuc <mstefani@redhat.de>
- Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.

svn path=/trunk/; revision=12941

19 years agoSync to Wine-20050111:
Gé van Geldorp [Tue, 11 Jan 2005 23:11:18 +0000 (23:11 +0000)]
Sync to Wine-20050111:
Michael Stefaniuc <mstefani@redhat.de>
- Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
Christian Costa <titan.costa@wanadoo.fr>
- Handle device class in DX8 enumeration (found by Robert Reif).
- Fixed remaining DX8 device types.
- Factorized a bit GetCapabilities for keyboard and mouse.
- Fixed enumeration of joysticks in DX8.
- Fixed some traces.
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Neil Olver <olver@math.mcgill.ca>
- The flag for a mouse button down in the structure returned by
GetDeviceState should be 0x80 (only the high bit set), not 0xff.

svn path=/trunk/; revision=12937

19 years agoSync to Wine-20050111:
Gé van Geldorp [Tue, 11 Jan 2005 23:05:16 +0000 (23:05 +0000)]
Sync to Wine-20050111:
Robert Shearman <rob@codeweavers.com>
- Change dialog templates to not explicitly specify extended window
styles for the static rects on the Page Setup dialog as the ones
specified were wrong anyway.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Replace 'All xxx pages' text in common print dialog by simple 'All'.
Jose Manuel Ferrer Ortiz <jmfo1982@yahoo.es>
- Updated Spanish resource.
Jacek Caban <jack@itma.pwr.wroc.pl>
- Moved save* strings to resources.
- Moved string to resources.
- Get rid of W->A calls.
- Unicodified fontdlg.
Eric Pouech <pouech-eric@wanadoo.fr>
- Removed excessive statement (break after return or goto, not useful
break, not needed vars...)
Paul Vriens <Paul.Vriens@xs4all.nl>
- use Interlocked* functions in AddRef and Release.
- store the result of the Interlocked functions and use only this.
Michael Stefaniuc <mstefani@redhat.de>
- Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
Alexandre Julliard <julliard@winehq.org>
- Janitorial: C booleans must not be compared against TRUE.

svn path=/trunk/; revision=12935

19 years agoSync to Wine-20050111:
Gé van Geldorp [Tue, 11 Jan 2005 22:44:10 +0000 (22:44 +0000)]
Sync to Wine-20050111:
Eric Pouech <pouech-eric@wanadoo.fr>
- Removed excessive statement (break after return or goto, not useful
break, not needed vars...)
Michael Stefaniuc <mstefani@redhat.de>
- Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
Ulrich Czekalla <ulrich@codeweavers.com>
- Add partial handler for WM_PRINTCLIENT.
- WM_GETTEXTLENGTH should return zero for owner drawn status bars.
Jon Griffiths <jon_p_griffiths@yahoo.com>
- Remove unneeded headers to reduce unneeded rebuilds.
- Implement the remaining MRU functions, fix a couple of differences
from native comctl32, add tests of MRU behaviour and documentation.
Francois Gouget <fgouget@free.fr>
- Assorted spelling fixes.
Eric Kohl <eric.kohl@t-online.de>
- DrawStatusText() must not process prefix characters.
Filip Navara <xnavara@volny.cz>
- Don't use DrawEdge with NULL device context, it's invalid call and
  sets last error.
- Tooltip icons must be destroyed with DestroyIcon and not with
  DeleteObject.
- Rebar cursors must be destroyed with DestroyCursor and not with
  DeleteObject.
Robert Shearman <rob@codeweavers.com>
- Use the DrawFocusRect function to draw the focus rect, instead of a
broken home-brewed solution.
- Don't highlight text in non-TVS_TRACKSELECT mode.
- Add code for hot tracking.
- Draw hot items with underline and with highlight colour with
  TVS_TRACKSELECT style.
- Set cursor to hand cursor with TVS_TRACKSELECT style.
- Make sure uInternalStatus is consistent with actual scrollbar state
  by forcing scrollbars off in WM_CREATE handler.
- Make the month calendar child window auto-size instead of using a
  hard coded 200px.
- Use SetFocus when the control is clicked on to get the correct
  behaviour when another control clicked on.
- Force the WS_EX_CLIENTEDGE style, instead of emulating it.
- Implement WM_ENABLE handler to update cached control style when the
  control is disabled.
- Move background drawing into WM_ERASEBKGND handler and draw the
  background differently when disabled.
- Change WM_PAINT handler to draw text with transparent background and
  with the correct colour for the style.
- Initialize selected field to -1 instead of 0 so that the control
  notices when field 0 is selected.
Vitaly Lipatov <lav@etersoft.ru>
- Add comments, fix negative value from GetCurFocus.
Alexandre Julliard <julliard@winehq.org>:
- Janitorial: C booleans must not be compared against TRUE.
Mike McCormack <mike@codeweavers.com>
- Fix image list mask and blending.
Evan Deaubl <wine@warpedview.com>
- GetItemA/W on header controls should handle message even if index is
invalid.
Crestez Leonard <cleonard@go.ro>
- Fix bug with Treeview_SelectItem reselecting the same item.
Thomas Weidenmnller <w3seek@gmail.com>
- Free allocated font handles when control is destroyed.

svn path=/trunk/; revision=12933

19 years agoFix comments to be recognized by Doxygen.
Filip Navara [Tue, 11 Jan 2005 22:15:41 +0000 (22:15 +0000)]
Fix comments to be recognized by Doxygen.

svn path=/trunk/; revision=12932

19 years agoSync to Wine-20050111:
Gé van Geldorp [Tue, 11 Jan 2005 21:37:29 +0000 (21:37 +0000)]
Sync to Wine-20050111:
Michael Stefaniuc <mstefani@redhat.de>
Missing HeapFree's + 1 LocalFree (found by smatch).

svn path=/trunk/; revision=12930

19 years ago- Changed a forgotten MP to CONFIG_SMP.
Hartmut Birr [Tue, 11 Jan 2005 20:23:48 +0000 (20:23 +0000)]
- Changed a forgotten MP to CONFIG_SMP.

svn path=/trunk/; revision=12927

19 years agoadd comments + small fix/change
Gunnar Dalsnes [Tue, 11 Jan 2005 01:47:35 +0000 (01:47 +0000)]
add comments + small fix/change

svn path=/trunk/; revision=12924

19 years agoremove duplicate macro
Gunnar Dalsnes [Tue, 11 Jan 2005 01:12:36 +0000 (01:12 +0000)]
remove duplicate macro

svn path=/trunk/; revision=12923

19 years agoFix compilation without NDEBUG.
Gregor Anich [Mon, 10 Jan 2005 23:11:45 +0000 (23:11 +0000)]
Fix compilation without NDEBUG.

svn path=/trunk/; revision=12922

19 years agocomment for _NO_ALPHABLEND in the makefile
Martin Fuchs [Mon, 10 Jan 2005 21:32:18 +0000 (21:32 +0000)]
comment for _NO_ALPHABLEND in the makefile

svn path=/trunk/; revision=12921

19 years ago_NO_ALPHABLEND compiler switch
Martin Fuchs [Mon, 10 Jan 2005 21:20:06 +0000 (21:20 +0000)]
_NO_ALPHABLEND compiler switch

svn path=/trunk/; revision=12920

19 years agoSylvain Petreolle <spetreolle@yahoo.fr>:
Gé van Geldorp [Mon, 10 Jan 2005 10:10:49 +0000 (10:10 +0000)]
Sylvain Petreolle <spetreolle@yahoo.fr>:
Add French translation for timedate.cpl

svn path=/trunk/; revision=12917

19 years agoSylvain Petreolle <spetreolle@yahoo.fr>:
Gé van Geldorp [Mon, 10 Jan 2005 10:10:02 +0000 (10:10 +0000)]
Sylvain Petreolle <spetreolle@yahoo.fr>:
Add French translation for timedate.cpl

svn path=/trunk/; revision=12916

19 years agoAdded a work item to prevent stack overflow.
Art Yerkes [Mon, 10 Jan 2005 04:43:05 +0000 (04:43 +0000)]
Added a work item to prevent stack overflow.

svn path=/trunk/; revision=12915

19 years agowhen echoing too much stuff on windows, a newline is generated and it tries to execut...
Gunnar Dalsnes [Mon, 10 Jan 2005 03:03:24 +0000 (03:03 +0000)]
when echoing too much stuff on windows, a newline is generated and it tries to execute the stuff echoed...

svn path=/trunk/; revision=12914

19 years agosmall cleanup
Gunnar Dalsnes [Sun, 9 Jan 2005 19:40:08 +0000 (19:40 +0000)]
small cleanup

svn path=/trunk/; revision=12912

19 years ago8 german language files (update)
Klemens Friedl [Sun, 9 Jan 2005 16:44:14 +0000 (16:44 +0000)]
8 german language files (update)

svn path=/trunk/; revision=12909

19 years agoOpen the DLL files as FILE_SHARE_READ to prevent sharing violations.
Filip Navara [Sun, 9 Jan 2005 14:16:36 +0000 (14:16 +0000)]
Open the DLL files as FILE_SHARE_READ to prevent sharing violations.

svn path=/trunk/; revision=12907

19 years ago- Output correct length and page to the controller on DMA transfers.
Filip Navara [Sun, 9 Jan 2005 14:11:25 +0000 (14:11 +0000)]
- Output correct length and page to the controller on DMA transfers.
- Fix the value of AdapterObject->PagePort.
- Don't modify variables we're not supposed to modify in IoMapTransfer.

svn path=/trunk/; revision=12906

19 years agoAllocate correct number of bytes for EABuffer.
Filip Navara [Sun, 9 Jan 2005 11:38:07 +0000 (11:38 +0000)]
Allocate correct number of bytes for EABuffer.

svn path=/trunk/; revision=12905

19 years agoSignal the ReactOSInitDone event like smss.exe does,
Gé van Geldorp [Sun, 9 Jan 2005 08:20:28 +0000 (08:20 +0000)]
Signal the ReactOSInitDone event like smss.exe does,
prevents bugcheck when usetup is done in less than 120 sec

svn path=/trunk/; revision=12904

19 years agoexperimental/useless "pretty seh"
Gunnar Dalsnes [Sun, 9 Jan 2005 04:40:01 +0000 (04:40 +0000)]
experimental/useless "pretty seh"

svn path=/trunk/; revision=12903

19 years agoInstall symbol files by default for DBG := 1 builds
Gé van Geldorp [Sun, 9 Jan 2005 00:04:32 +0000 (00:04 +0000)]
Install symbol files by default for DBG := 1 builds

svn path=/trunk/; revision=12896

19 years agoInclude COFF symbols in our .sym files
Gé van Geldorp [Sun, 9 Jan 2005 00:00:31 +0000 (00:00 +0000)]
Include COFF symbols in our .sym files

svn path=/trunk/; revision=12895

19 years agoChange vsprint to _vsnprintf in PrintString to prevent potential buffer overflows...
Filip Navara [Sat, 8 Jan 2005 23:36:03 +0000 (23:36 +0000)]
Change vsprint to _vsnprintf in PrintString to prevent potential buffer overflows. Patch by Uwe Matthaeus <uwe.matthaeus@guehring.de>.

svn path=/trunk/; revision=12894

19 years agoChange console class name for Windows compatibility.
Gé van Geldorp [Sat, 8 Jan 2005 22:08:29 +0000 (22:08 +0000)]
Change console class name for Windows compatibility.
Thanks to tonik <spammed@fromru.com> for reporting and
providing the correct name.
Fixes bug 462.

svn path=/trunk/; revision=12893

19 years agomakefile.dos is not used anymore, remove to prevent confusion
Gé van Geldorp [Sat, 8 Jan 2005 21:14:54 +0000 (21:14 +0000)]
makefile.dos is not used anymore, remove to prevent confusion

svn path=/trunk/; revision=12892

19 years agoStart services again and call a services main routine.
Eric Kohl [Sat, 8 Jan 2005 18:11:46 +0000 (18:11 +0000)]
Start services again and call a services main routine.

svn path=/trunk/; revision=12890

19 years agoConnect a pipes client side as soon as a listening server side is available.
Eric Kohl [Sat, 8 Jan 2005 14:54:59 +0000 (14:54 +0000)]
Connect a pipes client side as soon as a listening server side is available.

svn path=/trunk/; revision=12889

19 years agoUse string resources instead of hardcoded strings.
Eric Kohl [Sat, 8 Jan 2005 12:56:07 +0000 (12:56 +0000)]
Use string resources instead of hardcoded strings.

svn path=/trunk/; revision=12888

19 years ago- Make the drive letter to uppercase in RtlDosPathNameToNtPathName_U.
Hartmut Birr [Sat, 8 Jan 2005 12:47:32 +0000 (12:47 +0000)]
- Make the drive letter to uppercase in RtlDosPathNameToNtPathName_U.

svn path=/trunk/; revision=12886

19 years agoAdded spanish layout to the registry.
Art Yerkes [Sat, 8 Jan 2005 11:59:41 +0000 (11:59 +0000)]
Added spanish layout to the registry.

svn path=/trunk/; revision=12885

19 years agoSolved an stupid error with kbdes.c
Art Yerkes [Sat, 8 Jan 2005 11:57:34 +0000 (11:57 +0000)]
Solved an stupid error with kbdes.c
 -- HUMA2000

svn path=/trunk/; revision=12884

19 years ago- Fixed the initialization of critical section objects.
Hartmut Birr [Sat, 8 Jan 2005 09:34:37 +0000 (09:34 +0000)]
- Fixed the initialization of critical section objects.

svn path=/trunk/; revision=12883

19 years agoAdded makefile.
Art Yerkes [Fri, 7 Jan 2005 19:24:54 +0000 (19:24 +0000)]
Added makefile.

svn path=/trunk/; revision=12875

19 years agoReverted some local changes that aren't meant to be checked in yet.
Art Yerkes [Fri, 7 Jan 2005 19:16:19 +0000 (19:16 +0000)]
Reverted some local changes that aren't meant to be checked in yet.

svn path=/trunk/; revision=12874

19 years agoSpanish Keyboard Layout
Art Yerkes [Fri, 7 Jan 2005 18:57:43 +0000 (18:57 +0000)]
Spanish Keyboard Layout
Contributed by HUMA2000

svn path=/trunk/; revision=12873

19 years agoMove ke/zw.c to ex/zw.c
Alex Ionescu [Fri, 7 Jan 2005 16:10:50 +0000 (16:10 +0000)]
Move ke/zw.c to ex/zw.c

svn path=/trunk/; revision=12872

19 years agomodified include/ntos/zwtypes.h Add SYSTEM_BATTERY_STATE from w32api.
Gregor Anich [Fri, 7 Jan 2005 16:10:48 +0000 (16:10 +0000)]
modified   include/ntos/zwtypes.h           Add SYSTEM_BATTERY_STATE from w32api.
modified   ntoskrnl/include/internal/mm.h   Add MmAllocPagesSpecifyRange (internal function)
modified   ntoskrnl/mm/freelist.c           Add MmAllocPagesSpecifyRange function (used by MmAllocatePagesForMdl)
modified   ntoskrnl/mm/mdl.c                Implemenet MmAllocatePagesForMdl, MmFreePagesFromMdl. Turn MmMapLockedPages into MmMapLockedPagesSpecifyCache (and make MmMapLockedPages a wrapper to it).
modified   ntoskrnl/po/power.c              Implement SystemBatteryState in NtPowerInformation (Thanks to Alex for testing the returned values on his windows desktop PC)

Windows 2000 NVIDIA driver should work now.

svn path=/trunk/; revision=12871

19 years agoFixed RtlGetFullPathName_U bug (didn't remove duplicate slashes) and general ugliness...
Gunnar Dalsnes [Fri, 7 Jan 2005 15:07:52 +0000 (15:07 +0000)]
Fixed RtlGetFullPathName_U bug (didn't remove duplicate slashes) and general ugliness by rippin fresh version from wine. Makes w2k cmd.exe work (imo) 100%.

svn path=/trunk/; revision=12869

19 years agoGetProcessAffinityMask() should return correct system affinity mask
Thomas Bluemel [Fri, 7 Jan 2005 13:34:47 +0000 (13:34 +0000)]
GetProcessAffinityMask() should return correct system affinity mask

svn path=/trunk/; revision=12867

19 years agoProtect against unused variable warning
Gé van Geldorp [Fri, 7 Jan 2005 13:06:11 +0000 (13:06 +0000)]
Protect against unused variable warning

svn path=/trunk/; revision=12866

19 years agoSilence debug messages
Gé van Geldorp [Fri, 7 Jan 2005 13:04:36 +0000 (13:04 +0000)]
Silence debug messages

svn path=/trunk/; revision=12865

19 years agoRtlCutoverTimeToSystemTime(): The 4th argument determines whether the cutover time...
Eric Kohl [Fri, 7 Jan 2005 12:58:46 +0000 (12:58 +0000)]
RtlCutoverTimeToSystemTime(): The 4th argument determines whether the cutover time of the current year or the next cutover time is calculated.

svn path=/trunk/; revision=12864

19 years agoRemove /nt directory, part two.
Alex Ionescu [Fri, 7 Jan 2005 06:57:30 +0000 (06:57 +0000)]
Remove /nt directory, part two.

svn path=/trunk/; revision=12862

19 years agoRemove /nt directory
Alex Ionescu [Fri, 7 Jan 2005 06:54:27 +0000 (06:54 +0000)]
Remove /nt directory

svn path=/trunk/; revision=12861

19 years agoadded agp.c First try of implementing the AGP functions (Untested)
Gregor Anich [Fri, 7 Jan 2005 01:03:34 +0000 (01:03 +0000)]
added      agp.c         First try of implementing the AGP functions (Untested)
added      ddc.c         First try of implementing DDC functions (Untested)
modified   dispatch.c    Handle IRP_MJ_PNP:IRP_MN_START_DEVICE. Let AddDevice create the device object and call HwFindAdapter from IRP_MN_START_DEVICE.
modified   int10.c       Make VideoPortInt10 return ERROR_INVALID_PARAMETER when called while CSRSS is not initialized.
modified   Makefile      Add agp.o and ddc.o
modified   resource.c    Don't remember usermode mappings - they are valid only in the context of the process which they were created in. Add IntVideoPortMapPhysicalMemory() to map part of \Device\PhysicalMemory into UserMode. Make VideoPortGetAccessRanges use DeviceExtension->AllocatedResources (from the IRP_MJ_PNP:IRP_MN_START_DEVICE) if present.
modified   services.c    Implement VideoPortGetAgpServices. VideoPortQueryServices support for VideoPortServicesAGP.
modified   videoprt.c    Split IntVideoPortFindAdapter into IntVideoPortCreateAdapterDeviceObject and IntVideoPortFindAdapter. Basic implementation of VideoPortEnumerateChildren. Implement VideoPortAcquireDeviceLock/VideoPortReleaseDeviceLock.
modified   videoprt.def  Export VideoPortAcquireDeviceLock/VideoPortReleaseDeviceLock.
modified   videoprt.h    Various stuff.

svn path=/trunk/; revision=12860

19 years agoAdd half-verbose output to target "clean".
Gregor Anich [Fri, 7 Jan 2005 00:02:56 +0000 (00:02 +0000)]
Add half-verbose output to target "clean".

svn path=/trunk/; revision=12859

19 years agoForgot to commit this file - sorry!
Gregor Anich [Thu, 6 Jan 2005 23:18:17 +0000 (23:18 +0000)]
Forgot to commit this file - sorry!

svn path=/trunk/; revision=12858

19 years agoeng/driverobj.c: DRIVEROBJ implementation.
Gregor Anich [Thu, 6 Jan 2005 23:12:59 +0000 (23:12 +0000)]
eng/driverobj.c: DRIVEROBJ implementation.
eng/semaphor.c: Implement safe semaphore functions.
eng/window.c: Basic WNDOBJ implementation.
include/inteng.h: IntEngXxx functions for DRIVEROBJs.
main/dllmain.c: Cleanup DRIVEROBJs.
makefile: Add eng/driverobj.o and eng/window.o.
stubs/stubs.c, win32k.def: Add EngAllocPrivateUserMem and EngFreePrivateUserMem stubs.

svn path=/trunk/; revision=12857

19 years agoUpdate ReactOS Icons:
Klemens Friedl [Thu, 6 Jan 2005 19:22:01 +0000 (19:22 +0000)]
Update ReactOS Icons:
Replace the radioactive icons with the newer ReactOS icon.

Files:
trunk/reactos/bootdata/icon.ico
trunk/reactos/lib/user32/resources/oic_reactos.ico

svn path=/trunk/; revision=12854

19 years agoDon't return characters is key is up
Gé van Geldorp [Thu, 6 Jan 2005 15:57:38 +0000 (15:57 +0000)]
Don't return characters is key is up

svn path=/trunk/; revision=12853

19 years agomigrate substitution keywords to SVN
Martin Fuchs [Thu, 6 Jan 2005 13:58:04 +0000 (13:58 +0000)]
migrate substitution keywords to SVN

svn path=/trunk/; revision=12852

19 years agoCopy correct number of bytes
Gé van Geldorp [Thu, 6 Jan 2005 10:16:18 +0000 (10:16 +0000)]
Copy correct number of bytes

svn path=/trunk/; revision=12850

19 years agoUpdate to remove some lines of code that broke the build.
Mark Tempel [Thu, 6 Jan 2005 05:10:13 +0000 (05:10 +0000)]
Update to remove some lines of code that broke the build.

svn path=/trunk/; revision=12849

19 years ago- Remove __USE_W32API support.
Eric Kohl [Thu, 6 Jan 2005 01:28:10 +0000 (01:28 +0000)]
- Remove __USE_W32API support.
- Add definition of _ttoi64.

svn path=/trunk/; revision=12842

19 years agoCorrected off-by-one error retrieving adapter index.
Art Yerkes [Thu, 6 Jan 2005 01:20:13 +0000 (01:20 +0000)]
Corrected off-by-one error retrieving adapter index.

svn path=/trunk/; revision=12841

19 years agohonor __USE_W32API
KJK::Hyperion [Wed, 5 Jan 2005 21:00:51 +0000 (21:00 +0000)]
honor __USE_W32API

svn path=/trunk/; revision=12838

19 years ago- Used a system thread to shutdown various kernel components.
Hartmut Birr [Wed, 5 Jan 2005 19:28:55 +0000 (19:28 +0000)]
- Used a system thread to shutdown various kernel components.
- Halt also the other processors on a smp machine.

svn path=/trunk/; revision=12835

19 years ago- Replaced MP with CONFIG_SMP.
Hartmut Birr [Wed, 5 Jan 2005 19:27:58 +0000 (19:27 +0000)]
- Replaced MP with CONFIG_SMP.
- Used interlocked function for accessing the page directories/tables.

svn path=/trunk/; revision=12834

19 years ago- Replaced MP with CONFIG_SMP.
Hartmut Birr [Wed, 5 Jan 2005 19:26:51 +0000 (19:26 +0000)]
- Replaced MP with CONFIG_SMP.
- Implemented an idle processor map.
- Fixed the initialisation of the first kernel stack for the application processors.

svn path=/trunk/; revision=12833

19 years ago- Replaced MP with CONFIG_SMP.
Hartmut Birr [Wed, 5 Jan 2005 19:25:49 +0000 (19:25 +0000)]
- Replaced MP with CONFIG_SMP.

svn path=/trunk/; revision=12832

19 years ago - makefile: use the native headers, don't bother with our hopelessly broken ones
KJK::Hyperion [Wed, 5 Jan 2005 19:09:38 +0000 (19:09 +0000)]
 - makefile: use the native headers, don't bother with our hopelessly broken ones
 - tickcount.c: also accept arbitrary tick counts as arguments or from standard input (initially conceived to convert the result of subtracting two Date objects in Javascript - which conveniently happens to be a count of milliseconds - into a human-readable format. Useful to write a batch file that calculates the exact difference between two dates). Also use typedef aliases for __int64 that won't conflict with standard C typedefs

(I had a craving for C code, too much Java for school was melting my brain. Thanks god for good ol' tickcount)

svn path=/trunk/; revision=12831