CN106547630A - The communication means and system of a kind of service routine of Windows operating system and desktop - Google Patents

The communication means and system of a kind of service routine of Windows operating system and desktop Download PDF

Info

Publication number
CN106547630A
CN106547630A CN201510590764.5A CN201510590764A CN106547630A CN 106547630 A CN106547630 A CN 106547630A CN 201510590764 A CN201510590764 A CN 201510590764A CN 106547630 A CN106547630 A CN 106547630A
Authority
CN
China
Prior art keywords
agent
service routine
operating system
windows operating
desktop
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.)
Pending
Application number
CN201510590764.5A
Other languages
Chinese (zh)
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.)
Shenzhen Prafly Technology Co Ltd
Original Assignee
Shenzhen Prafly 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 Shenzhen Prafly Technology Co Ltd filed Critical Shenzhen Prafly Technology Co Ltd
Priority to CN201510590764.5A priority Critical patent/CN106547630A/en
Publication of CN106547630A publication Critical patent/CN106547630A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides the communication means of a kind of service routine of Windows operating system and desktop, including:S1, the service routine call the api function of the Windows operating system to ask the Windows operating system to create Agent under desktop Session;S2, when the api function is called, the service routine transmits the address of the Agent and the parameter information of the Agent;S3, the Windows operating system receive request, and when the address is checked and the parameter information is effective, create the Agent under the desktop Session.Present invention also offers corresponding system.Implement the present invention, realize the communication across Session under Windows operating system so that when service routine needs to display to the user that information, create window and show the information, so as to realize that service routine shows the requirement of user interface on the table.In addition, service routine using the address of application program as parameter pass to Agent when, application program can ask administrator right.

Description

