CN108804191A - A kind of acquisition Windows operations programme diagram calibration method - Google Patents

A kind of acquisition Windows operations programme diagram calibration method Download PDF

Info

Publication number
CN108804191A
CN108804191A CN201810595582.0A CN201810595582A CN108804191A CN 108804191 A CN108804191 A CN 108804191A CN 201810595582 A CN201810595582 A CN 201810595582A CN 108804191 A CN108804191 A CN 108804191A
Authority
CN
China
Prior art keywords
functions
icon
windows systems
acquisition
iconinfo
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
CN201810595582.0A
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.)
Shandong Huaruan Goldencis Software Co Ltd
Original Assignee
Shandong Huaruan Goldencis Software 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 Shandong Huaruan Goldencis Software Co Ltd filed Critical Shandong Huaruan Goldencis Software Co Ltd
Priority to CN201810595582.0A priority Critical patent/CN108804191A/en
Publication of CN108804191A publication Critical patent/CN108804191A/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)
  • User Interface Of Digital Computer (AREA)

Abstract

A kind of acquisition Windows operations programme diagram calibration method, includes the following steps:A) W obtains each Process identifier being currently running in current system in process;B) handle of process is returned;C) W obtains the handle of whole modules in the process of specifying;D) process information ICONINFO related with icon is obtained;E) the hbmMas/hbmColor initialization bitmap heads in ICONINFO structures are got;F) the ICONINFO details got are preserved the acquisition that icon is completed at file.It is that the displaying of fate map target is added that process in systems, which needs to show, can intuitively see all operation programs of current system by the icon of acquisition, acquisition and preservation for icon keep icon identical as source program icon colorfulness, the case where distortion.

Description

A kind of acquisition Windows operations programme diagram calibration method
Technical field
The present invention relates to Windows operation program process display techniques fields, and in particular to a kind of acquisition Windows operations Programme diagram calibration method.
Background technology
The program being currently running in current system has very much, and some remote management software needs the process of real time inspection terminal Operating condition in order to more convenient intuitively to user's displaying terminal process needs that process icon shows are added in displaying, because This needs a tool to complete the collection work to carrying out icon, and the icon that in addition can also be obtained by this tool is more intuitive See all operation programs of current system.
Invention content
To overcome the above deficiencies, the invention provides one kind can obtain icon when process needs displaying And the acquisition Windows preserved runs programme diagram calibration method.
Technical solution is used by the present invention overcomes its technical problem:
A kind of acquisition Windows operations programme diagram calibration method, includes the following steps:
A) Windows systems are obtained in current system by the EnumProcesses functions in system and are currently running in process Each Process identifier;
B) Windows systems are currently running process object by the OpenProcess functions opening in system, and return to process Handle;
C) Windows systems are passed to the sentence of return process in step b) by the EnumProcessModules functions in system Handle obtains the handle of whole modules in the process of specifying, by GetModuleBaseName functions in Windows systems and GetModuleFileNameEx functions obtain actual file path and the file name that process is currently running in current system;
D) Windows systems call ExtractIconEx functions to generate the icon handle array of the process, pass through SHGetFileInfo functions obtain the specific icon list of the process, and the process and figure are obtained by GetIconInfo functions Mark related information ICONINFO;
E) Windows systems obtain GetIconInfo functions by one HDC of CreateCompatibleDC function creations Bitmap heads are initialized to the hbmMas/hbmColor in ICONINFO structures, compatible position is obtained by GetDIBits functions Simultaneously made the format that a DIB-device independent bit uses and copied in a buffering area of Windows systems in the position of figure;
F) Windows systems call CreateFile functions and WriteFile functions the ICONINFO details got Preserve into the acquisition that file completes icon.
The beneficial effects of the invention are as follows:By enumerating being currently running program, the practical text of operation process is obtained Part deposit position is realized and is obtained to fate map target by analysis process actual file, and the icon and source program figure of preservation are obtained Mark colorfulness is identical, is not in distortion or fuzzy situation, can intuitively see current system institute by the icon of acquisition There is operation program, can be more convenient to being analyzed into line program service condition, while the icon obtained can be supplied to part Management software is used, more convenient.
Specific implementation mode
The present invention will be further described below.
A kind of acquisition Windows operations programme diagram calibration method, includes the following steps:
A) Windows systems are obtained in current system by the EnumProcesses functions in system and are currently running in process Each Process identifier.
B) Windows systems are currently running process object by the OpenProcess functions opening in system, and return The handle of process.
C) Windows systems are passed to return process in step b) by the EnumProcessModules functions in system Handle obtains the handle of whole modules in the process of specifying, by GetModuleBaseName functions in Windows systems and GetModuleFileNameEx functions obtain actual file path and the file name that process is currently running in current system.
D) Windows systems call ExtractIconEx functions to generate the icon handle array of the process, pass through SHGetFileInfo functions obtain the specific icon list of the process, and the process and figure are obtained by GetIconInfo functions Mark related information ICONINFO.
E) Windows systems are by one HDC of CreateCompatibleDC function creations, GetIconInfo functions The hbmMas/hbmColor initialization bitmap heads in ICONINFO structures are got, are obtained by GetDIBits functions simultaneous Hold the position of bitmap and is made the buffering that the format that a DIB-device independent bit uses copies to Windows systems It is undistorted to ensure that icon subsequently preserves by Qu Zhong.
F) Windows systems call CreateFile functions and WriteFile functions that the ICONINFO got is detailed Information preservation completes the acquisition of icon at file.
It is that the displaying of fate map target is added that process in systems, which needs to show, can intuitively be seen by the icon of acquisition To all operation programs of current system, acquisition and preservation for icon keep icon identical as source program icon colorfulness, do not have The case where distortion.

