CN109358938A - Method, apparatus, equipment and the storage medium on windows application software pinned task column - Google Patents

Method, apparatus, equipment and the storage medium on windows application software pinned task column Download PDF

Info

Publication number
CN109358938A
CN109358938A CN201811156502.8A CN201811156502A CN109358938A CN 109358938 A CN109358938 A CN 109358938A CN 201811156502 A CN201811156502 A CN 201811156502A CN 109358938 A CN109358938 A CN 109358938A
Authority
CN
China
Prior art keywords
taskbar
fixed
application software
task column
pinned task
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
CN201811156502.8A
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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201811156502.8A priority Critical patent/CN109358938A/en
Publication of CN109358938A publication Critical patent/CN109358938A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

A kind of method that the present invention discloses Windows application software pinned task column, this method comprises: creation pinned task column program;Pinned task column program is packaged into the executable program of exe format;The specified path for needing the application software fixed to taskbar and parameter;The security level of the application software is set;The application software calls the executable program by order line;Shield the black surround that the order line calls pop-up;Run the pinned task column program of the creation.The step of present invention also proposes a kind of device on pinned task column, which executes the method.The step of present invention proposes a kind of computer equipment, and processor executes the method.The present invention also provides a kind of computer readable storage medium, the step of computer program executes the method.The present invention by IShellDISpatch interface realize in Windows10 system it is more convenient, faster, for greater flexibility by application software be fixed to taskbar function.The invention belongs to Internet PC client application development fields.

Description

