CN105955747B - A kind of operation method of security software, relevant apparatus and electronic equipment - Google Patents

A kind of operation method of security software, relevant apparatus and electronic equipment Download PDF

Info

Publication number
CN105955747B
CN105955747B CN201610298804.3A CN201610298804A CN105955747B CN 105955747 B CN105955747 B CN 105955747B CN 201610298804 A CN201610298804 A CN 201610298804A CN 105955747 B CN105955747 B CN 105955747B
Authority
CN
China
Prior art keywords
terminal
mode
operational mode
current
version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610298804.3A
Other languages
Chinese (zh)
Other versions
CN105955747A (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.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Zhuhai Seal Interest Technology 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 Zhuhai Seal Interest Technology Co Ltd filed Critical Zhuhai Seal Interest Technology Co Ltd
Priority to CN201610298804.3A priority Critical patent/CN105955747B/en
Publication of CN105955747A publication Critical patent/CN105955747A/en
Application granted granted Critical
Publication of CN105955747B publication Critical patent/CN105955747B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/55Detecting local intrusion or implementing counter-measures
    • G06F21/56Computer malware detection or handling, e.g. anti-virus arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2113Multi-level security, e.g. mandatory access control

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Virology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a kind of operation method of security software, relevant apparatus and electronic equipments, wherein the method, comprising: judges whether the current operational mode of terminal is interruption-free mode or Internet bar's operational mode;If the current operational mode of the terminal is interruption-free mode, set unavailable for the pop-up function of the security software;If the current operational mode of the terminal is Internet bar's operational mode, middle rank defence rank or rudimentary defence rank are set by the defence rank of the security software.Using technical solution provided in an embodiment of the present invention, security software can not only simplify operation according to its method of operation of the operational mode adjust automatically of terminal, and be conducive to improve the utilization rate of system resource, and the user experience is improved.

Description

A kind of operation method of security software, relevant apparatus and electronic equipment
Technical field
The present invention relates to field of computer technology more particularly to a kind of operation methods of security software, relevant apparatus and electricity Sub- equipment.
Background technique
In order to guarantee the safety of the terminals such as desktop computer, tablet computer, generally it is equipped in terminal is disliked for killing at present The security software of meaning software, such as Jinshan anti-virus software.
The operating status of each software in real-time monitoring terminal is understood when security software is run, and killing is carried out to Malware Operation can trigger pop-up function, pop-up prompt when security software finds dangerous situation or needs to user's PUSH message Window;But when user is playing game or just watching video using screen mode toggle, usually popped up without hope there is reminding window, In order to avoid being disturbed.In addition, even if security software has issued the instruction of pop-up, can not also shown when terminal is in screen lock state Come.In addition, user can arrive Internet bar using the terminal in Internet bar sometimes, since the terminal in Internet bar is after machine under user, user is beaten The file opened and the page browsed will not be all saved, so for the terminal in Internet bar, the defence grade of security software It Bu Yong not be arranged too high, otherwise waste system resource.
Currently, security software cannot be according to its operating status of the operational mode adjust automatically of terminal, when needing to turn off pop-up Or when reducing the defence rank of security software, user's manual operation is required, it is cumbersome.
Summary of the invention
The embodiment of the invention provides a kind of operation method of security software, relevant apparatus and electronic equipments, can solve The problem of how security software changes the method for operation according to the operational mode of terminal automatically.
First aspect of the embodiment of the present invention provides a kind of operation method of security software, comprising:
Judge whether the current operational mode of terminal is interruption-free mode or Internet bar's operational mode;
If the current operational mode of the terminal is interruption-free mode, set the pop-up function of the security software to It is unavailable;
If the current operational mode of the terminal is Internet bar's operational mode, the defence rank of the security software is arranged For middle rank defence rank or rudimentary defence rank.
With reference to first aspect, in the first possible embodiment of first aspect, the interruption-free mode are as follows: game Any mode in mode, screen mode toggle or screen locking pattern.
The possible embodiment of with reference to first aspect the first, in second of possible embodiment of first aspect In, whether the operational mode for judging that terminal is current is interruption-free mode, comprising: whether judges the current operational mode of terminal For game mode, whether the operational mode for judging that terminal is current is game mode, comprising:
Obtain the currently running process title of the terminal;
Judge one by one each currently running process title whether with the process title in preset game configuration file Match;It include multiple preset process titles in the game configuration file, each preset process title is corresponding with a game;
If the process name-matches in currently running process title X and preset game configuration file, obtain current Whether all window informations of operation, judge in currently running all windows to include window corresponding with the process title X, If including determining that the current operational mode of the terminal is game mode;Wherein, the process title X is currently running Any process title in process title.
The possible embodiment of with reference to first aspect the first, in the third possible embodiment of first aspect In, whether the operational mode for judging that terminal is current is interruption-free mode, comprising: whether judges the current operational mode of terminal For screen mode toggle, whether the operational mode for judging that terminal is current is screen mode toggle, comprising:
Obtain the version information of the operating system of the terminal;
After judging whether the version of the operating system of the terminal is vista or vista according to the version information Version;
If the version of the operating system of terminal is the version after vista or vista, full frame decision function is called to sentence Whether disconnected terminal is in full frame state, if so, determining that the current operational mode of terminal is screen mode toggle;
If the version of present terminal is the version before vista, size and the institute of the top-level windows of the terminal are judged Whether the size for stating the desktop of terminal is consistent, if unanimously, determining that the current operational mode of the terminal is screen mode toggle.
The possible embodiment of with reference to first aspect the first, in the 4th kind of possible embodiment of first aspect In, whether the operational mode for judging that terminal is current is interruption-free mode, comprising: whether judges the current operational mode of terminal For screen locking pattern, whether the operational mode for judging that terminal is current is screen locking pattern, comprising:
Obtain the location information of mouse;
If obtaining failure, determine that the current operational mode of terminal is screen lock state.
With reference to first aspect or first aspect the first into the 4th kind of possible embodiment any one may Embodiment judge whether the current operational mode of terminal is net in the 5th kind of possible embodiment of first aspect Mode, comprising:
Judge whether preset Internet bar's management software is installed in the terminal,
If being equipped with preset Internet bar's management software in the terminal, determine that the current operational mode of the terminal is net Mode.
Second aspect of the embodiment of the present invention provides a kind of running gear of security software, comprising:
Judging unit, for judging whether the current operational mode of terminal is interruption-free mode or Internet bar's operational mode;
Processing unit, if the operational mode current for the terminal is interruption-free mode, by the security software Pop-up function is set as unavailable;If the current operational mode of the terminal is Internet bar's operational mode, by the security software Defence rank be set as middle rank defence rank or rudimentary defence rank.
In conjunction with second aspect, in the first possible embodiment of second aspect, the interruption-free mode are as follows: game Any mode in mode, screen mode toggle or screen locking pattern.
In conjunction with the first possible embodiment of second aspect, in second of possible embodiment of second aspect In, in terms of judging whether the current operational mode of terminal is interruption-free mode, the judging unit is specifically used for:
Obtain the currently running process title of the terminal;
Judge one by one each currently running process title whether with the process title in preset game configuration file Match;It include multiple preset process titles in the game configuration file, each preset process title is corresponding with a game;
If the process name-matches in currently running process title X and preset game configuration file, obtain current Whether all window informations of operation, judge in currently running all windows to include window corresponding with the process title X, If including determining that the current operational mode of the terminal is game mode;Wherein, the process title X is currently running Any process title in process title.
In conjunction with the first possible embodiment of second aspect, in the third possible embodiment of second aspect In, in terms of judging whether the current operational mode of terminal is interruption-free mode, the judging unit is specifically used for:
Obtain the version information of the operating system of the terminal;
After judging whether the version of the operating system of the terminal is vista or vista according to the version information Version;
If the version of the operating system of terminal is the version after vista or vista, full frame decision function is called to sentence Whether disconnected terminal is in full frame state, if so, determining that the current operational mode of terminal is screen mode toggle;
If the version of present terminal is the version before vista, size and the institute of the top-level windows of the terminal are judged Whether the size for stating the desktop of terminal is consistent, if unanimously, determining that the current operational mode of the terminal is screen mode toggle.
In conjunction with the first possible embodiment of second aspect, in the 4th kind of possible embodiment of second aspect In, in terms of judging whether the current operational mode of terminal is interruption-free mode, the judging unit is specifically used for:
Obtain the location information of mouse;
If obtaining failure, determine that the current operational mode of terminal is screen lock state.
It may in conjunction with any one of the first of second aspect or second aspect into the 4th kind of possible embodiment Embodiment, in the 5th kind of possible embodiment of second aspect, judge the current operational mode of terminal whether be In terms of Internet bar's mode, the judging unit is specifically used for:
Judge whether preset Internet bar's management software is installed in the terminal,
If being equipped with preset Internet bar's management software in the terminal, determine that the current operational mode of the terminal is net Mode.
The third aspect of the embodiment of the present invention provides a kind of electronic equipment, comprising: processor, memory, communication interface and total Line;
The processor, the memory are connected by the bus with the communication interface and complete mutual lead to Letter;
The memory stores executable program code;
The processor is run by reading the executable program code stored in the memory can be performed with described The corresponding program of program code, with the operation method for executing a kind of security software;Wherein, the operation side of the security software Method includes:
Judge whether the current operational mode of terminal is interruption-free mode or Internet bar's operational mode;
If the current operational mode of the terminal is interruption-free mode, set the pop-up function of the security software to It is unavailable;
If the current operational mode of the terminal is Internet bar's operational mode, the defence rank of the security software is arranged For middle rank defence rank or rudimentary defence rank.
Fourth aspect of the embodiment of the present invention provides a kind of storage medium, wherein and the storage medium is used to store application program, The application program for executing a kind of operation method of security software described in the embodiment of the present invention at runtime.
The 5th aspect of the embodiment of the present invention provides a kind of application program, wherein the application program for executing at runtime A kind of operation method of security software described in the embodiment of the present invention.
As can be seen that use technical solution provided in an embodiment of the present invention, when terminal is in interruption-free mode, pass through by The pop-up function of security software is set as unavailable, avoids pop-up and bothers user;When terminal operating runs mould in Internet bar When formula, the lower middle rank defence rank of rank or rudimentary defence rank are set by the defence rank of security software, is conducive to Improve the utilization rate of system resource.Therefore, using technical solution provided in an embodiment of the present invention, security software can be according to terminal Operational mode adjust automatically its method of operation, not only simplify operation, and be conducive to improve the utilization rate of system resource, improve User experience.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others Attached drawing.
Fig. 1-a is a kind of flow diagram of the operation method for security software that the embodiment of the present invention provides;
Fig. 1-b be judge that terminal is current in the embodiment of the present invention operational mode whether be game mode process signal Figure;
Fig. 1-c be judge that terminal is current in the embodiment of the present invention operational mode whether be screen mode toggle process signal Figure;
Fig. 1-d be judge that terminal is current in the embodiment of the present invention operational mode whether be screen locking pattern process signal Figure;
Fig. 1-e be judge that terminal is current in the embodiment of the present invention operational mode whether be Internet bar's operational mode process Schematic diagram;
Fig. 2-a is a kind of structural schematic diagram of the running gear for security software that the embodiment of the present invention provides;
Fig. 2-b is a kind of structural schematic diagram of the first judging unit in Fig. 2-a;
Fig. 2-c is another structural schematic diagram of the first judging unit in Fig. 2-a;
Fig. 2-d is another structural schematic diagram of the first judging unit in Fig. 2-a;
Fig. 2-e is another structural schematic diagram of the first judging unit in Fig. 2-a;
Fig. 3 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention provides.
Specific embodiment
The embodiment of the invention provides a kind of operation method of security software, relevant apparatus and electronic equipments, being capable of basis The operational mode of terminal changes the method for operation automatically.
In order to make those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It is described in detail separately below.
Description and claims of this specification and term " first ", " second ", " third " and " in above-mentioned attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
A kind of operation method of security software of the present invention, may include: whether the operational mode for judging that terminal is current is to exempt from Bother mode or Internet bar's operational mode;If the current operational mode of the terminal is interruption-free mode, and the safety is soft The pop-up function of part is set as unavailable;If the current operational mode of the terminal is Internet bar's operational mode, by the safety The defence rank of software is set as middle rank defence rank or rudimentary defence rank.
Fig. 1-a is please referred to, Fig. 1-a is a kind of stream of the operation method for security software that one embodiment of the present of invention provides Journey schematic diagram, as shown in Fig. 1-a, one embodiment of the present of invention provide a kind of security software operation method may include with Lower content:
101, judge whether the current operational mode of terminal is interruption-free mode or Internet bar's operational mode.
Wherein, the interruption-free mode are as follows: any mode in game mode, screen mode toggle or screen locking pattern.If Active user is playing game, then the operational mode of terminal be game mode, if than user playing journey 2, World of Warcraft, Mad racing car such as asks at any money game in game, then the operational mode of terminal is game mode.
If user is seeing video, and when the play mode of video is selected as full frame, the operational mode of terminal is full screen mode Formula;If user, just in reading file, if file is full screen reading mode, the operational mode of terminal is also screen mode toggle.
If terminal is screen locking pattern by screen locking, the operational mode of terminal.
If the terminal that user uses is the terminal in Internet bar, the operational mode of terminal is Internet bar's operational mode.
If 102, the current operational mode of the terminal is interruption-free mode, the pop-up function of the security software is set It is set to unavailable;If the current operational mode of the terminal is Internet bar's operational mode, by the defence rank of the security software It is set as middle rank defence rank or rudimentary defence rank.
Wherein, middle rank defence rank or rudimentary defence rank can be to turn off the function of file reading or for non- The file of the non-dll suffix of exe does not monitor, and is configured specifically, can according to need, here without limitation.
As can be seen that use technical solution provided in an embodiment of the present invention, when terminal is in interruption-free mode, pass through by The pop-up function of security software is set as unavailable, avoids pop-up and bothers user;When terminal operating runs mould in Internet bar When formula, the lower middle rank defence rank of rank or rudimentary defence rank are set by the defence rank of security software, is conducive to Improve the utilization rate of system resource.Therefore, using technical solution provided in an embodiment of the present invention, security software can be according to terminal Operational mode adjust automatically its method of operation, not only simplify operation, and be conducive to improve the utilization rate of system resource, improve User experience.
Optionally, in some possible embodiments of the present invention, the operational mode for judging that terminal is current whether be Interruption-free mode, comprising: judge whether the current operational mode of terminal is game mode, specifically, judge the current fortune of terminal Whether row mode is game mode, as shown in Fig. 1-b, may include:
111, the currently running process title of terminal is obtained.
For example, the currently running process title of terminal may include word.exe and zhengtu2.dat.
112, judge one by one each currently running process title whether with the process name in preset game configuration file Claim matching;It include multiple preset process titles, each preset process title and a game in the game configuration file It is corresponding.
For example, if the process title for including in game configuration file have wow. World of Warcraft, zhengtu2.dat, Xy3launch.exe, ask.exe etc..It should be noted that if the process name of some currently running process and game configuration text Some process title in part is consistent, then matches, if in the process name of some currently running process and game configuration file All process titles are all inconsistent, then mismatch.Process title through judging, in process name word.exe and game configuration file It mismatches, the process name-matches in process zhengtu2.dat and game configuration file.
If 113, the process name-matches in currently running process title X and preset game configuration file, obtain Whether currently running all window informations judge in currently running all windows to include corresponding with the process title X Window determines that the current operational mode of the terminal is game mode if including;Wherein, the process title X is current fortune Any process title in capable process title.
Optionally, in some possible embodiments of the present invention, Windows API can be used The functions such as CreateToolhelp32Snapshot, Process32First, Process32Next obtain terminal and currently run Process name and the information such as process PID.Currently running all window informations are enumerated using EnumWindow API, then The process PID that GetWindowThreadProcessId obtains the PID of the affiliated process of window and front obtains is called to match, If PID unanimously if match, as game mode.For example, as described in citing in step 111, if current process includes journey 2 The corresponding process zhengtu2.dat of this game, if the corresponding PID of the game is 1225;If currently running window is corresponding The PID of process includes: 1524,1225 and 1566, is corresponded to since the corresponding PID 1225 of game is present in currently running window Process PID in.So may determine that the current operational mode of terminal is game mode.
Optionally, in some possible embodiments of the present invention, the operational mode for judging that terminal is current whether be Interruption-free mode, comprising: judge whether the current operational mode of terminal is screen mode toggle, specifically, judge the current fortune of terminal Whether row mode is screen mode toggle, as shown in fig 1-c, may include:
121, the version information of the operating system of the terminal is obtained.
Wherein, the version information of the operating system of terminal may be: xp, win2000, vista, win7, win8, win8.1 Or win10 etc..
122, whether the version that the operating system of the terminal is judged according to the version information is vista or vista Version later.
The sequencing to be appeared on the market according to operating system, it is known that, the operation of the versions such as win7, win8, win8.1 and win10 System is the version after vista.Xp and win2000 be vista before version.
If 123, the version of the operating system of terminal is the version after vista or vista, full frame judgement letter is called Number judges whether terminal is in full frame state, if so, determining that the current operational mode of terminal is screen mode toggle;
If the version of present terminal is the version before vista, size and the institute of the top-level windows of the terminal are judged Whether the size for stating the desktop of terminal is consistent, if unanimously, determining that the current operational mode of the terminal is screen mode toggle.
It should be noted that after vista operating system and vista version operating system, there are a system letters Number QueryFullProcessImageNameW is used directly for judging whether terminal is in full frame state.
There is no special function that can directly determine whether present terminal is located in the operating system of the version before vista In full frame state.In order to determine whether present terminal is in full frame state, function GetSystemMetrics (SM_ can be called CXSCREEN, SM_CYSCREEN) working region that obtains terminal desktop, then call the functions such as GetForegroundWindow The size of the window of top can be got, if the working region of the size and terminal desktop of top-level windows is in the same size, Terminal operating is in screen mode toggle, it should be noted that the size of top-level windows differs one one with the working region of terminal desktop Fixed pixel, for example within 10 pixels, can think that the two is in the same size.
Optionally, in some possible embodiments of the present invention, judge whether the current operational mode of terminal is to exempt to beat Disturb mode, comprising: judge whether the current operational mode of terminal is screen locking pattern, specifically, judge the current operation mould of terminal Whether formula is screen locking pattern, as shown in Fig. 1-d, may include:
131, the location information of mouse is obtained;
If 132, obtaining failure, determine that the current operational mode of terminal is screen lock state.
Optionally, in some possible embodiments of the present invention, judge whether the current operational mode of terminal is Internet bar Operational mode may include: as shown in Fig. 1-e
141, judge whether preset Internet bar's management software is installed in the terminal.
For example, preset Internet bar's management software may include common a plurality of Internet bar's management software information, for example can wrap Include most common 10 sections of Internet bars management software information etc..
If 142, being equipped with preset Internet bar's management software in the terminal, the current operational mode of the terminal is determined For Internet bar's mode.
Specifically, a configuration file is set, includes title and the Internet bar of preset Internet bar's management software in configuration file The registration table key assignments of management software.By the peace for reading the available Internet bar's management software of registration table key assignments of Internet bar's management software Catalogue is filled, the title of the installation directory of Internet bar's management software and Internet bar's management software is spliced, Internet bar's management software is obtained Complete file directory.
For example, if preset Internet bar management example software includes money tree Internet bar management software, in configuration file Registry key including the corresponding dbase yqsclient.exe of money tree management software and the software in registration table Value InstallPath, by reading the installation path for Internet bar's management software that registration table key assignments InstallPath can be obtained, For example, if obtain Internet bar's management software installation path be C: lychee, by the installation directory of Internet bar's management software and Internet bar The title of management software is spliced, obtain the complete path of Internet bar's management software be C: lychee yqsclient.exe.So PathFileExist function is called afterwards, is judged whether with the presence of file under the path, if can be determined that end with the presence of file It is mounted with that money tree Internet bar management software, the operational mode of present terminal are Internet bar's mode in end
Fig. 2-a is please referred to, Fig. 2-a is a kind of knot of the running gear for security software that one embodiment of the present of invention provides Structure schematic diagram, as shown in Fig. 2-a, a kind of running gear 200 for security software that one embodiment of the present of invention provides be can wrap It includes:
First judging unit 201, for judging whether the current operational mode of terminal is interruption-free mode or Internet bar's fortune Row mode.
Wherein, the interruption-free mode are as follows: any mode in game mode, screen mode toggle or screen locking pattern.If Active user is playing game, then the operational mode of terminal be game mode, if than user playing journey 2, World of Warcraft, Mad racing car such as asks at any money game in game, then the operational mode of terminal is game mode.
If user is seeing video, and when the play mode of video is selected as full frame, the operational mode of terminal is full screen mode Formula;If user, just in reading file, if file is full screen reading mode, the operational mode of terminal is also screen mode toggle.
If terminal is screen locking pattern by screen locking, the operational mode of terminal.
If the terminal that user uses is the terminal in Internet bar, the operational mode of terminal is Internet bar's operational mode.
First processing units 202, if the operational mode current for the terminal is interruption-free mode, by the safety The pop-up function of software is set as unavailable;If the current operational mode of the terminal is Internet bar's operational mode, by the peace The defence rank of full software is set as middle rank defence rank or rudimentary defence rank.
Wherein, middle rank defence rank or rudimentary defence rank can be to turn off the function of file reading or for non- The file of the non-dll suffix of exe does not monitor, and is configured specifically, can according to need, here without limitation.
As can be seen that use technical solution provided in an embodiment of the present invention, when terminal is in interruption-free mode, pass through by The pop-up function of security software is set as unavailable, avoids pop-up and bothers user;When terminal operating runs mould in Internet bar When formula, the lower middle rank defence rank of rank or rudimentary defence rank are set by the defence rank of security software, is conducive to Improve the utilization rate of system resource.Therefore, using technical solution provided in an embodiment of the present invention, security software can be according to terminal Operational mode adjust automatically its method of operation, not only simplify operation, and be conducive to improve the utilization rate of system resource, promoted and used Family experience.
Optionally, in some possible embodiments of the present invention, the first judging unit 201 is specifically used for judging that terminal is worked as Whether preceding operational mode is game mode, and the first judging unit 201 may include as shown in Fig. 2-b
First acquisition unit 211, for obtaining the currently running process title of the terminal.
For example, if current process title includes word.exe and zhengtu2.dat.
The second processing unit 212, for judging whether each currently running process title matches with preset game one by one Set the process name-matches in file;In the game configuration file include multiple preset process titles, it is each it is preset into Journey title is corresponding with a game.
For example, if the process title for including in game configuration file have wow. World of Warcraft, zhengtu2.dat, Xy3launch.exe, ask.exe etc..It should be noted that if the process name of some currently running process and game configuration text Some process title in part is consistent, then matches, if in the process name of some currently running process and game configuration file All process titles are all inconsistent, then mismatch.Process title through judging, in process name word.exe and game configuration file It mismatches, the process name-matches in process zhengtu2.dat and game configuration file.
Third processing unit 213, if for the process in currently running process title X and preset game configuration file Name-matches then obtain currently running all window informations, judge in currently running all windows whether include with it is described The corresponding window of process title X determines that the current operational mode of the terminal is game mode if including;Wherein, it is described into Journey title X is any process title in currently running process title.
Optionally, in some possible embodiments of the present invention, Windows API can be used The functions such as CreateToolhelp32Snapshot, Process32First, Process32Next obtain terminal and currently run Process name and the information such as process PID.Currently running all window informations are enumerated using EnumWindow API, then The process PID that GetWindowThreadProcessId obtains the PID of the affiliated process of window and front obtains is called to match, If PID unanimously if match, as game mode.For example, as described in citing in step 112, if current process includes journey 2 The corresponding process zhengtu2.dat of this game, if the corresponding PID of the game is 1225;If currently running window is corresponding The PID of process includes: 1524,1225 and 1566, since to be present in currently running window corresponding by the corresponding PID1225 of game In the PID of process.So may determine that the current operational mode of terminal is game mode.
Optionally, in some possible embodiments of the present invention, the first judging unit 201 is specifically used for judgement judgement eventually Hold whether current operational mode is screen mode toggle, the first judging unit 201 as shown in fig. 2-c, may include
Second acquisition unit 221, the version information of the operating system for obtaining the terminal.
Wherein, the version information of the operating system of terminal may be: xp, win2000, vista, win7, win8, win8.1 Or win10 etc..
Second judgment unit 222, for judged according to the version information terminal operating system version whether For the version after vista or vista.
The sequencing to be appeared on the market according to operating system, it is known that, the operation of the versions such as win7, win8, win8.1 and win10 System is the version after vista.Xp and win2000 be vista before version.
Fourth processing unit 223, if the version of the operating system for terminal is the version after vista or vista, Full frame decision function is then called to judge whether terminal is in full frame state, if so, determining that the current operational mode of terminal is complete Screen mode;If the version of present terminal be vista before version, judge the sizes of the top-level windows of the terminal with it is described Whether the size of the desktop of terminal is consistent, if unanimously, determining that the current operational mode of the terminal is screen mode toggle.
It should be noted that after vista operating system and vista version operating system, there are a system letters Number QueryFullProcessImageNameW is used directly for judging whether terminal is in full frame state.
There is no special function that can directly determine whether present terminal is located in the operating system of the version before vista In full frame state.In order to determine whether present terminal is in full frame state, function GetSystemMetrics (SM_ can be called CXSCREEN, SM_CYSCREEN) working region that obtains terminal desktop, then call the functions such as GetForegroundWindow The size of the window of top can be got, if the working region of the size and terminal desktop of top-level windows is in the same size, Terminal operating is in screen mode toggle, it should be noted that the size of top-level windows differs one one with the working region of terminal desktop Fixed pixel, for example within 10 pixels, can think that the two is in the same size.
Optionally, in some possible embodiments of the present invention, the first judging unit 201 is used to judging that terminal to be current Whether operational mode is screen locking pattern, and the first judging unit 201 may include: as shown in Fig. 2-d
Third acquiring unit 231, for obtaining the location information of mouse.
5th processing unit 232 determines the current operation mould of terminal if obtaining failure for third acquiring unit 231 Formula is screen lock state.
Optionally, in some possible embodiments of the present invention, the first judging unit 201 is used to judging that terminal to be current Whether operational mode is Internet bar's operational mode, and as shown in Fig. 2-e, the first judging unit 201 may include:
Third judging unit 241, for judging whether be equipped with preset Internet bar's management software in the terminal.
For example, preset Internet bar's management software may include that common a plurality of Internet bar's pipes 241 manage software informations, such as can be with Including most common 10 sections of Internet bars management software information etc..
6th processing unit 242, if determining the end for being equipped with preset Internet bar's management software in the terminal Holding current operational mode is Internet bar's mode.
Specifically, a configuration file is set, includes title and the Internet bar of preset Internet bar's management software in configuration file The registration table key assignments of management software.By the peace for reading the available Internet bar's management software of registration table key assignments of Internet bar's management software Catalogue is filled, the title of the installation directory of Internet bar's management software and Internet bar's management software is spliced, Internet bar's management software is obtained Complete file directory.
For example, if preset Internet bar management example software includes money tree Internet bar management software, in configuration file Registry key including the corresponding dbase yqsclient.exe of money tree management software and the software in registration table Value InstallPath, by reading the installation path for Internet bar's management software that registration table key assignments InstallPath can be obtained, For example, if obtain Internet bar's management software installation path be C: lychee, by the installation directory of Internet bar's management software and Internet bar The title of management software is spliced, obtain the complete path of Internet bar's management software be C: lychee yqsclient.exe.So PathFileExist function is called afterwards, is judged whether with the presence of file under the path, if can be determined that end with the presence of file It is mounted with that money tree Internet bar management software, the operational mode of present terminal are Internet bar's mode in end
Referring to Fig. 3, Fig. 3 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention, the electronic equipment 300, may include:
Processor 301, memory 302, communication interface 303 and bus 304;
Wherein, the processor 301, the memory 302 and the communication interface 303 are connected by the bus 304 And complete mutual communication;
The memory 302 stores executable program code;
The processor 301 run by reading the executable program code stored in the memory 302 with it is described The corresponding program of executable program code, with the operation method for executing a kind of security software;Wherein, a kind of security software Operation method includes the following contents:
Judge whether the current operational mode of terminal is interruption-free mode or Internet bar's operational mode;
If the current operational mode of the terminal is interruption-free mode, set the pop-up function of the security software to It is unavailable;
If the current operational mode of the terminal is Internet bar's operational mode, the defence rank of the security software is arranged For middle rank defence rank or rudimentary defence rank.
As can be seen that use technical solution provided in an embodiment of the present invention, when terminal is in interruption-free mode, pass through by The pop-up function of security software is set as unavailable, avoids pop-up and bothers user;When terminal operating runs mould in Internet bar When formula, the lower middle rank defence rank of rank or rudimentary defence rank are set by the defence rank of security software, is conducive to Improve the utilization rate of system resource.Therefore, using technical solution provided in an embodiment of the present invention, security software can be according to terminal Operational mode adjust automatically its method of operation, not only simplify operation, and be conducive to improve the utilization rate of system resource, improve User experience.
The embodiment of the invention also provides a kind of storage mediums, wherein the storage medium is described for storing application program Application program for executing a kind of operation method of security software described in the embodiment of the present invention at runtime.
The embodiment of the invention also provides a kind of application programs, wherein the application program for executing this hair at runtime A kind of operation method of security software described in bright embodiment.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, Installation practice described above is schematical, such as the division of the unit, only a kind of logic Function division, there may be another division manner in actual implementation, such as multiple units or components can combine or can collect At another system is arrived, or some features can be ignored or not executed.Another point, shown or discussed mutual coupling It closes or direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit can be with It is electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above, above embodiments are only to illustrate technical solution of the present invention, rather than its limitations;Although referring to aforementioned Invention is explained in detail for embodiment, wherein those skilled in the art should understand that: it still can be right Technical solution documented by foregoing embodiments is modified or equivalent replacement of some of the technical features;And this It modifies or replaces, the range for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (9)

1. a kind of operation method of security software characterized by comprising
Judge whether the current operational mode of terminal is interruption-free mode or Internet bar's operational mode;
If the current operational mode of the terminal is interruption-free mode, setting the pop-up function of the security software to can not With;
If the current operational mode of the terminal is Internet bar's operational mode, set the defence rank of the security software to Grade defence rank or rudimentary defence rank;
The interruption-free mode are as follows: any mode in game mode, screen mode toggle or screen locking pattern;
Whether the operational mode for judging that terminal is current is interruption-free mode, comprising: judges that the current operational mode of terminal is No is screen mode toggle, and whether the operational mode for judging that terminal is current is screen mode toggle, comprising:
Obtain the version information of the operating system of the terminal;
The version after whether the version of the operating system of the terminal is vista or vista is judged according to the version information This;
If the version of the operating system of terminal is the version after vista or vista, full frame decision function judgement is called eventually Whether end is in full frame state, if so, determining that the current operational mode of terminal is screen mode toggle;
If the version of present terminal be vista before version, judge the top-level windows of the terminal size and the end Whether the size of the desktop at end is consistent, if unanimously, determining that the current operational mode of the terminal is screen mode toggle.
2. the method according to claim 1, wherein whether the operational mode for judging that terminal is current is to exempt to beat Disturb mode, comprising: judge whether the current operational mode of terminal is game mode, the current operational mode of the judgement terminal is No is game mode, comprising:
Obtain the currently running process title of the terminal;
Judge one by one each currently running process title whether with the process name-matches in preset game configuration file;Institute Stating includes multiple preset process titles in game configuration file, and each preset process title is corresponding with a game;
If the process name-matches in currently running process title X and preset game configuration file, current operation is obtained All window informations, judge in currently running all windows whether to include window corresponding with the process title X, if packet It includes, then determines that the current operational mode of the terminal is game mode;Wherein, the process title X is currently running process Any process title in title.
3. the method according to claim 1, wherein whether the operational mode for judging that terminal is current is to exempt to beat Disturb mode, comprising: judge whether the current operational mode of terminal is screen locking pattern, the current operational mode of the judgement terminal is No is screen locking pattern, comprising:
Obtain the location information of mouse;
If obtaining failure, determine that the current operational mode of terminal is screen lock state.
4. method according to any one of claims 1 to 3, which is characterized in that whether judge the current operational mode of terminal For Internet bar's mode, comprising:
Judge whether preset Internet bar's management software is installed in the terminal,
If being equipped with preset Internet bar's management software in the terminal, determine the current operational mode of the terminal for Internet bar's mould Formula.
5. a kind of running gear of security software characterized by comprising
Judging unit, for judging whether the current operational mode of terminal is interruption-free mode or Internet bar's operational mode;
Processing unit, if the operational mode current for the terminal is interruption-free mode, by the pop-up of the security software Function is set as unavailable;If the current operational mode of the terminal is Internet bar's operational mode, by the anti-of the security software Imperial rank is set as middle rank defence rank or rudimentary defence rank;
The interruption-free mode are as follows: any mode in game mode, screen mode toggle or screen locking pattern;
In terms of judging whether the current operational mode of terminal is interruption-free mode, the judging unit is specifically used for:
Obtain the version information of the operating system of the terminal;
The version after whether the version of the operating system of the terminal is vista or vista is judged according to the version information This;
If the version of the operating system of terminal is the version after vista or vista, full frame decision function judgement is called eventually Whether end is in full frame state, if so, determining that the current operational mode of terminal is screen mode toggle;
If the version of present terminal be vista before version, judge the top-level windows of the terminal size and the end Whether the size of the desktop at end is consistent, if unanimously, determining that the current operational mode of the terminal is screen mode toggle.
6. device according to claim 5, which is characterized in that judging whether the current operational mode of terminal is interruption-free In terms of mode, the judging unit is specifically used for:
Obtain the currently running process title of the terminal;
Judge one by one each currently running process title whether with the process name-matches in preset game configuration file;Institute Stating includes multiple preset process titles in game configuration file, and each preset process title is corresponding with a game;
If the process name-matches in currently running process title X and preset game configuration file, current operation is obtained All window informations, judge in currently running all windows whether to include window corresponding with the process title X, if packet It includes, then determines that the current operational mode of the terminal is game mode;Wherein, the process title X is currently running process Any process title in title.
7. device according to claim 6, which is characterized in that judging whether the current operational mode of terminal is interruption-free In terms of mode, the judging unit is specifically used for:
Obtain the location information of mouse;
If obtaining failure, determine that the current operational mode of terminal is screen lock state.
8. according to the described in any item devices of claim 5 to 7, which is characterized in that judging that the current operational mode of terminal is No is Internet bar's mode aspect, and the judging unit is specifically used for:
Judge whether preset Internet bar's management software is installed in the terminal,
If being equipped with preset Internet bar's management software in the terminal, determine the current operational mode of the terminal for Internet bar's mould Formula.
9. a kind of electronic equipment characterized by comprising processor, memory, communication interface and bus;
The processor, the memory are connected by the bus with the communication interface and complete mutual communication;
The memory stores executable program code;
The processor is run and the executable program by reading the executable program code stored in the memory The corresponding program of code, with the operation method for executing a kind of security software;Wherein, the operation method packet of the security software It includes:
Judge whether the current operational mode of terminal is interruption-free mode or Internet bar's operational mode;
If the current operational mode of the terminal is interruption-free mode, setting the pop-up function of the security software to can not With;
If the current operational mode of the terminal is Internet bar's operational mode, set the defence rank of the security software to Grade defence rank or rudimentary defence rank;
The interruption-free mode are as follows: any mode in game mode, screen mode toggle or screen locking pattern;
Whether the operational mode for judging that terminal is current is interruption-free mode, comprising: judges that the current operational mode of terminal is No is screen mode toggle, and whether the operational mode for judging that terminal is current is screen mode toggle, comprising:
Obtain the version information of the operating system of the terminal;
The version after whether the version of the operating system of the terminal is vista or vista is judged according to the version information This;
If the version of the operating system of terminal is the version after vista or vista, full frame decision function judgement is called eventually Whether end is in full frame state, if so, determining that the current operational mode of terminal is screen mode toggle;
If the version of present terminal be vista before version, judge the top-level windows of the terminal size and the end Whether the size of the desktop at end is consistent, if unanimously, determining that the current operational mode of the terminal is screen mode toggle.
CN201610298804.3A 2016-05-06 2016-05-06 A kind of operation method of security software, relevant apparatus and electronic equipment Active CN105955747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610298804.3A CN105955747B (en) 2016-05-06 2016-05-06 A kind of operation method of security software, relevant apparatus and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610298804.3A CN105955747B (en) 2016-05-06 2016-05-06 A kind of operation method of security software, relevant apparatus and electronic equipment

Publications (2)

Publication Number Publication Date
CN105955747A CN105955747A (en) 2016-09-21
CN105955747B true CN105955747B (en) 2019-05-07

Family

ID=56915125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610298804.3A Active CN105955747B (en) 2016-05-06 2016-05-06 A kind of operation method of security software, relevant apparatus and electronic equipment

Country Status (1)

Country Link
CN (1) CN105955747B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775680A (en) * 2016-11-30 2017-05-31 北京奇虎科技有限公司 Suspend processing method, device and the mobile terminal for notifying
CN107180187B (en) * 2017-03-31 2020-04-10 武汉斗鱼网络科技有限公司 Live broadcast environment detection method and device and live broadcast program processing method and device based on live broadcast environment
CN108712559B (en) * 2018-04-08 2021-07-02 深圳先搜科技有限公司 Disturbance-free method, system, terminal equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729110A (en) * 2013-12-27 2014-04-16 广州华多网络科技有限公司 Popup window information display method, device and terminal
CN104360794A (en) * 2014-11-21 2015-02-18 北京奇虎科技有限公司 Method and device for controlling window pop-up through full screen-identifying mode
CN105141669A (en) * 2015-08-04 2015-12-09 广州华多网络科技有限公司 Method and system for pushing game information based on client side process and client sides

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729110A (en) * 2013-12-27 2014-04-16 广州华多网络科技有限公司 Popup window information display method, device and terminal
CN104360794A (en) * 2014-11-21 2015-02-18 北京奇虎科技有限公司 Method and device for controlling window pop-up through full screen-identifying mode
CN105141669A (en) * 2015-08-04 2015-12-09 广州华多网络科技有限公司 Method and system for pushing game information based on client side process and client sides

Also Published As

Publication number Publication date
CN105955747A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN105955747B (en) A kind of operation method of security software, relevant apparatus and electronic equipment
CN108427633B (en) Display interface processing method and device
CN106874366B (en) Software information processing method and device
CN105302815B (en) The filter method and device of the uniform resource position mark URL of webpage
CN105335139B (en) Webpage display process and device
CN106453216A (en) Malicious website interception method, malicious website interception device and client
CN106649446B (en) Information pushing method and device
CN108304112A (en) Data processing method and device
CN106843977B (en) A kind of processing method, device and the mobile terminal of application program self-starting
CN102938766A (en) Vicious website prompt method and device
CN105574174B (en) Searching method and device based on Search Hints
CN105302566A (en) Process optimizing method and system
CN103838851B (en) The rendering intent and device of three-dimensional scene models file
CN102946391B (en) The method of prompting malice network address and a kind of browser in a kind of browser
CN102567099B (en) Method, device and equipment used for controlling operation object
CN105208032B (en) Asynchronous login method and device
CN106227541A (en) A kind of program updates download process method and mobile terminal
CN105975380B (en) A kind of method, apparatus and electronic equipment handling pop-up
CN103023757B (en) Message display device and methods of exhibiting
CN106815037B (en) Application function execution method and device
CN104144224A (en) Method and device for displaying released information through client side
CN108271050A (en) The method and device that a kind of direct broadcasting room program is recommended
CN109862399A (en) It shows the method for rich media information, handle method, computer installation and the computer readable storage medium of rich media information
CN103036895B (en) A kind of status tracking method and system
CN109756754A (en) Video broadcasting method, device, storage medium and electronic device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20181129

Address after: Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Applicant after: Zhuhai Leopard Technology Co.,Ltd.

Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing

Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

GR01 Patent grant
GR01 Patent grant