473,385 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Programmatically determine DLL dependencies

Hi all,

What's the "best" way to determine an EXE file's DLL dependencies from
within a program? I basically need to figure out which DLL's are required
by an EXE like Dependency Walker, from within a C++ application.

Thanks
Jul 20 '06 #1
2 3817
Mike C# schrieb:
Hi all,

What's the "best" way to determine an EXE file's DLL dependencies from
within a program? I basically need to figure out which DLL's are required
by an EXE like Dependency Walker, from within a C++ application.

Thanks
Hi Mark,

You could load the DLL and check it your Modules via EnumProcessModules
on your process. Or something like that.

Or you can check the Import Address Table of the DLL but you wouldn't
get any DLLs that are loaded via LoadLibrary from this DLL

That are just suggestions for ways, but I'm not sure how to do it
correctly :/

--
Regards,
Vinzenz Feenstra

And now visit my WeBlog < http://blog.evilissimo.net ;)
Jul 20 '06 #2

"Vinzenz Feenstra" <vi**************@blog.evilissimo.netwrote in message
news:e9**********@online.de...
Hi Mark,

You could load the DLL and check it your Modules via EnumProcessModules on
your process. Or something like that.

Or you can check the Import Address Table of the DLL but you wouldn't get
any DLLs that are loaded via LoadLibrary from this DLL

That are just suggestions for ways, but I'm not sure how to do it
correctly :/
Thanks Vincenz,

Those sound like reasonable suggestions, I'll check them out. Basically
what I'm trying to do is write a small program that determines which DLL's
an EXE needs and then determine if those DLL's are installed in the system
path. Doesn't seem like it should be too difficult - just grab all the
required DLL names and then try to load them one by one; if a DLL fails to
load, then it's not on the system path. Does that sound like a reasonable
plan?

Thanks,
Mike C#
Jul 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: deko | last post by:
I'm trying to find a way to set form/control properties programmatically. In a nut shell: 1. Open a database 2. Open a form in design view 3. Do something like this: For Each prp In...
1
by: Ken Durden | last post by:
I'm hoping to develop a build process which only increments the version number of an assembly when either its contents or one of its dependencies has changed. Our assembly structure translates...
2
by: NewsAccount | last post by:
Hi I'm trying to find a way to programmatically measure the size of the page sent down to the browser, can't seem to measure the length of what gets written to the HTML TextWriter in protected...
15
by: Oleg Subachev | last post by:
I need to programmatically invoke from other class Click event of the Button on my Form. Button.OnClick method is protected, not public. How to perform this ? Oleg Subachev
1
by: PetersonMike | last post by:
One gets countless hits when searching for discussions on the need to install IIS before .NET so that ISAPI references are setup properly. It's also documented that one can run apsnet_regiis.exe...
1
by: crjunk | last post by:
I'm trying to programmatically determine the maximum field length for an Access table. I've had problems using the examples that I have come across on the internet. Can anyone provide me with a...
3
by: Merk | last post by:
How can I programmatically determine the from within that method. For example, consider the following code: private void DoSomething() { string s = ???; }
12
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
I am writing a web app to be widely distributed where I do not know the installed .NET Framework version. I want to take advantage of some .NET 3.0 classes if they are installed, but gracefully...
0
by: unkn0wn | last post by:
Hi all, I'm writing installer and was wondering how do I programmatically determine iis user group. on windows 2000 server it's IIS_WPG and on windows 2008 it's IIS_IUSRS. How can I get that...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.