[go: up one dir, main page]

CN100424638C - Method for intercepting 64-bit information by using 32-bit main program in 64-bit system - Google Patents

Method for intercepting 64-bit information by using 32-bit main program in 64-bit system Download PDF

Info

Publication number
CN100424638C
CN100424638C CNB2005101328940A CN200510132894A CN100424638C CN 100424638 C CN100424638 C CN 100424638C CN B2005101328940 A CNB2005101328940 A CN B2005101328940A CN 200510132894 A CN200510132894 A CN 200510132894A CN 100424638 C CN100424638 C CN 100424638C
Authority
CN
China
Prior art keywords
bit
interception
information
function
interception function
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.)
Expired - Fee Related
Application number
CNB2005101328940A
Other languages
Chinese (zh)
Other versions
CN1991745A (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.)
Ningbo Cas Message Technology Applied Research Institute
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CNB2005101328940A priority Critical patent/CN100424638C/en
Publication of CN1991745A publication Critical patent/CN1991745A/en
Application granted granted Critical
Publication of CN100424638C publication Critical patent/CN100424638C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Multi Processors (AREA)

Abstract

The invention relates to a method for intercepting 64-bit information by using a 32-bit main program in a 64-bit system, which comprises the following steps: setting 32-bit dynamic link library containing interception function and 64-bit dynamic link library containing interception function; setting a plurality of 64-bit intercepting function calling modules; setting a 64-bit interception function; generating a set of communication service program; intercepting information of all 32-bit programs running in the system through a 32-bit interception function, and intercepting information of all 64-bit programs running in the system through a 64-bit interception function; sending information for removing the 32-bit interception function and the 64-bit interception function; and the 32-bit main program removes the 32-bit intercept function while removing the 64-bit intercept function. The invention can correctly run on a 64-bit system adopted by the server by using the existing 32-bit main program, and intercepts 64-bit information by a 64-bit interception function.

Description

在64位系统中利用32位主程序拦截64位信息的方法 The method of using 32-bit main program to intercept 64-bit information in 64-bit system

技术领域 technical field

本发明涉及一种32位主程序拦截信息的方法,尤其涉及一种在64位系统中利用32位主程序拦截64位信息的方法。The invention relates to a method for intercepting information by a 32-bit main program, in particular to a method for intercepting 64-bit information by using a 32-bit main program in a 64-bit system.

背景技术 Background technique

目前,通常在实现对远程服务器进行远程控制时,其核心技术就是对使用Windows系统的服务器(Windows Server)的远程控制中采用的拦截函数运行机制,这也是市面上大多数类似软件都采用的方式,其原理就是使用系统中全面拦截函数截获系统内所有的信息,而后通过分析信息的种类和需要更新的范围传送图像到客户端(Client),而后客户端再将对应的图像显示在本地的窗口上。这种方式的优势在于每次传送的图形都是需要更新区域的图形,而不是全部的桌面图像,一定程度上减轻了网络传输的压力并提高了传输速度。At present, when realizing the remote control of the remote server, its core technology is the interception function operation mechanism used in the remote control of the server using the Windows system (Windows Server), which is also the method adopted by most similar software on the market , the principle is to use the comprehensive interception function in the system to intercept all the information in the system, and then transmit the image to the client (Client) by analyzing the type of information and the range that needs to be updated, and then the client displays the corresponding image in the local window superior. The advantage of this method is that the graphics transmitted each time are the graphics that need to update the area, rather than all the desktop images, which reduces the pressure of network transmission to a certain extent and improves the transmission speed.

但是当服务器采用64位系统,而主程序却为32位,上述方式就出现了问题,32位主程序中的32位拦截函数无法拦截服务器64位系统内运行的64位程序的64位信息,那么客户端则无法得到需要的更新的数据,如:鼠标的信息等。However, when the server adopts a 64-bit system, but the main program is 32-bit, a problem occurs in the above method. The 32-bit interception function in the 32-bit main program cannot intercept the 64-bit information of the 64-bit program running in the 64-bit system of the server. Then the client cannot obtain the required updated data, such as information about the mouse, etc.

