Commit graph

29981 commits

Author SHA1 Message Date
Johannes Anderwald 5c0c5d219e - restore cursor on exit
svn path=/trunk/; revision=32829
2008-04-03 13:34:02 +00:00
Dmitry Chapyshev f835ee0323 - Implemented: SetDefaultCommConfigW, SetDefaultCommConfigA, GetDefaultCommConfigW, GetDefaultCommConfigA
- Fixed: GetCommState

svn path=/trunk/; revision=32828
2008-04-03 10:50:57 +00:00
Dmitry Chapyshev fe24e2761f Implemented EnumLanguageGroupLocalesA, EnumLanguageGroupLocalesW, EnumUILanguagesW, EnumUILanguagesA, GetUserGeoID, SetUserGeoID (from Wine)
svn path=/trunk/; revision=32827
2008-04-03 09:49:14 +00:00
Dmitry Chapyshev a4d30ed637 - Update header
svn path=/trunk/; revision=32826
2008-04-03 09:47:45 +00:00
Timo Kreuzer 1e51a48800 Patch by Stefan Ginsberg (stefan__100__ AT hotmail DOT com):
- remove NtUserEnumClipboardFormats, use ->ONEPARAM_ROUTINE_ENUMCLIPBOARDFORMAT insetad
- remove NtUserRegisterClipboardFormat, use NtUserRegisterWIndowsMessage instead
- remove NtUserKillSystemTimer, use HWNDPARAM_ROUTINE_KILLSYSTEMTIMER instead
- remove NtUserInsertMenuItem, use NtUserThunkedMenuItemInfo instead
- remove NtUserGetCapture, use THREADSTATE_CAPTUREWINDOW instead
- remove NtUserGetActiveWindow, use THREADSTATE_ACTIVEWINDOW instead
- remove NtUserGetQueueStatus, use ONEPARAM_ROUTIME_GETQUEUESTATUS instead
- remove NtUserGetLastActivePopup, wasn't implemented
- remove NtUserRealizePalette from ntuser.h, it's not implemented
- remove duplicate NtUserGetLastInputInfo from ntuser.h
- remove PrivateCsrssRergisterPrimitive from user32, it was unused and unimplemented
- remove NtUserDereferenceWndprocHandle, it was unused
- move WNDPROC_INFO structure from ntuser.h to win32k/include/class.h, as it's not used in usermode anymore
tested with AbiWord and FF on VMWare

svn path=/trunk/; revision=32825
2008-04-03 02:13:34 +00:00
Timo Kreuzer 3df1bfcf2e silence annoying "didn't find the shared icon" message
svn path=/trunk/; revision=32824
2008-04-03 02:04:05 +00:00
Johannes Anderwald d5e7835997 - fix identation which got broken in rev 32822
svn path=/trunk/; revision=32823
2008-04-02 19:00:19 +00:00
Johannes Anderwald 2f9dde596f - avoid buffer overflow in copy command argument handling
See issue #3108 for more details.

svn path=/trunk/; revision=32822
2008-04-02 18:51:36 +00:00
Dmitry Chapyshev e8d184da14 - Update English translation
svn path=/trunk/; revision=32821
2008-04-02 18:05:15 +00:00
Dmitry Chapyshev f802aa3a31 - Update English and Russian translations
svn path=/trunk/; revision=32820
2008-04-02 18:04:19 +00:00
Ged Murphy ec0cdc0f40 Complete rewrite of the tcpsvcs service in response to me doing some network stress testing.
It now supports multiple connections from multiple clients across all services.
For anyone interested in doing some network stress testing, start the simple tcp/ip services from the service manager, then run 'telnet <ip> 19' from a networked machine. Other ports to try are 7, 9, 13 and 17. Have fun.

