Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Injecting a DLL under win95/98

Posted on 1998-09-18
3
Medium Priority
?
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

715 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