经过研究发现,32位主程序中运行的32位拦截函数仅仅能拦截到64位系统运行的32位程序的信息,却不能成功拦截64位系统运行的64位程序的信息;而64位拦截函数能拦截到64位系统运行的64位程序的信息,却不能成功拦截64位系统运行的32位程序的信息。因此,服务器使用的32位主程序若要拦截采用64位系统的服务器运行程序的所有信息,就不能仅用32位拦截函数或者64位拦截函数。After research, it is found that the 32-bit interception function running in the 32-bit main program can only intercept the information of the 32-bit program running on the 64-bit system, but cannot successfully intercept the information of the 64-bit program running on the 64-bit system; while the 64-bit interception function It can intercept the information of 64-bit programs running on 64-bit systems, but cannot successfully intercept the information of 32-bit programs running on 64-bit systems. Therefore, if the 32-bit main program used by the server wants to intercept all information of the server operating program using a 64-bit system, it cannot only use the 32-bit interception function or the 64-bit interception function.

发明内容 Contents of the invention

本发明所要解决的技术问题在于提供一种在64位系统中利用32位主程序拦截64位信息的方法,用以令64位系统的服务器中运行的32位主程序能够拦截系统的所有信息。The technical problem to be solved by the present invention is to provide a method for intercepting 64-bit information by using a 32-bit main program in a 64-bit system, so that the 32-bit main program running in a server of the 64-bit system can intercept all information of the system.

为了实现上述目的,本发明提供了一种在64位系统中利用32位主程序拦截64位信息的方法,其特点在于,该方法包含以下步骤:In order to achieve the above object, the present invention provides a method for utilizing a 32-bit main program to intercept 64-bit information in a 64-bit system, which is characterized in that the method comprises the following steps:

(1)设置32位的包含拦截函数的动态链接程序库及64位的包含拦截函数的动态链接程序库;(1) 32-bit DLLs containing interception functions and 64-bit DLLs containing interception functions are set;

(2)设置多个64位拦截函数的调用模块;(2) multiple 64-bit interception function calling modules are set;

(3)设置一32为拦截函数及一64位拦截函数;(3) a 32 is set as an interception function and a 64-bit interception function;

(4)通过该32位拦截函数拦截系统中运行的所有32位程序的信息,并通过该64位拦截函数拦截系统中运行的所有64位程序的信息;(4) Intercept information of all 32-bit programs running in the system through the 32-bit interception function, and intercept information of all 64-bit programs running in the system through the 64-bit interception function;

(5)产生一套接通信服务程序;(5) Generate a socket communication service program;

(6)发送移除该32位拦截函数与该64位拦截函数的信息;以及(6) sending information to remove the 32-bit interception function and the 64-bit interception function; and

(7)该32位主程序移除该32位拦截函数,同时移除该64位拦截函数。(7) The 32-bit main program removes the 32-bit interception function, and simultaneously removes the 64-bit interception function.

上述在64位系统中利用32位主程序拦截64位信息的方法,其特点在于,该64位拦截函数设置在32位拦截函数之后。The above-mentioned method for intercepting 64-bit information by using a 32-bit main program in a 64-bit system is characterized in that the 64-bit interception function is set after the 32-bit interception function.

上述在64位系统中利用32位主程序拦截64位信息的方法,其特点在于,该64位拦截函数是全面的拦截函数,其在该64位包含拦截函数的动态链接程序库中设置。The above-mentioned method for intercepting 64-bit information using a 32-bit main program in a 64-bit system is characterized in that the 64-bit interception function is a comprehensive interception function, which is set in the 64-bit dynamic link library containing the interception function.

上述在64位系统中利用32位主程序拦截64位信息的方法,其特征在于,该64位拦截函数的调用模块为后台程序,用于设置该64位拦截函数。The above-mentioned method for intercepting 64-bit information using a 32-bit main program in a 64-bit system is characterized in that the calling module of the 64-bit interception function is a background program for setting the 64-bit interception function.

上述在64位系统中利用32位主程序拦截64位信息的方法,其特点在于,所述各64位拦截函数的调用模块调用该64位拦截函数的动态链接程序库中的多个入口函数,并通过该入口函数传递提供至该64位拦截函数的参数,以设置该64位拦截函数。The above-mentioned method for utilizing 32-bit main programs to intercept 64-bit information in a 64-bit system is characterized in that the calling module of each 64-bit interception function calls a plurality of entry functions in the dynamic link program library of the 64-bit interception function, And pass the parameters provided to the 64-bit interception function through the entry function, so as to set the 64-bit interception function.

