Ws2_32.dll What is the use of this file

  

Generally on your own computer, do not want to use a certain software, but some software does not want others to use. How to do?

Method:

Create a new file named ws2_32.dll in the software installation directory (create an empty text file, then change the file name to ws2_32.dll, pay attention to the extension Name.) After running the software application, the system will have an error message: "The application or DLL X:\\XXX\\XXX\\ws2_32.dll is an invalid Windows image. Please check your installation disk again." The software cannot be used. This method is applicable to WinXP, Win2000, Win2003 based on NT system.

Of course, this is just a little trick. If you want to play games on someone else's computer and find that you can't run the program, then go to the game's installation directory and see if there is a ws2_32.dll file.

Simple principle:

ws2_32.dll is a Windows Sockets application interface for supporting Internet and web applications. It is a dynamic link library file. The ws2_32.dll file is automatically called when the program runs. When Windows looks for a dynamic link library file, it first searches in the current directory of the application, but at this time the file in the directory is an empty file that is rebuilt, so the program cannot be run normally.

Some knowledge:

ws2_32.dll is usually located in the system folder. Windows does not find the current directory of the application and then searches for the directory where Windows is located. If it still does not search for the system32 and system directories. Some viruses use this principle to create a fake "ws2_32.dll" file or folder in the anti-virus software directory. In the anti-virus software, this is called when the program needs to run the file. This so-called "file" does not have the system "ws2_32". .dll" file function, so anti-virus software, etc. can not run and prompted: the application initialization (0xc00000ba) failed!

The pseudo "ws2_32.dll" folder can be run after the program is renamed, but there is a useless and undelete folder that looks uncomfortable, so this internal contains illegal file names. The folder is deleted as follows:

1. Unzip the files in the attachment (fix "Show all files and folders".reg), double-click it to fix all files and folders. Then click Tools >>Options>> on the Explorer, remove the hidden operating system (recommended) checkbox, check the Show all files and folders after confirmation, OK now The hidden files are all displayed. (Temporary solution can change the name of the ws2_32.dll folder. To delete it completely, please look down.)

2. Locate the folder with the pseudo "ws2_32.dll" in the installation directory of the anti-virus software. (Generally hidden folders are slightly white).

3. Unzip the attached file to the ".bat" to any directory, and click the left mouse button to delete the ws2_32.dll file or folder (usually hidden files in these directories). All need to be deleted) Press and hold and then drag and drop to the file icon (just like dragging the file into the folder, this tool double-click can not run), a CMD window flashes after the pseudo "ws2_32.dll" The folder is deleted. The software you need can be started! This batch file can also delete other files with strange file names.

Copyright © Windows knowledge All Rights Reserved