Application window watermark adding method and device, equipment and storage medium

By obtaining and embeding the watermark handle of the application window and drawing the target graphic canvas, the existing watermark addition method has solved the problems of high cost, excessive display effect, high security risks and low execution efficiency, and lightweight, safe and efficient watermark display is achieved.

CN119939540APending Publication Date: 2025-05-06CETC CYBERSPACE SECURITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510073574.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The existing application window watermark addition method has problems such as high cost, excessive display effect, high security risks and low execution efficiency.

Method used

By obtaining the handle of the target application window, embed the initial watermark window, and drawing the target graphic canvas according to the watermark parameters to achieve the display of watermark information.

Benefits of technology

Reduces costs and appears lighter than full-screen watermarks, reducing security risks and improving execution efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119939540A_ABST
    Figure CN119939540A_ABST
Patent Text Reader

Abstract

The invention discloses an application program window watermark adding method. The method comprises the steps that a target application program window to be subjected to watermark adding is obtained; the watermark interface is called to obtain a target handle corresponding to the target application window, and watermark parameters input from the watermark interface are obtained; embedding an initial watermark window into the target application program window according to the target handle; and drawing a target graphic canvas to the initial watermark window according to the watermark parameters, so that the target application window displays the watermark information according to the target graphic canvas. By applying the application program window watermark adding method provided by the invention, the cost is greatly reduced, compared with a full-screen watermark, the application program window watermark adding method is lighter, the safety risk is reduced, and the execution efficiency is improved. The invention furthermore discloses an application window watermark adding apparatus and device, and a storage medium, which have corresponding technical effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display technology, and in particular to a method, device, equipment and computer-readable storage medium for adding watermarks to application windows. Background Art

[0002] The lack of a watermark mechanism for sensitive information displayed in certain application windows (such as sensitive text, graphics, and videos in application windows) may lead to the leakage of sensitive information, making it impossible to trace the source.

[0003] Currently, there are three main methods for adding watermarks to application windows. One is to obtain a watermarked web page based on World Wide Web (web) technology, and add watermarks by browser display or web container display. Another is full-screen watermarking, which is too bloated for lightweight watermark protection. Another is to inject the target execution code into the startup thread based on hook technology. After the injection is successful, the target view display function with the watermark is used to replace the original view display function to achieve the watermarking effect.

[0004] However, the above three watermarking methods all have certain disadvantages. First, the watermarking method based on web technology requires a lot of pre-coding and the support of corresponding framework technology, which requires a lot of personnel and technical costs. Secondly, the full-screen watermarking method is too heavy in terms of human-computer interaction and display effects. Moreover, injection is an invasive attack method that will cause unknown errors to the application itself, with high security risks and low execution efficiency.

[0005] To sum up, how to effectively solve the problems of high investment in personnel and technical costs, excessive human-computer interaction and display effects, high security risks, and low execution efficiency is an issue that technical personnel in this field urgently need to solve. Summary of the invention

[0006] The purpose of this application is to provide a method for adding watermarks to an application window, which greatly reduces costs, is more lightweight than full-screen watermarks, reduces security risks, and improves execution efficiency; another purpose of this application is to provide an application window watermark adding device, equipment, and computer-readable storage medium.

[0007] In order to solve the above technical problems, this application provides the following technical solutions:

[0008] A method for adding a watermark to an application window, comprising:

[0009] Get the target application window to which the watermark is to be added;

[0010] Calling a watermark interface to obtain a target handle corresponding to the target application window, and obtaining watermark parameters input from the watermark interface;

[0011] embedding an initial watermark window into the target application window according to the target handle;

[0012] A target graphic canvas is drawn to the initial watermark window according to the watermark parameters, so that the target application window displays watermark information according to the target graphic canvas.

[0013] In a specific implementation of the present application, after acquiring the watermark parameters input from the watermark interface and before drawing the target graphic canvas to the initial watermark window according to the watermark parameters, the method further includes:

[0014] Determining whether the watermark parameters are valid;

[0015] If yes, then executing the step of drawing the target graphic canvas to the initial watermark window according to the watermark parameters;

[0016] If not, the process of adding a watermark to the target application window ends.

[0017] In a specific implementation of the present application, drawing a target graphic canvas to the initial watermark window according to the watermark parameters includes:

[0018] Drawing the target graphic canvas into the memory according to the watermark parameters;