上述在64位系统中利用32位主程序拦截64位信息的方法,其特点在于,还包含如下步骤:The above-mentioned method for intercepting 64-bit information using a 32-bit main program in a 64-bit system is characterized in that it also includes the following steps:

当该32位主程序移除该32位拦截函数时,通过该套接通信服务程序发送移除该64位拦截函数的信息给该64位拦截函数的调用模块;When the 32-bit main program removes the 32-bit interception function, send the information of removing the 64-bit interception function to the calling module of the 64-bit interception function through the socket communication service program;

当该64位拦截函数的调用模块收到移除该64位拦截函数的信息时,该64位拦截函数的调用模块调用该入口函数,移除该64位拦截函数;以及When the calling module of the 64-bit interception function receives the information of removing the 64-bit interception function, the calling module of the 64-bit interception function calls the entry function, and removes the 64-bit interception function; and

向该32位主程序发送该64位拦截函数已移除的信息。Send the information that the 64-bit interception function has been removed to the 32-bit main program.

本发明的功效在于,对已有的32位主程序改动量小,基本上在原先采用32位操作系统的服务器上运行的32位主程序变化很少,也不需要重新编译成64位系统上的程序。原来32位拦截函数部分无须做任何动作。即:使用已有的32位主程序就可以在服务器采用的64位系统上正确运行,并通过64位拦截函数拦截64位信息。The effect of the present invention is that the amount of modification to the existing 32-bit main program is small, basically the 32-bit main program running on the server using the 32-bit operating system has little change, and there is no need to recompile it into a 64-bit system. program of. The original 32-bit interception function part does not need to do any action. Namely: use the existing 32-bit main program to run correctly on the 64-bit system adopted by the server, and intercept 64-bit information through the 64-bit interception function.

采用本发明的方法,可以适用到64位Windows系统上使用拦截函数机制的所有相关程序,同时还不会影响到32位系统上此类程序的使用。By adopting the method of the present invention, it can be applied to all relevant programs using the interception function mechanism on the 64-bit Windows system, and at the same time, the use of such programs on the 32-bit system will not be affected.

以下结合附图和具体实施例对本发明进行详细描述,但不作为对本发明的限定。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments, but not as a limitation of the present invention.

附图说明 Description of drawings

图1为本发明的64位Windows系统的系统方块图;Fig. 1 is the system block diagram of 64-bit Windows system of the present invention;

图2为本发明的32位主程序中拦截64位信息的方法流程图;Fig. 2 is the method flowchart of intercepting 64-bit information in the 32-bit main program of the present invention;

图3为本发明的移除64位拦截函数的方法流程图;以及Fig. 3 is the method flowchart of removing 64 interception functions of the present invention; And

图4为本发明在32位主程序中使用64位拦截函数的方法流程图。Fig. 4 is a flow chart of the method for using a 64-bit interception function in a 32-bit main program in the present invention.

其中,附图标记:Among them, reference signs:

100    32位主程序100 32-bit main program

220    32位包含拦截函数的动态链接程序库220 32-bit dynamic link library containing interception functions

310    64位拦截函数调用模块310 64-bit interception function call module

320    64位包含拦截函数的动态链接程序库320 64-bit dynamic link library containing interception functions

步骤101设置32位的包含拦截函数的动态链接程序库及64位的包含拦截函数的动态链接程序库Step 101 is provided with 32-bit DLLs containing interception functions and 64-bit DLLs containing interception functions

步骤102    设置多个64位拦截函数的调用模块Step 102 Set multiple calling modules of 64-bit interception functions

步骤103    设置64位拦截函数Step 103 Set up 64-bit interception function

步骤104    32位拦截函数拦截系统中运行的所有32位程序的信息,64位拦截函数拦截系统中运行的所有64位程序的信息Step 104 The 32-bit interception function intercepts the information of all 32-bit programs running in the system, and the 64-bit interception function intercepts the information of all 64-bit programs running in the system

