Commit graph

52580 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto cbc3e80b5a [BASESRV]
- Remove the unneeded CallProcessCreated function since the same functionality is programmed and executed in CSRSRV when CsrInsertProcess is called via a call of CsrCreateProcess.
- Remove some hacks in process creation.
- In BaseSrvExitProcess, use the 'Reply = 2' value instead of the old hack 'ApiMessage->ApiNumber = 0xBABE'.

[USER32/WINSRV]
- Make SetLogonNotifyWindow call our 'RosSetLogonNotifyWindow' hack and explicitely mark it as a hack.
- CsrSetLogonNotifyWindow --> RosSetLogonNotifyWindow to emphasize that it is a ReactOS-specific hack.

svn path=/branches/ros-csrss/; revision=57694
2012-11-09 23:39:45 +00:00
Jérôme Gardou cde9a5f895 [GDI32_APITEST]
- Add test showing that a bitmap created using CreateDIBItmap can be selected into a DC despite a different bits depth

svn path=/trunk/; revision=57693
2012-11-08 14:46:47 +00:00
Jérôme Gardou bd515ad606 [WIN32SS/USER]
- Start using CURSORDATA structure for passing data from user to kernel mode.
- Start using the proper CURSOR structure for win32k internal represesentation of cursor and icons
- Create the alpha bitmap in user mode instead of kernel mode.


svn path=/trunk/; revision=57692
2012-11-08 12:51:24 +00:00
Jérôme Gardou 5ad72c9145 [WIN32K]
- Work only with BITMAPINFO in GreGetDIBItsInternal and convert the structure back to BITMAPCOREINFO if needed.
- Set the rgbReserved member to 0 when getting palette of a DIB section

svn path=/trunk/; revision=57691
2012-11-08 12:40:41 +00:00
Hermès Bélusca-Maïto f77f05cd9d Synchronize up to trunk's revision r57689.
svn path=/branches/ros-csrss/; revision=57690
2012-11-07 23:07:18 +00:00
Hermès Bélusca-Maïto 2970f8652b [CONSRV]
- Use the DLL instance for getting its win23 resources.
- Use the CONSOLE_PROCESS_DATA structure (see r57686) for accessing console-specific fields of the processes (instead of using them implemented in the CSR_PROCESS structure).
- Win32CsrDuplicateHandleTable --> ConsoleNewProcess since it's the callback function called when a new process is created, and start to move some hacks currently present in BaseSrvCreateProcess.

TODO: suppress the starting-application-related hacks in BaseSrvCreateProcess (in basesrv).

svn path=/branches/ros-csrss/; revision=57689
2012-11-07 22:23:36 +00:00
Hermès Bélusca-Maïto b5dc23b4a0 [BASESRV]
- Comment some code and correct the DllMain prototype. No functional changes though.

svn path=/branches/ros-csrss/; revision=57688
2012-11-07 22:08:38 +00:00
Hermès Bélusca-Maïto df87a091d1 [CONSRV]
Code formatting only.