svn path=/trunk/; revision=32819
2008-04-02 16:54:55 +00:00
Aleksey Bragin 4fa8205e00 - Fix richedit20_winetest build.
svn path=/trunk/; revision=32818
2008-04-02 10:37:06 +00:00
Ged Murphy 304e3452f8 A few small changes
svn path=/trunk/; revision=32817
2008-04-02 08:54:50 +00:00
Colin Finck 1c556f1df5 Fix build :-)
svn path=/trunk/; revision=32815
2008-04-01 21:21:29 +00:00
Aleksey Bragin 007702fce4 - Rewrite the SD Cache functions to use the Windows 2003 structures (thanks to Alex for providing them).
- Use pushlocks instead of the fast mutex that was previously used.
- Improve the performance of some paths by reducing lock acquisition time, and using atomic operations instead when possible.
- Implement the exported Ob APIs which were added in Windows XP to access the Sd cache (ObReference/DereferenceSecurityDescriptor and ObLogSecurityDescriptor). These are used by file systems (such as NPFS) on Windows XP and higher.

svn path=/trunk/; revision=32814
2008-04-01 21:09:28 +00:00
Aleksey Bragin 1417fd5fa6 - Lock only the object header for an object instead of the entire object type, for better contention. Implement exclusive/shared lock and release routines around the existing lock slots in the object type (this allows up to 4 different objects to be locked in the same time, instead of locking the entire type).
- Thanks to Alex for reporting this.

svn path=/trunk/; revision=32812
2008-04-01 20:07:36 +00:00
Aleksey Bragin 24e07f0eac - Fix initialiization of the object manager lookaside lists.
- Rename the variables to understandable names.
- Don't leak object locks when destroying an object type.
- Directory objects must be case-insensitive.
- Symbolic links must be case-insensitive.
- Create \KernelObjects directory during startup.

svn path=/trunk/; revision=32811
2008-04-01 19:27:58 +00:00
Timo Kreuzer 43d5fa83aa fix handling of unsafe string parameter in NtGdiGetFontResourceInfoInternalW
svn path=/trunk/; revision=32810
2008-04-01 18:21:06 +00:00
Aleksey Bragin 5e25cba5ab - Use C define for the bit in the wait block flags that we set to specify waiting, instead of a hardcoded "1".
- Fix broken code when trying to find the last wait block in several parts of the pushlock code.
- Fix broken algorithm in the optimization of the pushlock waiter list.
- The wake event for the pushlock should be a synchronization event, not a notification event.
- Fix broken algorithm during the release of a pushlock (in shared cases).
- Fix broken code during "try to wake pushlock".
- Remove DbgPrints from inlined pushlock code during contention.
- Thanks to Alex for noticing these bugs and providing advice on the fixes. This fixes lots of race issues in the handle table implementation.

svn path=/trunk/; revision=32809
2008-04-01 18:14:01 +00:00
Aleksey Bragin d9e96afb6d - Implement inline version of _rotl. The Win32 version of the CRT has this function in the standard library, but the NT one doesn't, so we need to rely on the inline version (which MSVC supports).
svn path=/trunk/; revision=32808
2008-04-01 17:49:03 +00:00
Timo Kreuzer 2c1cfd7207 - make some text metric settings compatible to windows xp.
- zero out lfWidth member when returning logfont in IntGdiGetFontResourceInfo. Fixes recently introduced bug in fontview display, also fixes ms fontview.