步骤105    产生一套接通信服务程序Step 105 Generate a set of communication service program

步骤106    判断是否发送移除拦截函数之信息Step 106 Determine whether to send the message of removing the interception function

步骤107    32位主程序移除32位拦截函数,同时移除64位拦截函数Step 107 Remove the 32-bit interception function from the 32-bit main program, and remove the 64-bit interception function at the same time

步骤201    设置64位的包含拦截函数的动态链接程序库,设置64位拦截函数,并设置此拦截函数Step 201 Set the 64-bit dynamic link library containing the interception function, set the 64-bit interception function, and set the interception function

步骤202    产生一套接通信服务程序Step 202 Generate a set of communication service program

步骤203    判断套接通信服务程序是否发送移除64位拦截函数的信息Step 203 Determine whether the socket communication service program sends information to remove the 64-bit interception function

步骤204    调用拦截函数程序入口函数,移除拦截函数,并发送答复数据Step 204 Call the interception function program entry function, remove the interception function, and send reply data

步骤301    设置多个32位包含拦截函数的动态链接程序库,设置32位拦截函数,并设置此拦截函数Step 301 Set a plurality of 32-bit dynamic link libraries that contain interception functions, set 32-bit interception functions, and set the interception function

步骤302    产生一套接通信服务程序Step 302 Generate a set of communication service program

步骤303    设置多个64位包含拦截函数的动态链接程序库,设置64位拦截函数,并设置此拦截函数Step 303 Set a plurality of 64-bit dynamic link libraries that contain interception functions, set 64-bit interception functions, and set this interception function

步骤304    处理32位拦截函数和64位拦截函数发送的信息Step 304 Process the information sent by the 32-bit interception function and the 64-bit interception function

步骤305    判断是否发送移除32位拦截函数的信息Step 305 Determine whether to send the information to remove the 32-bit interception function

步骤306    移除32位拦截函数Step 306 Remove the 32-bit interception function

步骤307    连接套接通信服务程序,判断是否发送移除64位拦截函数的信息Step 307 Connect to the socket communication service program, and determine whether to send the information for removing the 64-bit interception function

步骤308    移除64位拦截函数Step 308 Remove the 64-bit interception function

具体实施方式 Detailed ways

请参考图1,图中表示了本发明的64位Windows系统的系统方块图,包含:32位主程序100;32位包含拦截函数的动态链接程序库220,由上述32位主程序100设置或者移除,并且此32位包含拦截函数的动态链接程序库220将截获到的32位信息发送至上述32位主程序100;64位拦截函数调用模块310,由上述32位主程序100设置或者移除,用以设置或者移除64位包含拦截函数的动态链接程序库;64位包含拦截函数的动态链接程序库320,将截获到的64位信息发送至上述32位主程序100。Please refer to Fig. 1, the system block diagram of 64-bit Windows system of the present invention is shown in the figure, comprise: 32-bit main program 100; Remove, and this 32-bit dynamic link library 220 that contains the interception function sends the 32-bit information intercepted to the above-mentioned 32-bit main program 100; the 64-bit interception function call module 310 is set or moved by the above-mentioned 32-bit main program In addition, it is used to set or remove the 64-bit dynamic link library containing the interception function; the 64-bit dynamic link library 320 including the interception function sends the intercepted 64-bit information to the above-mentioned 32-bit main program 100 .

64位拦截函数调用模块310是后台程序,仅仅起到一个设置64位拦截函数的作用,需要提供给拦截函数的参数,都可以通过命令方式将参数传递给此程序,而由此程序在运行时调用64位包含拦截函数的动态链接程序库320中的入口函数,以便设置64位拦截函数。The 64-bit interception function call module 310 is a background program, which only plays the role of setting a 64-bit interception function. The parameters that need to be provided to the interception function can be passed to this program by command mode, and thus the program is running. Call the entry function in the 64-bit dynamic link program library 320 containing the interception function, so as to set the 64-bit interception function.

