Summary of the invention
The application's technical matters to be solved provides a kind of methods of exhibiting and device of off-limit file, can reduce user's running cost, strengthens the convenience that the user uses antivirus software, thereby improves 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 to off-limit file;
Utilize operating system shell to show the off-limit file under said virtual file directory and/or the said virtual file directory.
Preferably, the said virtual file directory that operating system shell shows said off-limit file and/or the step of the off-limit file under the said virtual file directory utilized comprises:
In the window of operating system program manager shell, and/or in the window of operating-system resources manager shell, and/or in the operating system right-click menu, show said virtual file directory; Perhaps
When showing operating system shell, show the off-limit file under the said virtual file directory.
Preferably, saidly set up the step of virtual file directory, comprising to off-limit file:
Based on enclosure interface; To off-limit file component registration object model interface in the registration table of operating system, wherein, said The Component Object Model interface is corresponding with virtual file directory; Be used to bind specific operating system shell, and the catalogue disposal route of said virtual file directory is provided.
Preferably, the said step of utilizing operating system shell to show said virtual file directory comprises:
When the start-up operation that receives from user's operating system shell, in the registration table of operating system, enumerate the The Component Object Model interface of binding said operating system shell;
Call and enumerate the The Component Object Model interface that obtains, under the displaying interface of said operating system shell, show corresponding virtual file directory according to the catalogue disposal route that provides by said The Component Object Model interface.
Preferably, the catalogue disposal route of said virtual file directory comprises one or more in the following method: icon, thumbnail, message notifying;
Preferably, said The Component Object Model interface also is used to provide the physical location and the document handling method of said off-limit file;
The said step of utilizing operating system shell to show the off-limit file under the said virtual file directory comprises:
When the start-up operation that receives from user's operating system shell, in the registration table of operating system, enumerate the The Component Object Model interface of binding said operating system shell;
Call and enumerate the The Component Object Model interface that obtains; By said The Component Object Model interface under the displaying interface of said operating system shell; Read corresponding off-limit file from the physical location that is provided, and show corresponding off-limit file according to the document handling method that provides.
Preferably, the document handling method of said off-limit file comprises one or more in the following method: title, size, type, modification date, segregate time, segregate source document path, danger classes, icon, thumbnail, message notifying.
Preferably, said method also comprises:
For the off-limit file of different danger classess, show different icons.
Preferably, said operating system shell comprises the shell of recycle bin.
Preferably, said method also comprises:
Process user is to the operation of the off-limit file of show under virtual file directory and/or the said 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, is used for setting up virtual file directory to off-limit file;
Display module is used to utilize operating system shell to show the off-limit file under said virtual file directory and/or the said virtual file directory.
Preferably, said display module comprises:
Virtual file directory is showed submodule, is used for the window at operating system program manager shell, and/or in the window of operating-system resources manager shell, and/or in the operating system right-click menu, show said virtual file directory; Perhaps
Off-limit file is showed submodule, is used for when showing operating system shell, showing the off-limit file under the said virtual file directory.
Preferably, said virtual file directory is set up module and is comprised:
The registration submodule; In order to based on enclosure interface; To off-limit file component registration object model interface in the registration table of operating system, wherein, said The Component Object Model interface is corresponding with virtual file directory; Be used to bind specific operating system shell, and the catalogue disposal route of said virtual file directory is provided.
Preferably, said display module comprises:
First enumerates submodule, is used for when the start-up operation that receives from user's operating system shell, in the registration table of operating system, enumerating the The Component Object Model interface of binding said operating system shell;
Second calls submodule, is used to call enumerate the The Component Object Model interface that obtains.Under the displaying interface of said operating system shell, show corresponding virtual file directory by said The Component Object Model interface according to the catalogue disposal route that provides.
Preferably, the catalogue disposal route of said virtual file directory comprises one or more in the following method: icon, thumbnail, message notifying.
Preferably, said The Component Object Model interface also is used to provide the physical location and the document handling method of said off-limit file;
Said display module comprises:
Second enumerates submodule, is used for when the start-up operation that receives from user's operating system shell, in the registration table of operating system, enumerating the The Component Object Model interface of binding said operating system shell;
Second calls submodule; Be used to call and enumerate the The Component Object Model interface that obtains; By said The Component Object Model interface under the displaying interface of said operating system shell; Read corresponding off-limit file from the physical location that is provided, and show corresponding off-limit file according to the document handling method that provides.
Preferably, the document handling method of said off-limit file comprises one or more in the following method: title, size, type, modification date, icon, thumbnail, message notifying.
Preferably, said operating system shell comprises the shell of recycle bin.
Preferably, said device also comprises:
Processing module is used for the operation of process user to the off-limit file of show under virtual file directory and/or the said virtual file directory.
Compared with prior art, the application has the following advantages:
The application can provide virtual file directory this inlet to the user, with convenient access and the off-limit file of operating under the virtual file directory, so can reduce the cost of operation, strengthens convenience and friendly that the user uses antivirus software;
In the prior art; Domestic consumer need be through repeatedly clicking the inlet that just can find the off-limit file catalogue on the interface of antivirus software, and user capture is very low with the probability of operation off-limit file like this, still; Often depositing a large amount of off-limit files under the off-limit file catalogue; Even the disk space that some off-limit file (for example online game executable program, plug-in patch etc.) takies is very big, if the user does not go visit 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 inlet of convenient access with the operation off-limit file; This just makes the user capture and the probability of operation off-limit file heighten; And said operation can be deleted useless off-limit file, perhaps, can recover the file of being isolated by " mistake "; So the application takies user's disk space with can avoiding the off-limit file sustainable growth.
Embodiment
For above-mentioned purpose, the feature and advantage that make the application can be more obviously understandable, the application is done further detailed explanation below in conjunction with accompanying drawing and embodiment.
The inventor herein notices that the off-limit file catalogue of antivirus software more or less has kind of " mystique " for domestic consumer, so domestic consumer need be through repeatedly clicking the inlet that just can find the off-limit file catalogue on the interface of antivirus software.
If can the operating system shell that off-limit file catalogue and user are familiar be connected, then the user can find the inlet of off-limit file catalogue easily.For example; If the interfacings commonly used such as " recycle bins " that can off-limit file catalogue and user be familiar with; So, when the user clicks the inlet at interfaces commonly used such as " recycle bins ", can be when starting to the operation of " recycle bin " showing interface; Call the operation of the displaying off-limit file catalogue that realizes injection, on " recycle bin " interface, show the off-limit file catalogue simultaneously.
Here; If with rigid the moving of off-limit file catalogue " recycle bin " interface of antivirus software, then can change the path structure of antivirus software, and the antivirus software that same user uses has a plurality of; So; Said rigid moving can be like this, and the user can arbitrarily use off-limit file, thereby causes virus.
So; For fear of influencing the original isolation of antivirus software; The application does not change the physical location of off-limit file catalogue and its following off-limit file; But set up corresponding virtual file directory to off-limit file, for operating system nucleus, the physical location of the off-limit file under the address of the off-limit file under the virtual file directory and the real off-limit file catalogue has mapping or corresponding relation.And, need not to know where the off-limit file under the real off-limit file catalogue is stored in from user's angle, as long as it can be through this inlet of virtual file directory, the off-limit file under visit and the operation virtual file directory is just passable.Like this, the cost of operation be can reduce, convenience and friendly that the user uses antivirus software strengthened,
One of core idea of the application embodiment is, sets up virtual file directory to off-limit file, and utilizes operating system shell to show the off-limit file under said virtual file directory and/or the said virtual file directory.Because the application can provide virtual file directory this inlet to the user, with convenient access and the off-limit file of operating under the virtual file directory, so can reduce the cost of operation, strengthens convenience and friendly that the user uses antivirus software.
The application can provide the application scenarios that utilizes operating system shell to show the off-limit file under said virtual file directory and/or the said virtual file directory as follows:
Scene 1,
In the window of operating system program manager shell, show said virtual file directory.
With reference to Fig. 1; In a kind of applying examples of the application, can be illustrated in the window show area of " my computer " at said virtual file directory, wherein; Rectangle frame 101 is positioned at the also column region under " scanner and camera ", is used to represent said virtual file directory.The user double-clicks this rectangle frame 101 can get into said virtual file directory, and visits the off-limit file under the said 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 does not limit this.
Scene 2,
In the window of operating-system resources manager shell, show said virtual file directory.
With reference to Fig. 2; In a kind of applying examples of the application; The displaying clauses and subclauses that can in the window show area of " explorer ", add a virtual file directory, these displaying clauses and subclauses have 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 does not limit this.
Scene 3,
In the operating system right-click menu, show said virtual file directory.
The user all can eject similar operation system right-click menu in this locality or web browser when clicking the mouse right button.For example, with reference to Fig. 3, in a kind of applying examples of the application, can in " right-click menu ", add the displaying clauses and subclauses of a virtual file directory, these displaying clauses and subclauses are represented with rectangle frame 301.Be appreciated that the application does not limit the display location of rectangle frame 301 in the operating system right-click menu.
Scene 4,
When showing operating system shell, show the off-limit file under the said virtual file directory.
Because file has a similitude in off-limit file and the recycle bin, also is that the two all can be reduced, so in a kind of preferred embodiment of the application, said operating system shell can comprise the shell of recycle bin.
With reference to Fig. 4; In a kind of applying examples of the application; Can adopt Fig. 4 (A) that the show area of recycle bin is divided into recycle bin district arranged side by side up and down 401 and off-limit file district 402, also can adopt Fig. 4 (B) that the show area of recycle bin is divided into about recycle bin district 401 and off-limit file district 402 arranged side by side.Certainly, those skilled in the art can also adopt other partitioning scheme according to actual needs, show the file and the off-limit file of recycle bin simultaneously in the show area of recycle bin.
In addition; Except the shell of recycle bin, the application can also show self shell and off-limit file simultaneously in the show area of other operating system shell, like my document, my music, picture collection; And the disk root directory etc., the application does not limit 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 to off-limit file;
The application can be used for the off-limit file of various antivirus softwares and/or fire wall is showed; The application's intention is through showing off-limit file; To the user inlet of visiting and operating off-limit file is provided, can't limits the actual source of off-limit file.
Com interface is a kind of scale-of-two and network standard, also is a kind of component standard of wideling popularize and having obtained extensive approval.In the COM standard, com object is got up by good encapsulation, the realization details that the client can't access object, and the unique visit approach that offers the user is to visit through com interface.The implication that two aspects are arranged for com interface: at first it is one group of function that can supply call, and the client can let this object do some thing thus; Secondly, also be even more important, interface is the agreement between assembly and the CLIENT PROGRAM thereof.That is to say interface has not only defined available what function, also defined when calling these functions object what will be done.
Therefore, in a kind of preferred embodiment of the application, can realize COM (The Component Object Model, the Component Object Model) interface of virtual file directory based on NameSpace Extension (NameSpace expansion) mechanism.
Correspondingly, saidly set up the step of virtual file directory, may further include to off-limit file:
Based on shell (Shell Folder) interface; To off-limit file component registration object model interface in the registration table of operating system; Wherein, Said The Component Object Model interface is corresponding with virtual file directory, is used to bind specific operating system shell, and the catalogue disposal route of said virtual file directory is provided.
In concrete the realization, can adopt the BindToObject method of IShellFolder com interface to bind specific operating system shell (like recycle bin, my computer, explorer etc.).
In reality, the catalogue disposal route of said virtual file directory can comprise one or more in the following method: icon, thumbnail, message notifying.For example, can icon and/or catalogue disposal routes such as thumbnail and/or message notifying be set for respectively the virtual file directory under scene 1, scene 2 and the 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 said virtual file directory can also comprise title etc., and the application does not limit this.
Step 502, utilize operating system shell to show the off-limit file under said virtual file directory and/or the said virtual file directory.
In a kind of preferred embodiment of the application, the said step of utilizing operating system shell to show said virtual file directory may further include:
When the start-up operation that receives from user's operating system shell, in the registration table of operating system, enumerate the The Component Object Model interface of binding said operating system shell;
Call and enumerate the The Component Object Model interface that obtains, under the displaying interface of said operating system shell, show corresponding virtual file directory according to the catalogue disposal route that provides by said The Component Object Model interface.
In reality, the Class ID of said 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 that binds certain said operating system shell.Suppose to have in the registration table 10 Class ID to bind " my computer ", then need obtain this 10 Class ID one by one through enumerating here.
The front is mentioned; Com interface is one group of function that can supply call; The client can let this object do some thing thus, so can show corresponding virtual file directory by these behavior codes according to the catalogue disposal route that provides at when registration injection behavior code in advance in com interface.
In the application's another kind of preferred embodiment, said The Component Object Model interface also is used to provide the physical location and the document handling method of said off-limit file;
At this moment, the said step of utilizing operating system shell to show the off-limit file under the said virtual file directory may further include:
When the start-up operation that receives from user's operating system shell, in the registration table of operating system, enumerate the The Component Object Model interface of binding said operating system shell;
Call and enumerate the The Component Object Model interface that obtains; By said The Component Object Model interface under the displaying interface of said operating system shell; Read corresponding off-limit file from the physical location that is provided, and show corresponding off-limit file according to the document handling method that provides.
In like manner, also can read corresponding off-limit file by these behavior codes from the physical location that is provided, and show corresponding off-limit file at when registration injection behavior code in advance in com interface according to the document handling method that provides.
In a kind of preferred embodiment of the application, the document handling method of said off-limit file can comprise one or more in the following method: title, size, type, modification 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 the application's another kind of preferred embodiment, when using danger classes and icon at the same time, said method can also comprise: for the off-limit file of different danger classess, show different icons.For example, be 1 off-limit file for danger classes, show to add lock icon; For danger classes is 2 off-limit file, shows to add the barred window icon; For danger classes is 3 off-limit file, shows the redness wooden horse icon or the like that is held in captivity.In a word, those skilled in the art can carry out the displaying of off-limit file, and can concrete icon not limited according to actual conditions.
In some cases, the user only wonders which off-limit file all has, so the time, utilize operating system shell to show that the off-limit file under said virtual file directory and/or the said virtual file directory is just enough.
Under the other situation; Antivirus software also might carry out " mistake " with the file that is not virus isolates, and for example, user's a recreation plug-in unit is isolated; Will influence the normal use of user's recreation this moment, and this moment, the user just hoped to recover off-limit file return.
Also have under the certain situation, the user is not contained virus even this off-limit file also is identified after checking certain off-limit file, but the place that concerning the user, is out of use, so the time hope its deletion.
No matter be to recover or deletion, the user can carry out corresponding operation.For example, the user uses the 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 execution by the user.Need to prove that except the menu of deletion, recovery operation, the application can also provide shearings, attribute the menu of operating such as to check.In reality, the corresponding operation of all right-click menus can registration in advance in the behavior code of corresponding com interface.
Like this, in the application's another kind of preferred embodiment, said method can also comprise:
Process user is to the operation of the off-limit file of show under virtual file directory and/or the said virtual file directory.
For example, receive the user to when showing the double click operation of virtual file directory, can further present the off-limit file under the said virtual file directory for the user.
And for example; Receive the user to when showing the deletion action of off-limit file; Said processing not only will be deleted this off-limit file under the respective virtual file directory, and will be at this off-limit file of physical locations deletion of the off-limit file under the real off-limit file catalogue.
For another example; Receive the user to when showing the recovery operation of off-limit file; Said processing not only will be at this off-limit file of physical locations deletion of the off-limit file under the respective virtual file directory, under real off-limit file catalogue; And will this off-limit file be returned to by the physical location before isolating, under the game contents like the user, or the like.
Need to prove, said processing operation also can registration in advance in the behavior code of corresponding com interface.
In a word, the application has following advantage:
1, the application can provide virtual file directory this inlet to the user, with convenient access and the off-limit file of operating under the virtual file directory, so can reduce the cost of operation, strengthens convenience and friendly that the user uses antivirus software;
2, in the prior art; Domestic consumer need be through repeatedly clicking the inlet that just can find the off-limit file catalogue on the interface of antivirus software, and user capture is very low with the probability of operation off-limit file like this, still; Often depositing a large amount of off-limit files under the off-limit file catalogue; Even the disk space that some off-limit file (for example online game plug-in unit) takies is very big, if the user does not go visit 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 inlet of convenient access with the operation off-limit file; This just makes the user capture and the probability of operation off-limit file heighten; And said operation can be deleted useless off-limit file, perhaps, can recover the off-limit file of being isolated by " mistake "; So the application takies user's disk space with can avoiding the off-limit file sustainable growth.
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, is used for setting up virtual file directory to off-limit file;
Display module 602 is used to utilize operating system shell to show the off-limit file under said virtual file directory and/or the said virtual file directory.
In a kind of preferred embodiment of the application, said display module 602 may further include:
Virtual file directory is showed submodule, is used for the window at operating system program manager shell, and/or in the window of operating-system resources manager shell, and/or in the operating system right-click menu, show said virtual file directory; Perhaps
Off-limit file is showed submodule, is used for when showing operating system shell, showing the off-limit file under the said virtual file directory.
In the application's another kind of preferred embodiment, said virtual file directory is set up module 601 and specifically can be comprised:
The registration submodule; In order to based on enclosure interface; To off-limit file component registration object model interface in the registration table of operating system, wherein, said The Component Object Model interface is corresponding with virtual file directory; Be used to bind specific operating system shell, and the catalogue disposal route of said virtual file directory is provided.
In a kind of preferred embodiment of the application; Said display module 602 may further include: first enumerates submodule; Be used for when the start-up operation that receives from user's operating system shell, in the registration table of operating system, enumerating the The Component Object Model interface of binding said operating system shell;
Second calls submodule, is used to call enumerate the The Component Object Model interface that obtains.Under the displaying interface of said operating system shell, show corresponding virtual file directory by said The Component Object Model interface according to the catalogue disposal route that provides.
In the application embodiment, preferably, the catalogue disposal route of said virtual file directory specifically can comprise one or more in the following method: icon, thumbnail, message notifying;
In another preferred embodiment of the application, said The Component Object Model interface also can be used for providing the physical location and the document handling method of said off-limit file;
At this moment, said display module 602 may further include:
Second enumerates submodule, is used for when the start-up operation that receives from user's operating system shell, in the registration table of operating system, enumerating the The Component Object Model interface of binding said operating system shell;
Second calls submodule; Be used to call and enumerate the The Component Object Model interface that obtains; By said The Component Object Model interface under the displaying interface of said operating system shell; Read corresponding off-limit file from the physical location that is provided, and show corresponding off-limit file according to the document handling method that provides.
In the application embodiment; Preferably, the document handling method of said off-limit file specifically can comprise one or more in the following method: title, size, type, modification date, segregate time, segregate source document path, danger classes, icon, thumbnail, message notifying.
In the application embodiment, preferably, said operating system shell can comprise the shell of recycle bin.
In a kind of preferred embodiment of the application, said device can also comprise:
Processing module is used for the operation of process user to the off-limit file of show under virtual file directory and/or the said virtual file directory.
For device embodiment, because it is similar basically with method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
More than to the methods of exhibiting and the device of a kind of off-limit file that the application provided; Carried out detailed introduction; Used concrete example among this paper the application's principle and embodiment are set forth, the explanation of above embodiment just is used to help to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as the restriction to the application.