CN113296654B - Data processing method, device, electronic equipment and storage medium - Google Patents

Data processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113296654B
CN113296654B CN202110585786.8A CN202110585786A CN113296654B CN 113296654 B CN113296654 B CN 113296654B CN 202110585786 A CN202110585786 A CN 202110585786A CN 113296654 B CN113296654 B CN 113296654B
Authority
CN
China
Prior art keywords
window
identification
link library
dynamic link
monitored
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
CN202110585786.8A
Other languages
Chinese (zh)
Other versions
CN113296654A (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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202110585786.8A priority Critical patent/CN113296654B/en
Publication of CN113296654A publication Critical patent/CN113296654A/en
Application granted granted Critical
Publication of CN113296654B publication Critical patent/CN113296654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • 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
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a data processing method, a data processing device, electronic equipment and a storage medium. The method comprises the following steps: when the first process is monitored to be established, a target dynamic link library is injected into the first process, and distinguishing attribute information of the first process is transmitted into the target dynamic link library; the target dynamic link library determines a target marking strategy corresponding to the distinguishing attribute information according to the distinguishing attribute information; the target dynamic link library adds an identification window to a first window of the first process according to the target marking strategy; and monitoring for an operational event for the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window.

Description

Data processing method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method, a data processing device, an electronic device, and a storage medium.
Background
In the related art, in order to distinguish and identify windows, an identification mark may be added to the windows. However, the manner in which the identification mark is displayed may affect the user's operation of the window.
Disclosure of Invention
In order to solve the related technical problems, embodiments of the present application provide a data processing method, a data processing device, an electronic device, and a storage medium.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a data processing method, which comprises the following steps:
when the first process is monitored to be established, a target dynamic link library is injected into the first process, and distinguishing attribute information of the first process is transmitted into the target dynamic link library;
the target dynamic link library determines a target marking strategy corresponding to the distinguishing attribute information according to the distinguishing attribute information;
the target dynamic link library adds an identification window to a first window of the first process according to the target marking strategy; and monitoring for an operational event for the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window.
In the above solution, when the first process is detected to be created, injecting the target dynamic link library into the first process includes:
and when the monitoring process of the driving layer monitors that the first process is created, the target dynamic link library is injected into the first process.
In the above scheme, the monitoring process is specifically a process creation callback function.
In the above scheme, the method further comprises:
the target dynamic link library judges whether a window started by the first process meets a first condition or not, and the window meeting the first condition is used as a main window of the first process; adding an identification window to the main window according to the target marking strategy; wherein,
the first condition comprises at least one of:
the corresponding window is a visible window, and the corresponding window does not correspond to the parent window and the owner window;
the corresponding window corresponds to a system menu attribute, and the corresponding window contains a maximize button or a minimize button;
the respective windows do not correspond to system menu attributes and include a maximize button and a minimize button.
In the above scheme, the method further comprises:
and the target dynamic link library monitors the window creation event and the window display event in the first process through an event monitoring mechanism, and determines the window started by the first process.
In the above scheme, the method further comprises:
when the target dynamic link library determines that the first window is not processed, modifying a window callback function of the first window, adding the identification window to the first window through the modified window callback function, and monitoring an operation event aiming at the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window.
In the above scheme, the executing, according to the monitored operation event, a corresponding operation on the identification window includes at least one of the following:
when a first operation event for enabling the first window to be displayed in a full screen mode is detected, configuring the identification window into a window which is transparent to information, can not be activated, is layered and does not occupy focus;
when a second operation event for enabling the first window to be displayed in a non-full screen mode is monitored, configuring the identification window into a window which can capture a message, cannot be activated and does not occupy focus, and moving the identification window to the outside of the first window to be displayed;
when a third operation event for moving the first window is monitored, moving the identification window according to the movement track of the first window;
when a fourth operation event for hiding the first window is monitored, hiding the identification window;
and displaying the identification window when a fifth operation event for displaying the first window is monitored.
In the above solution, the executing, according to the monitored operation event, a corresponding operation on the identification window includes:
when a sixth operation event for switching the first window from the inactive state to the active state is monitored, displaying the identification window;
And hiding the identification window when a seventh operation event for switching the first window from the activated state to the inactivated state is monitored.
In the above solution, the displaying the identification window includes:
gradually moving into an animation to display the identification window;
the hiding the identification window includes:
the progressive drawing conceals the identification window.
In the above scheme, the identification window comprises a first identification window and a second identification window; the displaying the identification window comprises the following steps:
and displaying the first identification window, and presenting the second identification window by a gradually-in gradually-out moving picture.
The embodiment of the application also provides a data processing device, which comprises:
the monitoring unit is used for monitoring that when a first process is created, a target dynamic link library unit is injected into the first process, and distinguishing attribute information of the first process is transmitted into the target dynamic link library unit;
the target dynamic link library unit is used for determining a target marking strategy corresponding to the distinguishing attribute information according to the distinguishing attribute information; adding an identification window to a first window of the first process according to the target marking strategy; and monitoring for an operational event for the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window.
The embodiment of the application also provides electronic equipment, which comprises: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is adapted to perform the steps of any of the methods described above when the computer program is run.
The present application also provides a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any of the methods described above.
According to the data processing method, the device, the electronic equipment and the storage medium, when the first process is monitored to be established, a target dynamic link library is injected into the first process, and distinguishing attribute information of the first process is transmitted into the target dynamic link library; the target dynamic link library determines a target marking strategy corresponding to the distinguishing attribute information according to the distinguishing attribute information; the target dynamic link library adds an identification window to a first window of the first process according to the target marking strategy; and monitoring for an operational event for the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window. According to the scheme of the embodiment of the application, the target dynamic link library executes corresponding operation on the identification window according to the monitored operation event aiming at the first window, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window; therefore, the user can distinguish the current window through the identification window, and can ensure that the identification window does not influence the operation of the user, so that the user experience can be improved.
Drawings
FIG. 1 is a flow chart of a data processing method according to an embodiment of the present application;
FIG. 2 is a schematic flow diagram of asynchronous procedure call (APC, asynchronous Procedure Calls) injection in accordance with an embodiment of the present application;
FIG. 3 is a flowchart of an embodiment of the present application for determining whether a dye window and a watermark window need to be created;
FIG. 4 is a schematic diagram of internal logic of a main window callback function according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the accompanying drawings and examples.
An embodiment of the present application provides a data processing method, as shown in fig. 1, including:
step 101: when the first process is monitored to be established, a target dynamic link library is injected into the first process, and distinguishing attribute information of the first process is transmitted into the target dynamic link library;
step 102: the target dynamic link library determines a target marking strategy corresponding to the distinguishing attribute information according to the distinguishing attribute information;
step 103: the target dynamic link library adds an identification window to a first window of the first process according to the target marking strategy; and monitoring for an operational event for the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window.
Here, the identification window is a child window of the first window.
It should be noted that, the data processing method provided in the embodiment of the present application is applied to an electronic device, where the electronic device may be a Personal Computer (PC), a mobile phone, etc.; the PC may include a desktop computer, a notebook computer, a tablet computer, etc.
In an embodiment, the injecting the target dynamic link library into the first process when the first process is detected to be created may include:
and when the monitoring process of the driving layer monitors that the first process is created, the target dynamic link library is injected into the first process.
In practical application, the monitoring process of the driving layer can be realized through a callback function arranged on the driving layer, in other words, the monitoring process specifically creates the callback function for the process. The driver layer may be understood as a driver layer of an operating system, such as microsoft Windows (Microsoft Windows, abbreviated as Windows) operating system. The injection mode of injecting the target dynamic link library into the first process can be set according to requirements, such as APC injection. In this way, when the monitoring process of the driving layer monitors that the process of the electronic device is created, the target dynamic link library can be quickly injected into the monitored process (i.e. the first process), so that all windows of the monitored process are created after the target dynamic link library is injected, in other words, omission of the windows of the process can be avoided, namely, the situation that the identification window is not added in time is avoided, and therefore stability of an adding mechanism of the identification window can be improved.
In practical application, the distinguishing attribute information can be used for distinguishing the process to which the window belongs. Of course, the distinguishing attribute information may also be used to distinguish the desktop to which the window belongs. Here, the electronic device may include a plurality of desktops, and the plurality of desktops may specifically be at least two desktops, where the desktops refer to a main screen area presented by the electronic device after the electronic device is opened and the operating system is successfully logged in.
Specifically, each desktop in the plurality of desktops included in the electronic device may correspond to a virtual working space, the plurality of desktops use the same physical disk, a use area of each desktop is not divided on the disk, and when a user operates the corresponding desktop, a picture presented by the electronic device is the working space corresponding to the corresponding desktop. In addition, the working space corresponding to each desktop in the plurality of desktops can be isolated by utilizing a sandbox realized based on unified endpoint management (UEM, unified Endpoint Management), in other words, files under the file directory corresponding to each desktop can be isolated by utilizing the sandbox. In practical application, each desktop in the plurality of desktops can be further subjected to process isolation, network isolation, registry isolation, clipboard isolation, service isolation and the like based on the sandboxes, so that the safety of user data is improved. In addition, in actual application, the system operation authorities corresponding to each desktop in the plurality of desktops included in the electronic device may be the same or different, and the user may set the system operation authorities according to the requirements.
When in actual application, a user can set the corresponding relation between the distinguishing attribute information and the marking strategy according to the requirement; after the distinguishing attribute information is obtained, the target dynamic link library can determine a target marking strategy corresponding to the distinguishing attribute information according to the distinguishing attribute information by combining the preset corresponding relation between the distinguishing attribute information and the marking strategy.
In practical application, a plurality of identification windows, such as a dyeing window for presenting dyeing effect, a watermark window for presenting watermark, and the like, can be added to the first window; accordingly, a user can set a marking strategy according to requirements, wherein the marking strategy can comprise characteristic information such as color, resolution and the like of a dyeing effect of the dyeing window and/or characteristic information such as a picture (i.e. watermark pattern), width, height and the like of a watermark of the watermark window.
Illustratively, in the case that the distinguishing attribute information is used to distinguish the desktops to which the window belongs, the three desktops are included for the electronic device: the system operation right corresponding to the desktop A is higher than the system operation right corresponding to the desktop B, the system operation right corresponding to the desktop B is higher than the system operation right corresponding to the desktop C, and the marking strategy corresponding to the desktop A can be used for creating a dyeing window with a red dyeing effect and a watermark window presenting watermark information of the desktop A for the window of the desktop A through the setting of a user; the marking strategy corresponding to the desktop B can be used for creating a dyed window with a green dyeing effect for the window of the desktop B; the marking policy corresponding to desktop C may be unmarked, in other words, there is no need to create a stained window and/or a watermark window for the window of desktop C.
When the target dynamic link library monitors that the first window of the first process is created in actual application, the target dynamic link library adds the identification window to the first window according to the target marking strategy, which can be understood that the target dynamic link library adds the identification window to all windows of the first process. Of course, in order to improve user experience, the identification window may be added only for the windows meeting the preset condition, that is, the identification window is added for part of the windows of the first process, so as to avoid that all the windows of the process have the identification window, which affects the use of the electronic device by the user.
Based on this, in an embodiment, the method may further include:
the target dynamic link library judges whether a window started by the first process meets a first condition or not, and the window meeting the first condition is used as a main window of the first process;
accordingly, the adding an identification window to the first window according to the target marking policy may include:
the target dynamic link library adds an identification window to the main window according to the target marking strategy (namely, the first window is the main window);
wherein the first condition may comprise at least one of:
The corresponding window is a visible window, and the corresponding window does not correspond to the parent window and the owner window;
the corresponding window corresponds to a system menu attribute, and the corresponding window contains a maximize button or a minimize button;
the respective windows do not correspond to system menu attributes and include a maximize button and a minimize button.
Here, the target dynamic link library may acquire attribute information and handle information of the window, and determine whether the window started by the first process satisfies the first condition based on the acquired attribute information and handle information.
Specifically, in actual application, in the case that the attribute information includes a ws_visible attribute, it may be determined that the corresponding window is a VISIBLE window; in case the attribute information does not contain the WS _ visual attribute, it may be determined that the corresponding window is not a VISIBLE window.
In practical application, the corresponding window does not correspond to the parent window and the owner window, and can be understood as an independent window, in other words, the corresponding window is not owned by other windows, and the corresponding window is not a child window of the other windows. Specifically, the target dynamic link library may acquire a Parent window (Parent) and an Owner window (Owner) of the respective windows based on handle information of the windows and an Application Program Interface (API) provided by an operating system of the electronic device, and in the case that the Parent window and the Owner window are not acquired, may determine that the respective windows do not correspond to the Parent window and the Owner window; in the event that a parent window and an owner window are obtained, it may be determined that the respective window corresponds to the parent window and the owner window.
In actual application, in the case that the attribute information of the window includes ws_syncenu attribute (ws_syncenu attribute characterizes the window having the control menu on the title bar), the target dynamic link library may determine that the corresponding window corresponds to the system menu attribute; in the case where the attribute information of the window does not include the ws_sysmenu attribute, the target dynamic link library may determine that the corresponding window does not correspond to the system menu attribute.
In practical application, in the case that the MaxButton attribute (whether the MaxButton attribute represents the maximum button of the window is displayed) and the MinButton attribute (whether the MinButton attribute represents the minimum button of the window is displayed) in the attribute information of the window are valid (True), the target dynamic link library can determine that the corresponding window contains the maximum button and the minimum button; in case that the MaxButton attribute and the MinButton attribute in the attribute information of the window are invalid (False), the target dynamic link library may determine that the corresponding window does not contain the maximize button and the minimize button.
In actual application, the behavior of the application program is too complex to predict the creation time of the window in the process, so an event monitoring mechanism can be adopted to determine the window started by the first process.
Based on this, in an embodiment, the method may further include:
the target dynamic link library monitors a window creation event and a window display event in the first process through an event monitoring mechanism, and determines a window started by the first process;
accordingly, the determining whether the window started by the first process meets the first condition, and the window that will meet the first condition, as the main window of the first process, may include:
and the target dynamic link library judges whether the window monitored by the event monitoring mechanism meets a first condition or not, and takes the window meeting the first condition as a main window of the first process.
In practical application, the first window may be understood as a window monitored by the event monitoring mechanism.
In actual application, after the process creates the window, the created window can be in a display state or a hidden state, so that the event monitoring mechanism monitors the event of the created window and the event of the displayed window in the first process, and the window started by the first process can be determined.
In an embodiment, the adding an identification window to the first window according to the target marking policy may include:
When the target dynamic link library determines that the first window is not processed, modifying a window callback function of the first window, and adding the identification window to the first window through the modified window callback function;
correspondingly, the monitoring the operation event for the first window, and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window, and the method can include:
and monitoring an operation event aiming at the first window through the modified window callback function, and executing corresponding operation on the identification window according to the monitored operation event so as to dynamically adjust the display mode of the identification window along with the change of the display state of the first window.
When the method is actually applied, the target dynamic link library can judge whether the window is processed or not based on the handle information of the window; the process may be understood as having added an identification window to the first window.
When in actual application, the modifying the window callback function of the first window includes but is not limited to replacing the address of the window callback function, namely replacing the address of the original window callback function with the address of a new preset window callback function; the new and preset window callback function, namely the modified window callback function, is used for adding an identification window to the first window.
Specifically, in an embodiment, the performing, according to the monitored operation event, the corresponding operation on the identification window may include at least one of the following:
when a first operation event for enabling the first window to be displayed in a full screen mode is detected, configuring the identification window into a window which is transparent to information, can not be activated, is layered and does not occupy focus;
when a second operation event for enabling the first window to be displayed in a non-full screen mode is monitored, configuring the identification window into a window which can capture a message, cannot be activated and does not occupy focus, and moving the identification window to the outside of the first window to be displayed;
when a third operation event for moving the first window is monitored, moving the identification window according to the movement track of the first window;
when a fourth operation event for hiding the first window is monitored, hiding the identification window;
and displaying the identification window when a fifth operation event for displaying the first window is monitored.
In practical application, the display mode of the identification window can be dynamically adjusted along with the change of the display state of the first window by configuring the attribute information of the identification window.
Specifically, by adding ws_ex_transfer attribute to the attribute information of the identification window, the identification window can be configured as a window for message TRANSPARENT transmission; the identification window can be configured as a LAYERED window by adding WS_EX_LAYERED attribute to the attribute information of the identification window; by adding WS_EX_NOACTIVATE attribute to the attribute information of the identification window, the identification window can be configured as a window which can not be activated and does not occupy focus; the identification window may be configured as a window in which a message can be captured by deleting the ws_ex_transfer attribute and the ws_ex_layered attribute from the attribute information of the identification window, in other words, in the case where the attribute information of the identification window does not contain the ws_ex_transfer attribute and the ws_ex_layered attribute, the identification window is a window in which a message can be captured; the identification window can be displayed by adding WS_VISIBLE attribute to the attribute information of the identification window; the identification window may be hidden by deleting the WS _ visual attribute from the attribute information of the identification window.
In the practical application, in order to further improve the user experience and avoid the influence of the identification window on the operation of the user, the identification window may be displayed only when the first window is switched from the inactive state to the active state.
Based on this, in an embodiment, the performing, according to the monitored operation event, a corresponding operation on the identification window may include:
when a sixth operation event for switching the first window from the inactive state to the active state is monitored, displaying the identification window;
and hiding the identification window when a seventh operation event for switching the first window from the activated state to the inactivated state is monitored.
In practical application, under the condition that a plurality of identification windows exist, when the identification windows are hidden, only part of the identification windows can be hidden; correspondingly, when the identification window is displayed, a hidden part of the identification window can be displayed; therefore, the method and the device can not only enable the user to distinguish the current window, but also avoid the influence of a plurality of identification windows on the operation of the user.
When the method is actually applied, the user can set the animation presentation effect of the identification window when setting the marking strategy according to the requirement.
Based on this, in an embodiment, the displaying the identification window may include:
gradually moving into an animation to display the identification window;
the hiding the identification window may include:
the progressive drawing conceals the identification window.
In practical application, when a plurality of identification windows exist, the modes of displaying the identification windows can be the same or different.
Based on this, in an embodiment, the identification window may include a first identification window and a second identification window; the displaying the identification window may include:
and displaying the first identification window, and presenting the second identification window by a gradually-in gradually-out moving picture.
Here, displaying the first identification window may include: gradually moving into the animation to display the first identification window, or instantaneously displaying the first identification window; of course, the display manner of the first identification window may be set according to the requirement, which is not specifically limited in the embodiment of the present application.
In addition, if the first identification window is in a display state when the first window is in an inactive state (i.e., the first identification window is not hidden when the first window is switched from an active state to an inactive state), the displaying the first identification window may include: and maintaining the display state of the first identification window.
In actual application, the first identification window may be a dyeing window, and the second identification window may be a watermark window; of course, the first identification window and the second identification window may also be other windows with identification function, which is not limited in the embodiment of the present application.
According to the data processing method provided by the embodiment of the application, when the first process is monitored to be established, a target dynamic link library is injected into the first process, and distinguishing attribute information of the first process is transmitted into the target dynamic link library; the target dynamic link library determines a target marking strategy corresponding to the distinguishing attribute information according to the distinguishing attribute information; the target dynamic link library adds an identification window to a first window of the first process according to the target marking strategy; and monitoring for an operational event for the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window. According to the scheme of the embodiment of the application, the target dynamic link library executes corresponding operation on the identification window according to the monitored operation event aiming at the first window, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window; therefore, the user can distinguish the current window through the identification window, and can ensure that the identification window does not influence the operation of the user, so that the user experience can be improved.
The present application is described in further detail below in connection with examples of application.
In this application embodiment, the target dynamic link library is denoted as uem.dll; the identification window comprises a dyeing window and a watermark window; the distinguishing attribute information is called desktop information and is used for distinguishing the desktop to which the window belongs; the electronic device comprises two desktops: the system operation right corresponding to the safety desktop is higher than the system operation right corresponding to the personal desktop, namely, a user cannot open or edit files under the file directory corresponding to the safety desktop through the personal desktop, but can open or edit files under the file directory corresponding to the personal desktop through the safety desktop; the marking policy corresponding to the personal desktop is not marked, in other words, only a coloring window and a watermark window are created (i.e., added) for the main window of the process of the secure desktop (hereinafter referred to as the secure process).
In this embodiment of the application, as shown in fig. 2, APC injection uem.dll may include the following steps:
step 201: starting a process; step 202 is then performed;
step 202: the driving layer captures process starting information; step 203 is then performed;
Step 203: APC is injected into UEM.dll, and desktop information is transmitted in; step 204 is then performed;
step 204: the uem.dll internal starts the dyeing logic.
Specifically, when an application program of the electronic device starts to create a process, a process creation callback function (i.e. the monitoring process) of the driving layer is triggered, so that the driving layer captures starting information of the process (i.e. the monitoring process is created); the start information may include desktop information, where the desktop information characterizes a desktop to which the corresponding process belongs. And then, the driving layer injects the UEM.dll into the captured process in an APC injection mode, and the desktop information is transmitted into the UEM.dll. After the process loads the UEM.dll, the inside of the UEM.dll can create dyeing windows and watermark windows with different styles (namely different marking strategies) for different desktops according to desktop information, so that the most visual prompt is provided for users.
Here, the process creation callback function of the driving layer can quickly inject the uem.dll into the captured process by means of APC injection, and when the process is started, the ntdll.dll is usually loaded first, in other words, the process will usually load the ntdll.dll first, and then the injection timing of UEM.dll, UEM.dll is sufficiently early; thus, it can be ensured that all windows of a process are created after injection of uem.dll, avoiding the presence of an undyed main window.
In this application embodiment, in order to avoid that all windows of the process have staining and watermarking, the user is influenced to use the windows, that is, the user is influenced to operate on the windows, and only the staining window and the watermarking window are created for the main window. Thus, in step 204, the dyeing logic within the uem. Dll needs to determine whether a dyeing window and watermark window need to be created by determining whether the monitored process creates a primary window.
Specifically, as shown in fig. 3, the uem.dll determines whether a dyeing window and a watermark window need to be created, may include the following steps:
step 301: judging whether the current process is a process of a safe desktop or not; if yes, go to step 302; if not, ending the judgment;
step 302: setting a monitoring event of window creation and display; step 303 is then performed;
step 303: initializing configuration information of the staining (i.e. determining a target marking strategy); step 304 is then performed;
step 304: the listening event is triggered; step 305 is then performed;
step 305: judging whether the current window (i.e. the created or displayed main window) is a main window; if yes, go to step 306; if not, ending the judgment;
step 306: judging whether the current window is unprocessed or not; if yes, go to step 307; if not, ending the judgment;
Step 307: obtaining a callback function of the current window, and replacing the callback function with a preset main window callback function (namely the modified window callback function); step 308 is then performed;
step 308: a message (which may be denoted wm_create_dynamic_window) is sent to the current WINDOW to CREATE the stained WINDOW and the watermark WINDOW.
Specifically, in step 301, APC injects uem.dll, and after the injected process loads uem.dll, the uem.dll may determine whether the current process is a process of the secure desktop according to the desktop information.
In step 302, since the behavior of the application program is too complex to predict the creation timing of the main window, the current window creation event and window display event are monitored inside the uem.dll by adopting an event monitoring mechanism; when a window is created or displayed, the listening mechanism may be triggered (i.e., step 304).
In step 305, the uem.dll may acquire attribute information of the current window, and determine whether the current window is a main window according to a preset main window feature (i.e., the first condition described above). The primary window features may include: properties that are not owned by other windows (i.e., no Owner window (Owner)), no Parent window (Parent), window VISIBLE (ws_visible), etc. In practical applications, the main window feature may further include: system menu attribute (ws_sysmenu), maximize button (i.e., maxbutton=true), or minimize button (i.e., minbutton=true); alternatively, the primary window feature may further include: the maximize button and the minimize button.
In step 306, the uem. Dll may determine whether the window is processed based on the window handle information. The process can be understood as having created a coloring window and a watermark window for the main window.
In step 307, the uem.dll may replace the address of the original window callback function of the main window (i.e., the window callback function of the operating system of the electronic device) with the address of the preset main window callback function (i.e., the new, preset window callback function in the uem.dll), so as to call the preset main window callback function to perform service processing.
In the application embodiment, after the original window callback function of the main window is replaced by the preset main window callback function by the UEM.dll, a dyeing window is created in the new main window callback function, so that the same life cycle of the dyeing window and the attached main window can be ensured. When the user selects the main window displayed in full screen, the coloring window is displayed in the main window, at this time, the coloring effect occupies few pixels, and the properties of the coloring window include: message passing (ws_ex_transaction), non-activatable (ws_ex_non), LAYERED (ws_ex_layed), and non-preemptive focus (ws_ex_non). When the user selects the main window which is not displayed in full screen, the coloring window is displayed outside the main window, so that the user can click the coloring window to operate, and the properties of the coloring window can include: messages (excluding ws_ex_transfer and ws_ex_layed), not activatable, and not preempting focus (ws_ex_subactivate) may be captured. Therefore, the user can be prompted, and the user operation is not influenced. In practical application, the main window callback function can also control the dyeing window to realize corresponding processing according to the state changes of movement, display, hiding and the like of the main window, so that the dyeing window and the main window are integrally displayed.
In the application embodiment, the uem.dll also creates a watermark window inside the new main window callback function, but in order to ensure that the user is prompted and the operation of the user is not affected, the watermark window is not always displayed. Specifically, only when the main window is switched from the inactive state to the active state or from the active state to the inactive state, the watermark window is displayed and hidden in a gradually-in gradually-out animation effect, and the preset prompt information can be dynamically displayed according to the marking strategy. Here, the properties of the watermark window may include: message passing, layering, inactivity, and no preemption of focus.
In this application embodiment, as shown in fig. 4, the internal logic of the main WINDOW callback function obtains the information of the current WINDOW, and CREATEs a DYEING WINDOW and a watermark WINDOW when the WINDOW information is wm_create_dynamic_window.
Judging whether the main window is displayed in full screen or not (specifically, judging whether the main window is maximized or not and judging whether the display area of the main window exceeds the screen of the current display or not) under the condition that the window information is a system message (which can be expressed as WM_WINDOWPOSSAGED) representing that the window position is about to change; under the condition that the main window is displayed in a full screen mode, moving the dyeing window to the inside of the main window according to the position of the main window, creating a display area (namely determining the display areas of the main window and the dyeing window), and moving the watermark window based on the display area; in the case of a non-full screen display of the main window, the stained window is moved to the outside of the main window according to the position of the main window, a display area is created (i.e., the display areas of the main window and the stained window are determined), and the watermark window is moved based on the display area.
In the case where the window information is a system message (which may be expressed as wm_showwindow) indicating a change in display state of the window, it may be judged whether the main window is to be displayed according to wm_showwindow; in the case that the main window is to be displayed, the coloring window may be displayed when the main window is in an inactive state; in the case where the main window is not displayed (i.e., the main window is in a hidden state), the stained window and the watermark window are hidden.
In the case that the window information is a system message (which may be denoted wm_ ACTIVATEAPP) that characterizes the active state of the window, it may be determined whether the main window is changed from the inactive state to the active state, and whether the watermark window is invisible (i.e., whether the watermark window is in a hidden state); in the event that the main window changes from an inactive state to an active state and the watermark window is not visible, the watermark window is animated (e.g., a fade-in fade-out animation effect).
In this application embodiment, after the internal logic of the main window callback function is finished, the original window processing function (i.e., the window processing function of the operating system of the electronic device) may be called, so as to perform subsequent processing on the corresponding window.
In practical application, the UEM.dll can also process the information of the dyeing window and the watermark window to realize the presentation effect of the dyeing window and the watermark window. Illustratively, for a stained window, the uem. Dll may configure a system message (which may be denoted wm_paint) characterizing the window drawing according to the marking policy to achieve a gradual stain effect; and, the tinted window may be moved according to wm_windows changed. For watermark windows, the uem.dll may configure a system message (which may be denoted wm_timer) characterizing the window TIMER according to the marking policy to achieve the fade-in fade-out effect of the watermark window.
The scheme of the embodiment of the application has the following advantages:
firstly, because the process creation callback function of the driving layer can quickly inject the UEM.dll into the captured process in an APC injection mode, the process usually loads ntdll.dll first and then loads UEM.dll, UEM.dll at an injection time sufficiently early; therefore, all windows of the process can be ensured to be created after the UEM.dll is injected, the main windows which are not dyed are avoided, and the stability of a recognition mechanism for recognizing the desktop to which the parent window belongs through the dyeing effect of the child window and/or the watermark is improved.
Secondly, only adding a dyeing window and a watermark window for the main window; therefore, the method can avoid that all windows of the process are provided with the dyeing window and the watermark window, and influence on the use of the electronic equipment by a user is caused, so that the user experience can be improved.
Thirdly, the watermark window and the dyeing window can dynamically change along with the change of the state of the main window, so that a user can be prompted, and the influence on the operation of the user is avoided.
In order to implement the method of the embodiment of the present application, the embodiment of the present application further provides a data processing apparatus, as shown in fig. 5, where the apparatus includes:
the monitoring unit 501 is configured to, when it is detected that a first process is created, inject a target dynamic link library unit 502 into the first process, and transfer distinguishing attribute information of the first process into the target dynamic link library unit 502;
The target dynamic link library unit 502 is configured to determine a target marking policy corresponding to the distinguishing attribute information according to the distinguishing attribute information; adding an identification window to a first window of the first process according to the target marking strategy; and monitoring for an operational event for the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window.
In one embodiment, the monitoring unit 501 is specifically configured to inject the target dynamic link library into the first process when the first process is detected to be created by the monitoring process of the driving layer.
In an embodiment, the target dynamic link library unit 502 is further configured to determine whether a window started by the first process meets a first condition, and use the window meeting the first condition as a main window of the first process; adding an identification window to the main window according to the target marking strategy; wherein,
the first condition comprises at least one of:
the corresponding window is a visible window, and the corresponding window does not correspond to the parent window and the owner window;
The corresponding window corresponds to a system menu attribute, and the corresponding window contains a maximize button or a minimize button;
the respective windows do not correspond to system menu attributes and include a maximize button and a minimize button.
In an embodiment, the target dynamic link library unit 502 is further configured to monitor, by using an event monitoring mechanism, a create window event and a display window event in the first process, and determine a window started by the first process.
In an embodiment, the target dynamic link library unit 502 is further configured to modify a window callback function of the first window when it is determined that the first window is not processed, add the identification window to the first window through the modified window callback function, and monitor an operation event for the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window.
In one embodiment, the target dynamic link library unit 502 is specifically configured to perform at least one of the following:
when a first operation event for enabling the first window to be displayed in a full screen mode is detected, configuring the identification window into a window which is transparent to information, can not be activated, is layered and does not occupy focus;
When a second operation event for enabling the first window to be displayed in a non-full screen mode is monitored, configuring the identification window into a window which can capture a message, cannot be activated and does not occupy focus, and moving the identification window to the outside of the first window to be displayed;
when a third operation event for moving the first window is monitored, moving the identification window according to the movement track of the first window;
when a fourth operation event for hiding the first window is monitored, hiding the identification window;
and displaying the identification window when a fifth operation event for displaying the first window is monitored.
In one embodiment, the target dynamic link library unit 502 is specifically configured to:
when a sixth operation event for switching the first window from the inactive state to the active state is monitored, displaying the identification window;
and hiding the identification window when a seventh operation event for switching the first window from the activated state to the inactivated state is monitored.
In one embodiment, the target dynamic link library unit 502 is specifically configured to display the identification window in a progressive animation manner; and gradually drawing the moving picture to hide the identification window.
In an embodiment, the identification window includes a first identification window and a second identification window; the target dynamic link library unit 502 is specifically configured to display the first identification window, and make a progressive-in progressive-out animation display the second identification window.
In practice, the monitoring unit 501 and the target dynamic link library unit 502 may be implemented by a processor in a data processing apparatus.
It should be noted that: the data processing apparatus provided in the above embodiment is only exemplified by the division of the above program modules when processing data, and in practical application, the above processing allocation may be performed by different program modules according to needs, i.e., the internal structure of the apparatus is divided into different program modules to complete all or part of the above processing. In addition, the data processing apparatus and the data processing method embodiment provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the data processing apparatus and the data processing method embodiment are detailed in the method embodiment, which is not described herein again.
Based on the hardware implementation of the program modules, and in order to implement the method of the embodiments of the present application, the embodiments of the present application further provide an electronic device, as shown in fig. 6, the electronic device 600 includes:
The communication interface 601 is capable of performing information interaction with other electronic devices;
a processor 602, connected to the communication interface 601, for implementing information interaction with other electronic devices, and configured to execute the methods provided by one or more of the above technical solutions when running a computer program;
memory 603 stores a computer program capable of running on the processor 602.
Specifically, the processor 602 is configured to, when it is detected that a first process is created, inject a target dynamic link library into the first process, and transfer distinguishing attribute information of the first process into the target dynamic link library;
the target dynamic link library is used for determining a target marking strategy corresponding to the distinguishing attribute information according to the distinguishing attribute information; adding an identification window to a first window of the first process according to the target marking strategy; and monitoring for an operational event for the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window.
In one embodiment, the processor 602 is specifically configured to inject the target dynamic link library into the first process when it is detected by the monitoring process of the driving layer of the electronic device 600 that the first process is created.
In an embodiment, the target dynamic link library is further configured to determine whether a window started by the first process meets a first condition, and use the window meeting the first condition as a main window of the first process; adding an identification window to the main window according to the target marking strategy; wherein,
the first condition comprises at least one of:
the corresponding window is a visible window, and the corresponding window does not correspond to the parent window and the owner window;
the corresponding window corresponds to a system menu attribute, and the corresponding window contains a maximize button or a minimize button;
the respective windows do not correspond to system menu attributes and include a maximize button and a minimize button.
In an embodiment, the target dynamic link library is further configured to monitor, by using an event monitoring mechanism, a create window event and a display window event in the first process, and determine a window started by the first process.
In an embodiment, the target dynamic link library is further configured to modify a window callback function of the first window when the first window is determined to be unprocessed, add the identification window to the first window through the modified window callback function, and monitor an operation event for the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window.
In one embodiment, the target dynamic link library is specifically configured to perform at least one of the following:
when a first operation event for enabling the first window to be displayed in a full screen mode is detected, configuring the identification window into a window which is transparent to information, can not be activated, is layered and does not occupy focus;
when a second operation event for enabling the first window to be displayed in a non-full screen mode is monitored, configuring the identification window into a window which can capture a message, cannot be activated and does not occupy focus, and moving the identification window to the outside of the first window to be displayed;
when a third operation event for moving the first window is monitored, moving the identification window according to the movement track of the first window;
when a fourth operation event for hiding the first window is monitored, hiding the identification window;
and displaying the identification window when a fifth operation event for displaying the first window is monitored.
In an embodiment, the target dynamic link library is specifically configured to:
when a sixth operation event for switching the first window from the inactive state to the active state is monitored, displaying the identification window;
And hiding the identification window when a seventh operation event for switching the first window from the activated state to the inactivated state is monitored.
In one embodiment, the target dynamic link library is specifically configured to display the identification window in a progressive animation; and gradually drawing the moving picture to hide the identification window.
In an embodiment, the identification window includes a first identification window and a second identification window; the target dynamic link library is specifically configured to display the first identification window, and gradually enter and gradually exit the dynamic picture to present the second identification window.
It should be noted that: the details of the process of the processor 602 for executing the above operations are detailed in the method embodiment, and are not described herein.
Of course, in actual practice, the various components in electronic device 600 are coupled together via bus system 604. It is understood that the bus system 604 is used to enable connected communications between these components. The bus system 604 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration, the various buses are labeled as bus system 604 in fig. 6.
The memory 603 in the present embodiment is used to store various types of data to support the operation of the electronic device 600. Examples of such data include: any computer program for operating on the electronic device 600.
The method disclosed in the embodiments of the present application may be applied to the processor 602 or implemented by the processor 602. The processor 602 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in the processor 602. The processor 602 may be a general purpose processor, a digital signal processor (DSP, digital Signal Processor), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 602 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly embodied in a hardware decoding processor or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium in a memory 603. The processor 602 reads information in the memory 603 and, in combination with its hardware, performs the steps of the method as described above.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more application specific integrated circuits (ASIC, application Specific Integrated Circuit), DSPs, programmable logic devices (PLD, programmable Logic Device), complex programmable logic devices (CPLD, complex Programmable Logic Device), field-programmable gate arrays (FPGA, field-Programmable Gate Array), general purpose processors, controllers, microcontrollers (MCU, micro Controller Unit), microprocessors (Microprocessor), or other electronic components for performing the aforementioned methods.
It is appreciated that the memory 603 of embodiments of the present application may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Wherein the nonvolatile Memory may be Read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only Memory (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random Access Memory), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (ddr SDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). The memory described in embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
In an exemplary embodiment, the present application also provides a storage medium, i.e. a computer storage medium, in particular a computer readable storage medium, for example comprising a memory 603 storing a computer program executable by the processor 602 of the electronic device 600 for performing the steps of the aforementioned method. The computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
It should be noted that: "first," "second," etc. are used to distinguish similar objects and not necessarily to describe a particular order or sequence.
In addition, the embodiments described in the present application may be arbitrarily combined without any collision.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application.

Claims (12)

1. A method of data processing, comprising:
when the first process is monitored to be established, a target dynamic link library is injected into the first process, and distinguishing attribute information of the first process is transmitted into the target dynamic link library;
the target dynamic link library determines a target marking strategy corresponding to the distinguishing attribute information according to the distinguishing attribute information;
The target dynamic link library judges whether a window started by the first process meets a first condition or not, and takes the window meeting the first condition as a main window of the first process; the first condition comprises at least one of:
the corresponding window is a visible window, and the corresponding window does not correspond to the parent window and the owner window;
the corresponding window corresponds to a system menu attribute, and the corresponding window contains a maximize button or a minimize button;
the corresponding window does not correspond to the system menu attribute, and the corresponding window comprises a maximize button and a minimize button;
the target dynamic link library adds an identification window to a first window of the first process according to the target marking strategy; the first window is a main window of the first process; and monitoring for an operational event for the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window.
2. The method of claim 1, wherein the step of injecting the target dynamic link library into the first process upon detecting that the first process is created comprises:
And when the monitoring process of the driving layer monitors that the first process is created, the target dynamic link library is injected into the first process.
3. The method according to claim 2, wherein the monitoring process creates a callback function for a process.
4. The method according to claim 1, wherein the method further comprises:
and the target dynamic link library monitors the window creation event and the window display event in the first process through an event monitoring mechanism, and determines the window started by the first process.
5. A method according to any one of claims 1 to 3, further comprising:
when the target dynamic link library determines that the first window is not processed, modifying a window callback function of the first window, adding the identification window to the first window through the modified window callback function, and monitoring an operation event aiming at the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window.
6. A method according to any one of claims 1 to 3, wherein said performing a corresponding operation on said identification window in accordance with a monitored operation event comprises at least one of:
When a first operation event for enabling the first window to be displayed in a full screen mode is detected, configuring the identification window into a window which is transparent to information, can not be activated, is layered and does not occupy focus;
when a second operation event for enabling the first window to be displayed in a non-full screen mode is monitored, configuring the identification window into a window which can capture a message, cannot be activated and does not occupy focus, and moving the identification window to the outside of the first window to be displayed;
when a third operation event for moving the first window is monitored, moving the identification window according to the movement track of the first window;
when a fourth operation event for hiding the first window is monitored, hiding the identification window;
and displaying the identification window when a fifth operation event for displaying the first window is monitored.
7. A method according to any one of claims 1 to 3, wherein said performing a corresponding operation on said identification window in accordance with a monitored operation event comprises:
when a sixth operation event for switching the first window from the inactive state to the active state is monitored, displaying the identification window;
And hiding the identification window when a seventh operation event for switching the first window from the activated state to the inactivated state is monitored.
8. The method of claim 7, wherein the displaying the identification window comprises:
gradually moving into an animation to display the identification window;
the hiding the identification window includes:
the progressive drawing conceals the identification window.
9. The method of claim 7, wherein the identification window comprises a first identification window and a second identification window; the displaying the identification window comprises the following steps:
and displaying the first identification window, and presenting the second identification window by a gradually-in gradually-out moving picture.
10. A data processing apparatus, comprising:
the monitoring unit is used for monitoring that when a first process is created, a target dynamic link library unit is injected into the first process, and distinguishing attribute information of the first process is transmitted into the target dynamic link library unit;
the target dynamic link library unit is used for determining a target marking strategy corresponding to the distinguishing attribute information according to the distinguishing attribute information; judging whether a window started by the first process meets a first condition or not, and taking the window meeting the first condition as a main window of the first process; the first condition comprises at least one of: the corresponding window is a visible window, and the corresponding window does not correspond to the parent window and the owner window; the corresponding window corresponds to a system menu attribute, and the corresponding window contains a maximize button or a minimize button; the corresponding window does not correspond to the system menu attribute, and the corresponding window comprises a maximize button and a minimize button; adding an identification window to a first window of the first process according to the target marking strategy; the first window is a main window of the first process; and monitoring for an operational event for the first window; and executing corresponding operation on the identification window according to the monitored operation event, so that the display mode of the identification window is dynamically adjusted along with the change of the display state of the first window.
11. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is adapted to perform the steps of the method of any of claims 1 to 9 when the computer program is run.
12. A storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the method according to any of claims 1 to 9.
CN202110585786.8A 2021-05-27 2021-05-27 Data processing method, device, electronic equipment and storage medium Active CN113296654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110585786.8A CN113296654B (en) 2021-05-27 2021-05-27 Data processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110585786.8A CN113296654B (en) 2021-05-27 2021-05-27 Data processing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113296654A CN113296654A (en) 2021-08-24
CN113296654B true CN113296654B (en) 2023-12-29

Family

ID=77325537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110585786.8A Active CN113296654B (en) 2021-05-27 2021-05-27 Data processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113296654B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116301456A (en) * 2023-02-21 2023-06-23 广州市保伦电子有限公司 Windows client login test management method, device and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000062159A2 (en) * 1999-04-08 2000-10-19 Chicago-Soft, Ltd. Method and system for dynamic injection of dynamic link libraries into a windowed operating system
CA2378986A1 (en) * 1999-07-15 2001-01-25 Hot-Bar.Com (Israel) Ltd. Method for the dynamic improvement of internet browser appearance and connectivity
CN101387968A (en) * 2008-09-28 2009-03-18 杭州华三通信技术有限公司 Method and apparatus for resolving multi graphic identification and verifying dynamic link library collision
CN103748553A (en) * 2011-06-28 2014-04-23 惠普发展公司,有限责任合伙企业 Display of operating status information of client in remote desktop session
CN104536981A (en) * 2014-12-05 2015-04-22 北京奇虎科技有限公司 Browser safety achieving method, browser client-side and device
CN105631334A (en) * 2015-12-25 2016-06-01 北京奇虎科技有限公司 Application security detecting method and system
CN108900693A (en) * 2018-05-25 2018-11-27 北京小米移动软件有限公司 Window display method and device
CN111752666A (en) * 2020-06-30 2020-10-09 杭州海康威视数字技术股份有限公司 Window display method and device and terminal
EP3731074A1 (en) * 2019-04-23 2020-10-28 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for controlling a window, and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000062159A2 (en) * 1999-04-08 2000-10-19 Chicago-Soft, Ltd. Method and system for dynamic injection of dynamic link libraries into a windowed operating system
CA2378986A1 (en) * 1999-07-15 2001-01-25 Hot-Bar.Com (Israel) Ltd. Method for the dynamic improvement of internet browser appearance and connectivity
CN101387968A (en) * 2008-09-28 2009-03-18 杭州华三通信技术有限公司 Method and apparatus for resolving multi graphic identification and verifying dynamic link library collision
CN103748553A (en) * 2011-06-28 2014-04-23 惠普发展公司,有限责任合伙企业 Display of operating status information of client in remote desktop session
CN104536981A (en) * 2014-12-05 2015-04-22 北京奇虎科技有限公司 Browser safety achieving method, browser client-side and device
CN105631334A (en) * 2015-12-25 2016-06-01 北京奇虎科技有限公司 Application security detecting method and system
CN108900693A (en) * 2018-05-25 2018-11-27 北京小米移动软件有限公司 Window display method and device
EP3731074A1 (en) * 2019-04-23 2020-10-28 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for controlling a window, and storage medium
CN111752666A (en) * 2020-06-30 2020-10-09 杭州海康威视数字技术股份有限公司 Window display method and device and terminal

Also Published As

Publication number Publication date
CN113296654A (en) 2021-08-24

Similar Documents

Publication Publication Date Title
US10908766B2 (en) Managing a floating window
CN107748686B (en) Application program starting optimization method and device, storage medium and intelligent terminal
CN101770399B (en) Electronic equipment, method and device for switching operating system desktop
US8659615B2 (en) System and method for providing transparent windows of a display
US10635456B2 (en) Method for entering operating system desktop and mobile intelligent terminal
CN106951335B (en) Process daemon method and mobile terminal
KR102207443B1 (en) Method for providing graphic user interface and apparatus for the same
CN108132735B (en) Terminal and application control method
CN107450838B (en) Response method and device of black screen gesture, storage medium and mobile terminal
CN113296654B (en) Data processing method, device, electronic equipment and storage medium
CN113254102B (en) Data processing method, device, electronic equipment and storage medium
CN106462713A (en) Interface display method of terminal and terminal
KR20200052950A (en) User interface display method and terminal device
CN107765972A (en) A kind of android terminal screenshotss method
CN107370874A (en) Startup method, mobile terminal and the storage medium of application
CN105045465A (en) Method and terminal for accessing to applications quickly from unlock interface
CN106020895B (en) Application program starting method and user terminal
CN106503506A (en) A kind of method for information display and electronic equipment
CN108124476B (en) Display method and apparatus for multi-operating system, computer device, and storage medium
WO2016115753A1 (en) Multi-system operation method, device, and terminal
CN113254101B (en) Data processing method and device, electronic equipment and storage medium
CN109582187A (en) Document sending method, device, computer equipment and storage medium
CN111427652B (en) Display method, device, medium and computer equipment of custom button
CN110704247B (en) Processing method and device for application memory exception, electronic equipment and device
CN108228299B (en) Display method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant