CN101227421A - Instantaneous communication method and apparatus under full screen graphics mode - Google Patents

Instantaneous communication method and apparatus under full screen graphics mode Download PDF

Info

Publication number
CN101227421A
CN101227421A CNA2007100799989A CN200710079998A CN101227421A CN 101227421 A CN101227421 A CN 101227421A CN A2007100799989 A CNA2007100799989 A CN A2007100799989A CN 200710079998 A CN200710079998 A CN 200710079998A CN 101227421 A CN101227421 A CN 101227421A
Authority
CN
China
Prior art keywords
module
instant messaging
window
instant
remote process
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2007100799989A
Other languages
Chinese (zh)
Other versions
CN101227421B (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.)
WOTIANXINGSHI (BEIJING) TECHNOLOGY Co Ltd
Original Assignee
WOTIANXINGSHI (BEIJING) TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WOTIANXINGSHI (BEIJING) TECHNOLOGY Co Ltd filed Critical WOTIANXINGSHI (BEIJING) TECHNOLOGY Co Ltd
Priority to CN2007100799989A priority Critical patent/CN101227421B/en
Publication of CN101227421A publication Critical patent/CN101227421A/en
Application granted granted Critical
Publication of CN101227421B publication Critical patent/CN101227421B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an instant communication method under full-screen pattern mode, the method comprises first, injecting an instant communication module in remote process, second, checking boundary attribute of the remote process, when the boundary attribute is a full screen mode, carrying on the step three, third, taking over a system application process interface module, fourth, taking over a display interface module of the remote process, fifth, operating the instant communication module. The invention also discloses an instant communication device under full-screen pattern mode, and the device comprises an injecting unit, a checking unit, a system interface control unit, an interface display control unit and an executive unit. The display of an IM window can be achieved under full-screen display status through utilizing the communication method and the communication device which are provided by the invention, and the achievement of each function of IM does not influence the operation of full-screen programs.

Description

Instant communication method under the full screen graphics pattern and device
Technical field
The present invention relates to the communications field, relate in particular to instant communication method and device under the full screen graphics pattern.
Background technology
At present, a lot of softwares all adopt the full screen graphics pattern when operation, for example a lot of Games Softwares, particularly some games on line, and game user need be operated under screen mode toggle, and under screen mode toggle, process is by the control of recreation main program.
Instant message (Instant Messaging, IM) be a kind of MSN, for the user provides a kind of mode that conveniently exchanges with other users on the network by Internet, by this software, can carry out online talk, inter-transmitting file, voice dialogue and carry out video conference between the different online network users, even exchange by network bi-directional with mobile phone.
In the prior art, to under the full screen graphics technology, use MSN, when an instant message sends to user terminal, the IM window that ejects can cause display mode to switch to common window scheme from screen mode toggle usually, thereby need the manual Resume Mission again of user, and in case can't see this IM window after returning full frame game mode; When will be when other users send an instant message,, then need the display mode manual switchover to carry out the transmission of instant message again, thereby to influence the operation of Games Software to window scheme if this user is carrying out game operation from this user terminal.
The MSN that present immediate information software provider is provided as QQ, MSN or the like, all can influence the operation of full screen graphics pattern recreation when using its IM.
Summary of the invention
At the shortcoming that can not under the full screen graphics pattern, move MSN in the conventional art, the invention provides a kind of instant communication method and communication device that does not influence the operation of full screen graphics model program.
Instant communication method under the full screen graphics pattern provided by the invention comprises:
A. the instant messaging module is injected remote process;
B. detect the interface property of described remote process, when described interface property is screen mode toggle, execution in step c;
C. take over the system application interface module;
D. take over the display interface module of remote process;
E. move the instant messaging module.
Preferably, step a comprises:
A11. the instant messaging module is put into dynamic link library;
A12. with hook module described dynamic link library is mapped to remote process.
Preferably, step a comprises:
A21. the instant messaging module is put into dynamic link library;
A22. with CreateRemoteThread function and LoadLibrary function described dynamic link library is mapped to remote process.
Preferably, step a comprises:
A31. with the WriteProcessMemory function instant messaging module is copied to remote process;
A32. carry out described instant messaging module with the CreateRemoteThread function.
Preferably, step e comprises: show the instant messaging window by the overlay mode.
Preferably, step e comprises: show the instant messaging window by the pop-up window mode.
Preferably, step e comprises: coordinate a plurality of instant messaging windows, wherein instant messaging module receives the message that each instant messaging window is sent, and will ask after carrying out respective handling, result etc. sends message again to corresponding instant messaging window.
Preferably, at step e, described instant messaging module is the driver module of system kernel.
The present invention also provides the instant communication device under a kind of full screen graphics pattern, comprising:
Inject the unit, be used for communication module is injected remote process;
Detecting unit is used to detect the interface property of described remote process;
The system interface control unit is used to take over the system application interface module;
The display interface control unit, the display interface module that is used to take over remote process.
Performance element is used to move the instant messaging module.
Preferably, described injection unit comprises hook module, and described hook module is used for described dynamic link library is mapped to remote process.
Preferably, described performance element comprises display module.
Preferably, described display module is OverLay display module or pop-up window display module.
Utilize the means of communication provided by the invention and communication device, can show the demonstration that realizes carrying out under the multiple full screen graphics technology such as DirectX, OpenGL the IM window under (for example full frame recreation) state at full screen, and the realization of the every function of IM does not influence the operation of full frame program.
Preferably, described performance element comprises Coordination module, and described Coordination module is used to receive the message that other instant messaging windows are sent, and will ask after carrying out respective handling, result etc. sends message again to corresponding instant messaging window.
Preferably, the described instant messaging module driver module that is system kernel.
Description of drawings
Fig. 1 is an instant communication method flow chart of the present invention;
Fig. 2 is the instant communication device schematic diagram according to the embodiment of the invention.
Embodiment
Fig. 1 is an instant communication method flow chart of the present invention, as shown in the figure, in step 101, at first the instant messaging module is injected remote process.Described instant messaging module can be any software that is used for instant messaging, for example Chang Yong MSN, QQ or the like.
Because when carrying out instant messaging, call API and set up, show that dialog box must carry out in the inside of this remote process, and instant messaging module (being the IM program) is usually in the operation of the outside of game process, therefore, if the instant messaging module is not injected in the remote process, then various foundation, the function that the subwindow of games window is set can cause that remote process produces the response of " illegal operation " or do not produce any response.In an embodiment of the present invention, the method for injecting the instant messaging module comprises three kinds, is respectively:
1, the code with the instant messaging module writes in the dynamic link library (DDL), by Windows hook (for example SetWindowHookEx function) DLL is mapped to remote process.
2, the instant messaging module is write in the dynamic link library, use CreateRemoteThread and LoadLibrary technology that DLL is mapped to remote process.
3, use WriteProcessMemory directly the instant messaging block code to be copied to remote process, and start the instant messaging module with CreateRemoteThread.
Wherein, IM main program and the full frame long-range program of injection will be kept in communication, and communication is coordinated.For example, according to current practical operation situation, the IM main program is distributed to relevant window writing routine with each message and handles.Similarly, IM main program IM window and inject between the full frame recreation IM window and also need to keep in communication and coordinate.
IM is except having non-IM window under full frame, after the program of injecting full frame interface, all can start an independently IM window, under each IM window, user's action request can send to the IM primary control program by the message mechanism of windows, perhaps directly calls the function of IM driver.
Sending to the IM primary control program with user's the action request message mechanism by windows is example, and the IM primary control program is handled after receiving the message that each IM window sends as the case may be accordingly, for example, and buffer memory, priority queue or the like.After carrying out above-mentioned processing, primary control program will be asked, result etc. sends message again to corresponding IM window treatments, for example shows etc.
In step 102, detect the interface property of described remote process.In step 103, judge whether detected interface property is the full screen display state.If described interface property is a screen mode toggle, then to determines the display mode and the realization technology of IM window, and will judge the communication port situation that system has used, to prevent data collision according to the interfacial characteristics of recreation.If the program of moving under screen mode toggle need be carried out special processing.
Particularly,,, take over the API of system, realize that drawing certainly of IM window shows and the erroneous judgement of anti-plug-in measure to IM that prevent to play in step 104 if described interface property is a screen mode toggle.Main adapter system-level and DirectX, OpenGL figures API.
If described interface property is not a screen mode toggle, then carrying out the instant messaging module does not need additional particular processing, promptly in step 107, can directly carry out the instant messaging module, and window switches between the display window of remote process and instant messaging window.
After taking over system interface module,, also to take over the display interface module of remote process in step 105.The main window of SubClassing recreation can be realized preventing to the recreation erroneous judgement of anti-plug-in measure to IM that impact, prevent to play.
IM prevents from simultaneously to play and closes the IM window automatically by the demonstration that the API that takes over API of system and directx is implemented in IM window in the various recreation.The main API that takes over has: the API in the system, the API LoadLibraryA among the KERNEL32 for example, LoadLibraryW, LoadLibraryExA, LoadLibraryExW, GetProcAddress.Also need to take over DirectX API, comprising: DirectDrawCreate, DirectDrawCreateEx, Direct3DCreate8, Direct3DCreate9.
In step 106, operation instant messaging module.After the operation instant messaging module, corresponding dialog box will be presented on the screen.For the display mode of instant messaging window, need be according to concrete hardware display device and the decision of software committed memory.
The Overlay display mode needs hardware supports, and generally as the desktop superposed layer, its viewing area is the video memory that is different from common memory to the Overlay content displayed.Video memory is arranged in display unit, for example in the display card in the computer.Under hardware supports and existing situation about not used, adopt the Overlay mode to show instant messaging (IM) window by remote process program (for example recreation).
In Overlay window display mode, if in DirectX, the region of memory PRIMARYSURFACE of demonstration and OVERLAY are generally at video memory.And other surface program generally all leaves in the Installed System Memory.
The position that can certainly use the DSCAPS_VIDEOMEMORY/DDSCAPS_SYSTEMMEMORY function to specify Surface to deposit.With the subwindow of IM window as the recreation main window.Do not support Overlay at hardware, perhaps used the mode of the subwindow that ejects the recreation main window to show the IM window under the situations such as games use.
Preferably, the instant messaging module window adopts nonmodal IM window.Because modal window has the message circulation of oneself, if be shown as modal window, the circulation of modal window self can influence the operation of recreation.
Preferably, the IM window is set to be presented at top window.Selectively, also the IM window is not set to top window, in this case, as long as carry out game operation, will hide the IM window, thereby always the IM window is not visible.
Preferably, be provided with the hot key that in full frame program, starts the IM program.By the Windows hook, for example the SetWindowHookEx function has been broken through the shielding of the full frame software of part to hot key.
Preferably, can also cursor be set for the IM program that starts in the full frame program.By the Windows hook, for example the SetWindowHookEx function has been broken through the full frame software of part hiding cursor.
Preferably, for more reliable assurance does not exert an influence to full frame recreation, with the major function of IM in system-level realization.
IM can be embodied as the part major function driver of system kernel level.By IM client main program control this driver installation, move, stop, monitoring etc.
Described driver can be monitored the establishment and the end of game process.Described driver can be discerned the pattern of recreation more accurately by the monitoring game process, and shows the window of IM automatically at interface according to game mode.
IM by realizing at system-level driver has guaranteed the secure communication with server.Because be to be implemented in system-levelly, so the interference that IM can not be subjected to other application programs because operating in application layer causes communication interruption.For example, no matter what the state of full frame recreation is, the IM program can keep continuous communicating by letter with the recreation main program, and can be because of the end interrupt of recreation.
Simultaneously, by package analysis to online game, system-level IM module can correctly be judged the current state of recreation, as role in recreation of game server, player, rank or the like, thereby according to the corresponding instant messaging information of state notifying, processing, demonstration of recreation.
Fig. 2 is the instant communication device schematic diagram according to the embodiment of the invention.Comprise: inject unit 201, detecting unit 202, system interface control unit 203, display interface control unit 204 and performance element 205.Said units can realize by related hardwares such as the CPU in corresponding software module and the all-purpose computer, memory, network interfaces.
Described injection unit 201 is used for communication module is injected remote process.Described injection unit 201 comprises hook module, and described hook module is used for described dynamic link library is mapped to remote process.So-called " hook " is the foreign peoples's program in the Windows system, and the main effect of Windows hook is exactly the message flow that monitors certain thread.Generally can be divided into: local hook and long-range hook.Wherein, local hook only monitors the message flow of certain thread in the own process.Long-range hook can be divided into again: the particular thread hook that is used for monitoring the message of other certain thread of process; The message system level hook of all threads that are used for monitoring that whole system is being moved.
If the thread by hook (supervision) belongs to other process, hook process (hookprocedure) must be placed in the dynamic link libraries (DLL).System is mapped to this DLL that has comprised the hook process address space of the thread of being linked up with.Windows can shine upon whole DLL and be not only the hook process.Therefore the windows hook can be used for the address space injecting codes to other threads.
Detecting unit 202 is used to detect the interface property of described remote process.The process interface property of described remote process has nothing in common with each other, and the interface of some remote process is the full screen display pattern, and some is non-full screen display pattern, for example common Windows window display mode.For the process of non-full screen display, do not need to increase other processing usually when carrying out instant messaging, subsequent treatment directly starts performance element 205, so that operation instant messaging module gets final product.For the process of full screen display pattern, handles also different, have can start-up system interface control unit 203 with whole adapter system interfaces, what have need partly take over system interface.
System interface control unit 203 is used to take over the system application interface module.Realize that drawing certainly of IM window shows and the erroneous judgement of anti-plug-in measure to IM that prevent to play.Main adapter system-level and DirectX, OpenGL figures API.
Display interface control unit 204, the display interface module that is used to take over remote process.Can realize preventing to the recreation erroneous judgement of anti-plug-in measure that impact, prevent to play to IM.
Performance element 205 is used to move the instant messaging module.In described performance element 205, comprise display module 251.Described display module 251 can be Overlay display module or pop-up window display module.The Overlay display module is used for covering (Overlay) mode with video and shows the instant messaging module window; The pop-up window display module shows the instant messaging module window in the mode of pop-up window.
Preferably, described performance element can also comprise Coordination module, and described Coordination module is used to receive the message that other instant messaging windows are sent, and will ask after carrying out respective handling, result etc. sends message again to corresponding instant messaging window.
In a preferred embodiment of the invention, described Coordination module can realize by the IM primary control program, the described message that can receive from a plurality of IM windows, and each message is represented a user's action request.The IM primary control program is handled IM message after receiving the message that each IM window sends as the case may be accordingly, for example, and buffer memory, priority queue or the like.After carrying out above-mentioned processing, primary control program will be asked, result etc. sends message again to corresponding IM window treatments, for example shows etc.
Although invention has been described by above-mentioned preferred embodiment, those skilled in the art should understand that:, can make different variations and modification the present invention without departing from the spirit and scope of the present invention.For example, though be that example describes in the above-described embodiments with the recreation, it should be appreciated by those skilled in the art that other full screen display softwares outside recreation also can be suitable for the present invention.

Claims (14)

1. the instant communication method under the full screen graphics pattern is characterized in that, comprising:
A. the instant messaging module is injected remote process;
B. detect the interface property of described remote process, when described interface property is screen mode toggle, execution in step c;
C. take over the system application interface module;
D. take over the display interface module of remote process;
E. move the instant messaging module.
2. instant communication method according to claim 1 is characterized in that step a comprises:
A11. the instant messaging module is put into dynamic link library;
A12. with hook module described dynamic link library is mapped to remote process.
3. instant communication method according to claim 1 is characterized in that step a comprises:
A21. the instant messaging module is put into dynamic link library;
A22. with CreateRemoteThread function and LoadLibrary function described dynamic link library is mapped to remote process.
4. instant communication method according to claim 1 is characterized in that step a comprises:
A31. with the WriteProcessMemory function instant messaging module is copied to remote process;
A32. carry out described instant messaging module with the CreateRemoteThread function.
5. according to any one described instant communication method among the claim 1-4, it is characterized in that step e comprises: show the instant messaging window by the overlay mode.
6. instant communication method according to claim 5 is characterized in that step e comprises: show the instant messaging window by the pop-up window mode.
7. according to claim 1,5,6 kind of any one described instant communication method, it is characterized in that, step e comprises: coordinate a plurality of instant messaging windows, wherein instant messaging module receives the message that each instant messaging window is sent, and will ask after carrying out respective handling, result etc. sends message again to corresponding instant messaging window.
8. instant communication method according to claim 1 is characterized in that, at step e, described instant messaging module is the driver module of system kernel.
9. the instant communication device under the full screen graphics pattern is characterized in that, comprising:
Inject the unit, be used for communication module is injected remote process;
Detecting unit is used to detect the interface property of described remote process;
The system interface control unit is used to take over the system application interface module;
The display interface control unit, the display interface module that is used to take over remote process.
Performance element is used to move the instant messaging module.
10. instant communication device according to claim 9 is characterized in that, described injection unit comprises hook module, and described hook module is used for described dynamic link library is mapped to remote process.
11., it is characterized in that described performance element comprises display module according to claim 9 or 10 described instant communication devices.
12. instant communication device according to claim 11 is characterized in that, described display module is Overlay display module or pop-up window display module.
13. instant communication device according to claim 9, it is characterized in that, described performance element comprises Coordination module, described Coordination module is used to receive the message that other instant messaging windows are sent, and will ask after carrying out respective handling, result etc. sends message again to corresponding instant messaging window.
14. instant communication device according to claim 9 is characterized in that, described instant messaging module is the driver module of system kernel.
CN2007100799989A 2007-01-16 2007-03-06 Instantaneous communication method and apparatus under full screen graphics mode Expired - Fee Related CN101227421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100799989A CN101227421B (en) 2007-01-16 2007-03-06 Instantaneous communication method and apparatus under full screen graphics mode

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200710000253.9 2007-01-16
CN200710000253 2007-01-16
CN2007100799989A CN101227421B (en) 2007-01-16 2007-03-06 Instantaneous communication method and apparatus under full screen graphics mode