因为拦截函数是应用于全面,全面的拦截函数必须放在动态链接程序库中设置,所以需要一个64位包含拦截函数的动态链接程序库320。64位拦截函数从程序上基本和32位程序拦截函数相同,只是编译成64位平台上的执行程序。32位拦截函数和64位拦截函数都完成同样的一件工作,就是将拦截到的信息发送给32位主程序100,由主程序统一进行处理,不同之处在于64位拦截函数能检测到64位信息,32位拦截函数能够检测到32位信息。Because the interception function is applied comprehensively, the comprehensive interception function must be set in the dynamic link program library, so a 64-bit dynamic link program library 320 containing the interception function is required. The 64-bit interception function is basically the same as the 32-bit program interception program. The function is the same, but compiled into an executable program on a 64-bit platform. Both the 32-bit interception function and the 64-bit interception function accomplish the same job, that is, the intercepted information is sent to the 32-bit main program 100, and the main program processes it uniformly. The difference is that the 64-bit interception function can detect 64 32-bit information, the 32-bit interception function can detect 32-bit information.

原先的32位主程序100仍然按照32位进行编译,所需要修改的部分就是在以前调用32位包含拦截函数的动态链接程序库220的地方增加设置上述64位拦截函数调用模块310的过程。一旦64位拦截函数设置,64位拦截函数调用模块310就没有具体意义了。在32位主程序100中摘掉32位拦截函数时也同样要摘掉64位拦截函数。The original 32-bit main program 100 is still compiled according to 32-bit, and the part that needs to be modified is to add the process of setting the above-mentioned 64-bit interception function calling module 310 at the place where the 32-bit dynamic link library 220 containing the interception function was called before. Once the 64-bit interception function is set, the 64-bit interception function call module 310 has no specific meaning. When the 32-bit interception function is removed in the 32-bit main program 100, the 64-bit interception function will also be removed.

在本发明的一实施例中通过套接(socket)通信服务程序移除64位拦截函数,现在请参考图3,该图为本发明移除64位拦截函数的方法流程图,如图所示,本发明的移除64位拦截函数的方法包含以下步骤:步骤201,设置64位的包含拦截函数的动态链接程序库,设置64位拦截函数,并设置此拦截函数;步骤202,产生一套接通信服务程序;步骤203,判断套接通信服务程序是否发送移除64位拦截函数的信息;步骤204,当发出此移除信息时,调用拦截函数程序入口函数,移除拦截函数,并发送答复数据;若没有发出此移除信息,则64位拦截函数一直等待此移除信息。In an embodiment of the present invention, the 64-bit interception function is removed by socket (socket) communication service program, please refer to Fig. 3 now, this figure is the method flowchart of removing 64-bit interception function of the present invention, as shown in the figure , the method for removing the 64-bit interception function of the present invention comprises the following steps: step 201, setting a 64-bit dynamic link library that contains the interception function, setting the 64-bit interception function, and setting the interception function; step 202, generating a set of Connect the communication service program; Step 203, judge whether the socket communication service program sends information to remove the 64-bit interception function; Step 204, when sending this removal information, call the interception function program entry function, remove the interception function, and send Reply data; if the removal information is not issued, the 64-bit interception function has been waiting for the removal information.

在本发明的一实施例中,32位主程序100,其功能是提供服务给客户端,使得客户端能够完全地控制服务器所在的计算机。随着各种计算机硬件软件的不断升级以及64位处理器的出现,于是微软也推出了其64位操作系统,上述32位程序为了能在采用64位操作系统的服务器上使用,于是应用本发明的技术。In an embodiment of the present invention, the function of the 32-bit main program 100 is to provide services to the client, so that the client can completely control the computer where the server is located. Along with the continuous upgrading of various computer hardware and software and the appearance of 64-bit processors, so Microsoft has also released its 64-bit operating system. Technology.

如图2所示,此图为本发明的32位主程序中拦截64位信息的方法流程图,包含以下步骤:As shown in Figure 2, this figure is a flow chart of the method for intercepting 64-bit information in the 32-bit main program of the present invention, comprising the following steps:

