CN104536731B - Carry out the methods, devices and systems of application program setting - Google Patents

Carry out the methods, devices and systems of application program setting Download PDF

Info

Publication number
CN104536731B
CN104536731B CN201410743180.2A CN201410743180A CN104536731B CN 104536731 B CN104536731 B CN 104536731B CN 201410743180 A CN201410743180 A CN 201410743180A CN 104536731 B CN104536731 B CN 104536731B
Authority
CN
China
Prior art keywords
application program
operating system
program
system service
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410743180.2A
Other languages
Chinese (zh)
Other versions
CN104536731A (en
Inventor
吴亮
薛向旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410743180.2A priority Critical patent/CN104536731B/en
Publication of CN104536731A publication Critical patent/CN104536731A/en
Application granted granted Critical
Publication of CN104536731B publication Critical patent/CN104536731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of method for carrying out application program setting, it is related to browser technology field.Methods described includes:Application program detects the setup failed for the association process program that application program is configured to preset communication protocol in current operation system;First operating system service of the application program into current operation system, which is sent, sets request, so that the application program is configured to by one virtual device level driver of calling the association process program of the preset communication protocol by first operating system service.The present invention is solved when being locked into some application program with the association process program of preset communication protocol, destination application can not be arranged to the problem of association process program with the communication protocol by user, the application program that achieving successfully can need to use user is arranged to the association process program of preset communication protocol in current operation system, and it using the application program is cumbersome beneficial effect to avoid user.

Description

Carry out the methods, devices and systems of application program setting
Technical field
The present invention relates to browser technology field, and in particular to it is a kind of carry out application program setting method, apparatus and be System.
Background technology
In an operating system, for the application program wherein used, its application program given tacit consent to has a uniqueness, such as with The association process program of preset communication protocol, such as http protocol, such as mail protocol, operating system will can be installed in system Some browser be associated with it, will not be disorderly when needing to call browser access network so as to operating system, it is not known that Whom is called go to access network.
But in actual applications, the positive lock processing routine associated with preset communication protocol be present, cause to use Family wants to use destination application can not perform as the operation of the processing routine associated with preset communication protocol, user's When other applications will call the processing routine associated with the preset communication protocol in operating system, it is impossible to call and use The destination application used is wanted at family, it is necessary to user's manual unlocking destination application, by the content copy of other programs to mesh Run in mark application program, cause the operating process of user cumbersome, wasted user time, influence Consumer's Experience.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on State the device of the carry out application program setting of problem and the corresponding method for carrying out application program setting.
According to one aspect of the present invention, there is provided a kind of method for carrying out application program setting, including:
Application program detects the association process journey that application program is configured to preset communication protocol in current operation system The setup failed of sequence;
First operating system service of the application program into current operation system, which is sent, sets request, so as to described the The service of one operating system is by calling a virtual device level driver that the application program is configured into the preset communication The association process program of agreement.
Preferably, the application program detects is configured to preset communication protocol in current operation system by application program The setup failed of association process program includes:
Browser detects the setting for the association process program that browser is configured to http protocol in current operation system Failure;
Or Mail Clients detects and Mail Clients is configured in current operation system at the association of mail protocol Manage the setup failed of program.
Preferably, in addition to:
Application program obtains the installation file of the first operating system service and installed, to obtain the current operation system The first operating system service in system.
Preferably, first operating system service of the application program into current operation system, which is sent, sets request, bag Include:
The application program is sent to the second application program independently of the application program by preset interface and set Request;Second application program independently of the application program sets request to send into current operation system by described First operating system service.
Preferably, the application program detects is configured to preset communication protocol in current operation system by application program The setup failed of association process program includes:
Application program is by detecting the registration entry value associated in current operation system with the communication protocol, it is determined that should The setup failed of the association process program of preset communication protocol in current operation system is configured to program.
Preferably, the application program obtains the installation file of the first operating system service and installed, to obtain The first operating system service in current operation system is stated, including:
The installation file of the first operating system service is obtained, is installed by the installation file of the first operating system service The dynamic link library of the first operating system service and the virtual device level driver;
Process where starting the first operating system service, to load the dynamic link library of the first operating system service; The first operating system service calls the virtual device level driver by the dynamic link library.
Preferably, the application program obtains the installation file of the first operating system service and installed, to obtain The first operating system service in current operation system is stated, including:
Judge that the first operating system service whether there is;If the first operating system service is not present, obtain Take the installation file of the first operating system service and installed, to obtain the first operating system in the current operation system Service.
Preferably, the first operating system service is by calling a virtual device level driver to apply journey by described The association process program that sequence is configured to the preset communication protocol includes:
The first operating system service receives described set and asked, and sets request to create under I/O requests according to described It is sent to the virtual device level driver;
After the virtual device level driver receives the I/O requests, call Registry Modifications function will be with behaviour Registration entry value corresponding to making the association process program of the preset communication protocol of system is arranged to the application program.
Preferably, in first operating system service by calling a virtual device level driver by the application Program is configured to before the association process program of the preset communication protocol, in addition to:
The service of first operating system judges whether the sender of the setting request is specified application;
If the sender of the setting request is not specified application, do not enter subsequent treatment;
If the sender of the setting request is specified application, request establishment I/O is set to ask according to described It is issued to the virtual device level driver.
Preferably, the authentication information for setting request to include the application program;
Further, the first operating system service judges whether the sender of the setting request is to specify to apply journey Sequence includes:
The authentication information set in request is parsed, the authentication information is tested with the identity prestored Card information is matched;If matched, the sender for judging the setting request is specified application.
Preferably, in first operating system service by calling a virtual device level driver by the application Program is configured to before the association process program of the preset communication protocol, in addition to:
The virtual device level driver judges whether the sender of the setting request is specified application;
If the sender of the setting request is not specified application, do not enter subsequent treatment;
If the sender of the setting request is specified application, Registry Modifications function is called to be with operation Registration entry value corresponding to the association process program of the preset communication protocol of system is arranged to the application program.
Preferably, the authentication information for setting request to include the application program;
Further, the virtual device level driver judges whether the sender of the setting request is to specify to answer Included with program:
The virtual device level driver receives services the I/O sent requests by the first operating system;The I/O please Seek the authentication information including application program;
The authentication information in the I/O requests is parsed, the authentication information is tested with the identity prestored Card information is matched;If matched, the sender for judging the setting request is specified application.
Preferably, the browser detects the association process that browser is configured to http protocol in current operation system The setup failed of program includes:
Judge HKEY_CLASSES_ROOT in system registry http shell open command sub-keys acquiescence root The value for being worth item is not the executable file path of current browser;
And/or judge in system registry KEY_CLASSES_ROOT http shell open ddeexec The value of the acquiescence root item of Application sub-keys is not the browser name of current browser.
According to another aspect of the present invention, there is provided a kind of device for carrying out application program setting, including:
Detection module is set, is suitable for the application of Programmable detection and is configured to preset communication in current operation system to by application program The setup failed of the association process program of agreement;
Associated configuration module, set suitable for first operating system service transmission of the application program into current operation system Request is put, so that first operating system service is by calling a virtual device level driver to match somebody with somebody the application program It is set to the association process program of the preset communication protocol.
Preferably, the setting detection module includes:
Browser sets detection module, detects that browser is configured into HTTP in current operation system assists suitable for browser The setup failed of the association process program of view;
Or Mail Clients sets detection module, is detected suitable for Mail Clients and is configured to Mail Clients currently The setup failed of the association process program of mail protocol in operating system.
Preferably, in addition to:
Service installation module, it is suitable for the application of program and obtains the installation file of the first operating system service and installed, with Obtain the first operating system service in the current operation system.
Preferably, the associated configuration module, including:
First request sending module, suitable for the application program by preset interface to independently of the application program Second application program, which is sent, sets request;Second application program independently of the application program sets request hair by described The the first operating system service delivered in current operation system.
Preferably, the setting detection module includes:
Registration table detection module, it is suitable for the application of what program associated by detecting in current operation system with the communication protocol Registration entry value, it is determined that application program to be configured to the setting of the association process program of preset communication protocol in current operation system Failure.
Preferably, the service installation module includes:
First service installs module, suitable for obtaining the installation file of the first operating system service, is operated by described first The installation file of system service installs the dynamic link library of the first operating system service and the virtual device level driving Program;
Starting module, start process where the first operating system service, to load the dynamic of the first operating system service State chained library;The first operating system service calls the virtual device level driver by the dynamic link library.
Preferably, the service installation module includes:
Judge module, suitable for judging that the first operating system service whether there is;If the first operating system clothes Business is not present, then obtains the installation file of the first operating system service and installed, to obtain in the current operation system The first operating system service.
Preferably, the associated configuration module includes:
Forwarding module is asked, receiving described set suitable for the first operating system service asks, according to the setting Request creates I/O requests and is issued to the virtual device level driver;
First associated configuration module, after receiving the I/O requests suitable for the first virtual device level driver, Registry Modifications function is called to set the corresponding registration entry value of the association process program of the preset communication protocol with operating system It is set to the application program.
Preferably, the associated configuration module also includes:
First identity judge module, suitable for being driven in first operating system service by the virtual device level of calling one The application program is configured to before the association process program of the preset communication protocol by program, and the first operating system service is sentenced Whether the sender of the disconnected setting request is specified application;If the sender of the setting request is not to specify application Program, then do not enter subsequent treatment;If the sender of the setting request is specified application, please according to the setting Establishment I/O requests are asked to be issued to the virtual device level driver.
Preferably, the authentication information for setting request to include the application program;
Further, the first identity judge module includes:
Analysis judgment module, suitable for parsing the authentication information set in request, by the authentication information Matched with the authentication information prestored;If matched, judge that the sender of the setting request is specified Application program.
Preferably, the associated configuration module also includes:
Second identity judge module, suitable for being driven in first operating system service by the virtual device level of calling one The application program is configured to before the association process program of the preset communication protocol by program, and the virtual device level is driven Dynamic program judges whether the sender of the setting request is specified application;If the sender of the setting request is not Specified application, then do not enter subsequent treatment;If the sender of the setting request is specified application, note is called The corresponding registration entry value of the association process program of preset communication protocol with operating system is arranged to institute by volume table Modification growth function State application program.
Preferably, the authentication information for setting request to include the application program;
Further, the second identity judge module includes:
Receiving module, received suitable for the virtual device level driver and the I/O sent is serviced by the first operating system Request;The I/O requests include the authentication information of application program;
Second parsing module, suitable for parsing the authentication information in I/O request, by the authentication information with The authentication information prestored is matched;If matched, the sender for judging the setting request is to specify to answer Use program.
Preferably, the browser sets detection module to include:
First browser sets detection module, suitable for judge in system registry HKEY_CLASSES_ROOT http Shell open command sub-keys acquiescence root item value be current browser executable file path;
And/or second browser detection module is set, suitable for judge in system registry KEY_CLASSES_ROOT Http shell open ddeexec Application sub-keys acquiescence root item value be current browser browser Name.
According to another aspect of the present invention, there is provided a kind of system with the device for carrying out application program setting, Including:
Processor, and the memory of a plurality of executable instruction is loaded with, a plurality of instruction includes performing following steps Method:
Application program detects the association process journey that application program is configured to preset communication protocol in current operation system The setup failed of sequence;
First operating system service of the application program into current operation system, which is sent, sets request, so as to described the The service of one operating system is by calling a virtual device level driver that the application program is configured into the preset communication The association process program of agreement.
According to a kind of method of carry out application program setting of the present invention, application program can be configured to manually in user In current operation system in the case of the setup failed of the association process program of preset communication protocol, the application program is from trend The first operating system service in current operation system, which is sent, sets request, so that the first operating system service passes through calling The application program is configured to the association process program of the preset communication protocol by one virtual device level driver, i.e., logical Cross kernel level authority and the association process program of preset communication protocol is arranged to the application program, thus solve and lead to preset The association process program of letter agreement is locked into some application program, and the application program that user needs can not be arranged into described The problem of association process program so that user using the needs application program when, it is complex for operation step the problem of, take The application program that obtaining successfully can need to use user is arranged in current operation system at the association of preset communication protocol Program is managed, it using the application program is cumbersome beneficial effect to avoid user.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of flow signal of method for carrying out application program setting according to an embodiment of the invention Figure;
Fig. 2 shows a kind of flow signal of method for carrying out application program setting according to an embodiment of the invention Figure;
Fig. 3 shows a kind of flow signal of method for carrying out application program setting according to an embodiment of the invention Figure;
Fig. 4 shows a kind of flow signal of method for carrying out application program setting according to an embodiment of the invention Figure;
Fig. 5 shows a kind of flow signal of method for carrying out application program setting according to an embodiment of the invention Figure;
Fig. 6 shows a kind of flow signal of method for carrying out application program setting according to an embodiment of the invention Figure;
Fig. 7 shows a kind of structural representation of device for carrying out application program setting according to an embodiment of the invention Figure;
Fig. 8 shows a kind of structural representation of device for carrying out application program setting according to an embodiment of the invention Figure;
Fig. 9 shows a kind of structural representation of device for carrying out application program setting according to an embodiment of the invention Figure;
Figure 10 shows a kind of structural representation of device for carrying out application program setting according to an embodiment of the invention Figure;
Figure 11 shows a kind of structural representation of device for carrying out application program setting according to an embodiment of the invention Figure;
Figure 12 shows a kind of structural representation of device for carrying out application program setting according to an embodiment of the invention Figure;
Figure 13 shows system of the kind according to an embodiment of the invention with the device for carrying out application program setting Structural representation.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Embodiment one
Reference picture 1, specifically can be with it illustrates a kind of schematic flow sheet for the method for carrying out application program setting of the present invention Including:
Step 110, application program detects the pass that application program is configured to preset communication protocol in current operation system Join the setup failed of processing routine;
In actual applications, for example application program, the user such as browser, Mail Clients can judge that it is after opening No is default application, i.e., is associated with corresponding communication protocol.For example browser can judge whether its own is that acquiescence browses Device, Mail Clients can judge whether its own is default user end.If not default application, then user can be prompted to be Current application program is arranged to default application by no selection, then the application program for wanting to use always for user is come To say, it, which can be clicked on, is arranged to default program, but now, the processing for associating the communication protocol of correlation if other programs In the case that program is locked, i.e., other described programs have locked the application program in user class change default application Authority, user click on the processing routine so that current application program to be arranged to associate with corresponding communication protocol, that is, set acquiescence should It can then be failed with program.
So in the embodiment of the present invention, user click on set default application after, then can enter sets successfully and No detection process.Application program is configured to the association of preset communication protocol in current operation system when application program detects The setup failed of processing routine can then enter step 120.
Preferably, the application program detects is configured to preset communication protocol in current operation system by application program The setup failed of association process program includes:
Sub-step 101, application program is by detecting the registry entry associated in current operation system with the communication protocol Value, it is determined that application program to be configured to the setup failed of the association process program of preset communication protocol in current operation system.
In an operating system, it is necessary to the application program associated with communication protocol, that is, it is arranged to the application program of system default It will be configured in the corresponding communication protocol registry entry of registration table, usually by the acquiescence of above-mentioned communication protocol registry entry The value of root item is arranged to the path of the application program executable file, for example application program A, its A.exe path are D:\ Program Files A A.exe, then can be by the value of the acquiescence root item of the registry entry of communication protocol associated with it It is set to " D:Program Files A A.exe " " %1 ".If that for current application program, it is default application to set it During program, the value of the acquiescence root item of the registry entry of corresponding communication protocol is not modified to the executable of current application program The path of file, then it is believed that its setup failed.
Step 120, first operating system service of the application program into current operation system, which is sent, sets request, with Toilet states the service of the first operating system by calling described in the application program is configured to by a virtual device level driver The association process program of preset communication protocol.
In embodiments of the present invention, the Permission Levels of application program in itself are relatively low, can be directly into current operation system The service transmission of the first operating system put request, to state the service of the first operating system by calling a virtual device level driving The application program is configured to the association process program of the preset communication protocol by program.
In embodiments of the present invention, application program directly can service to send to first operating system sets request, So that first operating system service is by calling a virtual device level driver that the application program is configured into institute State the association process program of preset communication protocol.
Preferably, in addition to:
Sub-step 100, application program obtain the installation file of the first operating system service and installed, described to obtain The first operating system service in current operation system.
In embodiments of the present invention, because application program is the authority of user class, its Permission Levels is low, and can just exist can not The problem of being set to default application, it is therefore desirable to the authority of conversion is lifted by service form.
So in the present invention, the installation file of the first operating system service can be obtained in advance and is installed, again After startup, the service can random start.The Permission Levels of service in an operating system are of a relatively high, and it can be with less limited Execution aforesaid operations.
Certainly, the embodiment of the present invention can also judge whether the service of the first operating system installs in the process of implementation.It is i.e. excellent Selection of land, the application program obtains the installation file of the first operating system service and installed, to obtain the current operation The first operating system service in system, including:
Sub-step 103, judge that the first operating system service whether there is;If the first operating system service is not In the presence of then obtaining the installation file of the first operating system service and installed, to obtain in the current operation system One operating system service.
First operating system service is also a process, and it has the information such as process name after startup, then application program can Whether to there is the process name of the first operating system service in the process that is currently up in inquiry operation system, if so, saying It is bright that first operating system service had been installed, conversely, being then also fitted without the first operating system service.
The application program obtains the installation file of the first operating system service and installed, to obtain the current behaviour Make the first operating system service in system, including:
Sub-step 101, the installation file of the first operating system service is obtained, passes through the peace of the first operating system service Fill file and the dynamic link library of the first operating system service and the virtual device level driver are installed;
In practice, the installation file of the first operating system service also includes virtual device level driver, It can be installed in the lump during installation.It will not be gone to call by the logic in its dll when not in use in the service of the first operating system The virtual device level driver.
Virtual device level driver belongs to kernel-level program, and it has a highest authority of operating system, therefore for The replacement of source node, can be with easier execution by virtual device level driving.
Sub-step 102, start process where the first operating system service, to load the dynamic of the first operating system service State chained library;The first operating system service calls the virtual device level driver by the dynamic link library.
A dll file can be generated during the service installation of the first operating system in system files, and the correlation of the dll is joined In the registration table of number write operation system service.Meanwhile the sys files of virtual device level driver can be attached to operation System, and by the relevant parameter write-in registration table of sys files.After os starting, the first operating system service can be started Exe files, wait the notice of program process.
Preferably, the first operating system service is by calling a virtual device level driver to apply journey by described The association process program that sequence is configured to the preset communication protocol includes:
Sub-step 104, the first operating system service receive described set and asked, and set request to create according to described I/O requests are issued to the virtual device level driver;
In embodiments of the present invention, the first operating system service can start and start with system, and maintain operation always, prison Listen whether receive application program transmission request, if receive application program transmission put request, can according to it is described put ask Establishment I/O request bags (I/O Request Packet, IRP) are asked to be issued to the virtual device level driving.Because windows Operating system is transmitted from application layer to bottom layer driving send instructions by I/O request bags.First operating system service call Virtual device level driving in the embodiment of the present invention, then marking needs to be driven to target structure IRP with the device level, then by institute IRP is stated to be issued in the device level driving.The IRP includes controlling the device level driving to be configured to the application program The instruction of the association process program of the preset communication protocol, for example include the registry entry information of corresponding communication protocol, The information such as the path of the executable file of the application program.
Sub-step 105, after the virtual device level driver receives the I/O requests, call Registry Modifications The corresponding registration entry value of the association process program of preset communication protocol with operating system is arranged to described and applies journey by function Sequence.
After the virtual device level determines the I/O request bags that program receives the first operating system service down distributing, The instruction in the I/O request bags is parsed, obtains the registry entry information of corresponding communication protocol, the application program is held The information such as the path of style of writing part, then Registry Modifications function can be called, the path of the registry entry of communication protocol is changed The path of the executable file of application program, the acquiescence startup program of communication protocol registry entry is revised as described answer in other words Use program.
Wherein it is possible to by Registry Modifications function RegSetValueEx () function by the registry entry of communication protocol The path of the executable file of path modification application program, in other words changes the acquiescence startup program of communication protocol registry entry For the application program.RegSetValueEx () function prototype is:
RegSetValueEx(
HKEY hKey, // open one of current handle or five root keys of registration table
LPCTSTR lpValueName, // character string type pointer, point to the value item title that key assignments is set
LPDWORD lpReserved, // retain and put, usually 0
DWORD dwType, // type of key assignments item number value is set
Const BYTE*lpData, the buffer pointer where the numerical value that // sensing is set, if being not desired to setting can be set to NULL
DWORD cbData);// specify lpData data buffering area length, in units of byte.
The embodiment of the present invention can be driven by the virtual device level of service call kernel level, go to repair with kernel level authority Change the processing routine of the association of preset communication protocol in current operation system, because the authority of kernel-level program is highest, its Setting can substantially succeed, will not because of application program Authority and setup failed, so as to successfully by user The application program needed to use is arranged to the association process program of preset communication protocol in current operation system, avoids user from using The application program is cumbersome.
Embodiment two
Reference picture 2, specifically can be with it illustrates a kind of schematic flow sheet for the method for carrying out application program setting of the present invention Including:
Step 210, application program detects the pass that application program is configured to preset communication protocol in current operation system Join the setup failed of processing routine;
Step 220, the application program by preset interface to the second application program independently of the application program Send and request is set;
Step 230, second application program independently of the application program sets request to send to current by described The first operating system service in operating system, so that first operating system service is by calling a virtual device level to drive The application program is configured to the association process program of the preset communication protocol by dynamic program.
In embodiments of the present invention, the application program does not have permission in itself calls the first operating system service, and only Standing on the second application program of application program has the function of setting the first operating system service, such as 360 security guards, 360 The programs such as net shield.So described application program can be answered by preset external interface to second independently of the application program Request is set with program transmission, the setting request includes the registry entry information of corresponding communication protocol, described to apply journey The information such as the path of the executable file of sequence.Request transmission is set extremely to work as by described independently of the second application program of application program The first operating system service in preceding operating system, so that first operating system service is by calling a virtual device level The application program is configured to the association process program of the preset communication protocol by driver.
The embodiment of the present invention can utilize the authority of third party application with the embodiment of the present invention, go to adjust by servicing Driven with the virtual device level of kernel level, go to change the association of preset communication protocol in current operation system with kernel level authority Processing routine because the authority of kernel-level program is highest, its setting can substantially succeed, will not be because of application program Authority and setup failed, the application program so as to successfully need to use user are arranged to current operation system In preset communication protocol association process program, it using the application program is cumbersome to avoid user.
Embodiment three
Reference picture 3, specifically can be with it illustrates a kind of schematic flow sheet for the method for carrying out application program setting of the present invention Including:
Step 310, application program detects the pass that application program is configured to preset communication protocol in current operation system Join the setup failed of processing routine;
Step 320, first operating system service of the application program into current operation system, which is sent, sets request;
Step 330, the first operating system service receives the transmission for setting request, judging the setting request Whether side is specified application;If the sender of the setting request is not specified application, follow-up place is not entered Reason;If the sender of the setting request is specified application, into step 340;
In embodiments of the present invention, in order to avoid non-designated application program using the embodiment of the present invention refer to will described in Application program is configured to the function of the association process program of the preset communication protocol, such as in order to not make unsafe to apply journey Sequence can also call above-mentioned function, and the present invention can set the white list of application program in the service of the first operating system.Then The identity information of the sender of the load request is obtained, the application program white list recorded in being serviced with the first operating system enters Row matching, if unmatched, does not enter the association process program that the application program is configured to the preset communication protocol;Such as Fruit is matched, then the application program is configured to the association process program of the preset communication protocol.
Blacklist mechanism can certainly be used.
Preferably, the authentication information for setting request to include the application program;The authentication information ratio Such as the signing messages (such as digital signature of third-party platform) of application name, in other words application program, naturally it is also possible to be The authentication information of other uniqueness.
Further, the first operating system service judges whether the sender of the setting request is to specify to apply journey Sequence includes:
Sub-step 331, the authentication information set in request is parsed, by the authentication information with depositing in advance The authentication information of storage is matched;If matched, the sender for judging the setting request is specified application.
The application name recorded during so application name is serviced with the first operating system is matched, or should The signing messages of the application program recorded in being serviced with the signing messages of program with the first operating system is matched, if matching On, then it is assumed that the sender of the load request is specified application, and device level driving can be utilized to perform the application Program is configured to the function of the association process program of the preset communication protocol.
Step 340, request establishment I/O requests are set to be issued to the virtual device level driver according to described;
Step 350, after the virtual device level driver receives the I/O requests, Registry Modifications letter is called The corresponding registration entry value of the association process program of preset communication protocol with operating system is arranged to the application program by number.
The embodiment of the present invention can be identified the identity of application program in the first operating system service, judge to apply journey Whether sequence has permission the work(for the association process program that the application program is configured to the preset communication protocol using the present invention Energy.
Example IV
Reference picture 4, specifically can be with it illustrates a kind of schematic flow sheet for the method for carrying out application program setting of the present invention Including:
Step 410, application program detects the pass that application program is configured to preset communication protocol in current operation system Join the setup failed of processing routine;
Step 420, first operating system service of the application program into current operation system, which is sent, sets request;
Step 430, the first operating system service receives described set and asked, and sets request to create I/ according to described O request is issued to the virtual device level driver;
Step 440, after the virtual device level driver receives the I/O requests, judge that described set is asked Sender whether be specified application;If the sender of the setting request is not specified application, do not enter Subsequent treatment;If the sender of the setting request is specified application, into step 450;
Step 450, Registry Modifications function is called by the association process program pair of the preset communication protocol with operating system The registration entry value answered is arranged to the application program.
In embodiments of the present invention, in order to avoid non-designated application program using the embodiment of the present invention refer to will described in Application program is configured to the function of the association process program of the preset communication protocol, such as in order to not make unsafe to apply journey Sequence can also call above-mentioned function, and the white list of application program can be set in virtual device level driver.Then root The identity information of the sender of the load request is obtained according to the IRP bags, with being recorded in virtual device level driver The white list of application program is matched, if do not matched, does not perform the application program being configured to the preset communication The function of the association process program of agreement;If matched, perform and the application program is configured to the preset communication protocols The function of the association process program of view.
Preferably, the authentication information for setting request to include the application program;The authentication information ratio Such as the signing messages (such as digital signature of third-party platform) of application name, in other words application program, naturally it is also possible to be The authentication information of other uniqueness.
Further, the virtual device level driver judges whether the sender of the setting request is to specify to answer Included with program:
Sub-step 451, the virtual device level driver receives the I/O sent by the service of the first operating system please Ask;The I/O requests include the authentication information of application program;
Application program can will set request to send to the first operating system service, and the service of the first operating system can then be based on setting Putting request includes the path of application program executable file, and the authentication information of application program is re-packaged into IRP, IRP is sent to the device level driver again.
Sub-step 452, the authentication information in the I/O requests is parsed, by the authentication information with depositing in advance The authentication information of storage is matched;If matched, the sender for judging the setting request is specified application.
The device level driver receives the I/O request bags that the service of the first operating system is sent, then can parse wherein Path including application program executable file, and the authentication information of application program, then will be by the authentication Information is matched with the authentication information prestored;If matched, judging the sender of the setting request is Specified application.
The embodiment of the present invention can be identified the identity of application program in virtual device level driver, judged Whether application program has permission the association process journey that the application program is configured to the preset communication protocol using the present invention The function of sequence.
Embodiment five
Reference picture 5, specifically can be with it illustrates a kind of schematic flow sheet for the method for carrying out application program setting of the present invention Including:
Step 510, browser detects the association process journey that browser is configured to http protocol in current operation system The setup failed of sequence;
The embodiment of the present invention is to be arranged to browser by taking browser as an example, and during operating system setting default browser With the processing routine of http protocol (Hypertext transfer protocol, HTTP) association.So this hair Bright when user uses browser, browser can first detect whether the browser is default browser, if it is not, then can prompt Whether user by current browser is arranged to default browser, if user's selection is, browser can enter detection browser The whether successful process of association process program of http protocol in current operation system is configured to, that is, detects and sets current browser The process of success or not when being set to default browser, browser is configured to http protocol in current operation system when detecting The setup failed of association process program, then it can enter step 520.
Preferably, the browser detects the association process that browser is configured to http protocol in current operation system The setup failed of program includes:
Judge HKEY_CLASSES_ROOT in system registry http shell open command sub-keys acquiescence root The value for being worth item is not the executable file path of current browser.
And/or judge in system registry KEY_CLASSES_ROOT http shell open ddeexec The value of the acquiescence root item of Application sub-keys is not the browser name of current browser.
In actual applications, default browser by the HKEY_CLASSES_ROOT in system registry http shell Open command sub-keys acquiescence root item value determine, the value for browser " .exe " file path.Certainly, at certain In the case of a little, also with KEY_CLASSES_ROOT in system registry http shell open ddeexec Application The value of the acquiescence root item of sub-key is relevant, and the value is browser " .exe " program name.
It is of the invention preferential judge HKEY_CLASSES_ROOT http shell open command sub-keys acquiescence root Whether the value of item is arranged to the path of " .exe " file of current browser, if do not set successfully, can confirm to fail.
Can certainly judge KEY_CLASSES_ROOT http shell open ddeexec Application Whether the value of the acquiescence root item of key is revised as current browser " .exe " program names, if not provided, it is also contemplated that failure.
Step 520, first operating system service of the browser into current operation system, which is sent, sets request, so as to The first operating system service is by calling a virtual device level driver that the browser is configured into the HTTP The association process program of agreement.
Browser judgement is set after default browser failure, you can and enjoy the service of the first operating system and send setting request, So this step can drive journey by the virtual device level driver of the first operating system service call by the device level Sequence call Registry Modifications function the HKEY_CLASSES_ROOT in foregoing system registry http shell open The acquiescence root item of command sub-keys is revised as the path of " .exe " file of current browser, KEY_CLASSES_ROOT Http shell open ddeexec the values of acquiescence root item of Application sub-keys be revised as current browser " .exe " program name.
The implementation principle of this step will not be described in detail herein similar to the description of previous embodiment.
Current browser can be arranged to the default browser of operating system by the embodiment of the present invention.Play other program needs Current browser can be called when opening webpage, current browser is opened every time without user, needs to open by other programs Webpage input current browser in opened, reduce the cumbersome process of user.
Embodiment six
Reference picture 6, specifically can be with it illustrates a kind of schematic flow sheet for the method for carrying out application program setting of the present invention Including:
Step 610, Mail Clients detects the pass that Mail Clients is configured to mail protocol in current operation system Join the setup failed of processing routine;
Inventive embodiments are by mail visitor by taking Mail Clients as an example, and during operating system setting default mail client Family end is arranged to the processing routine associated with mail protocol, in windows operating system registration tables mail protocol be with Mailto has corresponded to all mail protocols.So when user uses Mail Clients, Mail Clients can be examined first the present invention Survey whether the Mail Clients is default mail client, if it is not, then can prompt the user whether current Mail Clients Default mail client is arranged to, if user's selection is, Mail Clients can enter detection Mail Clients and be configured to work as The whether successful process of the association process program of mail protocol, that is, detect and be arranged to current mail client in preceding operating system The process of success or not during default mail client, Mail Clients is configured to mail association in current operation system when detecting The setup failed of the association process program of view, then it can enter step 620.
Preferably, Mail Clients detects the association that Mail Clients is configured to mail protocol in current operation system The setup failed of processing routine includes:
Sub-step 611, judge in system registry HKEY_CLASSES_ROOT mailto shell open command The value of the acquiescence root item of sub-key is not the executable file path of current mail client;
In actual applications, default mail client by HKEY_CLASSES_ROOT in system registry mailto Shell open command sub-keys acquiescence root item value determine, the present invention can determine whether it is described acquiescence root item value whether The path of " .exe " file of Mail Clients is revised as, if it is not, representing setup failed.
Step 620, first operating system service of the Mail Clients into current operation system, which is sent, sets request, So that first operating system service is by calling a virtual device level driver to be configured to the Mail Clients The association process program of the mail protocol.
Mail Clients is judged after setting default mail client failure, you can is enjoyed the service transmission of the first operating system and is set Put request, then this step can pass through the equipment by the virtual device level driver of the first operating system service call Level driver call Registry Modifications function HKEY_CLASSES_ROOT in foregoing system registry mailto Shell open command sub-keys acquiescence root item be revised as current mail client " .exe " file path.Step Implementation principle similar to the description of previous embodiment, will not be described in detail herein.
Current mail client can be arranged to the default mail client of operating system by the embodiment of the present invention.Make other journeys Sequence needs that when sending mail current Mail Clients can be called, and opens current mail client every time without user, then defeated Enter to need the mail sent, reduce the cumbersome process of user.
Embodiment seven
Reference picture 7, specifically can be with it illustrates a kind of structural representation for the device for carrying out application program setting of the present invention Including:
Detection module 710 is set, it is preset in current operation system to application program is configured to be suitable for the application of Programmable detection The setup failed of the association process program of communication protocol;
Associated configuration module 720, hair is serviced suitable for first operating system of the application program into current operation system Setting is sent to ask, so that first operating system service is by calling a virtual device level driver to apply journey by described Sequence is configured to the association process program of the preset communication protocol.
Preferably, the setting detection module includes:
Registration table detection module, it is suitable for the application of what program associated by detecting in current operation system with the communication protocol Registration entry value, it is determined that application program to be configured to the setting of the association process program of preset communication protocol in current operation system Failure.
Preferably, in addition to:
Service installation module, it is suitable for the application of program and obtains the installation file of the first operating system service and installed, with Obtain the first operating system service in the current operation system.
Preferably, the service installation module includes:
First service installs module, suitable for obtaining the installation file of the first operating system service, is operated by described first The installation file of system service installs the dynamic link library of the first operating system service and the virtual device level driving Program;
Starting module, start process where the first operating system service, to load the dynamic of the first operating system service State chained library;The first operating system service calls the virtual device level driver by the dynamic link library.
Preferably, the service installation module includes:
Judge module, suitable for judging that the first operating system service whether there is;If the first operating system clothes Business is not present, then obtains the installation file of the first operating system service and installed, to obtain in the current operation system The first operating system service.
Preferably, the associated configuration module includes:
Forwarding module is asked, receiving described set suitable for the first operating system service asks, according to the setting Request creates I/O requests and is issued to the virtual device level driver;
First associated configuration module, after receiving the I/O requests suitable for the first virtual device level driver, Registry Modifications function is called to set the corresponding registration entry value of the association process program of the preset communication protocol with operating system It is set to the application program.
Embodiment eight
Reference picture 8, specifically can be with it illustrates a kind of structural representation for the device for carrying out application program setting of the present invention Including:
Detection module 810 is set, it is preset in current operation system to application program is configured to be suitable for the application of Programmable detection The setup failed of the association process program of communication protocol;
Associated configuration module 820, including:
First request sending module 821, journey is applied to independently of described by preset interface suitable for the application program Second application program of sequence, which is sent, sets request;Second application program independently of the application program please by the setting Transmission is asked to the first operating system service in current operation system.
Embodiment nine
Reference picture 9, specifically can be with it illustrates a kind of structural representation for the device for carrying out application program setting of the present invention Including:
Detection module 910 is set, it is preset in current operation system to application program is configured to be suitable for the application of Programmable detection The setup failed of the association process program of communication protocol;
Associated configuration module 920, including:
Request sending module 921, hair is serviced suitable for first operating system of the application program into current operation system Setting is sent to ask;
First identity judge module 922, suitable for passing through one virtual device level of calling in first operating system service The application program is configured to before the association process program of the preset communication protocol by driver, the first operating system clothes Business judges whether the sender of the setting request is specified application;If the sender of the setting request is not specified Application program, then do not enter subsequent treatment;If the sender of the setting request is specified application, set according to Put request establishment I/O requests and be issued to the virtual device level driver;
First associated configuration module 923, the I/O requests are received suitable for the first virtual device level driver Afterwards, Registry Modifications function is called by the corresponding registration entry value of the association process program of the preset communication protocol with operating system It is arranged to the application program.
Preferably, the authentication information for setting request to include the application program;
Further, the first identity judge module includes:
Analysis judgment module, suitable for parsing the authentication information set in request, by the authentication information Matched with the authentication information prestored;If matched, judge that the sender of the setting request is specified Application program.
Embodiment ten
Reference picture 10, it illustrates a kind of structural representation for the device for carrying out application program setting of the present invention, specifically may be used With including:
Detection module 1010 is set, it is preset in current operation system to application program is configured to be suitable for the application of Programmable detection The setup failed of the association process program of communication protocol;
Associated configuration module 1020, including:
Request sending module 1021, hair is serviced suitable for first operating system of the application program into current operation system Setting is sent to ask;
Forwarding module 1022 is asked, receiving described set suitable for the first operating system service asks, according to described Set request to create I/O requests and be issued to the virtual device level driver;
Second identity judge module 1023, judge the hair that request is set suitable for the virtual device level driver Whether the side of sending is specified application;If the sender of the setting request is not specified application, do not enter follow-up Processing;If the sender of the setting request is specified application, call Registry Modifications function will be with operating system Preset communication protocol association process program corresponding to registration entry value be arranged to the application program
Embodiment 11
Reference picture 11, it illustrates a kind of structural representation for the device for carrying out application program setting of the present invention, specifically may be used With including:
Detection module 1110 is set, including:
Browser sets detection module 1111, is detected suitable for browser and browser is configured in current operation system The setup failed of the association process program of http protocol;
Associated configuration module 1120, service and send suitable for the first operating system of the browser into current operation system Request is set, so that first operating system service is by calling a virtual device level driver to match somebody with somebody the browser It is set to the association process program of the http protocol.
Preferably, the browser sets detection module to include:
First browser sets detection module, suitable for judge in system registry HKEY_CLASSES_ROOT http Shell open command sub-keys acquiescence root item value be current browser executable file path;
And/or second browser detection module is set, suitable for judge in system registry KEY_CLASSES_ROOT Http shell open ddeexec Application sub-keys acquiescence root item value be current browser browser Name.
Embodiment 12
Reference picture 12, it illustrates a kind of structural representation for the device for carrying out application program setting of the present invention, specifically may be used With including:
Detection module 1210 is set, including:
Mail Clients sets detection module 1211, is detected suitable for Mail Clients and is configured to Mail Clients currently The setup failed of the association process program of mail protocol in operating system;
Associated configuration module 1220, suitable for first operating system service of the Mail Clients into current operation system Send and request is set, so that first operating system service is by calling a virtual device level driver by the mail Client is configured to the association process program of the mail protocol.
Preferably, Mail Clients detects the association that Mail Clients is configured to mail protocol in current operation system The setup failed of processing routine includes:
E-mail registry table judge module, suitable for judge in system registry HKEY_CLASSES_ROOT mailto Shell open command sub-keys acquiescence root item value be current mail client executable file path;
Embodiment 13
Reference picture 13, it illustrates a kind of structural representation of the system with the device for carrying out application program setting of the present invention Figure, the system 1300 can specifically include:
Processor 1300, and the memory 1310 of a plurality of executable instruction is loaded with, a plurality of instruction includes performing The method of following steps:
Application program detects the association process journey that application program is configured to preset communication protocol in current operation system The setup failed of sequence;
First operating system service of the application program into current operation system, which is sent, sets request, so as to described the The service of one operating system is by calling a virtual device level driver that the application program is configured into the preset communication The association process program of agreement.
Certainly described a plurality of instruction may include the method for performing foregoing each step.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and accompanying drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) are according to embodiments of the present invention to realizeCarry out application program settingIn equipment Some or all parts some or all functions.The present invention is also implemented as being used to perform side as described herein The some or all equipment or program of device (for example, computer program and computer program product) of method.It is such Realizing the program of the present invention can store on a computer-readable medium, or can have the shape of one or more signal Formula.Such signal can be downloaded from internet website and obtained, and either be provided or with any other shape on carrier signal Formula provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame Claim.
The invention discloses A1, a kind of method for carrying out application program setting, including:
Application program detects the association process journey that application program is configured to preset communication protocol in current operation system The setup failed of sequence;
First operating system service of the application program into current operation system, which is sent, sets request, so as to described the The service of one operating system is by calling a virtual device level driver that the application program is configured into the preset communication The association process program of agreement.
A2, the method as described in A1, the application program, which detects, is configured to application program in current operation system in advance Putting the setup failed of the association process program of communication protocol includes:
Browser detects the setting for the association process program that browser is configured to http protocol in current operation system Failure;
Or Mail Clients detects and Mail Clients is configured in current operation system at the association of mail protocol Manage the setup failed of program.
A3, the method as described in A1, in addition to:
Application program obtains the installation file of the first operating system service and installed, to obtain the current operation system The first operating system service in system.
A4, the method as described in A1, first operating system service of the application program into current operation system are sent Request is set, including:
The application program is sent to the second application program independently of the application program by preset interface and set Request;Second application program independently of the application program sets request to send into current operation system by described First operating system service.
A5, the method as described in A1, the application program, which detects, is configured to application program in current operation system in advance Putting the setup failed of the association process program of communication protocol includes:
Application program is by detecting the registration entry value associated in current operation system with the communication protocol, it is determined that should The setup failed of the association process program of preset communication protocol in current operation system is configured to program.
A6, the method as described in A3, the application program obtain the installation file of the first operating system service and pacified Dress, to obtain the first operating system service in the current operation system, including:
The installation file of the first operating system service is obtained, is installed by the installation file of the first operating system service The dynamic link library of the first operating system service and the virtual device level driver;
Process where starting the first operating system service, to load the dynamic link library of the first operating system service; The first operating system service calls the virtual device level driver by the dynamic link library.
A7, the method as described in A3, the application program obtain the installation file of the first operating system service and pacified Dress, to obtain the first operating system service in the current operation system, including:
Judge that the first operating system service whether there is;If the first operating system service is not present, obtain Take the installation file of the first operating system service and installed, to obtain the first operating system in the current operation system Service.
A8, the method as described in A1 or A5, the first operating system service is by calling a virtual device level to drive The association process program that the application program is configured to the preset communication protocol by program includes:
The first operating system service receives described set and asked, and sets request to create under I/O requests according to described It is sent to the virtual device level driver;
After the virtual device level driver receives the I/O requests, call Registry Modifications function will be with behaviour Registration entry value corresponding to making the association process program of the preset communication protocol of system is arranged to the application program.
A9, the method as described in A8, in first operating system service by calling a virtual device level to drive journey The application program is configured to before the association process program of the preset communication protocol by sequence, in addition to:
The service of first operating system judges whether the sender of the setting request is specified application;
If the sender of the setting request is not specified application, do not enter subsequent treatment;
If the sender of the setting request is specified application, request establishment I/O is set to ask according to described It is issued to the virtual device level driver.
A10, the method as described in A9, the authentication information for setting request to include the application program;
Further, the first operating system service judges whether the sender of the setting request is to specify to apply journey Sequence includes:
The authentication information set in request is parsed, the authentication information is tested with the identity prestored Card information is matched;If matched, the sender for judging the setting request is specified application.
A11, the method as described in A8, in first operating system service by calling a virtual device level to drive journey The application program is configured to before the association process program of the preset communication protocol by sequence, in addition to:
The virtual device level driver judges whether the sender of the setting request is specified application;
If the sender of the setting request is not specified application, do not enter subsequent treatment;
If the sender of the setting request is specified application, Registry Modifications function is called to be with operation Registration entry value corresponding to the association process program of the preset communication protocol of system is arranged to the application program.
A12, the method as described in A11, the authentication information for setting request to include the application program;
Further, the virtual device level driver judges whether the sender of the setting request is to specify to answer Included with program:
The virtual device level driver receives services the I/O sent requests by the first operating system;The I/O please Seek the authentication information including application program;
The authentication information in the I/O requests is parsed, the authentication information is tested with the identity prestored Card information is matched;If matched, the sender for judging the setting request is specified application.
A13, the method as described in A2, the browser detect that browser is configured into HTTP in current operation system assists The setup failed of the association process program of view includes:
Judge HKEY_CLASSES_ROOT in system registry http shell open command sub-keys acquiescence root The value for being worth item is not the executable file path of current browser;
And/or judge in system registry KEY_CLASSES_ROOT http shell open ddeexec The value of the acquiescence root item of Application sub-keys is not the browser name of current browser.
The invention also discloses B14, a kind of device for carrying out application program setting, including:
Detection module is set, is suitable for the application of Programmable detection and is configured to preset communication in current operation system to by application program The setup failed of the association process program of agreement;
Associated configuration module, set suitable for first operating system service transmission of the application program into current operation system Request is put, so that first operating system service is by calling a virtual device level driver to match somebody with somebody the application program It is set to the association process program of the preset communication protocol.
B15, the device as described in B14, the setting detection module include:
Browser sets detection module, detects that browser is configured into HTTP in current operation system assists suitable for browser The setup failed of the association process program of view;
Or Mail Clients sets detection module, is detected suitable for Mail Clients and is configured to Mail Clients currently The setup failed of the association process program of mail protocol in operating system.
B16, the device as described in B14, in addition to:
Service installation module, it is suitable for the application of program and obtains the installation file of the first operating system service and installed, with Obtain the first operating system service in the current operation system.
B17, the device as described in B14, the associated configuration module, including:
First request sending module, suitable for the application program by preset interface to independently of the application program Second application program, which is sent, sets request;Second application program independently of the application program sets request hair by described The the first operating system service delivered in current operation system.
B18, the device as described in B14, the setting detection module include:
Registration table detection module, it is suitable for the application of what program associated by detecting in current operation system with the communication protocol Registration entry value, it is determined that application program to be configured to the setting of the association process program of preset communication protocol in current operation system Failure.
B19, the device as described in B16, the service installation module include:
First service installs module, suitable for obtaining the installation file of the first operating system service, is operated by described first The installation file of system service installs the dynamic link library of the first operating system service and the virtual device level driving Program;
Starting module, start process where the first operating system service, to load the dynamic of the first operating system service State chained library;The first operating system service calls the virtual device level driver by the dynamic link library.
B20, the device as described in B16, the service installation module include:
Judge module, suitable for judging that the first operating system service whether there is;If the first operating system clothes Business is not present, then obtains the installation file of the first operating system service and installed, to obtain in the current operation system The first operating system service.
B21, the device as described in B14 or B18, the associated configuration module include:
Forwarding module is asked, receiving described set suitable for the first operating system service asks, according to the setting Request creates I/O requests and is issued to the virtual device level driver;
First associated configuration module, after receiving the I/O requests suitable for the first virtual device level driver, Registry Modifications function is called to set the corresponding registration entry value of the association process program of the preset communication protocol with operating system It is set to the application program.
B22, the device as described in B21, the associated configuration module also include:
First identity judge module, suitable for being driven in first operating system service by the virtual device level of calling one The application program is configured to before the association process program of the preset communication protocol by program, and the first operating system service is sentenced Whether the sender of the disconnected setting request is specified application;If the sender of the setting request is not to specify application Program, then do not enter subsequent treatment;If the sender of the setting request is specified application, please according to the setting Establishment I/O requests are asked to be issued to the virtual device level driver.
B23, the device as described in B22, the authentication information for setting request to include the application program;
Further, the first identity judge module includes:
Analysis judgment module, suitable for parsing the authentication information set in request, by the authentication information Matched with the authentication information prestored;If matched, judge that the sender of the setting request is specified Application program.
B24, the device as described in B21, the associated configuration module also include:
Second identity judge module, suitable for being driven in first operating system service by the virtual device level of calling one The application program is configured to before the association process program of the preset communication protocol by program, and the virtual device level is driven Dynamic program judges whether the sender of the setting request is specified application;If the sender of the setting request is not Specified application, then do not enter subsequent treatment;If the sender of the setting request is specified application, note is called The corresponding registration entry value of the association process program of preset communication protocol with operating system is arranged to institute by volume table Modification growth function State application program.
B25, the device as described in B24, the authentication information for setting request to include the application program;
Further, the second identity judge module includes:
Receiving module, received suitable for the virtual device level driver and the I/O sent is serviced by the first operating system Request;The I/O requests include the authentication information of application program;
Second parsing module, suitable for parsing the authentication information in I/O request, by the authentication information with The authentication information prestored is matched;If matched, the sender for judging the setting request is to specify to answer Use program.
B26, the device as described in B15, the browser set detection module to include:
First browser sets detection module, suitable for judge in system registry HKEY_CLASSES_ROOT http Shell open command sub-keys acquiescence root item value be current browser executable file path;
And/or second browser detection module is set, suitable for judge in system registry KEY_CLASSES_ROOT Http shell open ddeexec Application sub-keys acquiescence root item value be current browser browser Name.
The invention also discloses C27, a kind of system with the device for carrying out application program setting, including:
Processor, and the memory of a plurality of executable instruction is loaded with, a plurality of instruction includes performing following steps Method:
Application program detects the association process journey that application program is configured to preset communication protocol in current operation system The setup failed of sequence;
First operating system service of the application program into current operation system, which is sent, sets request, so as to described the The service of one operating system is by calling a virtual device level driver that the application program is configured into the preset communication The association process program of agreement.

Claims (25)

1. a kind of method for carrying out application program setting, including:
Application program detects the association process program that application program is configured to preset communication protocol in current operation system Setup failed;
First operating system service of the application program into current operation system, which is sent, sets request, so as to the described first behaviour Make system service by calling a virtual device level driver that the application program is configured into the preset communication protocol Association process program.
2. the method as described in claim 1, it is characterised in that the application program, which detects, is configured to application program currently The setup failed of the association process program of preset communication protocol includes in operating system:
Browser detects the setup failed for the association process program that browser is configured to http protocol in current operation system;
Or Mail Clients detects the association process journey that Mail Clients is configured to mail protocol in current operation system The setup failed of sequence.
3. the method as described in claim 1, it is characterised in that also include:
Application program obtains the installation file of the first operating system service and installed, to obtain in the current operation system The first operating system service.
4. the method as described in claim 1, it is characterised in that first operation of the application program into current operation system System service, which is sent, sets request, including:
The application program is sent to the second application program independently of the application program by preset interface and sets request; Second application program independently of the application program sets request to send to first in current operation system by described Operating system service.
5. the method as described in claim 1, it is characterised in that the application program, which detects, is configured to application program currently The setup failed of the association process program of preset communication protocol includes in operating system:
Application program is by detecting the registration entry value associated in current operation system with the communication protocol, it is determined that journey will be applied Sequence is configured to the setup failed of the association process program of preset communication protocol in current operation system.
6. method as claimed in claim 3, it is characterised in that the application program obtains the installation of the first operating system service File is simultaneously installed, to obtain the first operating system service in the current operation system, including:
The installation file of the first operating system service is obtained, by described in the installation file installation of the first operating system service The dynamic link library of first operating system service and the virtual device level driver;
Process where starting the first operating system service, to load the dynamic link library of the first operating system service;It is described The service of first operating system calls the virtual device level driver by the dynamic link library.
7. method as claimed in claim 3, it is characterised in that the application program obtains the installation of the first operating system service File is simultaneously installed, to obtain the first operating system service in the current operation system, including:
Judge that the first operating system service whether there is;If the first operating system service is not present, is obtained The installation file of one operating system service is simultaneously installed, to obtain the clothes of the first operating system in the current operation system Business.
8. the method as described in claim 1 or 5, it is characterised in that the first operating system service is virtual by calling one Device level driver the application program be configured to the association process program of the preset communication protocol included:
The first operating system service receives described set and asked, and sets request establishment I/O requests to be issued to according to described The virtual device level driver;
After the virtual device level driver receives the I/O requests, Registry Modifications function is called to be with operation Registration entry value corresponding to the association process program of the preset communication protocol of system is arranged to the application program.
9. method as claimed in claim 8, it is characterised in that virtual by calling one in first operating system service The application program is configured to before the association process program of the preset communication protocol by device level driver, in addition to:
The service of first operating system judges whether the sender of the setting request is specified application;
If the sender of the setting request is not specified application, do not enter subsequent treatment;
If the sender of the setting request is specified application, request establishment I/O is set to ask to issue according to described To the virtual device level driver.
10. method as claimed in claim 9, it is characterised in that described to set the identity for asking to include the application program to test Demonstrate,prove information;
Further, the first operating system service judges whether the sender of the setting request is specified application bag Include:
The authentication information set in request is parsed, the authentication information and the authentication prestored are believed Breath is matched;If matched, the sender for judging the setting request is specified application.
11. method as claimed in claim 9, it is characterised in that described to set the identity for asking to include the application program to test Demonstrate,prove information;
Further, the virtual device level driver judges whether the sender of the setting request is to specify to apply journey Sequence includes:
The virtual device level driver receives services the I/O sent requests by the first operating system;The I/O request bags Include the authentication information of application program;
The authentication information in the I/O requests is parsed, the authentication information and the authentication prestored are believed Breath is matched;If matched, the sender for judging the setting request is specified application.
12. method as claimed in claim 2, it is characterised in that the browser detects to be configured to currently grasp by browser Making the setup failed of the association process program of http protocol in system includes:
Judge HKEY_CLASSES_ROOT in system registry http shell open command sub-keys acquiescence root item Value be current browser executable file path;
And/or judge in system registry KEY_CLASSES_ROOT http shell open ddeexec The value of the acquiescence root item of Application sub-keys is not the browser name of current browser.
13. a kind of device for carrying out application program setting, including:
Detection module is set, is suitable for the application of Programmable detection and is configured to preset communication protocol in current operation system to by application program Association process program setup failed;
Associated configuration module, send to set suitable for first operating system service of the application program into current operation system and ask Ask, so that first operating system service is by calling a virtual device level driver to be configured to the application program The association process program of the preset communication protocol.
14. device as claimed in claim 13, it is characterised in that the setting detection module includes:
Browser sets detection module, is detected suitable for browser browser being configured to http protocol in current operation system The setup failed of association process program;
Or Mail Clients sets detection module, is detected suitable for Mail Clients Mail Clients being configured to current operation The setup failed of the association process program of mail protocol in system.
15. device as claimed in claim 13, it is characterised in that also include:
Service installation module, it is suitable for the application of program and obtains the installation file of the first operating system service and installed, to obtain The first operating system service in the current operation system.
16. device as claimed in claim 13, it is characterised in that the associated configuration module, including:
First request sending module, suitable for the application program by preset interface to second independently of the application program Application program, which is sent, sets request;Second application program independently of the application program sets request to send extremely by described The first operating system service in current operation system.
17. device as claimed in claim 13, it is characterised in that the setting detection module includes:
Registration table detection module, it is suitable for the application of program by detecting the registration associated in current operation system with the communication protocol List item value, it is determined that the setting that application program is configured to the association process program of preset communication protocol in current operation system is lost Lose.
18. device as claimed in claim 15, it is characterised in that the service installation module includes:
First service installs module, suitable for obtaining the installation file of the first operating system service, passes through first operating system The installation file of service installs the dynamic link library of the first operating system service and the virtual device level driver;
Starting module, start process where the first operating system service, to load the dynamic chain of the first operating system service Connect storehouse;The first operating system service calls the virtual device level driver by the dynamic link library.
19. device as claimed in claim 15, it is characterised in that the service installation module includes:
Judge module, suitable for judging that the first operating system service whether there is;If the first operating system service is not In the presence of then obtaining the installation file of the first operating system service and installed, to obtain in the current operation system One operating system service.
20. the device as described in claim 13 or 17, it is characterised in that the associated configuration module includes:
Forwarding module is asked, receiving described set suitable for the first operating system service asks, and is asked according to described set Create I/O requests and be issued to the virtual device level driver;
First associated configuration module, after receiving the I/O requests suitable for the first virtual device level driver, call The corresponding registration entry value of the association process program of preset communication protocol with operating system is arranged to by Registry Modifications function The application program.
21. device as claimed in claim 20, it is characterised in that the associated configuration module also includes:
First identity judge module, suitable for passing through one virtual device level driver of calling in first operating system service The application program is configured to before the association process program of the preset communication protocol, the service of the first operating system judges institute State and set whether the sender of request is specified application;If the sender of the setting request is not to specify to apply journey Sequence, then do not enter subsequent treatment;If the sender of the setting request is specified application, asked according to described set Create I/O requests and be issued to the virtual device level driver.
22. device as claimed in claim 21, it is characterised in that described to set the identity for asking to include the application program to test Demonstrate,prove information;
Further, the first identity judge module includes:
Analysis judgment module, suitable for parsing the authentication information set in request, by the authentication information and in advance The authentication information first stored is matched;If matched, the sender for judging the setting request is to specify application Program.
23. device as claimed in claim 21, it is characterised in that described to set the identity for asking to include the application program to test Demonstrate,prove information;
Further, the second identity judge module includes:
Receiving module, received suitable for the virtual device level driver and the I/O sent requests are serviced by the first operating system; The I/O requests include the authentication information of application program;
Second parsing module, suitable for parsing the authentication information in the I/O requests, by the authentication information and in advance The authentication information of storage is matched;If matched, the sender for judging the setting request is to specify to apply journey Sequence.
24. device as claimed in claim 14, it is characterised in that the browser sets detection module to include:
First browser sets detection module, suitable for judge in system registry HKEY_CLASSES_ROOT http shell Open command sub-keys acquiescence root item value be current browser executable file path;
And/or second browser detection module is set, suitable for judge in system registry KEY_CLASSES_ROOT http Shell open ddeexec Application sub-keys acquiescence root item value be current browser browser name.
25. a kind of system with the device for carrying out application program setting, including:
Processor, and the memory of a plurality of executable instruction is loaded with, a plurality of instruction includes performing the side of following steps Method:
Application program detects the association process program that application program is configured to preset communication protocol in current operation system Setup failed;
First operating system service of the application program into current operation system, which is sent, sets request, so as to the described first behaviour Make system service by calling a virtual device level driver that the application program is configured into the preset communication protocol Association process program.
CN201410743180.2A 2014-12-05 2014-12-05 Carry out the methods, devices and systems of application program setting Active CN104536731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410743180.2A CN104536731B (en) 2014-12-05 2014-12-05 Carry out the methods, devices and systems of application program setting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410743180.2A CN104536731B (en) 2014-12-05 2014-12-05 Carry out the methods, devices and systems of application program setting

Publications (2)

Publication Number Publication Date
CN104536731A CN104536731A (en) 2015-04-22
CN104536731B true CN104536731B (en) 2017-12-19

Family

ID=52852264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410743180.2A Active CN104536731B (en) 2014-12-05 2014-12-05 Carry out the methods, devices and systems of application program setting

Country Status (1)

Country Link
CN (1) CN104536731B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354448B (en) * 2015-12-07 2019-03-15 北京金山安全软件有限公司 Authorization management method and device
CN110175052A (en) * 2019-04-16 2019-08-27 努比亚技术有限公司 A kind of method, apparatus and computer readable storage medium of file opening

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6889251B1 (en) * 2000-08-14 2005-05-03 Phoenix Technologies Ltd. Computer systems and methods employing thin-client internet launching mechanisms
CN102831358A (en) * 2012-09-21 2012-12-19 北京奇虎科技有限公司 Method and device for preventing homepage tamper
CN103246734A (en) * 2013-05-13 2013-08-14 深圳市奇兔软件技术有限公司 Browser homepage locking method
CN103514035A (en) * 2013-10-18 2014-01-15 北京奇虎科技有限公司 Method and device for having control over default application program of Android operating system
CN103617398A (en) * 2013-11-27 2014-03-05 北京深思数盾科技有限公司 Protecting method and device for data files

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6889251B1 (en) * 2000-08-14 2005-05-03 Phoenix Technologies Ltd. Computer systems and methods employing thin-client internet launching mechanisms
CN102831358A (en) * 2012-09-21 2012-12-19 北京奇虎科技有限公司 Method and device for preventing homepage tamper
CN103246734A (en) * 2013-05-13 2013-08-14 深圳市奇兔软件技术有限公司 Browser homepage locking method
CN103514035A (en) * 2013-10-18 2014-01-15 北京奇虎科技有限公司 Method and device for having control over default application program of Android operating system
CN103617398A (en) * 2013-11-27 2014-03-05 北京深思数盾科技有限公司 Protecting method and device for data files

Also Published As

Publication number Publication date
CN104536731A (en) 2015-04-22

Similar Documents

Publication Publication Date Title
US20210144213A1 (en) Application Customization
CN104536981B (en) Realize method, browser client and the device of secure browser
US9288185B2 (en) Software firewall control
CN105207775B (en) The read method and device of verification information
CN105814539B (en) The method and apparatus generated for code virtualization and remote process call
US20190319885A1 (en) Policy based service routing
US8595809B2 (en) Reusable authentication experience tool
EP2184668B1 (en) Method, system and graphical user interface for enabling a user to access enterprise data on a portable electronic device
CN104539584B (en) The anti-method for implanting of browser, browser client and device
ES2554498T3 (en) Method and device to add menu items in the Android menu
CN107704765A (en) A kind of interface access method, server and computer-readable recording medium
CN108446225A (en) Creating device, method and the computer readable storage medium of analog interface
CN103618699B (en) A kind of method and device of invocation component
CN104391687B (en) The realization method and system of the internet APP common platforms of enterprise and corporations
CN104580451A (en) Method and system for achieving account number synchronization among multiple platforms, and electronic device
CN108228321A (en) A kind of Android system application method for closing and device
CN107247660A (en) The method of testing and test device of a kind of interface
CN107592338A (en) More new system, method and the relevant device of a kind of dynamic base
US20170180986A1 (en) Multi-factor user authentication based on decoy security questions
CN104536731B (en) Carry out the methods, devices and systems of application program setting
CN106775952A (en) A kind of process management method and device of Android application
CN106484500A (en) A kind of application operation method and device
CN106878562A (en) Control the method and device of wifi functional switches
CN104461583B (en) A kind of method, apparatus and mobile terminal for calling resources-type application
CN106528206A (en) Application starting control method and apparatus, and application installation package reinforcement apparatus

Legal Events

Date Code Title Description
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220802

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.