[0019] Setting properties of the initial watermark window to obtain a set watermark window;

[0020] Draw the target graphics canvas from the memory to the post-watermark window.

[0021] In a specific implementation of the present application, setting properties of the initial watermark window includes:

[0022] The initial watermark window is provided with mouse and keyboard transparent transmission properties, frame transparency properties and timed refresh properties.

[0023] In a specific implementation of the present application, after drawing the target graphic canvas into the memory according to the watermark parameters and before setting the properties of the initial watermark window, the method further includes:

[0024] Determining whether the target graphics canvas is successfully drawn to the memory;

[0025] If yes, then executing the step of setting the attributes of the initial watermark window;

[0026] If not, the process of adding a watermark to the target application window ends.

[0027] In a specific implementation of the present application, calling the watermark interface to obtain the target handle corresponding to the target application window includes:

[0028] Calling a watermark software development kit to open the watermark interface;

[0029] The target handle corresponding to the target application window is obtained from the handle library through the watermark interface; wherein the handle library stores the corresponding relationship between each application window and each handle.

[0030] In a specific implementation of the present application, after drawing a target graphic canvas to the initial watermark window according to the watermark parameters so that the target application window displays the watermark information according to the target graphic canvas, it also includes:

[0031] When the watermark information needs to be closed, the watermark software development kit is called to close the watermark interface so that the target application window closes the display of the watermark information.

[0032] A device for adding watermark to an application window, comprising:

[0033] A target window acquisition module is used to acquire the target application window to be watermarked;

[0034] A handle and parameter acquisition module, used to call the watermark interface to obtain the target handle corresponding to the target application window, and obtain the watermark parameters input from the watermark interface;

[0035] A watermark window embedding module, used for embedding an initial watermark window into the target application window according to the target handle;

[0036] The watermark information display module is used to draw a target graphic canvas to the initial watermark window according to the watermark parameters, so that the target application window displays the watermark information according to the target graphic canvas.

[0037] A device for adding watermark to an application window, comprising:

[0038] Memory for storing computer programs;

[0039] The processor is used to implement the steps of the method for adding watermark to the application window as described above when executing the computer program.

[0040] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for adding watermarks to application windows as described above are implemented.

[0041] The application window watermarking method provided in the present application obtains the target application window to be watermarked; calls the watermark interface to obtain the target handle corresponding to the target application window, and obtains the watermark parameters input from the watermark interface; embeds the initial watermark window into the target application window according to the target handle; draws the target graphic canvas into the initial watermark window according to the watermark parameters, so that the target application window displays the watermark information according to the target graphic canvas.

[0042] It can be seen from the above technical solution that by obtaining the target handle corresponding to the target application window to be watermarked, the initial watermark window is embedded into the target application window according to the target handle, without the need for complex frameworks and a large amount of coding, thereby realizing the binding of the initial watermark window with the target application window, which greatly reduces the cost. The initial watermark window will only be embedded on the target application window and will not affect other windows. Compared with the full-screen watermark, it is more lightweight. At the same time, this application embeds a watermark layer on the target application window, which reduces security risks and improves execution efficiency compared to injection technology.

[0043] Correspondingly, the present application also provides an application window watermark adding device, equipment and computer-readable storage medium corresponding to the above-mentioned application window watermark adding method, which has the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 This is a flowchart of an implementation of the method for adding a watermark to an application window in an embodiment of the present application;

[0046] Figure 2 Another implementation flow chart of the method for adding a watermark to an application window in an embodiment of the present application;

[0047] Figure 3 This is a structural block diagram of a watermark software development toolkit in an embodiment of the present application;

[0048] Figure 4This is a flow chart of application window watermark generation and embedding display in an embodiment of the present application;

[0049] Figure 5 This is a structural block diagram of a device for adding watermarks to an application window in an embodiment of the present application;

[0050] Figure 6 This is a structural block diagram of a device for adding watermarks to an application window in an embodiment of the present application;

[0051] Figure 7 A schematic diagram of the specific structure of a device for adding watermarks to an application window provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0053] See also Figure 1 , Figure 1 This is a flowchart of an implementation method of adding a watermark to an application window in an embodiment of the present application. The method may include the following steps:

[0054] S101: Acquire a target application window to which a watermark is to be added.

[0055] Get the target application window to which the watermark is to be added.

