CN104536731A - Method, device and system for setting application programs - Google Patents

Method, device and system for setting application programs Download PDF

Info

Publication number
CN104536731A
CN104536731A CN201410743180.2A CN201410743180A CN104536731A CN 104536731 A CN104536731 A CN 104536731A CN 201410743180 A CN201410743180 A CN 201410743180A CN 104536731 A CN104536731 A CN 104536731A
Authority
CN
China
Prior art keywords
operating system
application program
system service
current operation
communication protocol
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.)
Granted
Application number
CN201410743180.2A
Other languages
Chinese (zh)
Other versions
CN104536731B (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

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

Abstract

The invention discloses a method for setting application programs and relates to the technical field of a browser. The method comprises the following steps that: an application program detect that the application program as an associated processing program of a preset communication protocol in a current operating system is failed in setting; the application program transmits a setting request to a first operating system service in the current operating system so that the first operating system service invokes one virtual device level drive program to configure the application program as the associated processing program of the preset communication protocol. The method can solve the problem that an user cannot configure the target application program as the associated processing program of the communication protocol when the associated processing program of the preset communication protocol is locked as a certain application program is solved; the application program required for an user can be successfully configured as the associated processing program of the current operating system, so that the user cannot perform complex operation to the application program.

Description

Carry out the methods, devices and systems of application program setting
Technical field
The present invention relates to browser technology field, be specifically related to a kind of methods, devices and systems carrying out application program setting.
Background technology
In an operating system, for the application program wherein used, the application program of its acquiescence has uniqueness, such as with the association process program of preset communication protocol, such as http protocol, such as mail protocol, certain browser installed in system can associate with it by operating system, so that can not be disorderly when operating system needs to call browser access network, do not know that whom calls goes accesses network.
But, in actual applications, there is the handling procedure that positive lock is associated with preset communication protocol, user is caused to want to use destination application cannot perform as the operation of the handling procedure be associated with preset communication protocol, when in the operating system of user, other application programs will call the handling procedure be associated with described preset communication protocol, can not invoke user want use destination application, need user's manual unlocking destination application, run in the content copy of other programs to destination application, cause the operating process of user loaded down with trivial details, waste user time, affect Consumer's Experience.
Summary of the invention
In view of the above problems, the present invention is proposed to provide a kind of overcoming the problems referred to above or the device carrying out application program setting solved the problem at least in part and the method for carrying out application program setting accordingly.
According to one aspect of the present invention, provide a kind of method of carrying out application program setting, comprising:
Application program detects application deployment the setup failed of the association process program being preset communication protocol in current operation system;
Described application program arranges request to the first operating system service transmission in current operation system, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
Preferably, described application program detects that by application deployment the setup failed of the association process program being preset communication protocol in current operation system comprises:
Browser detects the setup failed of association process program browser being configured to http protocol in current operation system;
Or Mail Clients detects the setup failed of association process program Mail Clients being configured to mail protocol in current operation system.
Preferably, also comprise:
Application program obtains the installation file of the first operating system service and installs, to obtain the first operating system service in described current operation system.
Preferably, described application program arranges request to the first operating system service transmission in current operation system, comprising:
Described application program arranges request by preset interface to the second application program transmission independent of described application program; Described the second application program independent of described application program arranges described the first operating system service asking to be sent in current operation system.
Preferably, described application program detects that by application deployment the setup failed of the association process program being preset communication protocol in current operation system comprises:
Application program, by detecting the registration entry value associated with described communication protocol in current operation system, determines the setup failed of the association process program by application deployment being preset communication protocol in current operation system.
Preferably, described application program obtains the installation file of the first operating system service and installs, and to obtain the first operating system service in described current operation system, comprising:
Obtain the installation file of the first operating system service, by the installation file of described first operating system service, the dynamic link library of described first operating system service and described virtual device level driver are installed;
Start described first operating system service place process, to load the dynamic link library of the first operating system service; Described first operating system service is by device level driver virtual described in described dynamic link library call.
Preferably, described application program obtains the installation file of the first operating system service and installs, and to obtain the first operating system service in described current operation system, comprising:
Judge whether described first operating system service exists; If described first operating system service does not exist, then obtain the installation file of the first operating system service and install, to obtain the first operating system service in described current operation system.
Preferably, described application deployment is that the association process program of described preset communication protocol comprises by calling a virtual device level driver by described first operating system service:
Described first operating system service reception arranges request to described, asks to be issued to described virtual device level driver according to the described request establishment I/O that arranges;
Described virtual device level driver calls Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system is set to described application program after receiving described I/O request.
Preferably, in described first operating system service by calling before described application deployment is the association process program of described preset communication protocol by a virtual device level driver, also comprise:
First operating system service judges whether the described transmit leg arranging request is specified application;
If the transmit leg arranging request described is not specified application, then do not enter subsequent treatment;
If the transmit leg arranging request described is specified application, then ask to be issued to described virtual device level driver according to the described request establishment I/O that arranges.
Preferably, described authentication information request being set and comprising described application program;
Further, described first operating system service judges whether the described transmit leg arranging request is that specified application comprises:
Resolve the described authentication information arranged in request, described authentication information is mated with the authentication information prestored; If matched, then judge that the described transmit leg arranging request is specified application.
Preferably, in described first operating system service by calling before described application deployment is the association process program of described preset communication protocol by a virtual device level driver, also comprise:
Described virtual device level driver judges whether the described transmit leg arranging request is specified application;
If the transmit leg arranging request described is not specified application, then do not enter subsequent treatment;
If the transmit leg arranging request described is specified application, then call Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system is set to described application program.
Preferably, described authentication information request being set and comprising described application program;
Further, described virtual device level driver judges whether the described transmit leg arranging request is that specified application comprises:
Described virtual device level driver receives serves by the first operating system the I/O request sent; Described I/O request comprises the authentication information of application program;
Resolve the authentication information in described I/O request, described authentication information is mated with the authentication information prestored; If matched, then judge that the described transmit leg arranging request is specified application.
Preferably, described browser detects that the setup failed of association process program browser being configured to http protocol in current operation system comprises:
Judge HKEY_CLASSES_ROOT in system registry http shell open the value of acquiescence root item of the sub-key of command not as the executable file path of current browser;
And/or, judge KEY_CLASSES_ROOT in system registry http shell open ddeexec the value of acquiescence root item of the sub-key of Application not as the browser name of current browser.
According to another aspect of the present invention, provide a kind of device carrying out application program setting, comprising:
Detection module is set, is suitable for the setup failed that application program detects application deployment the association process program being preset communication protocol in current operation system;
Associated configuration module, be suitable for described application program and request is set to the first operating system service transmission in current operation system, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
Preferably, the described detection module that arranges comprises:
Browser arranges detection module, is suitable for the setup failed that browser detects association process program browser being configured to http protocol in current operation system;
Or Mail Clients arranges detection module, be suitable for the setup failed that Mail Clients detects association process program Mail Clients being configured to mail protocol in current operation system.
Preferably, also comprise:
Service installation module, is suitable for application program and obtains the installation file of the first operating system service and install, to obtain the first operating system service in described current operation system.
Preferably, described associated configuration module, comprising:
First request sending module, is suitable for described application program and arranges request by preset interface to the second application program transmission independent of described application program; Described the second application program independent of described application program arranges described the first operating system service asking to be sent in current operation system.
Preferably, the described detection module that arranges comprises:
Registration table detection module, being suitable for application program by detecting the registration entry value associated with described communication protocol in current operation system, determining the setup failed of the association process program by application deployment being preset communication protocol in current operation system.
Preferably, described service installation module comprises:
First service installation module, is suitable for the installation file of acquisition first operating system service, installs the dynamic link library of described first operating system service and described virtual device level driver by the installation file of described first operating system service;
Start module, start described first operating system service place process, to load the dynamic link library of the first operating system service; Described first operating system service is by device level driver virtual described in described dynamic link library call.
Preferably, described service installation module comprises:
Judge module, is suitable for judging whether described first operating system service exists; If described first operating system service does not exist, then obtain the installation file of the first operating system service and install, to obtain the first operating system service in described current operation system.
Preferably, described associated configuration module comprises:
Request forward module, is suitable for described first operating system service reception and arranges request to described, asks to be issued to described virtual device level driver according to the described request establishment I/O that arranges;
First associated configuration module, be suitable for device level driver virtual described in first receive described I/O ask after, call Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system be set to described application program.
Preferably, described associated configuration module also comprises:
First identity judge module, be suitable in described first operating system service by calling before described application deployment is the association process program of described preset communication protocol by a virtual device level driver, the first operating system service judges whether the described transmit leg arranging request is specified application; If the transmit leg arranging request described is not specified application, then do not enter subsequent treatment; If the transmit leg arranging request described is specified application, then ask to be issued to described virtual device level driver according to the described request establishment I/O that arranges.
Preferably, described authentication information request being set and comprising described application program;
Further, described first identity judge module comprises:
Analysis judgment module, is suitable for resolving the described authentication information arranged in request, described authentication information is mated with the authentication information prestored; If matched, then judge that the described transmit leg arranging request is specified application.
Preferably, described associated configuration module also comprises:
Second identity judge module, be suitable in described first operating system service by calling before described application deployment is the association process program of described preset communication protocol by a virtual device level driver, described virtual device level driver judges whether the described transmit leg arranging request is specified application; If the transmit leg arranging request described is not specified application, then do not enter subsequent treatment; If the transmit leg arranging request described is specified application, then call Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system is set to described application program.
Preferably, described authentication information request being set and comprising described application program;
Further, described second identity judge module comprises:
Receiver module, is suitable for described virtual device level driver and receives the I/O request of being served transmission by the first operating system; Described I/O request comprises the authentication information of application program;
Second parsing module, is suitable for resolving the authentication information in described I/O request, described authentication information is mated with the authentication information prestored; If matched, then judge that the described transmit leg arranging request is specified application.
Preferably, described browser arranges detection module and comprises:
First browser arranges detection module, be suitable for judging HKEY_CLASSES_ROOT in system registry http shell open the value of acquiescence root item of the sub-key of command not as the executable file path of current browser;
And/or the second browser arranges detection module, be suitable for judging KEY_CLASSES_ROOT in system registry http shell open ddeexec the value of acquiescence root item of the sub-key of Application not as the browser name of current browser.
According to another aspect of the present invention, providing a kind of system of device with carrying out application program setting, comprising:
Processor, and the storer being loaded with many executable instructions, described many instructions comprise the method performing following steps:
Application program detects application deployment the setup failed of the association process program being preset communication protocol in current operation system;
Described application program arranges request to the first operating system service transmission in current operation system, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
According to a kind of method of carrying out application program setting of the present invention, can when application deployment be manually the setup failed of association process program of preset communication protocol in current operation system by user, the first operating system service transmission of described application program in trend current operation system arranges request, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver, namely be described application program by kernel level authority by the association process programming of preset communication protocol, solve thus and be locked into certain application program with the association process program of preset communication protocol, and the application program that user needs cannot be set to the problem of described association process program, thus make user when using the application program of described needs, the problem of complex operation step, achieve the association process program that can successfully user be needed the application program used to be set to preset communication protocol in current operation system, user is avoided to use described application program to be the beneficial effect of complex operation.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows a kind of according to an embodiment of the invention schematic flow sheet carrying out the method for application program setting;
Fig. 2 shows a kind of according to an embodiment of the invention schematic flow sheet carrying out the method for application program setting;
Fig. 3 shows a kind of according to an embodiment of the invention schematic flow sheet carrying out the method for application program setting;
Fig. 4 shows a kind of according to an embodiment of the invention schematic flow sheet carrying out the method for application program setting;
Fig. 5 shows a kind of according to an embodiment of the invention schematic flow sheet carrying out the method for application program setting;
Fig. 6 shows a kind of according to an embodiment of the invention schematic flow sheet carrying out the method for application program setting;
Fig. 7 shows a kind of according to an embodiment of the invention structural representation carrying out the device of application program setting;
Fig. 8 shows a kind of according to an embodiment of the invention structural representation carrying out the device of application program setting;
Fig. 9 shows a kind of according to an embodiment of the invention structural representation carrying out the device of application program setting;
Figure 10 shows a kind of according to an embodiment of the invention structural representation carrying out the device of application program setting;
Figure 11 shows a kind of according to an embodiment of the invention structural representation carrying out the device of application program setting;
Figure 12 shows a kind of according to an embodiment of the invention structural representation carrying out the device of application program setting;
Figure 13 shows the structural representation of the system of planting according to an embodiment of the invention with the device carrying out application program setting.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Embodiment one
With reference to Fig. 1, it illustrates a kind of schematic flow sheet carrying out the method for application program setting of the present invention, specifically can comprise:
Step 110, application program detects application deployment the setup failed of the association process program being preset communication protocol in current operation system;
In actual applications, the such as application program such as browser, Mail Clients, user can judge whether it is default application, namely associates with corresponding communication protocol after opening.Such as browser can judge whether himself is default browser, and Mail Clients can judge whether himself is default user end.If not default application, user then can be pointed out whether to select current application program to be set to default application, so user is wanted to the application program always used, it can be clicked and be set to default program, but now, if under having other programs that the handling procedure that relevant communication protocol associates is entered line-locked situation, namely other programs described have locked the authority of this application program in user class change default application, user clicks current application program to be set to the handling procedure associated with respective communication agreement, namely arranging default application then can be failed.
So in the embodiment of the present invention, after user's click arranges default application, then can enter the testing process that success or not is set.When application program detects that by application deployment the setup failed of the association process program being preset communication protocol in current operation system then can enter step 120.
Preferably, described application program detects that by application deployment the setup failed of the association process program being preset communication protocol in current operation system comprises:
Sub-step 101, application program, by detecting the registration entry value associated with described communication protocol in current operation system, determines the setup failed of the association process program by application deployment being preset communication protocol in current operation system.
In an operating system, need the application program associated with communication protocol, namely the application program being set to system default all can be arranged at the corresponding communication protocol registry entry of registration table, it is generally the path value of the acquiescence root item of above-mentioned communication protocol registry entry being set to described application program executable file, such as application A, the path of its A.exe be D: Program Files A A.exe, so the value of the acquiescence root item of the registry entry of the communication protocol associated with it can be set to " D: Program Files A A.exe " " %1 ".If so for current application program, when arranging it for default application, the value of the acquiescence root item of the registry entry of respective communication agreement is not modified to the path of the executable file of current application program, then can think its setup failed.
Step 120, described application program arranges request to the first operating system service transmission in current operation system, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
In embodiments of the present invention, the Permission Levels of application program itself are lower, request can be put, so that the first operating system service of stating is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver directly to the first operating system service transmission in current operation system.
In embodiments of the present invention, application program can arrange request directly to described first operating system service transmission, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
Preferably, also comprise:
Sub-step 100, application program obtains the installation file of the first operating system service and installs, to obtain the first operating system service in described current operation system.
In embodiments of the present invention, because application program is the authority of user class, its Permission Levels are low, just can there is the problem that cannot be set to default application, therefore need the authority being promoted conversion by service form.
So in the present invention, can obtain the installation file of the first operating system service in advance and install, after restarting, described service gets final product random start.Service Permission Levels are in an operating system relatively high, and it can less limited execution aforesaid operations.
Certainly, the embodiment of the present invention also can judge whether the first operating system service installs in the process of implementation.Namely preferably, described application program obtains the installation file of the first operating system service and installs, and to obtain the first operating system service in described current operation system, comprising:
Sub-step 103, judges whether described first operating system service exists; If described first operating system service does not exist, then obtain the installation file of the first operating system service and install, to obtain the first operating system service in described current operation system.
First operating system service is also a process, after starting, it has the information such as process name, so whether application program can have the process name of described first operating system service in the process of current startup in query manipulation system, if had, illustrate and the first operating system service was installed, otherwise, then described first operating system service was not also installed.
Described application program obtains the installation file of the first operating system service and installs, and to obtain the first operating system service in described current operation system, comprising:
Sub-step 101, obtains the installation file of the first operating system service, installs the dynamic link library of described first operating system service and described virtual device level driver by the installation file of described first operating system service;
In practice, the installation file of described first operating system service also comprises virtual device level driver, can install in the lump when mounted.Can not be gone by the logic in its dll to call described virtual device level driver when the first operating system service does not use.
Virtual device level driver belongs to kernel level program, and it has the highest weight limit of operating system, therefore for the replacement of source node, is driven can easierly be performed by virtual device level.
Sub-step 102, starts described first operating system service place process, to load the dynamic link library of the first operating system service; Described first operating system service is by device level driver virtual described in described dynamic link library call.
First operating system service can generate a dll file when installing in system files, and by the registration table of the correlation parameter write operation system service of this dll.Meanwhile, the sys file of virtual device level driver can be mounted to operating system, and by the correlation parameter of sys file write registration table.After os starting, the exe file of the first operating system service can be started, wait for the notice of program process.
Preferably, described application deployment is that the association process program of described preset communication protocol comprises by calling a virtual device level driver by described first operating system service:
Sub-step 104, described first operating system service reception arranges request to described, asks to be issued to described virtual device level driver according to the described request establishment I/O that arranges;
In embodiments of the present invention, first operating system service can start with system and start, and maintain operation always, monitor the request whether receiving application program and send, if what receive application program transmission puts request, then can create I/O request bag (I/O Request Packet, IRP) according to the described request of putting and be issued to the driving of described virtual device level.Because windows operating system is transmitted from application layer to bottom layer driving move instruction by I/O request bag.Device level driving virtual in the first operating system service call embodiment of the present invention, then mark needs to drive as target builds IRP with described device level, is then issued to by described IRP in the driving of described device level.Described IRP comprises the instruction that the described device level of control drives described application deployment the association process program being described preset communication protocol, such as include the registry entry information of corresponding communication protocol, the information such as the path of the executable file of described application program.
Sub-step 105, described virtual device level driver calls Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system is set to described application program after receiving described I/O request.
After described virtual device level determination process accepts to the I/O request bag of described first operating system service down distributing, resolve the instruction in described I/O request bag, obtain the registry entry information of corresponding communication protocol, the information such as the path of the executable file of described application program, so can call Registry Modifications function, by the path of the executable file of the path of the registry entry of communication protocol amendment application program, in other words the acquiescence start-up routine of communication protocol registry entry is revised as described application program.
Wherein, by the path of Registry Modifications function RegSetValueEx () function by the executable file of the path of the registry entry of communication protocol amendment application program, in other words the acquiescence start-up routine of communication protocol registry entry can be revised as described application program.RegSetValueEx () function prototype is:
RegSetValueEx(
HKEY hKey, // open current handle, also can be one of registration table five root keys
LPCTSTR lpValueName, // character string type pointer, points to the value item title arranging key assignments
LPDWORD lpReserved, // retain and put, be generally 0
DWORD dwType, // type of key assignments item numerical value is set
Const BYTE*lpData, the buffer pointer at the numerical value place that // sensing is arranged, if do not think that setting can be set to NULL
DWORD cbData); The length of the buffer zone of // appointment lpData data, in units of byte.
The embodiment of the present invention can be driven by the virtual device level of service call kernel level, the handling procedure of the association revising preset communication protocol in current operation system is removed with kernel level authority, because the authority of kernel level program is the highest, its setting substantially can be successful, can not because of the Authority of application program setup failed, thus can successfully user be needed the application program used to be set to the association process program of preset communication protocol in current operation system, avoid user to use described application program to be complex operation.
Embodiment two
With reference to Fig. 2, it illustrates a kind of schematic flow sheet carrying out the method for application program setting of the present invention, specifically can comprise:
Step 210, application program detects application deployment the setup failed of the association process program being preset communication protocol in current operation system;
Step 220, described application program arranges request by preset interface to the second application program transmission independent of described application program;
Step 230, described the second application program independent of described application program arranges described the first operating system service asking to be sent in current operation system, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
In embodiments of the present invention, described application program not authority itself calls the first operating system service, and has the function arranging the first operating system service, such as 360 security guards, 360 net shield supervisors independent of the second application program of application program.So described application program can arrange request by preset external interface to the second application program transmission independent of described application program, described the registry entry information that request includes corresponding communication protocol is set, the information such as the path of the executable file of described application program.Described setting is asked the first operating system service of being sent in current operation system by the second application program independent of application program, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
The embodiment of the present invention embodiment of the present invention can utilize the authority of third party application, go to be driven by the virtual device level of service call kernel level, the handling procedure of the association revising preset communication protocol in current operation system is removed with kernel level authority, because the authority of kernel level program is the highest, its setting substantially can be successful, can not because of the Authority of application program setup failed, thus can successfully user be needed the application program used to be set to the association process program of preset communication protocol in current operation system, user is avoided to use described application program to be complex operation.
Embodiment three
With reference to Fig. 3, it illustrates a kind of schematic flow sheet carrying out the method for application program setting of the present invention, specifically can comprise:
Step 310, application program detects application deployment the setup failed of the association process program being preset communication protocol in current operation system;
Step 320, described application program arranges request to the first operating system service transmission in current operation system;
Step 330, described first operating system service reception arranges request to described, judges whether the described transmit leg arranging request is specified application; If the transmit leg arranging request described is not specified application, then do not enter subsequent treatment; If the transmit leg arranging request described is specified application, then enter step 340;
In embodiments of the present invention, what use the embodiment of the present invention to mention in order to avoid non-designated application program is the function of the association process program of described preset communication protocol by described application deployment, such as in order to not make unsafe application program also can call above-mentioned functions, the present invention can arrange the white list of application program in the first operating system service.Then obtain the identity information of the transmit leg of described load request, the application program white list recorded in serving with the first operating system mates, if to unmatch, not entering described application deployment is the association process program of described preset communication protocol; If matched, be then the association process program of described preset communication protocol by described application deployment.
Blacklist mechanism can certainly be adopted.
Preferably, described authentication information request being set and comprising described application program; Described authentication information such as application name, the signing messages (digital signature of such as third-party platform) of application program, can certainly be the authentication information of other uniquenesss in other words.
Further, described first operating system service judges whether the described transmit leg arranging request is that specified application comprises:
Sub-step 331, resolves the described authentication information arranged in request, described authentication information is mated with the authentication information prestored; If matched, then judge that the described transmit leg arranging request is specified application.
The application name recorded in so application name being served with the first operating system is mated, or the signing messages of the application program recorded in being served with the first operating system by the signing messages of application program mates, if matched, then think that the transmit leg of described load request is specified application, device level can be utilized to drive the function performing described application deployment the association process program being described preset communication protocol.
Step 340, asks to be issued to described virtual device level driver according to the described request establishment I/O that arranges;
Step 350, described virtual device level driver calls Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system is set to described application program after receiving described I/O request.
The embodiment of the present invention can be identified in the identity of the first operating system service application programs, judges whether application program has permission the function that described application deployment is the association process program of described preset communication protocol by use the present invention.
Embodiment four
With reference to Fig. 4, it illustrates a kind of schematic flow sheet carrying out the method for application program setting of the present invention, specifically can comprise:
Step 410, application program detects application deployment the setup failed of the association process program being preset communication protocol in current operation system;
Step 420, described application program arranges request to the first operating system service transmission in current operation system;
Step 430, described first operating system service reception arranges request to described, asks to be issued to described virtual device level driver according to the described request establishment I/O that arranges;
Step 440, described virtual device level driver judges whether the described transmit leg arranging request is specified application after receiving described I/O request; If the transmit leg arranging request described is not specified application, then do not enter subsequent treatment; If the transmit leg arranging request described is specified application, then enter step 450;
Step 450, calls Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system is set to described application program.
In embodiments of the present invention, what use the embodiment of the present invention to mention in order to avoid non-designated application program is the function of the association process program of described preset communication protocol by described application deployment, such as in order to not make unsafe application program also can call above-mentioned functions, the white list of application program can be set in virtual device level driver.Then the identity information of the transmit leg of described load request is obtained according to described IRP bag, mate with the white list of the application program recorded in virtual device level driver, if do not matched, do not perform described application deployment the function of the association process program being described preset communication protocol; If matched, then perform described application deployment the function of the association process program being described preset communication protocol.
Preferably, described authentication information request being set and comprising described application program; Described authentication information such as application name, the signing messages (digital signature of such as third-party platform) of application program, can certainly be the authentication information of other uniquenesss in other words.
Further, described virtual device level driver judges whether the described transmit leg arranging request is that specified application comprises:
Sub-step 451, described virtual device level driver receives serves by the first operating system the I/O request sent; Described I/O request comprises the authentication information of application program;
The request of setting can be sent to the first operating system service by application program, first operating system service then can comprise the path of application program executable file based on the request of setting, and the authentication information Reseal of application program is IRP, then IRP is sent to described device level driver.
Sub-step 452, resolves the authentication information in described I/O request, described authentication information is mated with the authentication information prestored; If matched, then judge that the described transmit leg arranging request is specified application.
Described device level driver receives the I/O request bag that the first operating system service sends, then can resolve the path comprising application program executable file, and the authentication information of application program, then just described authentication information is mated with the authentication information prestored; If matched, then judge that the described transmit leg arranging request is specified application.
The embodiment of the present invention identity of application programs can be identified in virtual device level driver, judges whether application program has permission the function that described application deployment is the association process program of described preset communication protocol by use the present invention.
Embodiment five
With reference to Fig. 5, it illustrates a kind of schematic flow sheet carrying out the method for application program setting of the present invention, specifically can comprise:
Step 510, browser detects the setup failed of association process program browser being configured to http protocol in current operation system;
The embodiment of the present invention for browser, and when operating system arranges default browser, is the handling procedure being set to by browser associate with http protocol (Hypertext transfer protocol, HTML (Hypertext Markup Language)).So the present invention is when user uses browser, whether browser first can detect this browser is default browser, if not, user then can be pointed out whether current browser to be set to default browser, if user selects, then whether successfully browser can enter and detect the association process program process that browser is configured to http protocol in current operation system, namely the process of success or not when current browser being set to default browser is detected, when the setup failed of association process program browser being configured to http protocol in current operation system being detected, then step 520 can be entered.
Preferably, described browser detects that the setup failed of association process program browser being configured to http protocol in current operation system comprises:
Judge HKEY_CLASSES_ROOT in system registry http shell open the value of acquiescence root item of the sub-key of command not as the executable file path of current browser.
And/or, judge KEY_CLASSES_ROOT in system registry http shell open ddeexec the value of acquiescence root item of the sub-key of Application not as the browser name of current browser.
In actual applications, default browser by the HKEY_CLASSES_ROOT in system registry http shell open the value of acquiescence root item of the sub-key of command determine, this value is the path of " .exe " file of browser.Certainly, in some cases, also with KEY_CLASSES_ROOT in system registry http shell open ddeexec the value of acquiescence root item of the sub-key of Application relevant, this value is browser " .exe " program name.
The present invention preferentially judges whether the value of the acquiescence root item of the sub-key of HKEY_CLASSES_ROOT http shell open command is set to the path of " .exe " file of current browser, if do not arrange successfully, then can confirm failure.
Can certainly judge KEY_CLASSES_ROOT http shell open ddeexec the value of acquiescence root item of the sub-key of Application whether be revised as current browser " .exe " program name, if do not had, also can think failure.
Step 520, described browser arranges request to the first operating system service transmission in current operation system, so that described browser to be configured to the association process program of described http protocol by described first operating system service by calling a virtual device level driver.
After browser judges to arrange default browser failure, the first operating system service transmission can be enjoyed request is set, so this step is namely by device level driver that the first operating system service call is virtual, by this device level driver call Registry Modifications function the HKEY_CLASSES_ROOT in aforesaid system registry http shell open the acquiescence root item of the sub-key of command be revised as the path of " .exe " file of current browser, KEY_CLASSES_ROOT http shell open ddeexec the value of acquiescence root item of the sub-key of Application be revised as current browser " .exe " program name.
The description of the similar previous embodiment of execution principle of this step, is not described in detail in this.
Current browser can be set to the default browser of operating system by the embodiment of the present invention.Current browser can be called when making other programs need to open webpage, open current browser without user at every turn, open in the webpage input current browser other programs being needed open, reduce user operation complicated processes.
Embodiment six
With reference to Fig. 6, it illustrates a kind of schematic flow sheet carrying out the method for application program setting of the present invention, specifically can comprise:
Step 610, Mail Clients detects the setup failed of association process program Mail Clients being configured to mail protocol in current operation system;
Inventive embodiments is for Mail Clients, and operating system is when arranging default mail client, be the handling procedure being set to by Mail Clients associate with mail protocol, in windows operating system registration table, mail protocol is with the corresponding all mail protocols of mailto.So the present invention is when user uses Mail Clients, whether Mail Clients first can detect this Mail Clients is default mail client, if not, user then can be pointed out whether current Mail Clients to be set to default mail client, if user selects, then whether successfully Mail Clients can enter and detect the association process program process that Mail Clients is configured to mail protocol in current operation system, namely the process of success or not when current mail client being set to default mail client is detected, when the setup failed of association process program Mail Clients being configured to mail protocol in current operation system being detected, then step 620 can be entered.
Preferably, Mail Clients detects that the setup failed of association process program Mail Clients being configured to mail protocol in current operation system comprises:
Sub-step 611, judge HKEY_CLASSES_ROOT in system registry mailto shell open the value of acquiescence root item of the sub-key of command not as the executable file path of current mail client;
In actual applications, default mail client by HKEY_CLASSES_ROOT in system registry mailto shell open the value of acquiescence root item of the sub-key of command determine, the present invention can judge whether the value of described acquiescence root item is revised as the path of " .exe " file of Mail Clients, if no, then represent setup failed.
Step 620, described Mail Clients arranges request to the first operating system service transmission in current operation system, so that described Mail Clients to be configured to the association process program of described mail protocol by described first operating system service by calling a virtual device level driver.
After Mail Clients judges to arrange default mail client failure, the first operating system service transmission can be enjoyed request is set, so this step is namely by the device level driver that the first operating system service call is virtual, calls Registry Modifications function the acquiescence root item of the sub-key of HKEY_CLASSES_ROOT mailto shell open command in aforesaid system registry is revised as the path of " .exe " file of current mail client by this device level driver.The description of the similar previous embodiment of execution principle of step, is not described in detail in this.
Current mail client can be set to the default mail client of operating system by the embodiment of the present invention.Make other programs need can call current Mail Clients when sending mail, open current mail client without user, then input needs the mail of transmission, reduces user operation complicated processes at every turn.
Embodiment seven
With reference to Fig. 7, it illustrates a kind of structural representation carrying out the device of application program setting of the present invention, specifically can comprise:
Detection module 710 is set, is suitable for the setup failed that application program detects application deployment the association process program being preset communication protocol in current operation system;
Associated configuration module 720, be suitable for described application program and request is set to the first operating system service transmission in current operation system, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
Preferably, the described detection module that arranges comprises:
Registration table detection module, being suitable for application program by detecting the registration entry value associated with described communication protocol in current operation system, determining the setup failed of the association process program by application deployment being preset communication protocol in current operation system.
Preferably, also comprise:
Service installation module, is suitable for application program and obtains the installation file of the first operating system service and install, to obtain the first operating system service in described current operation system.
Preferably, described service installation module comprises:
First service installation module, is suitable for the installation file of acquisition first operating system service, installs the dynamic link library of described first operating system service and described virtual device level driver by the installation file of described first operating system service;
Start module, start described first operating system service place process, to load the dynamic link library of the first operating system service; Described first operating system service is by device level driver virtual described in described dynamic link library call.
Preferably, described service installation module comprises:
Judge module, is suitable for judging whether described first operating system service exists; If described first operating system service does not exist, then obtain the installation file of the first operating system service and install, to obtain the first operating system service in described current operation system.
Preferably, described associated configuration module comprises:
Request forward module, is suitable for described first operating system service reception and arranges request to described, asks to be issued to described virtual device level driver according to the described request establishment I/O that arranges;
First associated configuration module, be suitable for device level driver virtual described in first receive described I/O ask after, call Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system be set to described application program.
Embodiment eight
With reference to Fig. 8, it illustrates a kind of structural representation carrying out the device of application program setting of the present invention, specifically can comprise:
Detection module 810 is set, is suitable for the setup failed that application program detects application deployment the association process program being preset communication protocol in current operation system;
Associated configuration module 820, comprising:
First request sending module 821, is suitable for described application program and arranges request by preset interface to the second application program transmission independent of described application program; Described the second application program independent of described application program arranges described the first operating system service asking to be sent in current operation system.
Embodiment nine
With reference to Fig. 9, it illustrates a kind of structural representation carrying out the device of application program setting of the present invention, specifically can comprise:
Detection module 910 is set, is suitable for the setup failed that application program detects application deployment the association process program being preset communication protocol in current operation system;
Associated configuration module 920, comprising:
Request sending module 921, is suitable for described application program and arranges request to the first operating system service transmission in current operation system;
First identity judge module 922, be suitable in described first operating system service by calling before described application deployment is the association process program of described preset communication protocol by a virtual device level driver, the first operating system service judges whether the described transmit leg arranging request is specified application; If the transmit leg arranging request described is not specified application, then do not enter subsequent treatment; If the transmit leg arranging request described is specified application, then ask to be issued to described virtual device level driver according to the described request establishment I/O that arranges;
First associated configuration module 923, be suitable for device level driver virtual described in first receive described I/O ask after, call Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system be set to described application program.
Preferably, described authentication information request being set and comprising described application program;
Further, described first identity judge module comprises:
Analysis judgment module, is suitable for resolving the described authentication information arranged in request, described authentication information is mated with the authentication information prestored; If matched, then judge that the described transmit leg arranging request is specified application.
Embodiment ten
With reference to Figure 10, it illustrates a kind of structural representation carrying out the device of application program setting of the present invention, specifically can comprise:
Detection module 1010 is set, is suitable for the setup failed that application program detects application deployment the association process program being preset communication protocol in current operation system;
Associated configuration module 1020, comprising:
Request sending module 1021, is suitable for described application program and arranges request to the first operating system service transmission in current operation system;
Request forward module 1022, is suitable for described first operating system service reception and arranges request to described, asks to be issued to described virtual device level driver according to the described request establishment I/O that arranges;
Second identity judge module 1023, is suitable for described virtual device level driver and judges whether the described transmit leg arranging request is specified application; If the transmit leg arranging request described is not specified application, then do not enter subsequent treatment; If the transmit leg arranging request described is specified application, then call Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system is set to described application program
Embodiment 11
With reference to Figure 11, it illustrates a kind of structural representation carrying out the device of application program setting of the present invention, specifically can comprise:
Detection module 1110 is set, comprises:
Browser arranges detection module 1111, is suitable for the setup failed that browser detects association process program browser being configured to http protocol in current operation system;
Associated configuration module 1120, be suitable for described browser and request is set to the first operating system service transmission in current operation system, so that described browser to be configured to the association process program of described http protocol by described first operating system service by calling a virtual device level driver.
Preferably, described browser arranges detection module and comprises:
First browser arranges detection module, be suitable for judging HKEY_CLASSES_ROOT in system registry http shell open the value of acquiescence root item of the sub-key of command not as the executable file path of current browser;
And/or the second browser arranges detection module, be suitable for judging KEY_CLASSES_ROOT in system registry http shell open ddeexec the value of acquiescence root item of the sub-key of Application not as the browser name of current browser.
Embodiment 12
With reference to Figure 12, it illustrates a kind of structural representation carrying out the device of application program setting of the present invention, specifically can comprise:
Detection module 1210 is set, comprises:
Mail Clients arranges detection module 1211, is suitable for the setup failed that Mail Clients detects association process program Mail Clients being configured to mail protocol in current operation system;
Associated configuration module 1220, be suitable for described Mail Clients and request is set to the first operating system service transmission in current operation system, so that described Mail Clients to be configured to the association process program of described mail protocol by described first operating system service by calling a virtual device level driver.
Preferably, Mail Clients detects that the setup failed of association process program Mail Clients being configured to mail protocol in current operation system comprises:
E-mail registry table judge module, be suitable for judging HKEY_CLASSES_ROOT in system registry mailto shell open the value of acquiescence root item of the sub-key of command not as the executable file path of current mail client;
Embodiment 13
With reference to Figure 13, it illustrates a kind of structural representation of system of device with carrying out application program setting of the present invention, described system 1300 specifically can comprise:
Processor 1300, and the storer 1310 being loaded with many executable instructions, described many instructions comprise the method performing following steps:
Application program detects application deployment the setup failed of the association process program being preset communication protocol in current operation system;
Described application program arranges request to the first operating system service transmission in current operation system, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
Certain described many instructions can comprise the method performing each step aforementioned.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and microprocessor or digital signal processor (DSP) can be used in practice to realize according to the embodiment of the present invention carry out application program settingthe some or all functions of the some or all parts in equipment.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The invention discloses A1, a kind of method of carrying out application program setting, comprising:
Application program detects application deployment the setup failed of the association process program being preset communication protocol in current operation system;
Described application program arranges request to the first operating system service transmission in current operation system, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
A2, method as described in A1, described application program detects that by application deployment the setup failed of the association process program being preset communication protocol in current operation system comprises:
Browser detects the setup failed of association process program browser being configured to http protocol in current operation system;
Or Mail Clients detects the setup failed of association process program Mail Clients being configured to mail protocol in current operation system.
A3, method as described in A1, also comprise:
Application program obtains the installation file of the first operating system service and installs, to obtain the first operating system service in described current operation system.
A4, method as described in A1, described application program arranges request to the first operating system service transmission in current operation system, comprising:
Described application program arranges request by preset interface to the second application program transmission independent of described application program; Described the second application program independent of described application program arranges described the first operating system service asking to be sent in current operation system.
A5, method as described in A1, described application program detects that by application deployment the setup failed of the association process program being preset communication protocol in current operation system comprises:
Application program, by detecting the registration entry value associated with described communication protocol in current operation system, determines the setup failed of the association process program by application deployment being preset communication protocol in current operation system.
A6, method as described in A3, described application program obtains the installation file of the first operating system service and installs, and to obtain the first operating system service in described current operation system, comprising:
Obtain the installation file of the first operating system service, by the installation file of described first operating system service, the dynamic link library of described first operating system service and described virtual device level driver are installed;
Start described first operating system service place process, to load the dynamic link library of the first operating system service; Described first operating system service is by device level driver virtual described in described dynamic link library call.
A7, method as described in A3, described application program obtains the installation file of the first operating system service and installs, and to obtain the first operating system service in described current operation system, comprising:
Judge whether described first operating system service exists; If described first operating system service does not exist, then obtain the installation file of the first operating system service and install, to obtain the first operating system service in described current operation system.
A8, method as described in A1 or A5, described application deployment is that the association process program of described preset communication protocol comprises by calling a virtual device level driver by described first operating system service:
Described first operating system service reception arranges request to described, asks to be issued to described virtual device level driver according to the described request establishment I/O that arranges;
Described virtual device level driver calls Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system is set to described application program after receiving described I/O request.
A9, method as described in A8, in described first operating system service by calling before described application deployment is the association process program of described preset communication protocol by a virtual device level driver, also comprise:
First operating system service judges whether the described transmit leg arranging request is specified application;
If the transmit leg arranging request described is not specified application, then do not enter subsequent treatment;
If the transmit leg arranging request described is specified application, then ask to be issued to described virtual device level driver according to the described request establishment I/O that arranges.
A10, method as described in A9, described authentication information request being set and comprising described application program;
Further, described first operating system service judges whether the described transmit leg arranging request is that specified application comprises:
Resolve the described authentication information arranged in request, described authentication information is mated with the authentication information prestored; If matched, then judge that the described transmit leg arranging request is specified application.
A11, method as described in A8, in described first operating system service by calling before described application deployment is the association process program of described preset communication protocol by a virtual device level driver, also comprise:
Described virtual device level driver judges whether the described transmit leg arranging request is specified application;
If the transmit leg arranging request described is not specified application, then do not enter subsequent treatment;
If the transmit leg arranging request described is specified application, then call Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system is set to described application program.
A12, method as described in A11, described authentication information request being set and comprising described application program;
Further, described virtual device level driver judges whether the described transmit leg arranging request is that specified application comprises:
Described virtual device level driver receives serves by the first operating system the I/O request sent; Described I/O request comprises the authentication information of application program;
Resolve the authentication information in described I/O request, described authentication information is mated with the authentication information prestored; If matched, then judge that the described transmit leg arranging request is specified application.
A13, method as described in A2, described browser detects that the setup failed of association process program browser being configured to http protocol in current operation system comprises:
Judge HKEY_CLASSES_ROOT in system registry http shell open the value of acquiescence root item of the sub-key of command not as the executable file path of current browser;
And/or, judge KEY_CLASSES_ROOT in system registry http shell open ddeexec the value of acquiescence root item of the sub-key of Application not as the browser name of current browser.
The invention also discloses B14, a kind of device carrying out application program setting, comprising:
Detection module is set, is suitable for the setup failed that application program detects application deployment the association process program being preset communication protocol in current operation system;
Associated configuration module, be suitable for described application program and request is set to the first operating system service transmission in current operation system, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
B15, device as described in B14, the described detection module that arranges comprises:
Browser arranges detection module, is suitable for the setup failed that browser detects association process program browser being configured to http protocol in current operation system;
Or Mail Clients arranges detection module, be suitable for the setup failed that Mail Clients detects association process program Mail Clients being configured to mail protocol in current operation system.
B16, device as described in B14, also comprise:
Service installation module, is suitable for application program and obtains the installation file of the first operating system service and install, to obtain the first operating system service in described current operation system.
B17, device as described in B14, described associated configuration module, comprising:
First request sending module, is suitable for described application program and arranges request by preset interface to the second application program transmission independent of described application program; Described the second application program independent of described application program arranges described the first operating system service asking to be sent in current operation system.
B18, device as described in B14, the described detection module that arranges comprises:
Registration table detection module, being suitable for application program by detecting the registration entry value associated with described communication protocol in current operation system, determining the setup failed of the association process program by application deployment being preset communication protocol in current operation system.
B19, device as described in B16, described service installation module comprises:
First service installation module, is suitable for the installation file of acquisition first operating system service, installs the dynamic link library of described first operating system service and described virtual device level driver by the installation file of described first operating system service;
Start module, start described first operating system service place process, to load the dynamic link library of the first operating system service; Described first operating system service is by device level driver virtual described in described dynamic link library call.
B20, device as described in B16, described service installation module comprises:
Judge module, is suitable for judging whether described first operating system service exists; If described first operating system service does not exist, then obtain the installation file of the first operating system service and install, to obtain the first operating system service in described current operation system.
B21, device as described in B14 or B18, described associated configuration module comprises:
Request forward module, is suitable for described first operating system service reception and arranges request to described, asks to be issued to described virtual device level driver according to the described request establishment I/O that arranges;
First associated configuration module, be suitable for device level driver virtual described in first receive described I/O ask after, call Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system be set to described application program.
B22, device as described in B21, described associated configuration module also comprises:
First identity judge module, be suitable in described first operating system service by calling before described application deployment is the association process program of described preset communication protocol by a virtual device level driver, the first operating system service judges whether the described transmit leg arranging request is specified application; If the transmit leg arranging request described is not specified application, then do not enter subsequent treatment; If the transmit leg arranging request described is specified application, then ask to be issued to described virtual device level driver according to the described request establishment I/O that arranges.
B23, device as described in B22, described authentication information request being set and comprising described application program;
Further, described first identity judge module comprises:
Analysis judgment module, is suitable for resolving the described authentication information arranged in request, described authentication information is mated with the authentication information prestored; If matched, then judge that the described transmit leg arranging request is specified application.
B24, device as described in B21, described associated configuration module also comprises:
Second identity judge module, be suitable in described first operating system service by calling before described application deployment is the association process program of described preset communication protocol by a virtual device level driver, described virtual device level driver judges whether the described transmit leg arranging request is specified application; If the transmit leg arranging request described is not specified application, then do not enter subsequent treatment; If the transmit leg arranging request described is specified application, then call Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system is set to described application program.
B25, device as described in B24, described authentication information request being set and comprising described application program;
Further, described second identity judge module comprises:
Receiver module, is suitable for described virtual device level driver and receives the I/O request of being served transmission by the first operating system; Described I/O request comprises the authentication information of application program;
Second parsing module, is suitable for resolving the authentication information in described I/O request, described authentication information is mated with the authentication information prestored; If matched, then judge that the described transmit leg arranging request is specified application.
B26, device as described in B15, described browser arranges detection module and comprises:
First browser arranges detection module, be suitable for judging HKEY_CLASSES_ROOT in system registry http shell open the value of acquiescence root item of the sub-key of command not as the executable file path of current browser;
And/or the second browser arranges detection module, be suitable for judging KEY_CLASSES_ROOT in system registry http shell open ddeexec the value of acquiescence root item of the sub-key of Application not as the browser name of current browser.
The invention also discloses C27, a kind of system of device with carrying out application program setting, comprising:
Processor, and the storer being loaded with many executable instructions, described many instructions comprise the method performing following steps:
Application program detects application deployment the setup failed of the association process program being preset communication protocol in current operation system;
Described application program arranges request to the first operating system service transmission in current operation system, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.

Claims (10)

1. carry out a method for application program setting, comprising:
Application program detects application deployment the setup failed of the association process program being preset communication protocol in current operation system;
Described application program arranges request to the first operating system service transmission in current operation system, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
2. the method for claim 1, is characterized in that, described application program detects that by application deployment the setup failed of the association process program being preset communication protocol in current operation system comprises:
Browser detects the setup failed of association process program browser being configured to http protocol in current operation system;
Or Mail Clients detects the setup failed of association process program Mail Clients being configured to mail protocol in current operation system.
3. the method for claim 1, is characterized in that, also comprises:
Application program obtains the installation file of the first operating system service and installs, to obtain the first operating system service in described current operation system.
4. the method for claim 1, is characterized in that, described application program arranges request to the first operating system service transmission in current operation system, comprising:
Described application program arranges request by preset interface to the second application program transmission independent of described application program; Described the second application program independent of described application program arranges described the first operating system service asking to be sent in current operation system.
5. the method for claim 1, is characterized in that, described application program detects that by application deployment the setup failed of the association process program being preset communication protocol in current operation system comprises:
Application program, by detecting the registration entry value associated with described communication protocol in current operation system, determines the setup failed of the association process program by application deployment being preset communication protocol in current operation system.
6. method as claimed in claim 3, is characterized in that, described application program obtains the installation file of the first operating system service and installs, and to obtain the first operating system service in described current operation system, comprising:
Obtain the installation file of the first operating system service, by the installation file of described first operating system service, the dynamic link library of described first operating system service and described virtual device level driver are installed;
Start described first operating system service place process, to load the dynamic link library of the first operating system service; Described first operating system service is by device level driver virtual described in described dynamic link library call.
7. method as claimed in claim 3, is characterized in that, described application program obtains the installation file of the first operating system service and installs, and to obtain the first operating system service in described current operation system, comprising:
Judge whether described first operating system service exists; If described first operating system service does not exist, then obtain the installation file of the first operating system service and install, to obtain the first operating system service in described current operation system.
8. the method as described in claim 1 or 5, is characterized in that, described application deployment is that the association process program of described preset communication protocol comprises by calling a virtual device level driver by described first operating system service:
Described first operating system service reception arranges request to described, asks to be issued to described virtual device level driver according to the described request establishment I/O that arranges;
Described virtual device level driver calls Registry Modifications function and registration entry value corresponding for the association process program of the preset communication protocol with operating system is set to described application program after receiving described I/O request.
9. carry out a device for application program setting, comprising:
Detection module is set, is suitable for the setup failed that application program detects application deployment the association process program being preset communication protocol in current operation system;
Associated configuration module, be suitable for described application program and request is set to the first operating system service transmission in current operation system, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
10., with the system of device of carrying out application program setting, comprising:
Processor, and the storer being loaded with many executable instructions, described many instructions comprise the method performing following steps:
Application program detects application deployment the setup failed of the association process program being preset communication protocol in current operation system;
Described application program arranges request to the first operating system service transmission in current operation system, so that described first operating system service is by calling the association process program that described application deployment is described preset communication protocol by a virtual device level driver.
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 true CN104536731A (en) 2015-04-22
CN104536731B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354448A (en) * 2015-12-07 2016-02-24 北京金山安全软件有限公司 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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354448A (en) * 2015-12-07 2016-02-24 北京金山安全软件有限公司 Authorization management method and device
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

Also Published As

Publication number Publication date
CN104536731B (en) 2017-12-19

Similar Documents

Publication Publication Date Title
US9256353B2 (en) Providing application and device management using entitlements
US7117504B2 (en) Application program interface that enables communication for a network software platform
CN104536981A (en) Browser safety achieving method, browser client-side and device
KR102243793B1 (en) Method and apparatus for code virtualization and remote process call generation
US8055496B2 (en) Ensuring product correctness in a multilingual environment
US20020188941A1 (en) Efficient installation of software packages
US7703024B2 (en) Obtaining a graphical user interface to access a remote computing system
US7596610B2 (en) Method and system for installing applications via a display page
US20080147745A1 (en) Method and system for providing synchronization of directory data
US20030037328A1 (en) Extending installation suites to include topology of suite's run-time environment
CN104539584B (en) The anti-method for implanting of browser, browser client and device
US7107537B2 (en) Apparatus and method for updating applications to embedded devices and peripherals within a network environment
US10628173B1 (en) Remotely invoking dynamic classes on a computing device
US10198279B2 (en) Thread synchronization for platform neutrality
CN103607376A (en) Method and device for compatible protocol
CN107368339B (en) Container entrance program operation method, system, device and storage medium
CN104536731A (en) Method, device and system for setting application programs
CN104539585A (en) Browser anti-injection method, browser client side and device
CN105100073A (en) Data verification method and device
CN112272135B (en) Mail sending method, device, equipment and storage medium for storage software
EP1058880A1 (en) Downloadable smart proxies for performing processing associated with a remote procedure call in a distributed system
US9323819B1 (en) Facilitating valid data entry
CN114503074A (en) Registration of dynamically created packaging applications
CN116192784B (en) Message notification method, device and equipment based on broadcast robot
CN106445530A (en) Method and device for converting client application software into webpage software

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

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.

TR01 Transfer of patent right