Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Injecting a DLL under win95/98

Posted on 1998-09-18
3
Medium Priority
?
241 Views
Last Modified: 2013-11-20
Hi:

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?

Regards,
Asker.
0
Comment
Question by:asker
  • 2
3 Comments
 

Author Comment

by:asker
ID: 1322269
Adjusted points to 200
0
 
LVL 1

Accepted Solution

by:
VAM345 earned 600 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]
0
 

Author Comment

by:asker
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?

0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

876 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