svn path=/branches/ros-csrss/; revision=57687
2012-11-07 21:16:09 +00:00
Hermès Bélusca-Maïto 34086f2971 [CONSRV]
- Use the new PCONSOLE_PROCESS_DATA type instead of PCSR_PROCESS, for accessing console-specific fields inside a console structure (the code modifications inside these functions will follow in the next commits).
- Remove unneeded included header files in consrv.h.
- Use a DLL instance in order to facilitate the access to win32 resources.
- Activate the declaration of server apis (or rename existing ones to the Windows scheme from the http://j00ru.vexillium.org/csrss_list/api_list.html#Windows_2k3 list).
- Comment the Win32CsrValidateBuffer helper (because it should be replaced by the usage of CsrValidateMessageBuffer).
- Add the list of the old APIs (just for me, to remember at the end to check that I didn't forget ome of them during the process of moving / renaming).

svn path=/branches/ros-csrss/; revision=57686
2012-11-07 21:10:48 +00:00
Hermès Bélusca-Maïto aa77ee7796 [CONSRV]
Add a new header containing per-process console-specific structure CSRSS_CON_PROCESS_DATA (it is stored inside one of the element of the ServerData array inside the CSR_PROCESS structure). It was deleted from csrsrv.h in revision r57673 and reappears here. Also add a macro in order to facilitate its access inside consrv.

svn path=/branches/ros-csrss/; revision=57685
2012-11-07 21:04:47 +00:00
Eric Kohl 20ec872b2f [NETAPI32]
NetLocalGroupEnum: Make sure that built-in aliases are retrieved once and only one alias is enumerated upon each consecutive call. Retrieve name and comment for each alias.

svn path=/trunk/; revision=57684
2012-11-07 18:51:38 +00:00
Eric Kohl e2dd0a34a1 [SAMSRV]
Fix build.

svn path=/trunk/; revision=57683
2012-11-06 23:47:43 +00:00
Eric Kohl 0b38742a0c [SAMSRV]
SamrQueryInformationAlias: When retrieving general information, return a member count of zero if the members sub key does not exist.

svn path=/trunk/; revision=57682
2012-11-06 23:39:59 +00:00
Jérôme Gardou 26504938df [USER32_APITEST]
- Test behaviour with icons handle from foreign process

svn path=/trunk/; revision=57681
2012-11-06 14:27:03 +00:00
Jérôme Gardou e8624870c3 [USER32]
- Link to msvcrtex in MSC builds

svn path=/trunk/; revision=57680
2012-11-05 23:29:52 +00:00
Jérôme Gardou 15deddd4ea [USER32]
- Avoid more rounding issues and hopefully fix MSC build

svn path=/trunk/; revision=57679
2012-11-05 22:51:32 +00:00
Eric Kohl b49a25a363 [NETAPI32]
Start the implementation of NetpNtStatusToApiStatus and NetLocalGroupEnum.

svn path=/trunk/; revision=57678
2012-11-05 22:51:08 +00:00
Jérôme Gardou 80dbb6e6d7 [USER32]
- Avoid casting double to int.
Should fix MSC build

svn path=/trunk/; revision=57677
2012-11-05 22:33:02 +00:00
Jérôme Gardou 63c74a8acd [WIN32SS/USER]
- Bake a parameter for NtUserFindExistingCursorIcon to differentiate between icons and cursors

svn path=/trunk/; revision=57676
2012-11-05 20:23:01 +00:00
Jérôme Gardou e557a51d3e [WIN32SS]
- Do not link gdi32.dll and user32.dll to msvcrt

svn path=/trunk/; revision=57675
2012-11-05 20:20:49 +00:00
Pierre Schweitzer d23b82a133 [DOXYGEN]
ReactOS is not C only.
Enable support builtin STL.

svn path=/trunk/; revision=57674
2012-11-05 11:13:59 +00:00
Hermès Bélusca-Maïto d736f0b914 [NTDLL]
- Add parameter annotations.
- Improve CSR buffer allocation with 4-byte align.
- Simplify the capture-buffer pointers settings.

[CSRSRV]
- Remove last console structure from csrsrv.h (in next commits it will be placed in a proper header).
- Enable global CSR debugging (for debugging purposes... ;-) ).
- api.c: Enable debugging.
- api.c/.h: Remove old code and deprecated unused definitions.
- Use the Win2k3-compliant version of CsrCreateThread (code from subsystems/csr/csrsrv) (TODO: correct its usage in basesrv:BaseSrvCreateThread).
- init.c: Implement a helper routine, CsrInitCsrRootProcess, in order to initialize the per-process server data (see CSR_PROCESS structure) in the Root CSR process. New process inherit it from this Root process.
- server.c - Add a DPRINT. Remove a hack. Correct a parameter passing.
- session.c - Remove a hack (it will go to the new process initialization in consrv)
- Disable the code of CsrConnectToUser while user32:ClientThreadSetup doesn't work.
- Correct the implementation of CsrValidateMessageBuffer.
- Basic implementation of CsrValidateMessageString using CsrValidateMessageBuffer.

TODO:
- Compare CsrpHandleConnectionRequest with the other one function in api.c.
- Compare CsrValidateMessageBuffer with Win32CsrValidateBuffer ?

svn path=/branches/ros-csrss/; revision=57673
2012-11-05 00:23:58 +00:00
Jérôme Gardou 4a467211be [USER32]
- Implement LookupIconIdFromDirectoryEx.
- Implement CopyImage
- Finish Implementing LoadImage
- Implement various functions.
[WIN32SS]
- Add a first working implementation for LR_SHARED cursors and icons.User32 support is there, but more work is needed in win32k.

svn path=/trunk/; revision=57672
2012-11-04 12:56:44 +00:00
Giannis Adamopoulos db13cd87ac [explorer]
- Implement calling IShellView_TranslateAccelerator
- Fixes accelerators like Ctrl+c , Ctrl+v, etc in windows

svn path=/trunk/; revision=57671
2012-11-03 21:00:10 +00:00
Eric Kohl e9d11b2672 [ADVAPI32]
Remove ADVAPI_GetComputerSid because it is not used any more.

svn path=/trunk/; revision=57670
2012-11-03 12:13:32 +00:00
Eric Kohl 29ac848726 [ADVAPI32]
Fix indentation and coding style. No code changes!

svn path=/trunk/; revision=57669
2012-11-02 19:29:48 +00:00
Hermès Bélusca-Maïto a8f1d34118 [KERNEL32]
Use the new messaging structures...

svn path=/branches/ros-csrss/; revision=57668
2012-11-02 18:30:27 +00:00
Hermès Bélusca-Maïto 1f05ce5f28 [KERNEL32]
- Use new messaging structures, defined-names instead of hardcoded values.
- Enable temporary debugging tracing and add some DPRINTs.
- Delete an unused variable.

svn path=/branches/ros-csrss/; revision=57667
2012-11-02 18:28:42 +00:00
Hermès Bélusca-Maïto 1e4253f2c0 [KERNEL32]
This is the first of a series of commits aiming at making kernel32 using the new CSR messaging structures for communicating with Server Dlls.

svn path=/branches/ros-csrss/; revision=57666
2012-11-02 18:00:47 +00:00
Hermès Bélusca-Maïto bd4d83d88f [WIN32K]
- Remove the now unneeded CSR messaging support.
- CsrInit() goes away also and the usage of the CsrProcess is replaced by that of gpepCSRSS.

[WINSRV]
- Use a DLL instance for loading resources, instead of calling GetModuleHandle.

[KERNEL32/NTDLL]
- Remove unneeded variables.

svn path=/branches/ros-csrss/; revision=57665
2012-11-02 13:50:31 +00:00
Hermès Bélusca-Maïto dbcead9345 [WIN32K/USER32/WINSRV]
- Correct an enumeration identificator initialization.
- Move the call of CSR for registering the logon application, from kernel-mode win32k to user-mode user32
  and therefore remove the unneeded co_CsrNotify function (plus some other unneeded defines).
- Comment some non-working code (#if 0) in user32/misc/misc.c and winsrv/shutdown.c.

svn path=/branches/ros-csrss/; revision=57664
2012-11-02 11:23:26 +00:00
Giannis Adamopoulos dd46d43734 - Fix the double scrollbars in explorer
svn path=/trunk/; revision=57663
2012-11-01 17:28:52 +00:00
Hermès Bélusca-Maïto 8ba1ca638e [KERNEL32/NTDLL]
- Move the ReactOS-specific workaround described in http://jira.reactos.org/browse/CORE-6611 and http://jira.reactos.org/browse/CORE-4620
  from kernel32 to ntdll for using it by RtlGetVersion, in order to :
  * still having it available in user-mode only,
  * and having VerifyVersionInfo (and its Rtl counter-part) working properly.

[RTL/NTOSKRNL]
- Code formatting.
- Use a defined-constant instead of a hard-coded value.

svn path=/trunk/; revision=57662
2012-11-01 12:52:34 +00:00
Hermès Bélusca-Maïto c7054c5c36 [BOOTDATA]
Fix report of OS version: we report us as Windows Server 2003 SP1, in a consistent way, i.e. our product type is ServerNT and not WinNT (workstation).
However, for applications which would need to see us as a workstation OS, a workaround exists and can be activated manually by the user (by default it is not).
See http://jira.reactos.org/browse/CORE-4620 for a description of the workaround.

CORE-6611 #comment In r57661, our version is reported consistently.

svn path=/trunk/; revision=57661
2012-10-31 23:36:52 +00:00
Hermès Bélusca-Maïto b3c0c36f28 Synchronize with trunk's revision r57659.
svn path=/branches/ros-csrss/; revision=57660
2012-10-31 19:39:53 +00:00
Giannis Adamopoulos 005eda32fb [win32k]
- Remove InputDesktopHandle variable because it is a handle and that means that it can only be used in the context of winlogon
- Fixes NtUserOpenInputDesktop which never really worked

svn path=/trunk/; revision=57659
2012-10-31 16:19:48 +00:00
Giannis Adamopoulos d612b03104 [user32_apitests]
- Add some tests for OpenInputDesktop

svn path=/trunk/; revision=57658
2012-10-31 15:23:11 +00:00
Giannis Adamopoulos fc462652f0 [win32k]
- Use ONEPARAM_ROUTINE_GETCURSORPOS instead of ONEPARAM_ROUTINE_GETCURSORPOSITION in GetCursorPos
- Correctly check if the current thread belongs to the active desktop

svn path=/trunk/; revision=57657
2012-10-31 14:55:23 +00:00
Giannis Adamopoulos d93c98ed58 [user32_apitest]
- Add some tests to see how SetCursorPos is affected by the current desktop

svn path=/trunk/; revision=57656
2012-10-31 14:18:06 +00:00
Jérôme Gardou 5b99cd433d [USER32_APITESTS]
- Add some more test for DrawIconEx and CreateIconFromResourceEx

svn path=/trunk/; revision=57655
2012-10-31 14:08:31 +00:00
Hermès Bélusca-Maïto eb1f9f74b7 Forgot two files.
svn path=/branches/ros-csrss/; revision=57654
2012-10-31 00:41:02 +00:00
Hermès Bélusca-Maïto 509461cd33 Synchronize with trunk's revision r57652.
svn path=/branches/ros-csrss/; revision=57653
2012-10-31 00:26:38 +00:00
Giannis Adamopoulos ccb9c49a46 [win32k]
- Fix the remaining tests that failed in user32:winstation

svn path=/trunk/; revision=57652
2012-10-30 16:50:11 +00:00
Giannis Adamopoulos 864bf93f95 [user32_apitest]
- Add a test for LR_SHARED flag for LoadImage

svn path=/trunk/; revision=57651
2012-10-30 13:29:11 +00:00
Jérôme Gardou 95411ee85d [W32K_APITEST]
- Better test for NtUserGetIconInfo

svn path=/trunk/; revision=57650
2012-10-30 02:05:52 +00:00
Jérôme Gardou 1c8f7b026b [USER32_APITEST]
- Commit forgotten file

svn path=/trunk/; revision=57649
2012-10-30 01:39:28 +00:00
Jérôme Gardou f40fbb64a6 [USER32_APITEST]
- More thorough test for what really happens after the "destruction" of a shared cursor.

svn path=/trunk/; revision=57648
2012-10-29 16:14:54 +00:00
Jérôme Gardou a74a3edcc7 [USER32_APITESTS]
- Add some test for DestroyCursor/DestroyIcon

svn path=/trunk/; revision=57647
2012-10-29 16:12:49 +00:00
Jérôme Gardou 9aec2fb369 [WIN32K]
- put changes for the new cursor/icons implementation in a separate file

svn path=/trunk/; revision=57646
2012-10-29 15:50:20 +00:00
James Tabor b7efe0bd86 [Win32k]
- Move away from thread pointer when using hooks.

svn path=/trunk/; revision=57645
2012-10-29 04:47:55 +00:00