Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7043533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:18:04+00:00 2026-05-28T02:18:04+00:00

I am fixing up someone else’s code and noticed that the person calls LoadLibrary

  • 0

I am fixing up someone else’s code and noticed that the person calls LoadLibrary several times, as per below:

LoadLibrary("C:\\Windows\\SysWOW64\\msjint40");
LoadLibrary("C:\\Windows\\SysWOW64\\msjtes40");
LoadLibrary("C:\\Windows\\SysWOW64\\expsrv");

What is the point of this? The return pointers are not saved! The program later then calls a bunch of other DLL’s that do use functions from MSJTES40, but not in the context of where the libraries are loaded.

The comment says – "else preload to optimize", but how does the rest of the program know where the DLL’s are?

Thanks for any info.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:18:05+00:00Added an answer on May 28, 2026 at 2:18 am

    LoadLibrary brings the specified module into the address space. Libraries can’t be loaded twice, so doing this causes the preload (the loaded module may have other dependencies) so this could be viewed as an optimization. The second call to the library (where they use the return value) should complete faster.

    See the documentation

    If the specified module is a DLL that is not already loaded for the calling process, the system calls the DLL’s DllMain function with the DLL_PROCESS_ATTACH value.

    Also from the documentation.

    Do not make assumptions about the operating system version based on a LoadLibrary call that searches for a DLL. If the application is running in an environment where the DLL is legitimately not present but a malicious version of the DLL is in the search path, the malicious version of the DLL may be loaded

    Assuming a hard-coded DLL location opens your program up to all sorts of mischief!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Most programmers will have had the experience of debugging/fixing someone else's code. Sometimes that
I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and
I am fixing some printing (plotter) problems in our java code(windows 32). The paper
Someone designed code that relied on full data; the XML always had every element.
Working on someone else's code where they've instituted a SQL Dependency event (SQL 2008).
I am working on fixing a website which is coded by someone else. Codes
I'm working on fixing a bug in someone's code and I can't figure out
I'm fixing a bug with Windows Vista 64 bits of a 32bit application, when
I am reasonably good with CSS. However, when working with someone else's CSS, it's
when fixing mass spelling errors in my code base i have used this: find

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.