valinet / WinCenterTitle

WinCenterTitle is a simple tool that allows you to center align the text in Windows 10 titlebars, the same way it was in Windows 8, 8.1, or even 3.1.
GNU General Public License v2.0
155 stars 16 forks source link

Cannot get handle to application on Windows 10 20H2 #12

Closed Aoi-hosizora closed 3 years ago

Aoi-hosizora commented 3 years ago

I run this application on my Windows 10 20H2, following https://github.com/valinet/WinCenterTitle#installation. But I get a Cannot get handle to application error message.

I run this exe in an administrated cmd. And the permissions of the WinCenterTitle and symbols folders are also set as Installation said. And the Command key in xml file is also modified.

Make sure folder owner is set to Administrators and that the Users group is added as well, with default permissions (Read & execute, List folder contents, and Read)

WinCenterTitle.exe /xml WinCenterTitle.xml
WinCenterTitle
==============
1. Hook Library Path: C:\Settings\WinCenterTitle\WinCenterTitleLibrary.dll
2. Hook Library Entry Point: 0x1dc0
3. LoadLibraryW address: -766050592
3. FreeLibrary address: -766064688
4. ERROR: Cannot get handle to application.

image

GanerCodes commented 3 years ago

I'm getting this as well

valinet commented 3 years ago

Register scheduled task which will enable the tweak at startup: run install.bat as administrator. This is one way of running the application using the SYSTEM account, which is required in order to be able to hook into DWM

It can't get a handle to the application unless run as the SYSTEM account. In the picture that you show, even though I don't understand the language, I presume you run it only as an administrator. Run it as SYSTEM user using "psexec.exe -i -s WinCenterTitle.exe" if you want to run it in a terminal and then see how it goes.

The XML is for you to help register it in Task Scheduler. It serves no purpose to the EXE, the app does not take any command line parameters.

Aoi-hosizora commented 3 years ago

@valinet Thx, it runs!!!

But the effect is quite strange, the title bar is not centered completely. Is v1.3.0.0 incompatible with 20H2?

image

valinet commented 3 years ago

Probably. Idk. I haven’t tested. If 1.3.0.0 does not work, try 1.2.0.0, they are the same, only the addresses changed to accommodate newer Windows builds.

Aoi-hosizora commented 3 years ago

@valinet Oh, 1.2.0.0 works well, thx :P

image

Dhyfer1 commented 2 years ago

@Aoi-hosizora Can you help me with the installation process? I still don't understand it well :(