步骤101,设置32位的包含拦截函数的动态链接程序库及64位的包含拦截函数的动态链接程序库,此步骤用以设置64位拦截函数,即:提供多个入口函数,用以设置多个64位拦截函数能够截获系统上运行的所有64位程序的所有信息以及卸载64位拦截函数,64位拦截函数所截获的信息会根据需要转换成屏幕要更新的区域范围数据,发送给32位主程序进行处理;步骤102,设置多个64位拦截函数的调用模块,首先分析系统调用64位拦截函数时的命令行参数,得到入口地址,用以调用设置64位拦截函数的函数;步骤103,设置64位拦截函数;步骤104,通过32位拦截函数拦截系统中运行的所有32位程序的信息,并通过64位拦截函数拦截系统中运行的所有64位程序的信息;步骤105,产生一套接通信服务程序,用以监视某一端口,一旦有用户连接,则收取其接收到的数据,判断其数据内容,如果是预先约定的数据,则说明32位主程序需要移除拦截函数程序,则发送移除拦截函数信息给32位主程序;步骤106,判断是否发送有移除32位拦截函数的信息;步骤107,当发出此移除信息时,32位主程序移除32位拦截函数,移除64位拦截函数,若没有发出此移除信息,则32位拦截函数一直等待此移除信息发出。Step 101, setting 32-bit DLLs containing interception functions and 64-bit DLLs containing interception functions, this step is used to set 64-bit interception functions, that is: multiple entry functions are provided for setting multiple A 64-bit interception function can intercept all information of all 64-bit programs running on the system and uninstall the 64-bit interception function. The information intercepted by the 64-bit interception function will be converted into the area range data to be updated on the screen as needed, and sent to the 32-bit Main program is processed; Step 102, the calling module of a plurality of 64 interception functions is set, at first analyze the command line parameter when system calls 64 interception functions, obtain entry address, in order to call the function that 64 interception functions are set; Step 103 , the 64-bit interception function is set; Step 104, intercept the information of all 32-bit programs running in the system by the 32-bit interception function, and intercept the information of all 64-bit programs running in the system by the 64-bit interception function; Step 105, generate a The socket communication service program is used to monitor a certain port. Once a user connects, it will collect the received data and judge its data content. If it is the pre-agreed data, it means that the 32-bit main program needs to remove the interception function program , then send the removal interception function information to the 32-bit main program; step 106, judge whether to send the information of removing the 32-bit interception function; step 107, when sending the removal information, the 32-bit main program removes the 32-bit interception function function, remove the 64-bit interception function, if the removal information is not issued, the 32-bit interception function has been waiting for the removal information to be issued.

由于32位主程序100已经在需要的时候,比如有客户连接的时候设置了32位拦截函数,所要完成就是在设置了32位拦截函数之后设置64位拦截函数,并将所需的命令参数也设置好,命令行数是约定的32位主程序100的接收信息的窗口句柄等,一旦执行,64位拦截函数就可以开始工作,32位主程序能够接收到64位包含拦截函数的动态链接程序库320发送来的信息。Since the 32-bit main program 100 has already set the 32-bit interception function when needed, such as when a client connects, all that needs to be done is to set the 64-bit interception function after the 32-bit interception function is set, and set the required command parameters as well. After setting, the number of command lines is the window handle of the agreed 32-bit main program 100 to receive information, etc. Once executed, the 64-bit interception function can start to work, and the 32-bit main program can receive the 64-bit dynamic link program containing the interception function Information sent by library 320.

在客户断掉连接,或者其它的某些情况下,服务器需要移除拦截函数,于是程序产生了一个套接通信服务程序,用来连接拦截函数运行中产生的服务器,将信息传递至服务器,同时等待从服务器返回的信息,而后就可以正式确认拦截函数已经被摘掉。When the client disconnects, or in some other cases, the server needs to remove the interception function, so the program generates a socket communication service program, which is used to connect to the server generated during the operation of the interception function, and transmit the information to the server. Wait for the information returned from the server, and then you can officially confirm that the interception function has been removed.

