Maplespe / DWMBlurGlass

Add custom effect to global system title bar, support win10 and win11.
GNU Lesser General Public License v3.0
1.56k stars 74 forks source link

DWMBlurGlass installation fail-succeeds due OpenProcess failure #341

Open SigmaTel71 opened 1 month ago

SigmaTel71 commented 1 month ago

Describe the bug DWMBlurGlass fails installing, claiming that OpenProcess failed, but reports itself installed. No visible effects on windows or their captions either.

To Reproduce

  1. Get the last release of DWMBlurGlass from 'Releases' page here
  2. Unpack it to a folder that does not require administrative privileges to do anything
  3. Launch the app, click 'Install'

Screenshots image

Additional information:

OS Version : Windows 11 23H2.22631.3593 Software Version : 2.2.0

What other third-party software do you use:

ExplorerPatcher DWM Service to enable squared window corners

Additional context User Account Control settings are enabled with the highest setting + enforced group policy to require credentials on secure desktop. Used antivirus software is not Microsoft Defender, but disabling it does not make any changes. Disabling ExplorerPatcher DWM service does not give any positive effect.

tilsgee commented 1 month ago

same here. but not due to OpenProcess

image
ALTaleX531 commented 1 month ago

@SigmaTel71 It seems like you're not granting enough permissions to DwmBlurGlass, which is obvious.

SigmaTel71 commented 1 month ago

@SigmaTel71 It seems like you're not granting enough permissions to DwmBlurGlass, which is obvious.

Want me to try disabling UAC prompts at all? I think it's unrelated, as elevation is usually inherited. It would be also useful to check in OpenProcess error prompt which process it failed opening.

ALTaleX531 commented 1 month ago

Disabling the UAC prompt has nothing to do with granting sufficient permissions. I'm not sure exactly what special settings you've made to Windows, but the OpenProcess error tells me there's only one possibility, and that's insufficient permissions. DwmBlurGlass needs access to the DWM process in order to inject the component.

SigmaTel71 commented 1 month ago

DwmBlurGlass needs access to the DWM process in order to inject the component.

Hm... I think I remember why full-fledged ExplorerPatcher failed to enable square corners on its own but unpacked ep_dwm executable flawlessly worked. But why I get two error messages on OpenProcess? Does DWMBlurGlass attempt to patch it at least two times?

ALTaleX531 commented 1 month ago

DwmBlurGlass works by patching memory after injecting into the DWM process. Two error messages do not represent OpenProcess twice, and the other error message represents nothing to do with OpenProcess. You should think for yourself what special settings you have made for Windows, there is nothing more I can do to help you.

SigmaTel71 commented 1 month ago

You should think for yourself what special settings you have made for Windows, there is nothing more I can do to help you.

Got it, will try to find a spare minute to investigate.

SigmaTel71 commented 2 weeks ago

Research in progress... I tried stopping DWM via commonly used way of suspending winlogon and killing DWM process, but no luck there. DWMBlurGlass freezes when installed if winlogon is suspended. Is DWM always a descendant to winlogon in cases of successfull DWMBlurGlass installations?