Commit graph

76422 commits

Author SHA1 Message Date
Katayama Hirofumi MZ c082d08cf3 [SHELL32] Delete unused CNewMenu::m_wszPath 2019-12-03 13:46:35 +09:00
Hermès Bélusca-Maïto 4431418999
[VIDEOPRT] Protect access to HwResetAdaptersList with spinlock. 2019-12-03 02:46:38 +01:00
Serge Gautherie ad21227ac8
[NTOS:PO] PopShutdownHandler(): Fully screen-center images. Addendum to 55aed4f8.
CORE-16342
2019-12-03 02:10:37 +01:00
Katayama Hirofumi MZ 4420f4e0ca
[CPL][INPUT] Fix bullet (#2124)
CORE-13807
2019-12-02 18:04:41 +09:00
Katayama Hirofumi MZ 55aed4f8fa [NTOSKRNL][INBV] Fix IDB_SHUTDOWN_MSG position
Make "shutdown.bmp" (IDB_SHUTDOWN_MSG: 213x11px) horizontally centered.
2019-12-02 16:55:02 +09:00
Hermès Bélusca-Maïto 0ad65796bb
[WIN32K][VIDEOPRT] Improve initialization and interfacing with INBV.
CORE-12149

VIDEOPRT:
=========

Improve interfacing with INBV, so as to detect when an external module
acquired INBV display ownership, and whether ownership is being released
later on. (This does NOT rely on hooking!)

For this purpose we improve the IntVideoPortResetDisplayParameters(Ex)
callback that gets registered with an InbvNotifyDisplayOwnershipLost()
call during initialization, and we add a monitoring thread.

The callback is called whenever an external module calls
InbvAcquireDisplayOwnership(), for example the bugcheck code or the KDBG
debugger in SCREEN mode. When this happens, a flag that tells the
monitoring thread to start monitoring INBV is set (ReactOS-specific),
and the display adapters get reset with HwResetHw() (as done on Windows).

Due to the fact that this INBV callback can be called at *ANY* IRQL, we
cannot use dispatcher synchronization mechanisms such as events to tell
the INBV monitoring thread to start its operations, so we need to rely
instead on a flag to be set. And, since INBV doesn't provide with any
proper callback/notification system either, we need to actively monitor
its state by pooling. To reduce the load on the system the monitoring
thread performs 1-second waits between each check for the flag set by
the INBV callback, and during checking the INBV ownership status.

When the INBV ownership is detected to be released by an external module,
the INBV callback is re-registered (this is *MANDATORY* since the
external module has called InbvNotifyDisplayOwnershipLost() with a
different callback parameter!), and then we callout to Win32k for
re-enabling the display.

This has the virtue of correctly resetting the display once the KDBG
debugger in SCREEN mode is being exited, and fixes CORE-12149 .

The following additional fixes were needed:

VIDEOPRT & WIN32K:
==================

Remove the registration with INBV that was previously done in a ReactOS-
specific hacked IRP_MJ_WRITE call; it is now done correctly during the
video device opening done by EngpRegisterGraphicsDevice() in the VIDEOPRT's
IRP_MJ_CREATE handler, as done on Windows.

WIN32K:
=======

- Stub the VideoPortCallout() support, for VIDEOPRT -> WIN32 callbacks.
  This function gets registered with VIDEOPRT through an
  IOCTL_VIDEO_INIT_WIN32K_CALLBACKS call in EngpRegisterGraphicsDevice().

- Only partially implement the 'VideoFindAdapterCallout' case, that just
  re-enables the primary display by refreshing it (using the new function
  UserRefreshDisplay()).

VIDEOPRT:
=========

- PVIDEO_WIN32K_CALLOUT is an NTAPI (stdcall) callback.

- In the IntVideoPortResetDisplayParameters(Ex) callback, reset all the
  "resettable" adapters registered in the HwResetAdaptersList list.
  We thus get rid of the global ResetDisplayParametersDeviceExtension.

- Make the IntVideoPortResetDisplayParameters(Ex) callback slightly more
  robust (using SEH) against potential HwResetListEntry list corruption
  or invalid DriverExtension->InitializationData.HwResetHw() that would
  otherwise trigger a BSOD, and this would be disastrous since that
  callback is precisely called when INBV is acquired, typically when the
  BSOD code initializes the display for displaying its information...

Extras:
- Validate the IrpStack->MajorFunction in IntVideoPortDispatchDeviceControl()
  and implement IRP_MJ_SHUTDOWN handling. Stub out the other IOCTLs that
  are handled by VIDEOPRT only (and not by the miniports).

- VIDEOPRT doesn't require IRP_MJ_INTERNAL_DEVICE_CONTROL (unused).

- Implement IOCTL_VIDEO_PREPARE_FOR_EARECOVERY that just resets the
  display to standard VGA 80x25 text mode.
2019-12-02 02:33:20 +01:00
Katayama Hirofumi MZ c076d5819c [USERENV] Improve Japanese translation again 2019-12-02 07:05:57 +09:00
Katayama Hirofumi MZ 364e22fa14 [SHELL32] Improve Japanese translation 2019-12-02 07:03:18 +09:00
Katayama Hirofumi MZ b582d6ff45
[SHELL32] Improve and fix SendTo (#2122)
Because of timing of SendTo folder initialization, SendTo My Documents didn't work well.
Now My Documents item is working well. CORE-12562
2019-12-02 04:06:20 +09:00
Amine Khaldi 92c3c814bb [WBEMPROX_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:45:25 +01:00
Amine Khaldi 628f4c996c [WBEMPROX] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:45:00 +01:00
Amine Khaldi e5a5f62909 [PSDK] Add GetSystemFirmwareTable. CORE-16441 2019-12-01 19:44:36 +01:00
Amine Khaldi 36873c4934 [WBEMDISP] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:44:13 +01:00
Amine Khaldi 658118f098 [VSSAPI] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:43:49 +01:00
Amine Khaldi f1e575c3d2 [VERSION] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:43:24 +01:00
Amine Khaldi 7d76303d2d [VBSCRIPT_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:43:01 +01:00
Amine Khaldi 285df607d2 [PSDK] Update activscp.idl. CORE-16441 2019-12-01 19:42:38 +01:00
Amine Khaldi 9a0ddc1388 [VBSCRIPT] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:42:07 +01:00
Amine Khaldi 573d40fbaa [USP10_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:41:41 +01:00
Amine Khaldi 29ff85ba5d [USP10] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:41:14 +01:00
Amine Khaldi 7a62c32bcc [USER32_WINETEST] Sync with Wine Staging 4.18 except win.c (PR #1980). CORE-16441 2019-12-01 19:40:48 +01:00
Amine Khaldi 87801a65f7 [PSDK] Add some missing definitions. CORE-16441 2019-12-01 19:40:17 +01:00
Amine Khaldi 98e4a3ece1 [URLMON_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:39:54 +01:00
Amine Khaldi 6c3c2e33f6 [URLMON] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:39:31 +01:00
Amine Khaldi 7cddbe34e2 [UPDSPAPI] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:39:04 +01:00
Amine Khaldi 174271931a [TWAIN_32] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:38:39 +01:00
Amine Khaldi 3edf37e269 [TAPI32] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:38:13 +01:00
Amine Khaldi 5a267e6b9e [T2EMBED] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:37:45 +01:00
Amine Khaldi d9010a8166 [RICHED32_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-12-01 19:37:14 +01:00
Shy Zedaka b6743016f7 [TRANSLATION] Some Hebrew Translation for Shell32 (#2121) 2019-12-01 19:30:48 +01:00
Katayama Hirofumi MZ f1bc04d7e6
[SHELL32][ZIPFLDR] Implement SendTo ZIP folder (#2118)
Follow-up of #2114.
- s/Creater/Creator/
- Add an empty file in the SendTo folder.
- Trick.
CORE-16495
2019-12-02 02:26:34 +09:00
Eric Kohl c35ebdfeb6 [DNSRSLVR] Add support for IP6 hosts file entries 2019-12-01 17:18:47 +01:00
Katayama Hirofumi MZ 962ff6e2fa
[SHELLEXT][ZIPFLDR] Implement ZIP creation (#2114)
This PR will implement *.ZFSendToTarget file type that will realize SendTo ZIP folder in future.
CORE-16495, CORE-12562
2019-12-01 21:20:53 +09:00
Jose Carlos Jesus 62a95e4943 [TRANSLATION] Update Portuguese translation (#2115) 2019-12-01 10:14:13 +01:00
Katayama Hirofumi MZ 79d21f7664 [SHELL32] Fix regression of DoCreateSendToFiles
CoInitializeEx/CoUninitialize added.
CORE-12562
2019-12-01 13:55:43 +09:00
Katayama Hirofumi MZ 4f7bb559fb [SHELL32_APITEST] Improve DragDrop testcase 2
CORE-11238
2019-12-01 11:44:43 +09:00
Adam Słaboń db1ac630be [TRANSLATION][MC] Polish translation update for errcodes.mc (#2108) 2019-11-30 16:31:28 +01:00
Amine Khaldi 6c02033b00 [SXS_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-11-30 14:58:10 +01:00
Amine Khaldi 58895b70d0 [SXS] Sync with Wine Staging 4.18. CORE-16441 2019-11-30 14:56:42 +01:00
Amine Khaldi 074cec532b [STI_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-11-30 14:56:15 +01:00
Amine Khaldi 66b46b04f4 [STI] Sync with Wine Staging 4.18. CORE-16441 2019-11-30 14:55:34 +01:00
Amine Khaldi 21c2e3982d [SNMPAPI] Sync with Wine Staging 4.18. CORE-16441 2019-11-30 14:51:23 +01:00
Amine Khaldi 04c12ebdfa [SLBCSP] Sync with Wine Staging 4.18. CORE-16441 2019-11-30 14:50:58 +01:00
Amine Khaldi 2ffe58cf05 [SHLWAPI_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-11-30 14:50:34 +01:00
Amine Khaldi b8dc669cfe [SHELL32_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-11-30 14:50:08 +01:00
Amine Khaldi 09ad24e1f4 [SHDOCVW] Sync with Wine Staging 4.18. CORE-16441 2019-11-30 14:49:41 +01:00
Amine Khaldi d44df9b83d [SENSAPI] Sync with Wine Staging 4.18. CORE-16441 2019-11-30 14:49:13 +01:00
Amine Khaldi 2b5283b702 [SECUR32_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-11-30 14:48:48 +01:00
Amine Khaldi 54be41be6b [PSDK] Add SECPKG_FLAG_APPLY_LOOPBACK. CORE-16441 2019-11-30 14:48:23 +01:00
Amine Khaldi 465ab8e0c3 [SCRRUN_WINETEST] Sync with Wine Staging 4.18. CORE-16441 2019-11-30 14:47:55 +01:00