A system disk cleaning method, device, electronic device and storage medium
By obtaining and creating a garbage cleaning process, and utilizing the scanning and cleaning functions of the system disk cleaning interface object, asynchronous cleaning of the system disk is realized, which solves the problem of low disk cleaning efficiency in the existing technology and improves the cleaning speed.
Patent Information
- Application Number
- CN202011645267.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-12-31
AI Technical Summary
The existing system disk cleaning manager adopts a synchronous scanning and synchronous cleaning solution, which results in low disk garbage cleaning efficiency and slow scanning and cleaning processes.
By obtaining the proxy dynamic link library identifier used by each target garbage item, a corresponding garbage cleaning process is created, and the scanning and cleaning functions of the system disk cleaning interface object are used to implement asynchronous execution and achieve simultaneous cleaning of each target garbage item.
It greatly improves the speed of system disk cleaning, overcomes the problem of low efficiency of synchronous cleaning, and achieves the effect of asynchronous execution.
Smart Images

Figure CN112698791B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer application technology, and in particular to a system disk cleaning method, device, electronic equipment and storage medium. Background Art
[0002] The computer operating system provides a disk cleaning manager, which has many types of cleanable items. Currently, the system disk cleaning manager uses a synchronous scanning and synchronous cleaning solution to scan and clean disk junk; however, the scanning process of each junk item may be very slow, which means that if there are three junk items A, B, and C in the system, the system disk cleaning manager must first scan junk item A before scanning junk item B and finally scanning junk item C when clearing junk, and the same is true when cleaning, which results in the problem of low efficiency of system disk scanning and cleaning. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a system disk cleaning method, device, electronic device and storage medium, which can improve the speed of system disk cleaning.
[0004] In a first aspect, an embodiment of the present invention provides a method for cleaning a system disk, comprising: obtaining identifiers of each proxy dynamic link library used to clean each target junk item, wherein the number of the target junk items is at least two, and each target junk item corresponds to a proxy dynamic link library; creating a corresponding garbage cleaning process for each target junk item according to the identifier of each proxy dynamic link library; and running each garbage cleaning process simultaneously to clean each target junk item.
[0005] Optionally, the creating a corresponding garbage cleaning process for each of the target garbage items based on the identifier of each of the proxy dynamic link libraries includes: for each of the target garbage items, performing the following operations: using the identifier of the proxy dynamic link library of the target garbage item and the identifier of the system disk cleaning interface to create a system disk cleaning interface object implemented by the proxy dynamic link library; calling the scanning function of the system disk cleaning interface object to scan the disk space occupied by the target garbage item; and calling the cleaning function of the system disk cleaning interface object based on the disk space occupied by the target garbage item to create a garbage cleaning process for the target garbage item.
[0006] Optionally, obtaining the identifier of each proxy dynamic link library used for cleaning each target junk item includes: searching for information of the proxy dynamic link library used by each target junk item in registry data; and searching for the identifier of the proxy dynamic link library in the information of the proxy dynamic link library.
[0007] Optionally, the use of the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface to create the system disk cleanup interface object implemented by the proxy dynamic link library includes: creating the system disk cleanup interface object implemented by the proxy dynamic link library through the CoCreateInstance function according to the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface.
[0008] Optionally, the system disk cleanup interface is an IEmptyVolumeCache interface; the step of using the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface to create a system disk cleanup interface object implemented by the proxy dynamic link library includes: using the identifier of the proxy dynamic link library of the target junk item and the identifier of the IEmptyVolumeCache interface to create an IEmptyVolumeCache interface object implemented by the proxy dynamic link library.
[0009] Optionally, calling the scanning function of the system disk cleaning interface object to scan the disk space occupied by the target junk item includes: calling the GetSpaceUsed function of the IEmptyVolumeCache interface object to scan the disk space occupied by the target junk item; calling the cleaning function of the system disk cleaning interface object according to the disk space occupied by the target junk item to create a garbage cleaning process for the target junk item includes: calling the Purge function of the IEmptyVolumeCache interface object according to the disk space occupied by the target junk item to create a garbage cleaning process for the target junk item.
[0010] In a second aspect, an embodiment of the present invention provides a system disk cleaning device, comprising: an acquisition unit, used to acquire identifiers of each proxy dynamic link library used to clean each target junk item, wherein the number of the target junk items is at least two, and each target junk item corresponds to a proxy dynamic link library; a creation unit, used to create a corresponding garbage cleaning process for each target junk item according to the identifier of each proxy dynamic link library; and a cleaning unit, used to run each garbage cleaning process simultaneously to clean each target junk item.
[0011] Optionally, the creation unit is specifically used to: for each target junk item, perform the following operations: use the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleaning interface to create a system disk cleaning interface object implemented by the proxy dynamic link library; call the scanning function of the system disk cleaning interface object to scan the disk space occupied by the target junk item; and call the cleaning function of the system disk cleaning interface object according to the disk space occupied by the target junk item to create a garbage cleaning process for the target junk item.
[0012] Optionally, the acquisition unit is specifically used to: search for information of a proxy dynamic link library used by each target junk item in registry data; and search for an identifier of the proxy dynamic link library in the information of the proxy dynamic link library.
[0013] Optionally, the use of the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface to create the system disk cleanup interface object implemented by the proxy dynamic link library includes: creating the system disk cleanup interface object implemented by the proxy dynamic link library through the CoCreateInstance function according to the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface.
[0014] Optionally, the system disk cleanup interface is an IEmptyVolumeCache interface; the step of using the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface to create a system disk cleanup interface object implemented by the proxy dynamic link library includes: using the identifier of the proxy dynamic link library of the target junk item and the identifier of the IEmptyVolumeCache interface to create an IEmptyVolumeCache interface object implemented by the proxy dynamic link library.
[0015] Optionally, calling the scanning function of the system disk cleaning interface object to scan the disk space occupied by the target junk item includes: calling the GetSpaceUsed function of the IEmptyVolumeCache interface object to scan the disk space occupied by the target junk item; calling the cleaning function of the system disk cleaning interface object according to the disk space occupied by the target junk item to create a garbage cleaning process for the target junk item includes: calling the Purge function of the IEmptyVolumeCache interface object according to the disk space occupied by the target junk item to create a garbage cleaning process for the target junk item.
[0016] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a shell, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside the space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the system disk cleaning method described in any of the aforementioned embodiments.
[0017] In a fourth aspect, an embodiment of the present invention further provides a storage medium for storing an application program, wherein the application program is used to execute the system disk cleaning method described in any of the aforementioned embodiments.
[0018] In a fifth aspect, an embodiment of the present invention further provides an application program for executing the system disk cleaning method described in any of the aforementioned embodiments.
[0019] The embodiments of the present invention provide a system disk cleaning method, device, electronic device and storage medium, which obtains the identifiers of the proxy dynamic link libraries used to clean up the target garbage items, wherein the number of the target garbage items is at least two, and each target garbage item corresponds to a proxy dynamic link library; according to the identifiers of the proxy dynamic link libraries, a corresponding garbage cleaning process is created for each target garbage item; and the garbage cleaning processes are run at the same time to clean up the target garbage items. In this way, the simultaneous cleaning of the target garbage items is achieved, which greatly improves the cleaning speed of the system disk. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 A schematic diagram of a flow chart of a method for cleaning a system disk provided in Embodiment 1 of the present invention;
[0022] Figure 2 A partial flow chart of a method for cleaning a system disk provided in Embodiment 1 of the present invention;
[0023] Figure 3 A schematic diagram of the structure of a system disk cleaning device provided in Embodiment 2 of the present invention;
[0024] Figure 4The figure is a schematic structural diagram of an embodiment of an electronic device of the present invention. DETAILED DESCRIPTION
[0025] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0026] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] Embodiment 1
[0028] The embodiment of the present invention provides a system disk cleaning method, which can improve the speed of system disk cleaning.
[0029] like Figure 1 As shown, an embodiment of the present invention provides a method for cleaning a system disk, comprising:
[0030] S101, obtaining identifiers of each proxy dynamic link library used to clean up each target junk item, wherein the number of the target junk items is at least two, and each of the target junk items corresponds to a proxy dynamic link library;
[0031] In this step, since the system disk cleaning manager classifies various types of junk files, such as Downloaded Program Files, Update Cleanup, WindowS Error Reporting Files, etc., each type of junk corresponds to a proxy dynamic link library (proxy DLL) used by the system disk cleaning; the system disk cleaning method provided by the embodiment of the present invention utilizes the proxy DLL corresponding to each type of junk to create a cleaning process for that type of junk and realize the cleaning of that type of junk.
[0032] Therefore, each of the target junk items corresponds to one type of junk in the system disk cleaning manager. All types of junk in the system disk cleaning manager can be used as the target junk items, or some types of junk in the system disk cleaning manager can be selected as the target junk items.
[0033] Optionally, obtaining the identifier of each proxy dynamic link library used for cleaning each target junk item may include: searching for information of the proxy dynamic link library used by each target junk item in registry data; and searching for the identifier of the proxy dynamic link library in the information of the proxy dynamic link library.
[0034] In this embodiment, in the registry data, SOFTWARE\\Microsoft\\WindowS\\CurrentVersion\\Explorer\\VolumeCaches\\ under HKEY_LOCAL_MACHINE stores the proxy dynamic link library (proxy DLL) used by each target junk item, and the default value item in the detailed information of each proxy DLL is the identifier of the proxy DLL, that is, the UUID information of the proxy DLL.
[0035] S102, creating a corresponding garbage cleaning process for each target garbage item according to the identifier of each proxy dynamic link library;
[0036] In this step, since the proxy dynamic link library corresponding to each target junk item is used to clean up the target junk item, the junk cleaning process of the target junk item can be created by using the identifier of the proxy DLL corresponding to the target junk item to clean up the target junk item.
[0037] S103: Run the garbage cleaning processes simultaneously to clean up the target garbage items.
[0038] In this step, the asynchronously executed garbage cleaning process can clean up each target garbage item at the same time, which greatly improves the cleaning speed of the system disk compared to the current method of the system disk cleaning manager to synchronously clean up various types of garbage files.
[0039] The embodiment of the present invention provides a method for cleaning a system disk, which obtains the identifiers of the proxy dynamic link libraries used for cleaning each target junk item, wherein the number of the target junk items is at least two, and each target junk item corresponds to a proxy dynamic link library; according to the identifiers of the proxy dynamic link libraries, a corresponding junk cleaning process is created for each target junk item; and the junk cleaning processes are run simultaneously to clean each target junk item. In this way, the simultaneous cleaning of each target junk item is achieved, which greatly improves the cleaning speed of the system disk.
[0040] like Figure 2 As shown, optionally, in the above embodiment, creating a corresponding garbage cleaning process for each target garbage item according to the identifier of each proxy dynamic link library includes: for each target garbage item, performing the following operations:
[0041] S1021, using the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface, creating a system disk cleanup interface object implemented by the proxy dynamic link library;
[0042] In this step, since the system disk cleaning is ultimately implemented by calling the system disk cleaning interface, the system disk cleaning interface object implemented by the proxy dynamic link library created in this step can realize the cleaning of the target junk items.
[0043] Specifically, system disk cleaning can be implemented by calling the interface IEmptyVolumeCache object provided by the Com server, so the system disk cleaning interface can be the IEmptyVolumeCache interface; at this time, the use of the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleaning interface to create the system disk cleaning interface object implemented by the proxy dynamic link library includes: using the identifier of the proxy dynamic link library of the target junk item and the identifier of the IEmptyVolumeCache interface to create the IEmptyVolumeCache interface object implemented by the proxy dynamic link library.
[0044] Optionally, in the above embodiment, the system disk cleanup interface object implemented by the proxy dynamic link library may be created through the CoCreateInstance function according to the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface.
[0045] S1022, calling the scanning function of the system disk cleaning interface object to scan the disk space occupied by the target junk item;
[0046] In this step, when the system disk cleanup interface object is an IEmptyVolumeCache interface object, calling the scanning function of the system disk cleanup interface object to scan the disk space occupied by the target junk item may include: calling the GetSpaceUsed function of the IEmptyVolumeCache interface object to scan the disk space occupied by the target junk item.
[0047] S1023. According to the disk space occupied by the target junk item, call the cleaning function of the system disk cleaning interface object to create a junk cleaning process for the target junk item.
[0048] In this step, when the system disk cleaning interface object is an IEmptyVolumeCache interface object, calling the cleaning function of the system disk cleaning interface object according to the disk space occupied by the target garbage item to create a garbage cleaning process for the target garbage item may include: calling the Purge function of the IEmptyVolumeCache interface object according to the disk space occupied by the target garbage item to create a garbage cleaning process for the target garbage item. The Purge function is used to clean up the target garbage item according to the disk space occupied by the target garbage item scanned by the GetSpaceUsed function.
[0049] According to the above steps S1021 to S1023, an executable program EXE for cleaning the target junk items can be implemented. In the same way, a corresponding EXE program can be implemented for different target junk items. Using each of the EXE programs, a new program can be created, and multiple EXE processes can be created at the same time to achieve simultaneous scanning and cleaning of the target junk items, thereby achieving the effect of asynchronous execution and greatly improving the scanning and cleaning speed of the system disk.
[0050] In addition, the system disk cleaning method provided in this embodiment can scan and clean up all junk files under each of the target junk items, overcoming the problem that the current operating system imposes time limits on some junk files, and junk within a certain period of time is not displayed, resulting in the system's disk cleaner not being able to clean up all the cleanable junk.
[0051] Embodiment 2
[0052] An embodiment of the present invention provides a system disk cleaning device, which can improve the speed of system disk cleaning.
[0053] like Figure 3 As shown, an embodiment of the present invention provides a system disk cleaning device, including: an acquisition unit 21, used to obtain identifiers of each proxy dynamic link library used to clean each target junk item, wherein the number of the target junk items is at least two, and each target junk item corresponds to a proxy dynamic link library; a creation unit 22, used to create a corresponding garbage cleaning process for each target junk item according to the identifier of each proxy dynamic link library; a cleaning unit 23, used to run each garbage cleaning process simultaneously to clean each target junk item.
[0054] Optionally, the creation unit is specifically used to: for each target junk item, perform the following operations: use the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleaning interface to create a system disk cleaning interface object implemented by the proxy dynamic link library; call the scanning function of the system disk cleaning interface object to scan the disk space occupied by the target junk item; and call the cleaning function of the system disk cleaning interface object according to the disk space occupied by the target junk item to create a garbage cleaning process for the target junk item.
[0055] Optionally, the acquisition unit is specifically used to: search for information of a proxy dynamic link library used by each target junk item in registry data; and search for an identifier of the proxy dynamic link library in the information of the proxy dynamic link library.
[0056] Optionally, the use of the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface to create the system disk cleanup interface object implemented by the proxy dynamic link library includes: creating the system disk cleanup interface object implemented by the proxy dynamic link library through the CoCreateInstance function according to the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface.
[0057] Optionally, the system disk cleanup interface is an IEmptyVolumeCache interface; the step of using the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface to create a system disk cleanup interface object implemented by the proxy dynamic link library includes: using the identifier of the proxy dynamic link library of the target junk item and the identifier of the IEmptyVolumeCache interface to create an IEmptyVolumeCache interface object implemented by the proxy dynamic link library.
[0058] Optionally, calling the scanning function of the system disk cleaning interface object to scan the disk space occupied by the target junk item includes: calling the GetSpaceUsed function of the IEmptVVolumeCache interface object to scan the disk space occupied by the target junk item; calling the cleaning function of the system disk cleaning interface object according to the disk space occupied by the target junk item to create a garbage cleaning process for the target junk item includes: calling the Purge function of the IEmptyVolumeCache interface object according to the disk space occupied by the target junk item to create a garbage cleaning process for the target junk item.
[0059] The device of this embodiment can be used to perform Figures 1 to 2The technical solution of the method embodiment shown has similar implementation principles and technical effects, which will not be repeated here.
[0060] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0061] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0062] In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0063] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0064] It should be understood that various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof.
[0065] In the above embodiments, multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it may be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0066] An embodiment of the present invention further provides an electronic device, wherein the electronic device comprises the device described in any of the above embodiments.
[0067] Figure 4 This is a schematic diagram of the structure of an embodiment of the electronic device of the present invention, which can implement the present invention Figure 1-2 The process of the embodiment shown is as follows: Figure 4As shown, the electronic device may include: a housing 31, a processor 32, a memory 33, a circuit board 34 and a power supply circuit 35, wherein the circuit board 34 is arranged inside the space enclosed by the housing 31, and the processor 32 and the memory 33 are arranged on the circuit board 34; the power supply circuit 35 is used to supply power to various circuits or devices of the electronic device; the memory 33 is used to store executable program codes; the processor 32 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 33, so as to execute the system disk cleaning method described in any of the above embodiments.
[0068] For details on the specific execution process of the above steps by the processor 32 and the steps further executed by the processor 32 by running the executable program code, please refer to the present invention. Figure 1-2 The description of the illustrated embodiment will not be repeated here.
[0069] This electronic device exists in many forms, including but not limited to:
[0070] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
[0071] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.
[0072] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, smart toys, and portable car navigation devices.
[0073] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0074] (5) Other electronic devices with data interaction functions.
[0075] An embodiment of the present invention further provides a storage medium for storing an application program, wherein the application program is used to execute a system disk cleaning method provided by an embodiment of the present invention.
[0076] The embodiment of the present invention further provides an application program for executing the system disk cleaning method provided by the embodiment of the present invention.
[0077] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0078] For the convenience of description, the above device is described by dividing the functions into various units / modules. Of course, when implementing the present invention, the functions of each unit / module can be implemented in the same or multiple software and / or hardware.
[0079] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.
[0080] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for cleaning a system disk, characterized in that: include: Obtaining identifiers of each proxy dynamic link library used to clean up each target junk item, wherein the number of the target junk items is at least two, and each of the target junk items corresponds to a proxy dynamic link library; Creating a corresponding garbage cleaning process for each of the target garbage items according to the identifiers of the proxy dynamic link libraries; Running each of the garbage cleaning processes at the same time to clean up each of the target garbage items; The step of creating a corresponding garbage cleaning process for each target garbage item according to the identifier of each proxy dynamic link library comprises: For each of the target junk items, perform the following actions: Using the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface, create a system disk cleanup interface object implemented by the proxy dynamic link library; Calling the scanning function of the system disk cleaning interface object to scan the disk space occupied by the target junk item; According to the disk space occupied by the target junk item, the cleaning function of the system disk cleaning interface object is called to create a junk cleaning process for the target junk item.
2. The method according to claim 1, characterized in that The step of obtaining identifiers of each proxy dynamic link library used to clean up each target junk item includes: In the registry data, find the information of the proxy dynamic link library used by each target junk item; The identifier of the proxy dynamic link library is searched in the information of the proxy dynamic link library.
3. The method according to claim 1, characterized in that The step of using the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface to create a system disk cleanup interface object implemented by the proxy dynamic link library includes: According to the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleaning interface, a system disk cleaning interface object implemented by the proxy dynamic link library is created through the CoCreateInstance function.
4. The method according to claim 1, characterized in that The system disk cleaning interface is an IEmptyVolumeCache interface; the use of the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleaning interface to create a system disk cleaning interface object implemented by the proxy dynamic link library includes: An IEmptyVolumeCache interface object implemented by the proxy dynamic link library is created by using the identifier of the proxy dynamic link library of the target junk item and the identifier of the IEmptyVolumeCache interface.
5. The method according to claim 4, characterized in that The calling of the scanning function of the system disk cleaning interface object to scan the disk space occupied by the target junk item includes: Calling the GetSpaceUsed function of the IEmptyVolumeCache interface object to scan the disk space occupied by the target junk item; The step of calling the cleaning function of the system disk cleaning interface object according to the disk space occupied by the target garbage item to create a garbage cleaning process for the target garbage item includes: According to the disk space occupied by the target junk item, the Purge function of the IEmptyVolumeCache interface object is called to create a junk cleaning process for the target junk item.
6. A system disk cleaning device, characterized in that: include: An acquisition unit, used to acquire identifiers of each proxy dynamic link library used to clean up each target junk item, wherein the number of the target junk items is at least two, and each of the target junk items corresponds to a proxy dynamic link library; A creation unit, configured to create a corresponding garbage cleaning process for each of the target garbage items according to the identifiers of the proxy dynamic link libraries; A cleaning unit, used to run the garbage cleaning processes simultaneously to clean up the target garbage items; The creation unit is specifically used for: For each of the target junk items, perform the following actions: Using the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface, create a system disk cleanup interface object implemented by the proxy dynamic link library; Calling the scanning function of the system disk cleaning interface object to scan the disk space occupied by the target junk item; According to the disk space occupied by the target junk item, the cleaning function of the system disk cleaning interface object is called to create a junk cleaning process for the target junk item.
7. The device according to claim 6, characterized in that The acquisition unit is specifically used for: In the registry data, find the information of the proxy dynamic link library used by each target junk item; The identifier of the proxy dynamic link library is searched in the information of the proxy dynamic link library.
8. The device according to claim 6, characterized in that The step of using the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleanup interface to create a system disk cleanup interface object implemented by the proxy dynamic link library includes: According to the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleaning interface, a system disk cleaning interface object implemented by the proxy dynamic link library is created through the CoCreateInstance function.
9. The device according to claim 6, characterized in that The system disk cleaning interface is an IEmptyVolumeCache interface; the use of the identifier of the proxy dynamic link library of the target junk item and the identifier of the system disk cleaning interface to create a system disk cleaning interface object implemented by the proxy dynamic link library includes: An IEmptyVolumeCache interface object implemented by the proxy dynamic link library is created by using the identifier of the proxy dynamic link library of the target junk item and the identifier of the IEmptyVolumeCache interface.
10. The device according to claim 9, characterized in that The calling of the scanning function of the system disk cleaning interface object to scan the disk space occupied by the target junk item includes: Calling the GetSpaceUsed function of the IEmptyVolumeCache interface object to scan the disk space occupied by the target junk item; The step of calling the cleaning function of the system disk cleaning interface object according to the disk space occupied by the target garbage item to create a garbage cleaning process for the target garbage item includes: According to the disk space occupied by the target junk item, the Purge function of the IEmptyVolumeCache interface object is called to create a junk cleaning process for the target junk item.
11. An electronic device, characterized in that: The electronic device comprises: a shell, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside the space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the system disk cleaning method described in any one of claims 1 to 5.
12. A computer-readable storage medium for storing an application program, wherein the application program is used to execute the system disk cleaning method according to any one of claims 1 to 5.
