First, change the file attribute in the QQ installation directory to write-only.
QQ needs to correctly load the "LoginUinList.dat" file during its operation, which stores the user's account information, and some information during the login process should be written into the relevant files under the installation directory. By default, the QQ installation directory can be read and written. If the attribute of QQ installation directory is changed to "Read Only", QQ will refuse to log in because it cannot write login information during the login process.
Operation method: find the QQ installation directory (default is C:\Program
Files\Tencent\QQ), click the right mouse button on it, select "Properties" in the pop-up menu, and then in the pop-up window;
Set its property to read-only, and then click OK. A dialog box will pop up to confirm the property change. Select the button to apply the changes to this folder, subfolder and file, and then click OK twice to close the properties dialog box. Restart QQ now, and the QQ number can no longer be logged in.
When you need to use QQ, just remove the read-only attribute of the installation directory and all files in the directory.
Second, delete files to prohibit QQ
First of all, you must log in to your QQ number once, otherwise you can't use QQ by yourself after the following operations. Then open the QQ installation directory, find the "WizardCtrl.dll" dynamic link library file in the installation directory, and delete or move the file to other directories.
It should be noted that there are two files with the same name in the installation directory. You must select a dynamic link library file installed in the home directory. If you choose to delete the WizardCtrl.dll file in the "Little Lovely lls" subfolder, the file will be invalid.
After that, if someone enters a QQ number that is not in the list in the QQ login dialog box and clicks the "Login" button, the QQ program will be automatically closed, and the QQ program will be banned from running, but we can still use QQ!