The communication means and system of a kind of service routine of Windows operating system and desktop
Technical field
The present invention relates to field of computer technology, more particularly, it relates to a kind of Windows operating system Service routine and desktop communication means and system.
Background technology
Windows operating system after Windows Vista operating systems, comprising Windows Vista Operating system, the service of Windows operating system and the application program of desktop are no longer on same Session Under, all of service routine is operated in Session0, and desktop programs are operated under another Session. Due to the buffer action of Session, cause the program under different Session create under other Session User interface, so that service routine easily cannot show the prompting letter of the user of close friend on the table Breath, and cause the inconvenience of the program with administrator right is created in desktop Session.Simultaneously, although The WTSSendMessage api functions that system is carried in itself can provide the prompting letter under desktop Session Breath, but show slightly coarse, and also user checks that the information is also very inconvenient.
The content of the invention
The technical problem to be solved in the present invention is, for the service routine of existing Windows operating system The information of the user of close friend easily cannot be shown on the table, and causes to create in desktop Session Build the program with administrator right inconvenient, there is provided a kind of service routine and table of Windows operating system The communication means and system in face.
The present invention the adopted technical scheme that solves the above problems there is provided a kind of Windows operating system Service routine and desktop communication means, it is characterised in that the method comprising the steps of:
S1, the service routine call the api function of the Windows operating system described to ask Windows operating system creates Agent under desktop Session;
S2, when the api function is called, the service routine transmits the address of the Agent and institute State the parameter information of Agent;
S3, the Windows operating system receive request, and are checking the address and parameter letter Cease for it is effective when, create the Agent under the desktop Session.
In the service routine of above-mentioned Windows operating system with the communication means of desktop, the Agent Information source be command line parameter.
In the service routine of above-mentioned Windows operating system with the communication means of desktop, in step S2 In, the parameter information is that the service routine needs to pass to the information that the Agent processes display.
In the service routine of above-mentioned Windows operating system with the communication means of desktop, methods described enters one Step includes:
When S4, the startup Agent, the Agent checks the command line parameter, and in analysis The described information shown needed for extracting after the command line parameter;
S5, the Agent create window and show described information.
In the service routine of above-mentioned Windows operating system with the communication means of desktop, described information is can Depending on resource.
Present invention also offers the communication system of a kind of service routine of Windows operating system and desktop, its It is characterised by, the system includes:
Calling module, calls the api function of the Windows operating system to ask for the service routine The Windows operating system is asked to create Agent under desktop Session;
Transfer module, for when the api function is called, the service routine transmits the Agent Address and the Agent parameter information;
Creation module, for the Windows operating system receive ask, and check the address and When the parameter information is effective, the Agent is created under the desktop Session.
In the service routine of above-mentioned Windows operating system with the communication system of desktop, the Agent Information source be command line parameter.
In the service routine of above-mentioned Windows operating system with the communication system of desktop, the parameter information Need to pass to the information that the Agent processes display for the service routine.
In the service routine of above-mentioned Windows operating system with the communication system of desktop, the system is also wrapped Include:
Starting module, for starting during the Agent, the Agent checks the command line parameter, And the described information shown needed for extracting after the command line parameter is analyzed;
Display module, creates window for the Agent and shows described information.
In the service routine of above-mentioned Windows operating system with the communication system of desktop, described information is can Depending on resource.
Implement the service routine of Windows operating system and the communication means of desktop and system of the present invention, tool There is following beneficial effect:
Service routine is by calling the api function of Windows operating system come Request System in desktop Agent is created under Session, and the address of Agent and service routine will be passed to is acted on behalf of journey The information that sequence process shows passes to api function as parameter, and then completes the agency under desktop Session The establishment of program.Simultaneously as the Session and desktop Session residing for service routine is differed, lead to Cross Agent to realize the communication of service routine and desktop, so realize under Windows operating system across The communication of Session so that when service routine needs to display to the user that information, creates window and shows The information, so as to realize that service routine shows the requirement of user interface on the table.In addition, service journey Sequence can pass to Agent using the address of application program as parameter, so, pass to generation as parameter The application program of reason program can ask administrator right, can show that text is carried on the table by Agent Show information, also can show video information on the table.
Description of the drawings
Fig. 1 is the communication means embodiment of the service routine with desktop of the Windows operating system of the present invention Flow chart.
Fig. 2 is the communications system embodiment of the service routine with desktop of the Windows operating system of the present invention Structural representation.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with accompanying drawing and reality Example is applied, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only To explain the present invention, it is not intended to limit the present invention.
As shown in figure 1, being the communication means of the service routine with desktop of the Windows operating system of the present invention The flow chart of embodiment.With reference to Fig. 1, the method is comprised the following steps:
S10, service routine call the api function of Windows operating system to ask Windows operating system Agent is created under desktop Session;
S20, in API Function, service routine transmit the Agent address and the Agent Parameter information;
S30, Windows operating system receive request, and when address is checked and parameter information is effective, The Agent is created under desktop Session;
S40, when starting the Agent, the Agent checks command line parameter, and is analyzing the order The information shown needed for extracting after line parameter;
S50, the Agent create window and show the information.
In above-mentioned steps S10, Windows operating system includes Windows Vista operating systems, Under Windows operating system, the Session residing for service routine is differed with desktop Session, Agent The executable program that the executable program write by any language, such as C language, JAVA etc. are write, its Information source is command line parameter.
In above-mentioned steps S20, the parameter information needs to pass to the Agent and process to show for service routine The information shown, its organizational form freely can be defined.In addition, service routine can also be by the ground of application program Location passes to Agent as parameter, and so, the application program for passing to Agent as parameter can be with Request administrator right, now, address of the parameter information for application program.
In above-mentioned steps S30, as the Agent is created under desktop Session, when which runs, Access rights with UI under desktop Session (User Interface, user interface) resource, therefore the generation Reason program can carry out display information with user interface.
In above-mentioned steps S40, the information is visual resources, can such as be text message, or regard Frequency information etc..
In above-mentioned steps S50, after Agent establishment window shows the information, user checks the information, Agent terminates operation.
In the present embodiment, service routine asks to be by calling the api function of Windows operating system System creates Agent under desktop Session, and the address of Agent and service routine will be passed to The information that Agent process shows passes to api function as parameter, and then completes under desktop Session The establishment of Agent.Simultaneously as the Session and desktop Session residing for service routine is differed, The communication of service routine and desktop is realized by Agent, and then realizes the communication across Session so that When service routine needs to display to the user that information, create window and show the information, so as to realize Service routine shows the requirement of user interface on the table.In addition, service routine can be by the ground of application program Location passes to Agent as parameter, and so, the application program for passing to Agent as parameter can be with Request administrator right, can show text prompt information on the table by Agent, also can be on the table Show video information.
As shown in Fig. 2 being the communication system of the service routine with desktop of the Windows operating system of the present invention The structural representation of embodiment.With reference to Fig. 2, the system 200 includes:
Calling module 21, calls the api function of Windows operating system to ask for service routine Windows operating system creates Agent under desktop Session;
Transfer module 22, in API Function, service routine transmit the address of the Agent and The parameter information of the Agent;
Creation module 23, receives for Windows operating system and asks, and is checking address and parameter letter Cease for it is effective when, the Agent is created under desktop Session;
Starting module 24, for starting during the Agent, Agent inspection command line parameter, and The information shown needed for extracting after analyzing the command line parameter;
Display module 25, creates window for the Agent and shows the information.
In the present embodiment, Windows operating system includes Windows Vista operating systems, Under Windows operating system, the Session residing for service routine is differed with desktop Session, Agent The executable program that the executable program write by any language, such as C language, JAVA etc. are write, its Information source is command line parameter.
In the present embodiment, in transfer module, the parameter information needs to pass to the agency for service routine The information that program process shows, its organizational form freely can be defined.In addition, service routine will can also be answered Agent is passed to as parameter with the address of program, so, answering for Agent is passed to as parameter Administrator right can be asked with program, now, address of the parameter information for application program.
In the present embodiment, in creation module, as the Agent is created under desktop Session, During its operation, the access rights with UI under desktop Session (User Interface, user interface) resource, Therefore the Agent can carry out display information with user interface.
In the present embodiment, the information is visual resources, can such as be text message, or video is believed Breath etc..
Further, in the present embodiment, after Agent establishment window shows the information, user checks The information, Agent terminate operation.
In the present embodiment, service routine asks to be by calling the api function of Windows operating system System creates Agent under desktop Session, and the address of Agent and service routine will be passed to The information that Agent process shows passes to api function as parameter, and then completes under desktop Session The establishment of Agent.Simultaneously as the Session and desktop Session residing for service routine is differed, Realize the communication of service routine and desktop by Agent, so realize under Windows operating system across The communication of Session so that when service routine needs to display to the user that information, creates window and shows this Information, so as to realize that service routine shows the requirement of user interface on the table.In addition, service routine Agent can be passed to using the address of application program as parameter, so, agency is passed to as parameter The application program of program can ask administrator right, can show text prompt on the table by Agent Information, also can show video information on the table.
The above, the only present invention preferably specific embodiment, but protection scope of the present invention not office Be limited to this, any those familiar with the art the invention discloses technical scope in, can be easily The change or replacement expected, should all be included within the scope of the present invention.Therefore, protection of the invention Scope should be defined by scope of the claims.

