RegisterPointerInputTarget: allows the caller to register a target window, specify the type of pointer input are all redirected to the window.
To use it must UIAccess = true, see below
After setting, you need to sign the resulting .exe executable file.
Procedure: The Administrator open the Developer Command Prompt for VS2017 (VS different versions of the name is not the same, using them is the same)
- Switch to the C: \ Program Files (x86) \ Microsoft SDKs \ Windows \ v7.1A \ Bin directory (the version may be different, such as V10.1A, the same effect), you need to enter in the Command window cd C: \ Program Files ( x86) \ Microsoft SDKs \ Windows \ v7.1A \ Bin jump path
- After the switch, the input makecert.exe -r -pe -n "CN = Test Certificate" -ss PrivateCertStore testcert.cer, generates a certificate testcert.cer
- Then enter certmgr.exe -add testcert.cer -s -r currentUser root certificate to the current administrator
- Test.exe to be signed need to extract the compiled .exe copied to the directory, using signtool sign / v / s PrivateCertStore / n "Test Certificate" / t http://timestamp.verisign.com/scripts/timestamp .dll Test.exe sign
- After the completion of the signature, and then run the .exe file to
- There may be multiple certificates, if you have generated a new certificate, it is recommended to use the latest one, using signtool sign / a / v / s PrivateCertStore / n "Test Certificate" / t http://timestamp.verisign .com / scripts / timestamp.dll Test.exe to