Publications (2)

Publication Number Publication Date
CN101227421A true CN101227421A (en) 2008-07-23
CN101227421B CN101227421B (en) 2012-04-18

Family

ID=39859182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100799989A Expired - Fee Related CN101227421B (en) 2007-01-16 2007-03-06 Instantaneous communication method and apparatus under full screen graphics mode

Country Status (1)

Country Link
CN (1) CN101227421B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101950245A (en) * 2010-09-29 2011-01-19 宇龙计算机通信科技(深圳)有限公司 Information display method and system for mobile terminal and mobile terminal
WO2011060633A1 (en) * 2009-11-20 2011-05-26 腾讯科技(深圳)有限公司 Method and related device for displaying instant communication messages
CN102291325A (en) * 2011-07-05 2011-12-21 苏州阔地网络科技有限公司 Method and device for displaying instant communication message in state of full screen display of video conference
CN103634654A (en) * 2013-11-29 2014-03-12 乐视致新电子科技(天津)有限公司 Desktop display method and device, and smart television
CN105597321A (en) * 2015-12-18 2016-05-25 武汉斗鱼网络科技有限公司 Barrage display method and system in full-screen game state
CN106528096A (en) * 2016-10-20 2017-03-22 武汉斗鱼网络科技有限公司 Method and system for drawing popup image on D3D12 full screen game source
CN107329654A (en) * 2017-06-26 2017-11-07 武汉斗鱼网络科技有限公司 Draw method, device and the computer-readable recording medium of element floating layer
WO2018121556A1 (en) * 2016-12-27 2018-07-05 北京奇虎科技有限公司 Live broadcast data processing method, apparatus, program and medium
WO2018121557A1 (en) * 2016-12-27 2018-07-05 北京奇虎科技有限公司 Live broadcast data display method, device, program and medium
CN110705991A (en) * 2019-09-18 2020-01-17 深圳市科脉技术股份有限公司 Face-brushing payment system and method based on two-way communication, electronic device and medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011060633A1 (en) * 2009-11-20 2011-05-26 腾讯科技(深圳)有限公司 Method and related device for displaying instant communication messages
CN101950245A (en) * 2010-09-29 2011-01-19 宇龙计算机通信科技(深圳)有限公司 Information display method and system for mobile terminal and mobile terminal
CN102291325A (en) * 2011-07-05 2011-12-21 苏州阔地网络科技有限公司 Method and device for displaying instant communication message in state of full screen display of video conference
CN103634654A (en) * 2013-11-29 2014-03-12 乐视致新电子科技(天津)有限公司 Desktop display method and device, and smart television
CN105597321A (en) * 2015-12-18 2016-05-25 武汉斗鱼网络科技有限公司 Barrage display method and system in full-screen game state
CN106528096A (en) * 2016-10-20 2017-03-22 武汉斗鱼网络科技有限公司 Method and system for drawing popup image on D3D12 full screen game source
CN106528096B (en) * 2016-10-20 2020-02-07 武汉斗鱼网络科技有限公司 Method and system for drawing bullet screen image on D3D12 full-screen game source
WO2018121556A1 (en) * 2016-12-27 2018-07-05 北京奇虎科技有限公司 Live broadcast data processing method, apparatus, program and medium
WO2018121557A1 (en) * 2016-12-27 2018-07-05 北京奇虎科技有限公司 Live broadcast data display method, device, program and medium
CN107329654A (en) * 2017-06-26 2017-11-07 武汉斗鱼网络科技有限公司 Draw method, device and the computer-readable recording medium of element floating layer
CN110705991A (en) * 2019-09-18 2020-01-17 深圳市科脉技术股份有限公司 Face-brushing payment system and method based on two-way communication, electronic device and medium

