Instead of modifying termsrv.dll file you can use RDP Wrapper which acts as a middleman between Terminal Services and Service Control Manager. This way you don't need to touch termsrv.dll file. Actually, if you already modified your termsrv.dll file, you need to revert to the original version before using this method.
Download and extract RDPWrap-v1.6.1.zip (or newer), then run install.bat as admin. After installation is completed, run RDPConfig.exe. If all items under Diagnostics are green, you should be good to go.



If "Listener state" is "Listening [not supported]", you will need to update the wrapper's configuration (.ini) file.
With the latest version of RDP Wrapper you no longer need to update rdpwrap.ini manually. Simply run update.bat and everything will be done automatically.
If update.bat doesn't add support to your Windows version, try checking Open Issues on RDP Wrapper GitHub page. You may find how to manually update rdpwrap.ini until official support is added.

:
https://www.osradar.com/how-to-enabl...s-server-2019/
https://github.com/stascorp/rdpwrap