svn path=/trunk/; revision=32807
2008-04-01 17:07:12 +00:00
Timo Kreuzer d8af502747 fix calculation of cwc parameter for NtGdiGetFontResourceInfoInternalW.
svn path=/trunk/; revision=32806
2008-04-01 16:57:17 +00:00
Dmitry Chapyshev 0239f0d555 - Update Russian translation
svn path=/trunk/; revision=32805
2008-04-01 14:48:01 +00:00
Dmitry Chapyshev 4bc463ed41 - Update Russian translation
svn path=/trunk/; revision=32804
2008-04-01 14:43:35 +00:00
Aleksey Bragin f2fb7b9c4c - Fix ExReleaseResourceLock(), spotted by Alex.
svn path=/trunk/; revision=32803
2008-04-01 12:58:11 +00:00
James Tabor d9a882e1db Move implemented functions out of stubs.
svn path=/trunk/; revision=32802
2008-04-01 01:41:19 +00:00
James Tabor dddfb3a0cb Move thread pool functions prototypes to ndk.
svn path=/trunk/; revision=32801
2008-04-01 01:07:09 +00:00
James Tabor 575c79dc43 SeSetSecurityDescriptorInfo/Ex check the security object pointer for null. http://msdn2.microsoft.com/en-us/library/ms800810.aspx
svn path=/trunk/; revision=32800
2008-04-01 00:31:56 +00:00
Aleksey Bragin 89484a110d The default object security method should not directly call Se* routines on the Security Descriptors, since they belong to the object manger security descriptor cache, and they need to be referenced and dereferenced in order to make sure they don't disappear from beneath the caller.
Additionally, the code for the "Set" operation should actually go in SeSetSecurityDescriptorInfo API, which was unimplemented. By simply copying the code over, this API is now implemented, and the routine works as expected.
Also, the default method was not handling "delete" requests, but was ignoring them, resulting in memory leaks and never-dereferenced descriptors.
Thanks to Alex for finding these bugs. Alex also says SeSetSecurityDescriptorInfo should call the Rtl package (RtlSetObjectSecurity) but we don't implement those functions yet.

svn path=/trunk/; revision=32799
2008-03-31 20:07:02 +00:00
Aleksey Bragin f5b2746f9a - Fix PARTITION_STYLE enum to include PARTITION_STYLE_RAW.
- Add a few storage-related IOCTLs and GUIDs definitions.

svn path=/trunk/; revision=32798
2008-03-31 18:22:46 +00:00
Aleksey Bragin b8266b24f2 - Fix a typo in the debug message.
svn path=/trunk/; revision=32796
2008-03-31 15:58:59 +00:00
Colin Finck a5fd44c475 First detect the mouse and then the keyboard as it was done in the old i8042prt driver.
If we do it the other way round, some systems throw away settings like the keyboard translation, when detecting the mouse.

All known keyboard and mouse detection problems should be fixed now! :-)

See issue #2790 for more details.

svn path=/trunk/; revision=32795
2008-03-31 15:52:30 +00:00
Ged Murphy c608364e5a missed a few bits in cleanup
svn path=/trunk/; revision=32794
2008-03-31 15:00:12 +00:00
Ged Murphy 317b7559ff I wrote a quick skeleton service this morning, thought it might be useful to someone.
svn path=/trunk/; revision=32793
2008-03-31 14:41:06 +00:00
Timo Kreuzer bae8253dc7 fix a typo
svn path=/trunk/; revision=32792
2008-03-31 13:44:38 +00:00
Timo Kreuzer 95af11a848 - give the fontview class an EXTLOGFONT to set the font, fixes display of wrong font style.
- add font size 8