[0056] The target application window may be any application window to which a watermark is to be added, such as a document (word) window, a browser viewing window, a picture viewing window, and the like.

[0057] S102: calling a watermark interface to obtain a target handle corresponding to a target application window, and obtaining watermark parameters input from the watermark interface.

[0058] The handles (hwnd) of commonly used application windows can be collected and stored in advance. After obtaining the target application window to be watermarked, the watermark interface is called to obtain the target handle corresponding to the target application window, and the watermark parameters input from the watermark interface are obtained.

[0059] Watermark parameters may include font size, tilt, display content, etc.

[0060] S103: embedding an initial watermark window into the target application window according to the target handle.

[0061] After obtaining the target handle corresponding to the target application window, the initial watermark window is embedded into the target application window according to the target handle, thereby realizing the binding of the target application window with the initial watermark window.

[0062] S104: Drawing a target graphic canvas to the initial watermark window according to the watermark parameters, so that the target application window displays the watermark information according to the target graphic canvas.

[0063] After the initial watermark window is embedded in the target application window, the target graphic canvas is drawn to the initial watermark window according to the watermark parameters, so that the target application window displays the watermark information according to the target graphic canvas.

[0064] It can be seen from the above technical solution that by obtaining the target handle corresponding to the target application window to be watermarked, the initial watermark window is embedded into the target application window according to the target handle, without the need for complex frameworks and a large amount of coding, thereby realizing the binding of the initial watermark window with the target application window, which greatly reduces the cost. The initial watermark window will only be embedded on the target application window and will not affect other windows. Compared with the full-screen watermark, it is more lightweight. At the same time, this application embeds a watermark layer on the target application window, which reduces security risks and improves execution efficiency compared to injection technology.

[0065] It should be noted that, based on the above embodiments, the embodiments of the present application also provide corresponding improved solutions. In the subsequent embodiments, the same steps or corresponding steps as those in the above embodiments can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, which will not be repeated one by one in the following improved embodiments.

[0066] See also Figure 2 , Figure 2 This is another implementation flow chart of the method for adding a watermark to an application window in an embodiment of the present application. The method may include the following steps:

[0067] S201: Acquire the target application window to which a watermark is to be added.

[0068] S202: Call the watermark software development kit to open the watermark interface.

[0069] A watermark software development kit is pre-set to control the opening and closing of the watermark interface. After obtaining the target application window to be watermarked, the watermark software development kit (SDK) is called to open the watermark interface.

[0070] S203: Obtain the target handle corresponding to the target application window from the handle library through the watermark interface, and obtain the watermark parameters input from the watermark interface.

[0071] The handle library stores the corresponding relationship between each application window and each handle.

[0072] A handle library storing the correspondence between each application window and each handle is pre-set. After calling the watermark software development kit to open the watermark interface, the target handle corresponding to the target application window is obtained from the handle library through the watermark interface, and the watermark parameters input from the watermark interface are obtained.

[0073] S204: Embedding an initial watermark window into the target application window according to the target handle.

[0074] S205: Determine whether the watermark parameters are valid, if not, execute step S206, if yes, execute step S207.

[0075] After obtaining the watermark parameters, determine whether the watermark parameters are valid. If not, it means that the watermark parameter setting has failed, and the subsequent process of adding a watermark to the target application window cannot be performed according to the currently set watermark parameters. Execute step S206. If so, it means that the subsequent process of adding a watermark to the target application window can be performed according to the currently set watermark parameters. Execute step S207.

[0076] The method of judging whether the watermark parameters are valid may include judging whether the character type contained in the watermark parameters is the set character type allowed to be input, and may also judge whether the number of parameters input is the set number of parameters required to be input.

[0077] S206: End the process of adding a watermark to the target application window.

[0078] When it is determined that the watermark parameters are invalid, it means that the watermark parameter setting fails, and the subsequent process of adding a watermark to the target application window cannot be performed according to the currently set watermark parameters, and the process of adding a watermark to the target application window ends.

[0079] S207: Draw the target graphic canvas into the memory according to the watermark parameters.

[0080] S208: Determine whether the target graphics canvas is successfully drawn into the memory, if not, return to execute step S206, if yes, execute step S209.