Method, apparatus, equipment and the storage medium on windows application software pinned task column
Technical field
This method belongs to Internet PC client application development field, and in particular to a kind of Windows application software is fixed Method, apparatus, computer equipment and the storage medium of taskbar.
Background technique
With internet development, user requires the use of computer more convenient, therefore pinned task column mode also generates. It is sent in taskbar after installed user program or in start menu interface by shortcut, so that user be made not need Point open shop catalogue opens client, and the mode on this pinned task column substantially increases the convenience that user uses computer.
Traditional pinned task column mode is using registration table writing mode.I.e. in registration table path: HKEY_LOCAL_ MACHINE SOFTWARE Microsoft Windows CurrentVersion write-in Windows application in Explorer The operation program and Starting mode of software.
However after Windows10 system, for security of system, use is given the right for being fixed to taskbar by Microsoft Family, so not providing API directly to provide registration table taskbar writing mode.Therefore how in Windows10 system energy side Just quickly by application software be fixed to taskbar, how using pinned task column as the acceptable function of security of system, together When how it is more flexible using pinned task column mode be such as arranged pinned task column icon etc. be all need solve ask Topic.
Summary of the invention
In view of this, the present invention provides a kind of method, apparatus on Windows application software pinned task column, equipment and Storage medium, to solve the problems, such as that Windows10 system software can not fast be fixed to taskbar.
The embodiment of the present invention in a first aspect, providing a kind of method on Windows application software pinned task column, the party Method specifically includes following technical solution:
S1, creation pinned task column program, pinned task column program are searched system fixation from Shell DLL and are taken office Business column/cancel fixed movement full name from taskbar, and Windows application software is executed by IShellDispatch interface Fixed to taskbar/cancel fixed movement from taskbar;
S2, the executable program that pinned task column program is packaged into exe format;
S3, the specified path for needing the application software fixed to taskbar, and corresponding pinned task column parameter;
S4, initialization com component, and the security level for needing the application software fixed to taskbar is set;
S5, the application software needed fixed to taskbar call can be performed for the pinned task column by order line The application software path needed fixed to taskbar and pinned task column parameter are passed to the pinned task column by program Executable program;
S6, the shielding order line call the black surround of pop-up;
S7, the pinned task column executable program operating procedure S1 described in pinned task column program, and realize described in Application software is fixed to taskbar/cancel fixed function from taskbar.
In the above-mentioned technical solutions, system is searched described in step S1 from Shell DLL and is fixed to taskbar/from taskbar Cancel the detailed process of fixed movement full name are as follows: use LoadString interface, specify phase for the LoadString interface Answer character string to number, obtain the summary info of file, by searching for the file summary info obtain be fixed to taskbar/ Cancel fixed movement full name from taskbar.
In the above-mentioned technical solutions, Windows application software is executed by IShellDispatch interface described in step S1 Fixed to taskbar/cancel the detailed process of fixed movement from taskbar are as follows:
A. parsing needs the file path of the Windows application software fixed to taskbar, obtains file and filename;
B. the NameSpace method provided by IShellDispatch interface obtains the Shell file of the file Object is pressed from both sides, then the Shell folder object is parsed by ParseName method, obtains the Shell file pair of the filename As;
C. traverse the Shell file object, according to finding be fixed to taskbar/from taskbar cancel fix Full name is acted, the operation of pinned task column kernel, the pinned task are executed by the DoIt method that IShellDispatch is provided Column kernel operation include be fixed to taskbar/from taskbar cancel fix, and setting be fixed to taskbar icon.
In the above-mentioned technical solutions, pinned task column parameter described in step S3 includes being fixed to taskbar/take from taskbar Disappear fixation, and the icon position fixed to taskbar.
In the above-mentioned technical solutions, application software security level is set described in step S4, is directly disposed as administrator right Security level.
In the above-mentioned technical solutions, it is realized in the step S5 by the ShellExecuteA function that Windows is provided It is described can by need that application software path fixed to taskbar and pinned task column parameter pass to the pinned task column Execute program.
In the above-mentioned technical solutions, the detailed process of the step S6 are as follows: set program linker entry entrance function It is set to mainCRTStartup, and sets Windows mode for linker subsystem, is called with shielding the order line The dos window of pop-up.
The second aspect of the embodiment of the present invention provides a kind of device on Windows application software pinned task column, the dress It sets including the following contents:
Creation module: creation pinned task column program, it is solid that pinned task column program searches system from Shell DLL Surely taskbar/cancel fixed movement full name from taskbar is arrived, and Windows application is executed by IShellDispatch interface Software is fixed to taskbar/cancel fixed movement from taskbar;
Packetization module: pinned task column program is packaged into the executable program of exe format;
Specified module: the specified path for needing the application software fixed to taskbar, and corresponding pinned task column ginseng Number;
Setup module: initialization com component, and the safety etc. for needing the application software fixed to taskbar is set Grade;
Calling module: described that the application software fixed to taskbar is needed to call the pinned task column by order line The application software path needed fixed to taskbar and pinned task column parameter are passed to the fixation by executable program The executable program of taskbar;
Shroud module: the black surround that the order line calls pop-up is shielded;
Module: pinned task column program described in the executable program operation creation module on the pinned task column is run, and Realize that the application software is fixed to taskbar/cancel fixed function from taskbar.
The third aspect of the embodiment of the present invention provides a kind of computer equipment, including memory, processor and storage In the memory and the computer program that can run on the processor, the processor execute the computer program The step of Shi Shixian such as first aspect of embodiment of the present invention the method.
The fourth aspect of the embodiment of the present invention, provides a kind of computer readable storage medium, described computer-readable to deposit Storage media is stored with computer program, realizes that first aspect of the embodiment of the present invention mentions when the computer program is executed by processor The step of the method for confession.
The invention has the beneficial effects that: pinned task column program is created by IShellDispatch interface, then Pinned task column program is individually packaged into the executable program of exe format, Windows application software passes through order line tune It is quickly and easily realized with the executable program on the pinned task column fixed to taskbar/is cancelled from taskbar and is fixed Function, while providing and the mode that pinned task column icon etc. flexibly uses pinned task column is such as set, on pinned task column During windows application software is promoted to administrator right grade, ensuring safety property.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the flow diagram of pinned task column provided in an embodiment of the present invention method;
Fig. 2 is the process that IShellDispatch interface provided in an embodiment of the present invention executes the fixed movement of fixation/cancellation Schematic diagram;
Fig. 3 is the structural schematic diagram of pinned task column provided in an embodiment of the present invention device;
Fig. 4 is computer equipment structural schematic diagram provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides method, apparatus, equipment and the storages on a kind of Windows application software pinned task column Medium, for application software to be conveniently and efficiently fixed to taskbar in Windows10 system.
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.Such as It is such used in this specification and in the appended claims, term " if " can be interpreted according to context " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if Detect [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to determination " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention Range.
Referring to Figure 1, the flow diagram of the method on Windows application software pinned task column provided by the invention, should Method the following steps are included:
S1, creation pinned task column program, pinned task column program are searched system fixation from Shell DLL and are taken office Business column/cancel fixed movement full name from taskbar, and Windows application software is executed by IShellDispatch interface and is consolidated Surely taskbar/cancel fixed movement from taskbar is arrived;
Shell is computer shell, is the outermost layer of operating system.Shell merges programming language to control process and text Part, and start and control other programs.COM (Component Object Model, The Component Object Model) is simultaneously A kind of binary system and network standard of Microsoft creation.The program on pinned task column is created in Windows system, this is solid Determining taskbar program can receive the file path and corresponding actions parameter that Windows application software passes over, the pinned task Column program using shell and com component resolution file path and can execute phase according to these file paths and corresponding actions parameter It should act.
Optionally, searching system described in step S1 from Shell DLL, to be fixed to taskbar/cancel from taskbar fixed Act the detailed process of full name are as follows: use LoadString interface, specify respective symbols Series Code for the LoadString interface Number, obtain the summary info of file, by searching for the file summary info obtain be fixed to taskbar/from taskbar cancel Fixed movement full name.Specifically, each file of Windows system has multiple executable movements, such as some file of right button Know the corresponding movement of each file.Shell DLL is the dynamic that Windows operating system is supplied to that user inquires Shell Library file is linked, it can be by Shell DLL, using LoadString interface, for the specified corresponding money of the LoadString interface Character string number uID in source, can be obtained the summary info of file, can be obtained by searching for the document of application program Fixed to taskbar/cancel from taskbar and fix movement full name.
Optionally, Windows application software is executed by IShellDispatch interface described in step S1 and is fixed to task The detailed process of the fixed movement in column/cancel from taskbar are as follows:
A. parsing needs the file path of the Windows application software fixed to taskbar, obtains file and filename;
B. the NameSpace method provided by IShellDispatch interface obtains the Shell file of the file Object is pressed from both sides, then the Shell folder object is parsed by ParseName method, obtains the Shell file pair of the filename As;
C. traverse the Shell file object, according to finding be fixed to taskbar/from taskbar cancel fix Full name is acted, the operation of pinned task column kernel, the pinned task are executed by the DoIt method that IShellDispatch is provided Column kernel operation include be fixed to taskbar/from taskbar cancel fix, and setting be fixed to taskbar icon.S2, by institute State the executable program that pinned task column program is packaged into exe format;
In order to keep pinned task column program more abstract, can be subject in different application programs using therefore will be described solid Determine the executable program that taskbar is individually packaged into exe format, facilitates and different needing to be fixed to taskbar or from taskbar It is called directly when cancelling fixed.
S3, the specified path for needing the application software fixed to taskbar, and corresponding pinned task column parameter;
Optional, pinned task column parameter described in step S3 includes being fixed to taskbar/cancel from taskbar and fixing, with And the icon position fixed to taskbar.
When Windows application software needs to be fixed to taskbar or cancels fixed from taskbar, the fixation is being called Before the executable program of taskbar, path and the corresponding pinned task column action parameter of Windows application software are preassigned, To pass to the executable program on the pinned task column.
S4, initialization com component, and the security level for needing the application software fixed to taskbar is set;
Optionally, application software security level is set described in step S4, is directly disposed as administrator right security level.
S5, the application software needed fixed to taskbar call can be performed for the pinned task column by order line The application software path needed fixed to taskbar and pinned task column parameter are passed to the pinned task column by program Executable program;
Optionally, described will need admittedly is realized by the ShellExecuteA function that Windows is provided in the step S5 Surely the application software path and pinned task column parameter of arriving taskbar pass to the executable program on the pinned task column.Specifically , it is assumed that PinToTask.exe is the pinned task column executable program of exe format that the present invention is created and is packaged .. Dy_PCClient.exe is to need the application software path fixed to taskbar, and application software is provided by Windows Application software path and pinned task column parameter are passed to pinned task column proposed by the present invention by ShellExecuteA method Executable program PinToTask.exe.
S6, the shielding order line call the black surround of pop-up;
Optionally, the detailed process of the step S6 are as follows: set program linker entry entrance function to MainCRTStartup, and Windows mode is set by linker subsystem, pop-up is called to shield the order line Dos window.
Due to being the executable program on Windows application journey software transfer pinned task column by the way of in step S5, It uses order line to call when calling, black surround can be generated and flashes across, bad experience is brought to user, since operation is After bulk cargo carries application program, the entrance execution that initial work branches to program is finished.The default entry point of program is by linking The entrance function of program setting, different linker selections is also not quite similar.The present invention adds option using linker, entirely Linker mode include Console and Windows option, entrance separately include WinMainCRTStartup and MainCRTStartup, when by two kinds of option mode mixtures, linker can be shielded command Window.The present invention pass through by Program linker entry entrance function is set as mainCRTStartup, and sets Windows for linker subsystem Mode thus can achieve the effect for not popping up dos window.
S7, the pinned task column executable program operating procedure S1 described in pinned task column program, and realize described in Application software is fixed to taskbar/cancel fixed function from taskbar.
After Windows application software calls the executable program on pinned task column, the pinned task column be can be performed Pinned task column program described in program, that is, operating procedure S1 is realized and is fixed to taskbar/cancel fixed function from taskbar, together When being fixed to taskbar the settable icon fixed to taskbar.
Refer to Fig. 2, Fig. 2 is that IShellDispatch interface executes Windows application software and is fixed to taskbar/from appointing The flow diagram of fixed movement is cancelled on business column, specifically executes step are as follows:
S201, resolution file path.By incoming file path name, parsing needs the Windows fixed to taskbar The file path of application software.Such as: C: Program Files desktop.ini, by find it is last " " can parse Obtain filename and file.
S202, Shell file object is obtained.It is obtained by the NameSpace method that IShellDispatch interface provides The Shell folder object of the file, then the Shell folder object is parsed by ParseName method, it obtains The Shell file object of the filename.Specifically, the NameSpace provided by IShellDispatch interface can be obtained The Folder object of specified folder, then FolderItem pairs of technical routine in Folder object is obtained by ParseName As.
S203, traversal Shell file object, and execute the movement of pinned task column.Traverse the Shell file object, root It is investigated that the taskbar/from taskbar of being fixed to found cancels fixed movement full name, pass through what IShellDispatch was provided DoIt method executes the operation of pinned task column kernel, and kernel operation in the pinned task column includes being fixed to taskbar/from task Column, which is cancelled, to be fixed, and setting is fixed to the icon of taskbar.
Fig. 3, a kind of device on Windows application software pinned task column proposed by the present invention are referred to, which includes:
Creation module 310: creation pinned task column program, pinned task column program search system from Shell DLL System is fixed to taskbar/cancel fixed movement full name from taskbar, and executes Windows by IShellDispatch interface Application software is fixed to taskbar/cancel fixed movement from taskbar;
Packetization module 320: pinned task column program is packaged into the executable program of exe format;
Specified module 330: the specified path for needing the application software fixed to taskbar, and corresponding pinned task column Parameter;
Setup module 340: initialization com component, and the safety for needing the application software fixed to taskbar is set Grade;
Calling module 350: described that the application software fixed to taskbar is needed to call the pinned task by order line The executable program on column passes to the application software path needed fixed to taskbar and pinned task column parameter described The executable program on pinned task column;
Shroud module 360: the black surround that the order line calls pop-up is shielded;
Run module 370: pinned task column described in the executable program operation creation module 310 on the pinned task column Program, and realize that the application software is fixed to taskbar/cancel fixed function from taskbar.
Refer to Fig. 4, a kind of computer equipment structural schematic diagram provided by the invention, comprising: memory 410, processor 420 and system bus 430, the memory 410 includes the program 4101 run of storage thereon, those skilled in the art It is appreciated that terminal device structure shown in Fig. 4 does not constitute the restriction to terminal device, may include than illustrate it is more or Less component perhaps combines certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 4 to terminal device:
Memory 410 can be used for storing software program and module, and processor 420 is stored in memory 410 by operation Software program and module, thereby executing the various function application and data processing of terminal.Memory 410 can mainly include Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for terminal Data (such as audio data, phone directory etc.) etc..In addition, memory 410 may include high-speed random access memory, may be used also To include nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-states Part.
Program 4101 is run comprising method of data synchronization on memory 410, and the program 4101 that runs can be with It is divided into one or more module/units, one or more of module/units are stored in the memory 410, and It is executed by processor 420, with the transmitting of completion notice and obtains notice realization process, one or more of module/units can To be the series of computation machine program instruction section that can complete specific function, the instruction segment is for describing the computer program Implementation procedure in 4101 equipment described in Fig. 4.For example, the computer program 4101 can be divided into creation module, beat Packet module, specified module, setup module, calling module, shroud module, operation module etc..
Processor 420 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection A part by running or execute the software program and/or module that are stored in memory 410, and calls and is stored in storage Data in device 410 execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Optionally, it handles Device 420 may include one or more processing units;Preferably, processor 420 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 420.
System bus 430 is for connection to each functional component of computer-internal, can with data information, address information, Information is controlled, type can be such as pci bus, isa bus, VESA bus.The instruction of processor 420 passes through bus It is transferred to memory 410,410 feedback data of memory is responsible for processor 420 and memory to processor 420, system bus 430 Data, instruction interaction between 410.Certain system bus 430 can also access other equipment, such as network interface, display are set It is standby etc..
The terminal device should include at least CPU, chipset, memory, disk system etc., other component parts are herein no longer It repeats.
In embodiments of the present invention, what processor 420 included by the terminal executed runs program specifically:
S1, creation pinned task column program, pinned task column program are searched system fixation from ShellDll and are taken office Business column/cancel fixed movement full name from taskbar, and Windows application software is executed by IShellDispatch interface Fixed to taskbar/cancel fixed movement from taskbar;
S2, the executable program that pinned task column program is packaged into exe format;
S3, the specified path for needing the application software fixed to taskbar, and corresponding pinned task column parameter;
S4, initialization com component, and the security level for needing the application software fixed to taskbar is set;
S5, the application software needed fixed to taskbar call can be performed for the pinned task column by order line The application software path needed fixed to taskbar and pinned task column parameter are passed to the pinned task column by program Executable program;
S6, the shielding order line call the black surround of pop-up;
S7, the pinned task column executable program operating procedure S1 described in pinned task column program, and realize described in Application software is fixed to taskbar/cancel fixed function from taskbar.
Further, searching system described in step S1 from Shell DLL, to be fixed to taskbar/cancel from taskbar solid The detailed process of fixed movement full name are as follows: use LoadString interface, specify respective symbols for the LoadString interface Series Code number obtains the summary info of file, obtains by searching for the summary info of the file and is fixed to taskbar/from taskbar Cancel fixed movement full name.
Further, the fixation of Windows application software is executed by IShellDispatch interface described in step S1 to take office It is engaged in the detailed process of the fixed movement in column/cancel from taskbar are as follows:
A. parsing needs the file path of the Windows application software fixed to taskbar, obtains file and filename;
B. the NameSpace method provided by IShellDispatch interface obtains the Shell file of the file Object is pressed from both sides, then the Shell folder object is parsed by ParseName method, obtains the Shell file pair of the filename As;
C. traverse the Shell file object, according to finding be fixed to taskbar/from taskbar cancel fix Full name is acted, the operation of pinned task column kernel, the pinned task are executed by the DoIt method that IShellDispatch is provided Column kernel operation include be fixed to taskbar/from taskbar cancel fix, and setting be fixed to taskbar icon.
Further, pinned task column parameter described in step S3 include be fixed to taskbar/from taskbar cancel fix, with And the icon position fixed to taskbar.
Further, application software security level is set described in step S4, is directly disposed as administrator right security level.
Further, the ShellExecuteA function realization provided in the step S5 by Windows is described need to The application software path and pinned task column parameter that be fixed to taskbar pass to the executable program on the pinned task column.
Further, the detailed process of the step S6 are as follows: set program linker entry entrance function to MainCRTStartup, and Windows mode is set by linker subsystem, it shields the order line and calls pop-up Dos window.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that each embodiment described in conjunction with the examples disclosed in this document Module, unit and/or method and step can be realized with the combination of electronic hardware or computer software and electronic hardware.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in embodiments of the present invention can integrate in one processing unit, it is also possible to each A unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit was both It can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-described embodiment side All or part of the process in method can also instruct relevant hardware to complete, the computer by computer program Program can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each The step of a embodiment of the method.Wherein, the computer program includes computer program code, and the computer program code can Think source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium can be with It include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, light that can carry the computer program code Disk, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer The content that readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as It does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium in certain jurisdictions.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of method on Windows application software pinned task column, which comprises the following steps:
S1, creation pinned task column program, pinned task column program search system fixed to task from Shell DLL Column/cancel fixed movement full name from taskbar, and Windows application software is executed by IShellDispatch interface and is fixed To taskbar/cancel fixed movement from taskbar;
S2, the executable program that pinned task column program is packaged into exe format;
S3, the specified path for needing the application software fixed to taskbar, and corresponding pinned task column parameter;
S4, initialization com component, and the security level for needing the application software fixed to taskbar is set;
S5, the executable journey for needing the application software fixed to taskbar to call the pinned task column by order line The application software path needed fixed to taskbar and pinned task column parameter are passed to the pinned task column by sequence Executable program;
S6, the shielding order line call the black surround of pop-up;
S7, the pinned task column executable program operating procedure S1 described in pinned task column program, and realize the application Software is fixed to taskbar/cancel fixed function from taskbar.
2. a kind of method on Windows application software pinned task column according to claim 1, which is characterized in that the step In rapid S1, the system of searching from Shell DLL is fixed to taskbar/cancel the specific of fixed movement full name from taskbar Process are as follows:
Using LoadString interface, respective symbols Series Code number is specified for the LoadString interface, obtains the abstract of file Information obtains by searching for the summary info of the file and is fixed to taskbar/cancel fixed movement full name from taskbar.
3. a kind of method on Windows application software pinned task column according to claim 1, which is characterized in that the step In rapid S1, it is described Windows application software executed by IShellDispatch interface be fixed to taskbar/from taskbar cancel The detailed process of fixed movement are as follows:
A. parsing needs the file path of the Windows application software fixed to taskbar, obtains file and filename;
B. the NameSpace method provided by IShellDispatch interface obtains the Shell file pair of the file As, then by the ParseName method parsing Shell folder object, obtain the Shell file object of the filename;
C. the Shell file object is traversed, taskbar/from taskbar is fixed to according to finding and cancels fixed movement Full name executes pinned task column kernel by the DoIt method that IShellDispatch is provided and operates, in the pinned task column Core operation include be fixed to taskbar/from taskbar cancel fix, and setting be fixed to taskbar icon.
4. a kind of method on Windows application software pinned task column according to claim 1, which is characterized in that step S3 Pinned task column parameter includes being fixed to taskbar/cancel from taskbar and fixing, and the institute of the icon fixed to taskbar In position.
5. a kind of method on Windows application software pinned task column according to claim 1, which is characterized in that step S4 The setting application software security level, is directly disposed as administrator right security level.
6. a kind of method on Windows application software pinned task column according to claim 1, which is characterized in that the step The application software that will need to be fixed to taskbar is realized by the ShellExecuteA function that Windows is provided in rapid S5 Path and pinned task column parameter pass to the executable program on the pinned task column.
7. a kind of method on Windows application software pinned task column according to claim 1, which is characterized in that the step The detailed process of rapid S6 are as follows:
MainCRTStartup is set by program linker entry entrance function, and sets linker subsystem to Windows mode, to shield the dos window that the order line calls pop-up.
8. a kind of device on Windows application software pinned task column, which is characterized in that including the following contents:
Creation module: creation pinned task column program, pinned task column program are searched system from Shell DLL and are fixed to Taskbar/cancel fixed movement full name from taskbar, and Windows application software is executed by IShellDispatch interface Fixed to taskbar/cancel fixed movement from taskbar;
Packetization module: pinned task column program is packaged into the executable program of exe format;
Specified module: the specified path for needing the application software fixed to taskbar, and corresponding pinned task column parameter;
Setup module: initialization com component, and the security level for needing the application software fixed to taskbar is set;
Calling module: described that the application software fixed to taskbar is needed to call holding for the pinned task column by order line The application software path needed fixed to taskbar and pinned task column parameter are passed to the pinned task by line program The executable program on column;
Shroud module: the black surround that the order line calls pop-up is shielded;
Module: pinned task column program described in the executable program operation creation module on the pinned task column is run, and is realized The application software is fixed to taskbar/cancel fixed function from taskbar.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to Described in any one of 7 the step of the method on Windows application software pinned task column.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization Windows application software as described in any one of claims 1 to 7 when the computer program is executed by processor The step of method on pinned task column.
CN201811156502.8A 2018-09-30 2018-09-30 Method, apparatus, equipment and the storage medium on windows application software pinned task column Pending CN109358938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811156502.8A CN109358938A (en) 2018-09-30 2018-09-30 Method, apparatus, equipment and the storage medium on windows application software pinned task column

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811156502.8A CN109358938A (en) 2018-09-30 2018-09-30 Method, apparatus, equipment and the storage medium on windows application software pinned task column