Claims (1)

1. a kind of acquisition Windows runs programme diagram calibration method, which is characterized in that include the following steps:
A) Windows systems are obtained in current system by the EnumProcesses functions in system and are currently running in process Each Process identifier;
B) Windows systems are currently running process object by the OpenProcess functions opening in system, and return to process Handle;
C) Windows systems are passed to the sentence of return process in step b) by the EnumProcessModules functions in system Handle obtains the handle of whole modules in the process of specifying, by GetModuleBaseName functions in Windows systems and GetModuleFileNameEx functions obtain actual file path and the file name that process is currently running in current system;
D) Windows systems call ExtractIconEx functions to generate the icon handle array of the process, pass through SHGetFileInfo functions obtain the specific icon list of the process, and the process and figure are obtained by GetIconInfo functions Mark related information ICONINFO;
E) Windows systems obtain GetIconInfo functions by one HDC of CreateCompatibleDC function creations Bitmap heads are initialized to the hbmMas/hbmColor in ICONINFO structures, compatible position is obtained by GetDIBits functions Simultaneously made the format that a DIB-device independent bit uses and copied in a buffering area of Windows systems in the position of figure;
F) Windows systems call CreateFile functions and WriteFile functions the ICONINFO details got Preserve into the acquisition that file completes icon.
CN201810595582.0A 2018-06-11 2018-06-11 A kind of acquisition Windows operations programme diagram calibration method Pending CN108804191A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810595582.0A CN108804191A (en) 2018-06-11 2018-06-11 A kind of acquisition Windows operations programme diagram calibration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810595582.0A CN108804191A (en) 2018-06-11 2018-06-11 A kind of acquisition Windows operations programme diagram calibration method

Publications (1)

Publication Number Publication Date
CN108804191A true CN108804191A (en) 2018-11-13

Family

ID=64088183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810595582.0A Pending CN108804191A (en) 2018-06-11 2018-06-11 A kind of acquisition Windows operations programme diagram calibration method

Country Status (1)

Country Link
CN (1) CN108804191A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489049A (en) * 2002-10-11 2004-04-14 华为技术有限公司 Method for monitoring background programme
US20090070404A1 (en) * 2007-09-12 2009-03-12 Richard James Mazzaferri Methods and Systems for Providing, by a Remote Machine, Access to Graphical Data Associated with a Resource Provided by a Local Machine
CN105787355A (en) * 2016-03-18 2016-07-20 山东华软金盾软件股份有限公司 Security software process permission management method and device
CN106775960A (en) * 2016-12-30 2017-05-31 武汉斗鱼网络科技有限公司 A kind of unique marker method and system to Windows processes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489049A (en) * 2002-10-11 2004-04-14 华为技术有限公司 Method for monitoring background programme
US20090070404A1 (en) * 2007-09-12 2009-03-12 Richard James Mazzaferri Methods and Systems for Providing, by a Remote Machine, Access to Graphical Data Associated with a Resource Provided by a Local Machine
CN105787355A (en) * 2016-03-18 2016-07-20 山东华软金盾软件股份有限公司 Security software process permission management method and device
CN106775960A (en) * 2016-12-30 2017-05-31 武汉斗鱼网络科技有限公司 A kind of unique marker method and system to Windows processes

Similar Documents

Publication Publication Date Title
CN107733780B (en) Intelligent task allocation method and device and instant messaging tool
CN104769580B (en) Terminal and method of attaching
CN111400426B (en) Robot position deployment method, device, equipment and medium
CN101930399A (en) Method for recording software test
CN110727572A (en) Buried point data processing method, device, equipment and storage medium
CN106251114B (en) Method and device for realizing approval in application
CN110990429A (en) Blood relationship analysis method and system of data table
CN109669658A (en) A kind of display methods, device and display system
CN111897502A (en) Split screen control system and method
CN104915252B (en) A kind of process port management means and method
CN104537459A (en) BIM-based micro field system and method
CN109151994A (en) Indoor positioning method and equipment
CN106126024A (en) A kind of method and system of display highlighting content
JP2017531776A (en) Air cleaning method, apparatus, program, and recording medium
CN108804191A (en) A kind of acquisition Windows operations programme diagram calibration method
CN106649102A (en) Graphical interface program testing log record and replay method based on hook function
CN108647071A (en) A kind of general purpose module of quick obtaining latitude and longitude coordinates
CN109507967A (en) Job control method and device
CN205608465U (en) Operation and maintenance system based on information code recognition technology
CN207766358U (en) A kind of area control system, controller, camera and lamps and lanterns
CN109710526A (en) One kind being based on cloud service automatic test script recording and playback system and method
CN112987994A (en) Frame selection annotation method, frame selection annotation device, electronic equipment and storage medium
CN106021588A (en) Video eagle-eye map presentation method and device
CN106528412A (en) Test framework for putting of related gesture of android application
JP2012159889A (en) Information management device, information management method and program for information management

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: 20181113

RJ01 Rejection of invention patent application after publication