Solved

Injecting a DLL under win95/98

Posted on 1998-09-18
3
228 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 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]
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa‚Ķ
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

758 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

22 Experts available now in Live!

Get 1:1 Help Now