Multi-version parallel operation method and device for COM component

An operation method and multi-version technology, applied in the direction of program control device, program control design, instrument, etc., can solve the problem of uncontrollable loading of COM components

Active Publication Date: 2019-04-12
SHANDONG UNIV OF FINANCE & ECONOMICS
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The invention provides a method of virtual registration of COM components inside the process and access redirection of registration data during instantiation...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-version parallel operation method and device for COM component
  • Multi-version parallel operation method and device for COM component
  • Multi-version parallel operation method and device for COM component

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0094] refer to figure 1 , image 3 A multi-version parallel running method of a COM component comprises the following steps:

[0095] a. Collect and process the registration data of the COM component into virtual registration data in advance, set the COM component module path as a virtual path as a placeholder, and save the virtual registration data into the virtual registration file;

[0096] b. Install the dynamic link library and virtual registration file of the COM component into the program directory;

[0097] c. When the program process is started, import the virtual registration file into a registry node obtained by hashing the running path of the main program, and adjust the registration path InprocServer32 of the module where the COM component is located in the child node of the node under the HKEY_CURRENT_USER node to Based on the absolute path of the main module of the program;

[0098] d. Initialize the global information of the program process;

[0099] e. W...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for realizing multi-version parallel operation of COM components on a Windows operating system, and an implementation device. The invention discloses a multi-versionparallel operation method of a COM component. The method comprises the following steps: a, storing virtual registration data into a virtual registration file; b, installing the dynamic link library ofthe COM component and the virtual registration file into a program directory; c, importing the virtual registration file into a registry node obtained by hash operation on the running path of the main program; d, initializing global information of a program process; and e, intercepting the access of a registry access function, exported by ntdl.dll, of the operating system kernel layer to the HKEY_CLASSES_ROOT by adopting a hook function, and redirecting to the virtual registry node path obtained by the hash operation in the step c. According to the invention, the virtual registration data ofthe COM component is imported when the program process is started, and the COM component is redirected to the virtual registration data through the registry when accessing the COM component, so that multi-version parallel operation of the COM component is realized.

Description

technical field [0001] The invention relates to a method for realizing parallel operation of multiple versions of COM components on a Windows operating system, and a realization device. Background technique [0002] COM is the abbreviation of ComponentObjectModel (Component Object Model). COM is a method of developing software components. It is a new software development technology developed by Microsoft Corporation to make software production in the computer industry more in line with human behavior. Under the COM framework, various functional specialties can be developed. One component, and then combine them as needed to form a complex application system. In practice, COM components are composed of executable code released in the form of Win32 dynamic link library or executable file, which is written in accordance with the COM specification. COM components can provide services to applications, operating systems, and other components; custom COM components can be connecte...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/445
CPCG06F9/44521G06F9/44542
Inventor 杨国萍
Owner SHANDONG UNIV OF FINANCE & ECONOMICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products