svn path=/trunk/; revision=32791
2008-03-31 12:48:40 +00:00
Colin Finck 47034d9d29 - Remove much deprecated code for the mouse initialization (had been imported from the ancient psaux.sys driver, which was removed in _r14938_)
Do a much simpler initialization instead:
    * The "Get ID" command was used for detecting whether a mouse is present.
      But it just handled normal mice, IntelliMice and IntelliMice Explorer, although there can be many more possible values for other mice. (see for example http://www.win.tue.nl/~aeb/linux/kbd/scancodes-13.html#mcf2).
      Also this command isn't available on all systems.
      Furthermore we already do a MOUSE_LINE_TEST in i8042BasicDetect, which is the more reliable method to test whether a mouse is plugged in. Therefore this "Get ID" command can be simply removed.
    * The whole mouse initialization process now boils down to enabling the mouse itself and in the controller
    * All in all, some more mice should be detected now.
- Give i8042IsrWritePort a boolean return value and pass the results of the i8042Write calls
- Replace two i8042Write calls for writing to the mouse by one i8042IsrWritePort call where possible
- Remove the unused KBD_LINE_TEST define

This change was tested under QEMU, VMware and on one real system.

svn path=/trunk/; revision=32790
2008-03-31 12:40:31 +00:00
Daniel Reimer 81d1c9b3ac Bug 3098: Italian fixes to mstsc by Carlo Bramini (carlo.bramix@libero.it)
Bug 3161: Greek patch update by Apostolos Alexiadis (djapal@gmail.com)

svn path=/trunk/; revision=32789
2008-03-31 12:02:52 +00:00
James Tabor ec07bd1531 Update to Wine. Need winesynced. Tested with Qemu.
svn path=/trunk/; revision=32788
2008-03-31 04:55:20 +00:00
James Tabor 068bad469b Fix GETTEXTEX update it to current sdk and web info.
svn path=/trunk/; revision=32787
2008-03-31 04:49:35 +00:00
James Tabor 70b9ba87f0 Patch by Stefan Ginsberg (stefan__100__ AT hotmail DOT com):
- Remove NtGdiCreateDIBitmap, update all related files.
- Rewrite CreateDIBitmap.
- Tested with Qemu.


svn path=/trunk/; revision=32786
2008-03-30 22:37:42 +00:00
Johannes Anderwald 0ed931896c - enumerate additional client protocols
- retrieve description with RegLoadMUIString

svn path=/trunk/; revision=32785
2008-03-30 22:07:49 +00:00
Colin Finck b376c055bb - Reenable the DejaVu font and use it for all purposes except substitudes for "Arial" and "Times New Roman". Keep using the Liberation fonts for these cases.
- Finally remove the Bitstream Vera fonts and substitude them by the DejaVu fonts.
  The DejaVu fonts were derived from the Bitstream Vera fonts, so they look similar.

svn path=/trunk/; revision=32783
2008-03-30 18:18:53 +00:00
Johannes Anderwald 75637afd81 - fix compilation with msvc8
svn path=/trunk/; revision=32782
2008-03-30 10:01:37 +00:00
Aleksey Bragin 891170c25c - Convert to wmilib.def to wmilib.spec (so far stdcall-fixup was not really working).
svn path=/trunk/; revision=32781
2008-03-30 10:00:18 +00:00
Pierre Schweitzer 1c7adb9dd4 Set all FSD (except fastfat.sys) start to 0x4 to let fs_rec.sys doing his job (and matching with Windows...).
It will silent ext2 driver.

svn path=/trunk/; revision=32780
2008-03-29 13:40:28 +00:00
James Tabor 499c6cd517 Phase 2:
- Implement RtlRegisterWait and RtlDeregisterWait/Ex. Move the function to new file wait.c. Ported from Wine source.
- Completely untested.
- good luck!

svn path=/trunk/; revision=32779
2008-03-29 06:41:30 +00:00
James Tabor fd52a49081 Phase 1:
- Implement RegisterWaitForSingleObject/Ex and UnregisterWait/Ex in stubs.c. I'm not sure where to place the exports. So ATM it is here.
- Stub RtlRegisterWait and RtlDeregisterWait/Ex.
- Import from Wine source and is LGPL.
- Ref: http://source.winehq.org/WineAPI/RtlRegisterWait.html http://source.winehq.org/WineAPI/RtlDeregisterWait.html


svn path=/trunk/; revision=32778
2008-03-29 03:46:17 +00:00
Thomas Bluemel 5b92a7951b Fix difference in signedness warning
svn path=/trunk/; revision=32777
2008-03-29 01:04:33 +00:00
Daniel Reimer 46c8f01954 Clean Up WineFile Folder. The MSVC Files are autogenerated anyway and these ones are rather old.
Synched WineFile to recent Wine CVS.

svn path=/trunk/; revision=32776
2008-03-28 14:40:37 +00:00