其流程图如图4所示,此图为本发明的在32位主程序中使用64位拦截函数的方法流程图,包含:步骤301,设置多个32位的包含拦截函数的动态链接程序库,设置32位拦截函数,并设置此拦截函数;步骤302,产生一套接通信服务程序;步骤303,设置多个64位的包含拦截函数的动态链接程序库,设置64位拦截函数,并设置此拦截函数;步骤304,处理32位拦截函数和64位拦截函数发送的信息;步骤305,判断32位主程序是否发送移除32位拦截函数的信息;步骤306,当发出此移除信息时,移除32位拦截函数;若没有发出此移除信息,则32位拦截函数一直等待此移除信息发出;步骤307,判断套接通信服务程序是否发送移除64位拦截函数的信息;步骤308,当发出此移除信息时,移除64位拦截函数,若没有发出此移除信息,则64位拦截函数一直等待此移除信息发出。Its flow chart is as shown in Figure 4, and this figure is the method flow chart of using 64 interception functions in 32 main programs of the present invention, comprises: step 301, a plurality of 32 dynamic link program libraries that comprise interception functions are set , set the 32-bit interception function, and set the interception function; step 302, generate a set of communication service program; step 303, set a plurality of 64-bit dynamic link libraries that contain the interception function, set the 64-bit interception function, and set This interception function; step 304, process the information sent by 32-bit interception functions and 64-bit interception functions; step 305, judge whether the 32-bit main program sends information to remove 32-bit interception functions; step 306, when sending this removal information , remove the 32-bit interception function; if the removal information is not sent, the 32-bit interception function waits for the removal information to be issued; step 307, judge whether the socket communication service program sends the information to remove the 64-bit interception function; step 308. When the removal information is issued, the 64-bit interception function is removed. If the removal information is not issued, the 64-bit interception function waits for the removal information to be issued.

当然,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明权利要求的保护范围。Certainly, the present invention also can have other multiple embodiments, without departing from the spirit and essence of the present invention, those skilled in the art can make various corresponding changes and deformations according to the present invention, but these corresponding changes All changes and modifications should belong to the protection scope of the claims of the present invention.

Claims (6)

1. method of utilizing 64 information of 32 master routines interception in 64 systems is characterized in that the method includes the steps of:
(1) the dynamic link routine library of tackling function 32 comprise and 64 s' the dynamic link routine library of tackling function that comprises is set;
(2) a plurality of 64 interception function calls modules are set;
(3) one 32 interception functions and one 64 interception functions are set;
(4) by these 32 information of tackling all 32 programs of moving in the intercepting api calls system, and by these 64 information of tackling all 64 programs of moving in the intercepting api calls system;
(5) produce a socket communication service program;
(6) send the information that removes these 32 interception functions and these 64 interception functions; And
(7) these 32 master routines remove these 32 interception functions, remove these 64 interception functions simultaneously.
2. the method for utilizing 64 information of 32 master routine interceptions in 64 systems according to claim 1 is characterized in that these 64 interception function setup are after 32 interception functions.
3. the method for utilizing 64 information of 32 master routines interception in 64 systems according to claim 1 is characterized in that, these 64 interception functions are comprehensively to tackle function, and it comprises in the dynamic link routine library of tackling function at these 64 and is provided with.
4. the method for utilizing 64 information of 32 master routine interceptions in 64 systems according to claim 1 is characterized in that, these 64 interception function calls modules are background program, are used to be provided with these 64 interception functions.
5. the method for in 64 systems, utilizing 64 information of 32 master routine interceptions according to claim 4, it is characterized in that, a plurality of entrance functions in the dynamic link routine library of these 64 interceptions of described each 64 interception function calls module invokes function, and by this entrance function transmission provide to these 64 the interception function parameters, be provided with these 64 the interception functions.
6. the method for utilizing 64 information of 32 master routine interceptions in 64 systems according to claim 5 is characterized in that, also comprises following steps:
When these 32 master routines remove these 32 interception functions, send the information that removes these 64 interception functions by this socket communication service program and tackle the function calls modules to these 64;
When these 64 interception function calls modules were received the information that removes these 64 interception functions, these 64 these entrance functions of interception function calls module invokes removed these 64 interception functions; And
Send the information that these 64 interception functions have removed to these 32 master routines.
CNB2005101328940A 2005-12-27 2005-12-27 Method for intercepting 64-bit information by using 32-bit main program in 64-bit system Expired - Fee Related CN100424638C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101328940A CN100424638C (en) 2005-12-27 2005-12-27 Method for intercepting 64-bit information by using 32-bit main program in 64-bit system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101328940A CN100424638C (en) 2005-12-27 2005-12-27 Method for intercepting 64-bit information by using 32-bit main program in 64-bit system