Publications (1)

Publication Number Publication Date
CN109358938A true CN109358938A (en) 2019-02-19

Family

ID=65348506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811156502.8A Pending CN109358938A (en) 2018-09-30 2018-09-30 Method, apparatus, equipment and the storage medium on windows application software pinned task column

Country Status (1)

Country Link
CN (1) CN109358938A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327725A (en) * 2021-12-28 2022-04-12 珠海豹趣科技有限公司 Personalized taskbar display method and device applied to Windows10 system
CN117130697A (en) * 2023-03-28 2023-11-28 荣耀终端有限公司 Method and device for fixing application on taskbar

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266608A (en) * 2008-05-09 2008-09-17 魏新成 Method for on-line searching for computer screen displayed text character string
CN102918484A (en) * 2010-06-11 2013-02-06 微软公司 Web application pinning including task bar pinning
US20150103007A1 (en) * 2013-10-14 2015-04-16 Adaptable Keys A/S Computer keyboard including a control unit and a keyboad screen
US20160282156A1 (en) * 2015-03-23 2016-09-29 Incoming Pty Ltd Energy efficient mobile context collection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266608A (en) * 2008-05-09 2008-09-17 魏新成 Method for on-line searching for computer screen displayed text character string
CN102918484A (en) * 2010-06-11 2013-02-06 微软公司 Web application pinning including task bar pinning
US20150103007A1 (en) * 2013-10-14 2015-04-16 Adaptable Keys A/S Computer keyboard including a control unit and a keyboad screen
US20160282156A1 (en) * 2015-03-23 2016-09-29 Incoming Pty Ltd Energy efficient mobile context collection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHIEF1985: "mainCRTStartup 如何屏蔽控制台应用程序的窗口", 《HTTPS://BLOG.CSDN.NET/CHIEF1985/ARTICLE/DETAILS/2295022》 *
CHUHUIWU535717: "Win 10 固定程序到任务栏开始菜单的代码", 《HTTPS://BLOG.CSDN.NET/CHUHUIWU535717/ARTICLE/DETAILS/100970343》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114327725A (en) * 2021-12-28 2022-04-12 珠海豹趣科技有限公司 Personalized taskbar display method and device applied to Windows10 system
CN114327725B (en) * 2021-12-28 2024-03-22 珠海豹趣科技有限公司 Personalized taskbar display method and device applied to Windows10 system
CN117130697A (en) * 2023-03-28 2023-11-28 荣耀终端有限公司 Method and device for fixing application on taskbar