[0081] After drawing the target graphics canvas to the memory, determine whether the target graphics canvas is successfully drawn to the memory. If not, it means that the process of drawing the target graphics canvas to the memory has failed, and the subsequent process of adding a watermark to the target application window cannot be performed according to the currently drawn graphics canvas. The process of adding a watermark to the target application window is ended. If so, it means that the subsequent process of adding a watermark to the target application window can be performed according to the currently drawn graphics canvas, and step S209 is executed.

[0082] The method of determining whether the target graphic canvas is successfully drawn to the memory may include determining whether the font size meets the preset requirements, determining whether the resolution exceeds the preset resolution range, determining whether the font color meets the preset color requirements, etc.

[0083] S209: Setting properties of the initial watermark window to obtain a set watermark window.

[0084] After determining that the target graphic canvas is successfully drawn to the memory, the initial watermark window is set to obtain a post-setting watermark window. By setting the initial watermark window, the post-setting watermark window can add a watermark without affecting the target application window's display of the original content, thereby improving the display effect.

[0085] In a specific implementation of the present application, setting the attributes of the initial watermark window may include the following steps:

[0086] Set the mouse and keyboard transparent transmission properties, border transparency properties and timed refresh properties for the initial watermark window.

[0087] When setting the properties of the initial watermark window, you can set the mouse and keyboard transparent transmission properties, border transparency properties, and timed refresh properties for the initial watermark window. By setting the mouse and keyboard transparent transmission properties for the initial watermark window, the blocking of mouse and keyboard input information is avoided. By setting the border transparency properties for the initial watermark window, the border of the watermark window is prevented from affecting the display effect of the target application window. By setting the timed refresh properties for the initial watermark window, the dynamic alignment between the watermark window and the target application window is ensured.

[0088] S210: Drawing the target graphic canvas from the memory to the set watermark window, so that the target application window displays the watermark information according to the target graphic canvas.

[0089] After the properties of the initial watermark window are set and the post-setting watermark window is obtained, the target graphic canvas is drawn from the memory to the post-setting watermark window, and the target application window displays the watermark information according to the target graphic canvas. By drawing the target graphic canvas from the memory to the post-setting watermark window with completed property setting, such as making the watermark window present the effects of transparent background, message transparent transmission, and watermark display, the display effect of the watermark information is improved.

[0090] S211: When the watermark information needs to be closed, the watermark software development kit is called to close the watermark interface so that the target application window closes the display of the watermark information.

[0091] When the watermark information needs to be turned off, the watermark software development kit is called to turn off the watermark interface, so that the target application window turns off the display of the watermark information. By setting the watermark software development kit to control the watermark interface on and off, the display and non-display control of the watermark information is realized, which improves the user experience.

[0092] See also Figure 3 , Figure 3 This is a structural block diagram of a watermark software development kit in the embodiment of the present application. The watermark SDK structure is divided into an interface layer, an embedding layer, a drawing layer, and a display layer, and each layer is called from top to bottom.

[0093] (1) Interface layer: provides an interface for external programs to call;

[0094] (2) Embedding layer: Obtain the handle of the target application window passed in from the interface, perform parent-child binding between the watermark window and the target application window in the embedding layer, and embed the watermark window on the target application window;

[0095] (3) Drawing layer: draw the graphics canvas into the watermark window according to the parameters passed in by the interface;

[0096] (4) Display layer: Draw the graphics canvas inside the watermark window, and the watermark window is embedded on the target application window.

[0097] See also Figure 4 , Figure 4 This is a flow chart of application window watermark generation and embedding display in an embodiment of the present application. The security application integrates the watermark software development kit, integrates the watermark parameters in the business code that needs to open the watermark, opens the watermark interface, and the watermark software development kit receives the watermark parameters, internally implements the window watermark generation and embedding technical process, and the target application window displays the plain text watermark information. If the watermark is to be turned off, the watermark software development kit is called to turn off the watermark interface, and the watermark software development kit internally turns off the overlay watermark, and the target application window no longer displays the watermark.

[0098] The present invention utilizes Windows graphics rendering technology, designs graphics rendering object interface and watermark display parameter setting interface, and packages them into watermark software development kit through unified compilation, which can support various application calls, support interface form customization of watermark content and format, including display content, font size, color, transparency, rotation, etc., and complete watermark display. The present invention internally instantiates the watermark window, and binds the target application window with the watermark window as a parent-child window, so as to embed the watermark window into the target application window.

