Summary of the invention
Technical problems to be solved in this application are to provide a kind of methods of exhibiting and device of off-limit file, can reduce user's running cost, strengthen user and use the convenience of antivirus software, thereby improve user's experience.
In order to address the above problem, the application discloses a kind of methods of exhibiting of off-limit file, comprising:
Set up virtual file directory for off-limit file;
Utilize operating system shell to show the off-limit file under described virtual file directory and/or described virtual file directory.
Preferably, the described step of utilizing the off-limit file under virtual file directory and/or the described virtual file directory that operating system shell shows described off-limit file, comprising:
In the window of operating system program manager shell, and/or in the window of operating-system resources manager shell, and/or in operating system right-click menu, show described virtual file directory; Or
In showing operating system shell, show the off-limit file under described virtual file directory.
Preferably, the described step of setting up virtual file directory for off-limit file, comprising:
Based on enclosure interface, for off-limit file component registration object model interface in the registration table of operating system, wherein, described the Component Object Model interface is corresponding with virtual file directory, be used for binding specific operating system shell, and the catalogue disposal route of described virtual file directory is provided.
Preferably, the described step of utilizing operating system shell to show described virtual file directory, comprising:
In the time of the start-up operation receiving from user's operating system shell, in the registration table of operating system, enumerate the Component Object Model interface of the described operating system shell of binding;
Call and enumerate the Component Object Model interface obtaining, under the displaying interface of described operating system shell, show corresponding virtual file directory according to the catalogue disposal route providing by described the Component Object Model interface.
Preferably, the catalogue disposal route of described virtual file directory comprises one or more in following method: icon, thumbnail, message notifying are set;
Preferably, described the Component Object Model interface is also for providing physical location and the document handling method of described off-limit file;
The described step of utilizing operating system shell to show the off-limit file under described virtual file directory, comprising:
In the time of the start-up operation receiving from user's operating system shell, in the registration table of operating system, enumerate the Component Object Model interface of the described operating system shell of binding;
Call and enumerate the Component Object Model interface obtaining, by described the Component Object Model interface under the displaying interface of described operating system shell, read corresponding off-limit file from provided physical location, and show corresponding off-limit file according to the document handling method providing.
Preferably, the document handling method of described off-limit file comprises one or more in following method: use title, size, type, amendment date, segregate time, segregate source document path, danger classes, icon, thumbnail, message notifying.
Preferably, described method also comprises:
For the off-limit file of different danger classess, show different icons.
Preferably, described operating system shell comprises the shell of recycle bin.
Preferably, described method also comprises:
Process the operation of user for the off-limit file under shown virtual file directory and/or described virtual file directory.
On the other hand, disclosed herein as well is a kind of exhibiting device of off-limit file, comprising:
Virtual file directory is set up module, for setting up virtual file directory for off-limit file;
Display module, for utilizing operating system shell to show the off-limit file under described virtual file directory and/or described virtual file directory.
Preferably, described display module comprises:
Virtual file directory is shown submodule, for the window at operating system program manager shell, and/or in the window of operating-system resources manager shell, and/or in operating system right-click menu, show described virtual file directory; Or
Off-limit file is shown submodule, in showing operating system shell, shows the off-limit file under described virtual file directory.
Preferably, described virtual file directory is set up module and is comprised:
Registration submodule, in order to based on enclosure interface, for off-limit file component registration object model interface in the registration table of operating system, wherein, described the Component Object Model interface is corresponding with virtual file directory, be used for binding specific operating system shell, and the catalogue disposal route of described virtual file directory is provided.
Preferably, described display module comprises:
First enumerates submodule, for when the start-up operation receiving from user's operating system shell, enumerates the Component Object Model interface of the described operating system shell of binding in the registration table of operating system;
Second calls submodule, enumerates for calling the Component Object Model interface obtaining.Under the displaying interface of described operating system shell, show corresponding virtual file directory according to the catalogue disposal route providing by described the Component Object Model interface.
Preferably, the catalogue disposal route of described virtual file directory comprises one or more in following method: icon, thumbnail, message notifying are set.
Preferably, described the Component Object Model interface is also for providing physical location and the document handling method of described off-limit file;
Described display module comprises:
Second enumerates submodule, for when the start-up operation receiving from user's operating system shell, enumerates the Component Object Model interface of the described operating system shell of binding in the registration table of operating system;
Second calls submodule, enumerate for calling the Component Object Model interface obtaining, by described the Component Object Model interface under the displaying interface of described operating system shell, read corresponding off-limit file from provided physical location, and show corresponding off-limit file according to the document handling method providing.
Preferably, the document handling method of described off-limit file comprises one or more in following method: use title, size, type, amendment date, icon, thumbnail, message notifying.
Preferably, described operating system shell comprises the shell of recycle bin.
Preferably, described device also comprises:
Processing module, the operation for the treatment of user for the off-limit file under shown virtual file directory and/or described virtual file directory.
Compared with prior art, the application has the following advantages:
The application can provide virtual file directory this entrance to user, and with the off-limit file under convenient access and operation virtual file directory, so can reduce the cost of operation, enhancing user uses convenience and the friendly of antivirus software;
In prior art, domestic consumer need to be through repeatedly clicking the entrance that just can find off-limit file catalogue on the interface of antivirus software, the probability of user's access and operation isolation file is very low like this, but, under off-limit file catalogue, often depositing a large amount of off-limit files, the disk space that even some off-limit file (such as online game executable program, plug-in patch etc.) takies is very large, if user does not go access and operates these off-limit files, so, off-limit file can not get cleaning forever, can take to sustainable growth user's disk; And because the application can provide the entrance of convenient access and operation isolation file, this increases with regard to user is accessed with the probability of operation isolation file, and described operation can be deleted useless off-limit file, or, can recover by the file of " mistake " isolation, so the application can avoid off-limit file sustainable growth and take user's disk space.
Embodiment
For the above-mentioned purpose, the feature and advantage that make the application can become apparent more, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
Inventor herein notices, the off-limit file catalogue of antivirus software, for domestic consumer, more or less has kind of " mystique ", so domestic consumer need to be through repeatedly clicking the entrance that just can find off-limit file catalogue on the interface of antivirus software.
If off-limit file catalogue and the familiar operating system shell of user can be connected, user can find the entrance of off-limit file catalogue easily.For example, conventional interfacings such as " recycle bins " that if off-limit file catalogue and user can be familiar with, so, click the entrance at conventional interfaces such as " recycle bins " during user, can be in starting the operation of " recycle bin " showing interface, call the operation that realizes the displaying off-limit file catalogue of injecting, on " recycle bin " interface, show off-limit file catalogue simultaneously.
Here, if by rigid the moving of off-limit file catalogue " recycle bin " interface of antivirus software, can change the path structure of antivirus software, and the antivirus software that same user uses may have multiple, so, described rigid moving can be like this, and user can arbitrarily use off-limit file, thereby causes virus.
So, for fear of affecting the original isolation of antivirus software, the application does not change the physical location of off-limit file catalogue and its lower off-limit file, but set up corresponding virtual file directory for off-limit file, for operating system nucleus, the physical location of the off-limit file under the address of the off-limit file under virtual file directory and real off-limit file catalogue has mapping or corresponding relation.And from user's angle, without knowing where the off-limit file under real off-limit file catalogue is stored in, as long as it can pass through this entrance of virtual file directory, the off-limit file under access and operation virtual file directory is just passable.Like this, can reduce the cost of operation, enhancing user uses convenience and the friendly of antivirus software,
One of core idea of the embodiment of the present application is, sets up virtual file directory for off-limit file, and utilizes operating system shell to show the off-limit file under described virtual file directory and/or described virtual file directory.Because the application can provide virtual file directory this entrance to user, with the off-limit file under convenient access and operation virtual file directory, so can reduce the cost of operation, enhancing user uses convenience and the friendly of antivirus software.
The application can provide the application scenarios that utilizes as follows operating system shell to show the off-limit file under described virtual file directory and/or described virtual file directory:
Scene 1,
In the window of operating system program manager shell, show described virtual file directory.
With reference to Fig. 1, in a kind of application example of the application, can be illustrated at described virtual file directory the window show area of " my computer ", wherein, rectangle frame 101 is positioned at the also column region under " scanner and camera ", for representing described virtual file directory.User double-clicks this rectangle frame 101 can enter described virtual file directory, and accesses the off-limit file under described virtual file directory.
Certainly, rectangle frame 101 can also be positioned at other position of the window show area of " my computer ", and the application is not limited this.
Scene 2,
In the window of operating-system resources manager shell, show described virtual file directory.
With reference to Fig. 2, in a kind of application example of the application, can in the window show area of " explorer ", add the displaying entry of a virtual file directory, this displaying entry has the rectangle frame 201 of file printed words to represent with inner, and it is positioned at the also column region under " desktop ".
Be appreciated that inside has the rectangle frame 201 of file printed words can also be positioned at other position of the window show area of " explorer ", the application is not limited this.
Scene 3,
In operating system right-click menu, show described virtual file directory.
User, in this locality or when right button clicked the mouse by web browser, all can eject similar operating system right-click menu.For example, with reference to Fig. 3, in a kind of application example of the application, can in " right-click menu ", add the displaying entry of a virtual file directory, this displaying entry represents with rectangle frame 301.Be appreciated that the display location in operating system right-click menu is not limited the application to rectangle frame 301.
Scene 4,
In showing operating system shell, show the off-limit file under described virtual file directory.
Because file in off-limit file and recycle bin has a similitude, be also that the two all can be reduced, therefore in a preferred embodiment of the present application, described operating system shell can comprise the shell of recycle bin.
With reference to Fig. 4, in a kind of application example of the application, can adopt Fig. 4 (A) that the show area of recycle bin is divided into up and down to recycle bin district 401 arranged side by side and off-limit file district 402, also can adopt Fig. 4 (B) that the show area of recycle bin is divided into recycle bin district 401 arranged side by side, left and right and off-limit file district 402.Certainly, those skilled in the art can also be according to actual needs, adopts other partitioning scheme, shows file and the off-limit file of recycle bin in the show area of recycle bin simultaneously.
In addition, except the shell of recycle bin, the application can also show in the show area of other operating system shell self shell and off-limit file simultaneously, as my document, my music, picture collection, and disk root directory etc., the application is not limited concrete operating system shell.
With reference to Fig. 5, show the process flow diagram of the methods of exhibiting embodiment of a kind of off-limit file of the application, specifically can comprise:
Step 501, set up virtual file directory for off-limit file;
The application can be for showing the off-limit file of various antivirus softwares and/or fire wall, the application's intention is by showing off-limit file, the entrance that access and operation isolation file are provided to user, can't be limited the actual source of off-limit file.
Com interface is a kind of scale-of-two and network standard, is also a kind of component standard of wideling popularize and having obtained extensive accreditation.In COM standard, com object is well encapsulated, and what client cannot access object realizes details, and the unique access approach that offers user is to visit by com interface.There is the implication of two aspects for com interface: first it is one group of function that can Gong call, and client can allow this object do some thing thus; Secondly, be also even more important, interface is the agreement between assembly and CLIENT PROGRAM thereof.That is to say interface has not only defined available what function, also defined object in the time calling these functions what will do.
Therefore,, in a preferred embodiment of the present application, can realize based on NameSpace Extension (NameSpace expansion) mechanism COM (the Component Object Model, the Component Object Model) interface of virtual file directory.
Correspondingly, the described step of setting up virtual file directory for off-limit file, may further include:
Based on shell (Shell Folder) interface, for off-limit file component registration object model interface in the registration table of operating system, wherein, described the Component Object Model interface is corresponding with virtual file directory, be used for binding specific operating system shell, and the catalogue disposal route of described virtual file directory is provided.
In specific implementation, can adopt the BindToObject method of IShellFolder com interface to bind specific operating system shell (as recycle bin, my computer, explorer etc.).
In practice, the catalogue disposal route of described virtual file directory can comprise one or more in following method: icon, thumbnail, message notifying are set.For example, can the catalogue such as icon and/or thumbnail and/or message notifying disposal route be set to respectively the virtual file directory under scene 1, scene 2 and scene 3, other content difference in itself and operating system shell showing interface district is come.Certainly except icon, thumbnail, message notifying, the catalogue disposal route of described virtual file directory can also comprise title etc., and the application is not limited this.
Step 502, utilize operating system shell to show the off-limit file under described virtual file directory and/or described virtual file directory.
In a preferred embodiment of the present application, the described step of utilizing operating system shell to show described virtual file directory, may further include:
In the time of the start-up operation receiving from user's operating system shell, in the registration table of operating system, enumerate the Component Object Model interface of the described operating system shell of binding;
Call and enumerate the Component Object Model interface obtaining, under the displaying interface of described operating system shell, show corresponding virtual file directory according to the catalogue disposal route providing by described the Component Object Model interface.
In practice, the Class ID of described the Component Object Model interface in can corresponding registration table.Like this, can adopt the EnumObjects method of IShellFolder com interface to enumerate the Class ID of binding operating system shell described in certain.Supposing has 10 Class ID to bind " my computer " in registration table, needs here to obtain one by one this 10 Class ID by enumerating.
Mention above, com interface is one group of function that can Gong call, client can allow this object do some thing thus, therefore can inject in advance behavior code in the time of registration in com interface, shows corresponding virtual file directory by these behavior codes according to the catalogue disposal route providing.
In another preferred embodiment of the present application, described the Component Object Model interface is also for providing physical location and the document handling method of described off-limit file;
Now, the described step of utilizing operating system shell to show the off-limit file under described virtual file directory, may further include:
In the time of the start-up operation receiving from user's operating system shell, in the registration table of operating system, enumerate the Component Object Model interface of the described operating system shell of binding;
Call and enumerate the Component Object Model interface obtaining, by described the Component Object Model interface under the displaying interface of described operating system shell, read corresponding off-limit file from provided physical location, and show corresponding off-limit file according to the document handling method providing.
In like manner, also can in the time of registration, in com interface, inject in advance behavior code, read corresponding off-limit file by these behavior codes from provided physical location, and show corresponding off-limit file according to the document handling method providing.
In a preferred embodiment of the present application, the document handling method of described off-limit file can comprise one or more in following method: use title, size, type, amendment date, segregate time, segregate source document path, danger classes, icon, thumbnail, message notifying.Wherein, danger classes can be used for representing the harmfulness degree of off-limit file, for example, the danger classes of 1-5 can be set.
In another preferred embodiment of the present application, while using at the same time danger classes and icon, described method can also comprise: for the off-limit file of different danger classess, show different icons.For example, the off-limit file that is 1 for danger classes, shows and adds lock icon; The off-limit file that is 2 for danger classes, shows and adds barred window icon; The off-limit file that is 3 for danger classes, shows the redness wooden horse icon etc. that is held in captivity.In a word, those skilled in the art can, according to actual conditions, carry out the displaying of off-limit file, and can not limited concrete icon.
In some cases, user only wonders which off-limit file has, so time, utilize operating system shell to show that the off-limit file under described virtual file directory and/or described virtual file directory is just enough.
In other situation, antivirus software will not be likely also that viral file carries out " mistake " isolation, and for example, user's a game plug-in unit is isolated, now will affect the normal use of user's game, now user just wishes off-limit file to recover.
Also have under certain situation, user checks after certain off-limit file, though this off-limit file also not confirmed contain virus, but the place that is out of use concerning user, so time wish its deletion.
No matter be recover or delete, user can carry out corresponding operation.For example, user uses Delete key that off-limit file is deleted.And for example, the application can also provide the menu of deletion, recovery operation in right-click menu, is selected and is carried out by user.It should be noted that, except deleting, the menu of recovery operation, the menu that the application can also provide shearings, attribute to check etc. to operate.In practice, the operation that all right-click menus are corresponding can registration in advance in the behavior code of corresponding com interface.
Like this, in another preferred embodiment of the present application, described method can also comprise:
Process the operation of user for the off-limit file under shown virtual file directory and/or described virtual file directory.
For example, in the time receiving user for the double click operation of shown virtual file directory, can further present the off-limit file under described virtual file directory for user.
And for example, in the time receiving user for the deletion action of shown off-limit file, described processing not only will be deleted this off-limit file under respective virtual file directory, and the physical locations of off-limit file that will be under real off-limit file catalogue is deleted this off-limit file.
For another example, in the time receiving user for the recovery operation of shown off-limit file, described processing not only will be under respective virtual file directory, the physical locations of off-limit file under real off-limit file catalogue is deleted this off-limit file, and this off-limit file to be returned to the physical location before being isolated, under user's game contents, etc.
It should be noted that, described processing operation also can registration in advance in the behavior code of corresponding com interface.
In a word, the application's tool has the following advantages:
1, the application can provide virtual file directory this entrance to user, and with the off-limit file under convenient access and operation virtual file directory, so can reduce the cost of operation, enhancing user uses convenience and the friendly of antivirus software;
2, in prior art, domestic consumer need to be through repeatedly clicking the entrance that just can find off-limit file catalogue on the interface of antivirus software, the probability of user's access and operation isolation file is very low like this, but, under off-limit file catalogue, often depositing a large amount of off-limit files, the disk space that even some off-limit file (for example online game plug-in unit) takies is very large, if user does not go access and operates these off-limit files, so, off-limit file can not get cleaning forever, can take to sustainable growth user's disk; And because the application can provide the entrance of convenient access and operation isolation file, this increases with regard to user is accessed with the probability of operation isolation file, and described operation can be deleted useless off-limit file, or, can recover by the off-limit file of " mistake " isolation, so the application can avoid off-limit file sustainable growth and take user's disk space.
Embodiment is corresponding with preceding method, disclosed herein as well is a kind of exhibiting device of off-limit file, with reference to Fig. 6, specifically can comprise:
Virtual file directory is set up module 601, for setting up virtual file directory for off-limit file;
Display module 602, for utilizing operating system shell to show the off-limit file under described virtual file directory and/or described virtual file directory.
In a preferred embodiment of the present application, described display module 602 may further include:
Virtual file directory is shown submodule, for the window at operating system program manager shell, and/or in the window of operating-system resources manager shell, and/or in operating system right-click menu, show described virtual file directory; Or
Off-limit file is shown submodule, in showing operating system shell, shows the off-limit file under described virtual file directory.
In another preferred embodiment of the present application, described virtual file directory is set up module 601 and specifically can be comprised:
Registration submodule, in order to based on enclosure interface, for off-limit file component registration object model interface in the registration table of operating system, wherein, described the Component Object Model interface is corresponding with virtual file directory, be used for binding specific operating system shell, and the catalogue disposal route of described virtual file directory is provided.
In a preferred embodiment of the present application, described display module 602 may further include: first enumerates submodule, for when the start-up operation receiving from user's operating system shell, in the registration table of operating system, enumerate the Component Object Model interface of the described operating system shell of binding;
Second calls submodule, enumerates for calling the Component Object Model interface obtaining.Under the displaying interface of described operating system shell, show corresponding virtual file directory according to the catalogue disposal route providing by described the Component Object Model interface.
In the embodiment of the present application, preferably, the catalogue disposal route of described virtual file directory specifically can comprise one or more in following method: icon, thumbnail, message notifying are set;
In another preferred embodiment of the application, described the Component Object Model interface also can be used for providing physical location and the document handling method of described off-limit file;
Now, described display module 602 may further include:
Second enumerates submodule, for when the start-up operation receiving from user's operating system shell, enumerates the Component Object Model interface of the described operating system shell of binding in the registration table of operating system;
Second calls submodule, enumerate for calling the Component Object Model interface obtaining, by described the Component Object Model interface under the displaying interface of described operating system shell, read corresponding off-limit file from provided physical location, and show corresponding off-limit file according to the document handling method providing.
In the embodiment of the present application, preferably, the document handling method of described off-limit file specifically can comprise one or more in following method: use title, size, type, amendment date, segregate time, segregate source document path, danger classes, icon, thumbnail, message notifying.
In the embodiment of the present application, preferably, described operating system shell can comprise the shell of recycle bin.
In a preferred embodiment of the present application, described device can also comprise:
Processing module, the operation for the treatment of user for the off-limit file under shown virtual file directory and/or described virtual file directory.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.
The methods of exhibiting of a kind of off-limit file above the application being provided and device, be described in detail, applied principle and the embodiment of specific case to the application herein and set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; , for one of ordinary skill in the art, according to the application's thought, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application meanwhile.