Claims (10)

1. the communication means of a kind of service routine of Windows operating system and desktop, it is characterised in that The method comprising the steps of:
S1, the service routine call the api function of the Windows operating system described to ask Windows operating system creates Agent under desktop Session;
S2, when the api function is called, the service routine transmits the address of the Agent and institute State the parameter information of Agent;
S3, the Windows operating system receive request, and are checking the address and parameter letter Cease for it is effective when, create the Agent under the desktop Session.
2. the communication party according to the service routine of the Windows operating system described in claim 1 and desktop Method, it is characterised in that the information source of the Agent is command line parameter.
3. the communication party according to the service routine of the Windows operating system described in claim 2 and desktop Method, it is characterised in that in step S2, the parameter information are that the service routine needs to pass to The Agent processes the information for showing.
4. the communication party according to the service routine of the Windows operating system described in claim 3 and desktop Method, it is characterised in that methods described is further included:
When S4, the startup Agent, the Agent checks the command line parameter, and in analysis The described information shown needed for extracting after the command line parameter;
S5, the Agent create window and show described information.
5. the communication party according to the service routine of the Windows operating system described in claim 4 and desktop Method, it is characterised in that described information is visual resources.
6. the communication system of a kind of service routine of Windows operating system and desktop, it is characterised in that The system includes:
Calling module, calls the api function of the Windows operating system to ask for the service routine The Windows operating system is asked to create Agent under desktop Session;
Transfer module, for when the api function is called, the service routine transmits the Agent Address and the Agent parameter information;
Creation module, for the Windows operating system receive ask, and check the address and When the parameter information is effective, the Agent is created under the desktop Session.
7. the communication system according to the service routine of the Windows operating system described in claim 6 and desktop System, it is characterised in that the information source of the Agent is command line parameter.
8. the communication system according to the service routine of the Windows operating system described in claim 7 and desktop System, it is characterised in that the parameter information needs to pass to the Agent process for the service routine The information of display.
9. the communication system according to the service routine of the Windows operating system described in claim 8 and desktop System, it is characterised in that the system also includes:
Starting module, for starting during the Agent, the Agent checks the command line parameter, And the described information shown needed for extracting after the command line parameter is analyzed;
Display module, creates window for the Agent and shows described information.
10. the communication according to the service routine of the Windows operating system described in claim 9 and desktop System, it is characterised in that described information is visual resources.
CN201510590764.5A 2015-09-17 2015-09-17 The communication means and system of a kind of service routine of Windows operating system and desktop Pending CN106547630A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510590764.5A CN106547630A (en) 2015-09-17 2015-09-17 The communication means and system of a kind of service routine of Windows operating system and desktop

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510590764.5A CN106547630A (en) 2015-09-17 2015-09-17 The communication means and system of a kind of service routine of Windows operating system and desktop