[0099] Corresponding to the above method embodiment, the present application also provides an application window watermark adding device. The application window watermark adding device described below and the application window watermark adding method described above can refer to each other.

[0100] See also Figure 5 , Figure 5 This is a structural block diagram of a device for adding a watermark to an application window in an embodiment of the present application. The device may include:

[0101] A target window acquisition module 51 is used to acquire a target application window to be watermarked;

[0102] The handle and parameter acquisition module 52 is used to call the watermark interface to obtain the target handle corresponding to the target application window, and obtain the watermark parameters input from the watermark interface;

[0103] A watermark window embedding module 53, used for embedding an initial watermark window into a target application window according to a target handle;

[0104] The watermark information display module 54 is used to draw a target graphic canvas to the initial watermark window according to the watermark parameters, so that the target application window displays the watermark information according to the target graphic canvas.

[0105] It can be seen from the above technical solution that by obtaining the target handle corresponding to the target application window to be watermarked, the initial watermark window is embedded into the target application window according to the target handle, without the need for complex frameworks and a large amount of coding, thereby realizing the binding of the initial watermark window with the target application window, which greatly reduces the cost. The initial watermark window will only be embedded on the target application window and will not affect other windows. Compared with the full-screen watermark, it is more lightweight. At the same time, this application embeds a watermark layer on the target application window, which reduces security risks and improves execution efficiency compared to injection technology.

[0106] In a specific embodiment of the present application, the device may further include:

[0107] A first judgment module is used to judge whether the watermark parameters are valid after obtaining the watermark parameters input from the watermark interface and before drawing the target graphic canvas to the initial watermark window according to the watermark parameters;

[0108] The watermark information display module is specifically a module that draws a target graphic canvas to the initial watermark window according to the watermark parameters when it is determined that the watermark parameters are valid;

[0109] The first watermark adding end control module is used to end the process of adding a watermark to the target application window when it is determined that the watermark parameter is invalid.

[0110] In a specific implementation of the present application, the watermark information display module includes:

[0111] The first canvas drawing submodule is used to draw the target graphic canvas into the memory according to the watermark parameters;

[0112] The window attribute setting submodule is used to set the attributes of the initial watermark window to obtain the watermark window after setting;

[0113] The second canvas drawing submodule is used to draw the target graphics canvas from the memory to the post-watermark window.

[0114] In a specific implementation of the present application, the window attribute setting submodule is specifically a module for setting the mouse and keyboard transparent transmission attribute, the frame transparency attribute and the timed refresh attribute of the initial watermark window.

[0115] In a specific embodiment of the present application, the device may further include:

[0116] The second judgment module is used to judge whether the target graphic canvas is successfully drawn into the memory after the target graphic canvas is drawn into the memory according to the watermark parameters and before the properties of the initial watermark window are set;

[0117] The window attribute setting submodule is specifically a module for setting attributes of the initial watermark window when it is determined that the target graphic canvas is successfully drawn into the memory;

[0118] The second watermark adding end control module is used to end the process of adding a watermark to the target application window when it is determined that the target graphic canvas is not successfully drawn into the memory.

[0119] In a specific implementation of the present application, the handle and parameter acquisition module includes:

[0120] The watermark interface calling submodule is used to call the watermark software development toolkit to open the watermark interface;

[0121] The handle acquisition submodule is used to acquire the target handle corresponding to the target application window from the handle library through the watermark interface; wherein the handle library stores the corresponding relationship between each application window and each handle.

[0122] In a specific embodiment of the present application, the device may further include:

[0123] The watermark information display module is used to draw the target graphic canvas to the initial watermark window according to the watermark parameters so that the target application window displays the watermark information according to the target graphic canvas. When the watermark information needs to be closed, the watermark software development tool kit is called to close the watermark interface so that the target application window closes the display of the watermark information.

[0124] Corresponding to the above method embodiment, see Figure 6 , Figure 6 This is a schematic diagram of a device for adding a watermark to an application window provided by this application. The device may include:

[0125] A memory 332, for storing computer programs;

[0126] The processor 322 is used to implement the steps of the method for adding a watermark to an application window of the above method embodiment when executing a computer program.