Similar Documents

Publication Publication Date Title
US8407584B1 (en) Stable and secure use of content scripts in browser extensions
CN105354014B (en) Application interface renders methods of exhibiting and device
CN106649084B (en) The acquisition methods and device of function call information, test equipment
US8972946B2 (en) Interactive semi-automatic test case maintenance
JP6192534B2 (en) Virtual application extension point
CN105068932B (en) A kind of detection method of Android application programs shell adding
US8799866B2 (en) Automatic generation of user interfaces
US8589865B2 (en) Composite applications using service component architecture model and open virtualization format
US7908560B2 (en) Method and system for cross-screen component communication in dynamically created composite applications
US20160224586A1 (en) System and methods thereof for dynamically updating the contents of a folder on a device
JP2016527578A (en) Application scenario identification method, power consumption management method, apparatus, and terminal device
CN105354013A (en) Application interface rendering method and apparatus
US10229032B2 (en) Break on next called function or method in java debugger agent
US20150082208A1 (en) Multi-level user interface theming
US9038019B2 (en) Paige control for enterprise mobile applications
US11392395B2 (en) Generating and presenting contextual user interfaces on devices with foldable displays
CN108762956A (en) Obtain method, server, mobile terminal and the storage medium of Native local datas
CN109800367A (en) Webpage loading method, device, computer equipment and storage medium
CN106874028A (en) Using dispositions method and device
CN111259301A (en) Method, device, equipment and storage medium for rendering elements in HTML page
CN104883384A (en) Method and apparatus for providing end capabilities of client for light application
CN109358938A (en) Method, apparatus, equipment and the storage medium on windows application software pinned task column
CN104346261B (en) A kind of the unloading reminding method and device of application program
CN109857537A (en) Background service starts method, apparatus, medium and electronic equipment
US11822872B2 (en) Rendering based on a document object model

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190219