Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2007

Tip: Looking for answers? Try searching our database.

Does this mean .dll is "loaded"?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mr. Magoo - 17 Sep 2007 17:26 GMT
If I see a certain .dll path as shown in the example below:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls\C:\WINDOWS\system32\mydll.dll

Does it mean that the presence of hte registry key above makes such
mydll.dll is "loaded", registered or running?

I am evaluating an appication and the vendor is claiming that the .dll path
is just added to the registry key above, but the application is not active.
SvenC - 17 Sep 2007 17:52 GMT
Hi Mr Magoo,

> If I see a certain .dll path as shown in the example below:
> HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls\C:\WINDOWS\system32\mydll.dll
[quoted text clipped - 6 lines]
> is just added to the registry key above, but the application is not
> active.

Windows installer uses this information to keep track of dlls which might be
installed by different products and thus are potentially shared. So an
install count is used to delete the dll only when the last uninstaller has
run and no product uses that dll anymore.
This is typically a standard feature of installer products, so even if dlls
are only built for and used by one application they are often installed as
shared dlls.

Dll cannot run or by active by themselfes. They will always need a process
which loads them and call functions of them. You can use a tool like Process
Explorer which can show you which processes have which dll loaded. So you
can verify for yourself.

--
SvenC
Ben Voigt [C++ MVP] - 17 Sep 2007 20:18 GMT
> Hi Mr Magoo,
>
[quoted text clipped - 16 lines]
> dlls are only built for and used by one application they are often
> installed as shared dlls.

On the other hand, if you saw something in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Windows\AppInit_DLLs then that would be loaded all the
time.

> Dll cannot run or by active by themselfes. They will always need a process
> which loads them and call functions of them. You can use a tool like
[quoted text clipped - 3 lines]
> --
> SvenC

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.