First, make a copy of the file "termsrv.dll" which is inside "c:windowssystem32", in case you fuck things up.
Go to "Services" and stop "Remote Desktop Services". It cannot be running while you are editing the file.
You must change permission of the file by going to "Properties":"Security" tab, click on "Advanced" and change "Owner" from "TrustedInstaller" to "Administrators". Then hit OK. Now, back in the "Security" tab, mark "Administrators", hit "Edit" and give it "Modify" permission and hit OK.
You can use any hex editor to edit the "termsrv.dll" file.
Find:
Code: Select all
39 81 3C 06 00 00 0F 84 73 42 02 00
Replace that string with:
Code: Select all
B8 00 01 00 00 89 81 38 06 00 00 90
Now, you can start the "Remote Desktop Services" again.
Personally, I prefer to remove the "Modify" permission from the "Administrators" after I'm done.
There is, of course the RDP Wrapper Library that you can use (never tried it myself) but I don't like to add an extra layer and would like to keep things as clean and original as possible.
Ps. Fuck you Microsoft!
(I would have paid for this function but the motherfuckers won't sell it and I can't use a fucking server operating system in my home!)