[0127] For details, please refer to Figure 7 , Figure 7 A specific structural diagram of an application window watermark adding device provided in this embodiment, which may have relatively large differences due to different configurations or performances, may include a processor (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, wherein the memory 332 stores one or more computer programs 342 or data 344. The memory 332 may be a temporary storage or a permanent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), each of which may include a series of instruction operations in the data processing device. Furthermore, the processor 322 may be configured to communicate with the memory 332, and execute a series of instruction operations in the memory 332 on the application window watermark adding device 301.

[0128] The application window watermark adding device 301 may further include one or more power supplies 326 , one or more wired or wireless network interfaces 350 , one or more input and output interfaces 358 , and / or one or more operating systems 341 .

[0129] The steps in the method for adding a watermark to an application window described above can be implemented by the structure of a device for adding a watermark to an application window.

[0130] Corresponding to the above method embodiment, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0131] Get the target application window to be watermarked; call the watermark interface to get the target handle corresponding to the target application window, and get the watermark parameters input from the watermark interface; embed the initial watermark window into the target application window according to the target handle; draw the target graphic canvas into the initial watermark window according to the watermark parameters, so that the target application window displays the watermark information according to the target graphic canvas.

[0132] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0133] For an introduction to the computer-readable storage medium provided in this application, please refer to the above method embodiment, and this application will not go into details here.

[0134] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the devices, equipment and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0135] Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the technical solution and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.

Claims

1. A method for adding a watermark to an application window, characterized in that: include: Get the target application window to which the watermark is to be added; Calling a watermark interface to obtain a target handle corresponding to the target application window, and obtaining watermark parameters input from the watermark interface; embedding an initial watermark window into the target application window according to the target handle; A target graphic canvas is drawn to the initial watermark window according to the watermark parameters, so that the target application window displays watermark information according to the target graphic canvas.

2. The method for adding watermark to an application window according to claim 1, characterized in that: After acquiring the watermark parameters input from the watermark interface and before drawing the target graphic canvas to the initial watermark window according to the watermark parameters, the method further includes: Determining whether the watermark parameters are valid; If yes, then executing the step of drawing the target graphic canvas to the initial watermark window according to the watermark parameters; If not, the process of adding a watermark to the target application window ends.

3. The method for adding watermark to an application window according to claim 1, characterized in that: Drawing a target graphic canvas to the initial watermark window according to the watermark parameters includes: Drawing the target graphic canvas into the memory according to the watermark parameters; Setting properties of the initial watermark window to obtain a set watermark window; Draw the target graphics canvas from the memory to the post-watermark window.

4. The method for adding watermark to an application window according to claim 3, characterized in that: The initial watermark window is subjected to property setting, including: The initial watermark window is provided with mouse and keyboard transparent transmission properties, frame transparency properties and timed refresh properties.

5. The method for adding watermark to an application window according to claim 3, characterized in that: After drawing the target graphic canvas into the memory according to the watermark parameters and before setting the properties of the initial watermark window, the method further includes: Determining whether the target graphics canvas is successfully drawn to the memory; If yes, then executing the step of setting the attributes of the initial watermark window; If not, the process of adding a watermark to the target application window ends.

6. The method for adding watermark to an application window according to claim 1, characterized in that: Calling the watermark interface to obtain the target handle corresponding to the target application window includes: Calling a watermark software development kit to open the watermark interface; The target handle corresponding to the target application window is obtained from the handle library through the watermark interface; wherein the handle library stores the corresponding relationship between each application window and each handle.

7. The method for adding watermark to an application window according to claim 6, characterized in that: After drawing a target graphic canvas to the initial watermark window according to the watermark parameters so that the target application window displays the watermark information according to the target graphic canvas, the method further includes: When the watermark information needs to be closed, the watermark software development kit is called to close the watermark interface so that the target application window closes the display of the watermark information.

8. A device for adding watermarks to application windows, characterized in that: include: A target window acquisition module is used to acquire the target application window to be watermarked; A handle and parameter acquisition module, used to call the watermark interface to obtain the target handle corresponding to the target application window, and obtain the watermark parameters input from the watermark interface; A watermark window embedding module, used for embedding an initial watermark window into the target application window according to the target handle; The watermark information display module is used to draw a target graphic canvas to the initial watermark window according to the watermark parameters, so that the target application window displays the watermark information according to the target graphic canvas.

9. A device for adding watermarks to application windows, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the method for adding watermark to an application window as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for adding a watermark to an application window as claimed in any one of claims 1 to 7 are implemented.