Injecting a DLL under win95/98

Posted on 1998-09-18
Last Modified: 2013-11-20

I need to inject a DLL into each process under Win95/98 FROM THE VERY BEGINNING of the system's work. I am aware that the registry key AppInit_DLLs does not work under Win95/98, so I am going to use some system hook. The question is: because I need to inject a DLL into all the processes from the very beginning, how to achieve that my application will be the first starting on the system's boot up? More exactly - how to achieve that my application start BEFORE the shell (Explorer) starts?

As far as I know (I may be wrong) the system starts applications listed in the Run registry key, then in the RunOnce registry key (or vice versa?), then (when Explorer - the shell - starts) in the StartUp folder. So, I guess, I need to make a value under the Run key. But how I achieve that my application will be the FIRST if there may be several values (apps) under the Run key? Will marking it as "0000AAA" be enough?

Question by:asker
  • 2

Author Comment

ID: 1322269
Adjusted points to 200

Accepted Solution

VAM345 earned 200 total points
ID: 1322270
You need no set value in key RunServices, if the are not in you registry add it. Then add value with first position in sorting of names or I think tha is value [Default]

Author Comment

ID: 1322271
>You need no set value in key RunServices, if the are not in >you registry add it. Then add value with first position in sorting >of names or I think tha is value [Default].

Does that read as:

You need to set a value in the key RunServices, if there is no such a key in you registry, add it. Then add a value with first position in sorting of names or I think that is a value [Default].

If so, could you please to make it clear:

My application, specified in the value under RunService key, should it be a true service or simple application (WinMain or main) is enough?

If I run under WinNT - I would need to have the Administrator privilege to start service (modify keys). Is it possible to avoid this?


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Get filename and folder into excel 7 68
not able to insert into temp table 68 157
FizzBuzz challenge 9 76
wordcount challenge 11 107
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now