Publications (2)

Publication Number Publication Date
CN1991745A CN1991745A (en) 2007-07-04
CN100424638C true CN100424638C (en) 2008-10-08

Family

ID=38214022

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101328940A Expired - Fee Related CN100424638C (en) 2005-12-27 2005-12-27 Method for intercepting 64-bit information by using 32-bit main program in 64-bit system

Country Status (1)

Country Link
CN (1) CN100424638C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662739B (en) * 2012-03-23 2015-04-22 深圳市文鼎创数据科技有限公司 Method and device for realizing function calling
CN105446732A (en) * 2015-05-13 2016-03-30 北京天诚盛业科技有限公司 Operation realization method, device and system of 64-bit program
CN104951375B (en) * 2015-07-01 2017-12-08 北京博睿宏远数据科技股份有限公司 Cell phone application performance data acquisition method based on intercepting api callses technology

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1310394A (en) * 2000-02-24 2001-08-29 英业达股份有限公司 Passive program monitoring method
CN1399742A (en) * 1999-06-30 2003-02-26 倾向探测公司 Method and apparatus for monitoring traffic in network
US20050027838A1 (en) * 2003-07-29 2005-02-03 Magid Robert Mark System and method for intercepting user exit interfaces in IMS programs

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1399742A (en) * 1999-06-30 2003-02-26 倾向探测公司 Method and apparatus for monitoring traffic in network
CN1310394A (en) * 2000-02-24 2001-08-29 英业达股份有限公司 Passive program monitoring method
US20050027838A1 (en) * 2003-07-29 2005-02-03 Magid Robert Mark System and method for intercepting user exit interfaces in IMS programs

Also Published As

Publication number Publication date
CN1991745A (en) 2007-07-04

Similar Documents

Publication Publication Date Title
US7051288B2 (en) Method, system, and product for a java-based desktop to provide window manager services on UNIX
US20070174846A1 (en) System and Method for Intercepting, Instrumenting and Characterizing Usage of an Application Programming Interface
US9870303B2 (en) Monitoring and correlating a binary process in a distributed business transaction
US10084637B2 (en) Automatic task tracking
US10216601B2 (en) Agent dynamic service
US10592312B2 (en) Message oriented middleware with integrated rules engine
US9990214B2 (en) Dynamic agent delivery
CN105117645A (en) Method for operating multiple samples of sandbox virtual machine based on file system filtering drive
US10067862B2 (en) Tracking asynchronous entry points for an application
US20050289176A1 (en) Application sharing smoothness
CN108875011B (en) Method, device, equipment and medium for acquiring page state information of third-party application
US10318343B2 (en) Migration methods and apparatuses for migrating virtual machine including locally stored and shared data
CN111090531B (en) Method for realizing distributed virtualization of graphic processor and distributed system
US7769828B2 (en) System for provisioning time sharing option (TSO) and interactive productivity system facility (ISPF) services in a network environment
CN100424638C (en) Method for intercepting 64-bit information by using 32-bit main program in 64-bit system
US10191844B2 (en) Automatic garbage collection thrashing monitoring
CN102724213B (en) A kind of virtual seamless desktop and implementation method
US10216926B2 (en) Isolation of untrusted code in operating system without isolation capability
US8825739B2 (en) Method and apparatus for controlling multiple systems in a low bandwidth environment
US8904002B2 (en) Reducing overhead in component interactions
US9959195B2 (en) Dynamic instrumentation of WSGI applications
CN115202826A (en) Method for accessing virtual machine desktop under direct connection of display card
TWI297458B (en)
CN112491786A (en) Safe operation and maintenance method and system based on one-way transmission
CN111143056A (en) Electronic whiteboard display resource sharing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20191031

Address after: East area, 8th floor, No.19, Lane 299, Guanghua Road, Ningbo national high tech Zone, Ningbo City, Zhejiang Province

Patentee after: Ningbo cas message technology applied research institute

Address before: Taipei City, Taiwan, China

Patentee before: Yingda Co., Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081008

Termination date: 20191227

CF01 Termination of patent right due to non-payment of annual fee