Also Published As

Publication number Publication date
CN101227421B (en) 2012-04-18

Similar Documents

Publication Publication Date Title
CN101227421B (en) Instantaneous communication method and apparatus under full screen graphics mode
KR101565224B1 (en) Method and apparatus for locking and unlocking multiple operating system environments with a single gesture input
US9092627B2 (en) Apparatus and method for providing security information in virtual environment
WO2020038169A1 (en) Icon display method and apparatus, terminal and storage medium
CN109857303B (en) Interaction control method and device
US7873915B2 (en) Suppressing dialog boxes
KR20140030226A (en) Global composition system
CN104156171A (en) Method and device for preventing touch key misoperations in landscape screen state of mobile terminal
CN108880921A (en) Webpage monitoring method
US20230211235A1 (en) Device control method and apparatus, computer device, and storage medium
CN111467790B (en) Target object control method, device and system
US10349020B2 (en) Information processing method and electronic apparatus
CN111124668B (en) Memory release method, memory release device, storage medium and terminal
CN109710343B (en) Method, device and equipment for switching windows of computer desktop and storage medium
WO2022068671A1 (en) Cloud desktop display method and system
KR20230054884A (en) Permission setting method, permission setting device and electronic device
CN103873652A (en) Incoming call information display method and device thereof
CN103218307A (en) Memory management system and memory management method
CN107436797A (en) A kind of director data processing method and processing device based on virtualized environment
CN114748873B (en) Interface rendering method, device, equipment and storage medium
KR20160020486A (en) Independent hit testing for touchpad manipulations and double-tap zooming
CN113672184A (en) Screen expansion method and device, terminal equipment and computer readable storage medium
CN108021416B (en) Media resource loading method and terminal
CN107346197B (en) Information display method and device
CN107111512A (en) Realize method, device and the electronic equipment operated to another operating 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120418

Termination date: 20170306

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