Publications (1)

Publication Number Publication Date
CN106547630A true CN106547630A (en) 2017-03-29

Family

ID=58361588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510590764.5A Pending CN106547630A (en) 2015-09-17 2015-09-17 The communication means and system of a kind of service routine of Windows operating system and desktop

Country Status (1)

Country Link
CN (1) CN106547630A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681662A (en) * 2018-05-17 2018-10-19 阿里巴巴集团控股有限公司 A kind of method and device of installation procedure

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927222A (en) * 2013-12-31 2014-07-16 瑞达信息安全产业股份有限公司 Graph coprocessing method and graph coprocessing system used for client side and server side
US20140317537A1 (en) * 2011-12-22 2014-10-23 Tencent Technology (Shenzhen) Company Limited Browser based application program extension method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140317537A1 (en) * 2011-12-22 2014-10-23 Tencent Technology (Shenzhen) Company Limited Browser based application program extension method and device
CN103927222A (en) * 2013-12-31 2014-07-16 瑞达信息安全产业股份有限公司 Graph coprocessing method and graph coprocessing system used for client side and server side

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HIGHYYY网友: "VS与Win7共舞:系统服务的Session 0隔离", 《CSDN博客》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681662A (en) * 2018-05-17 2018-10-19 阿里巴巴集团控股有限公司 A kind of method and device of installation procedure
CN108681662B (en) * 2018-05-17 2022-04-29 创新先进技术有限公司 Method and device for installing program

Similar Documents

Publication Publication Date Title
US9021507B2 (en) Dynamic use of data across multiple programs
CN109213611B (en) Cross-process communication method, device, terminal and storage medium
CN105760045A (en) Application program login method, application program login device and terminal
CN103442138A (en) Voice control method, device and terminal
CN104572822B (en) Text shows method and device
US20160316020A1 (en) Web page information presentation method and system
CN105718313A (en) Application operation method and device
US10216601B2 (en) Agent dynamic service
CN103365840A (en) Web-based screenshot taking method and device
CN103513858A (en) Remote assistance method and device
CN109656799B (en) Test method and device
CN103838375A (en) Terminal input method and terminal
CN110414687A (en) A kind of method and apparatus for the training of deep learning frame distribution
CN111897502A (en) Split screen control system and method
WO2022262517A1 (en) Watermark information display method and apparatus, electronic device, and computer-readable medium
CN108023905B (en) Internet of things application system and method
CN106547630A (en) The communication means and system of a kind of service routine of Windows operating system and desktop
CN110893616B (en) Remote control method and device, computer equipment and storage medium
KR102482044B1 (en) some kind of data processing
KR20130108952A (en) Implementation method of pip by using separate application package on android platform
CN112016062A (en) Method for creating workspace on android device and android device
US9959195B2 (en) Dynamic instrumentation of WSGI applications
CN112596824A (en) Information interaction method and device, electronic equipment and storage medium
CN111522599A (en) Method and apparatus for transmitting information
CN108459890B (en) Interface display method and device for application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170329

RJ01 Rejection of invention patent application after publication