Method and system for loading dynamic link library files
A dynamic link library and file loading technology, applied in the direction of program loading/starting, program control devices, etc., can solve problems such as imperfections
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] Such as image 3 , shown in 4, embodiment one of the present invention is:
[0064] 1, read a target DLL file to internal memory: LPVOIDlpMem=ReadFileToMem (szDllFile);
[0065] 2. Load DLL directly from memory: MemoryLoadLibrary(lpMem);
[0066] (1) Check whether the target DLL is in normal PE format;
[0067] (2) The DLL is a file in PE format, and the PE header is located at a certain position of the offset in the PE file, and a memory block marked with MEM_COMMIT is allocated for the PE header of the DLL;
[0068] (3) Copy the PE header to the allocated memory block;
[0069] Specifically: read the PE header of the PE file, including the DOS header, PE header and Section header, to the newly allocated memory block;
[0070] (4) PE header updates imageBase information;
[0071] Specifically: windows loader will re-allocate a piece of space according to whether the loading address defined by ImageBase in the PE header is available, if it is already occupied by ot...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com