Click to See Complete Forum and Search --> : How to find which programs/drivers are being used...
acjk401
September 18th, 2003, 01:39 PM
When you execute a program, it might call others modules (dll, drv etc). How can you find which modules are currently linked to your program.
How can we find the version of a dll.
Thanks in advance
regards
VGirish
September 18th, 2003, 09:33 PM
Hi,
Use the "Depends" tool that comes with Visual Studio. Its
also called the Dependency Walker. Open your executable file
in it to see the dependencies.
dimm_coder
September 19th, 2003, 10:17 AM
Originally posted by acjk401
When you execute a program, it might call others modules (dll, drv etc). How can you find which modules are currently linked to your program.
How can we find the version of a dll.
Thanks in advance
regards
U can use toolhelp api for Win 9x and PSAPI for Win NT-based (NT/2000/XP).
Andreas Masur
September 19th, 2003, 11:18 AM
Do you want to get these information from outside the process or from inside it? For the former one....
For an overview of the dependicies of your application you have two possibilities:
1. Use the 'Dependency Walker' (depends.exe)
2. Use 'Dumpbin' (dumpbin.exe) with the parameter /DEPENDENTS
Both methods will show you a list of dll's that are linked to your application - either statically or dynamically. To find out which dll's are dynamically loaded you need to use the profiling feature of the 'Dependeny Walker'.
Doctor Luz
September 19th, 2003, 11:22 AM
Other method is to use a install program such Instalshield. They will search for the program dependencies.
acjk401
September 19th, 2003, 01:42 PM
Thank you guys.
Depend.exe has given me good insight.
Thanks again
regards,
BP
Andreas Masur
September 19th, 2003, 01:54 PM
[Merged threads]
acjk401, please do not cross-post your questions to different forums. Thank you very much.
Mick
September 19th, 2003, 04:15 PM
You can use a variety of tools to do this, such as tlist.exe which is provided by mickeysoft in the debugging support tools, you can also find support tools at www.sysinternals.com
tlist eg:
836 explorer.exe Program Manager
CWD: H:\
CmdLine: H:\W2K\Explorer.EXE
VirtualSize: 62672 KB PeakVirtualSize: 66832 KB
WorkingSetSize: 2744 KB PeakWorkingSetSize: 11244 KB
NumberOfThreads: 13
832 Win32StartAddr:0x004015a8 LastErr:0x00000006 State:Waiting
844 Win32StartAddr:0x00000000 LastErr:0x00000000 State:Waiting
848 Win32StartAddr:0x70c0c3d2 LastErr:0x000003e5 State:Waiting
852 Win32StartAddr:0x7832a414 LastErr:0x00000006 State:Waiting
856 Win32StartAddr:0x778321fe LastErr:0x00000000 State:Waiting
936 Win32StartAddr:0x70c1acaf LastErr:0x00000012 State:Waiting
952 Win32StartAddr:0x77faa1ff LastErr:0x00000000 State:Waiting
956 Win32StartAddr:0x77fa9718 LastErr:0x00000006 State:Waiting
964 Win32StartAddr:0x766d17ea LastErr:0x00000000 State:Waiting
980 Win32StartAddr:0x00002216 LastErr:0x00000000 State:Waiting
1024 Win32StartAddr:0x77562bda LastErr:0x00000000 State:Waiting
1036 Win32StartAddr:0x77d424c2 LastErr:0x00000102 State:Waiting
272 Win32StartAddr:0x766d5767 LastErr:0x00000000 State:Waiting
5.0.3502.5321 shp 0x00400000 Explorer.EXE
5.0.2195.5400 shp 0x77f80000 ntdll.dll
5.0.2195.5385 shp 0x77db0000 ADVAPI32.DLL
5.0.2195.5400 shp 0x77e80000 KERNEL32.DLL
5.0.2195.5419 shp 0x77d30000 RPCRT4.DLL
5.0.2195.5252 shp 0x77f40000 GDI32.DLL
5.0.2195.4314 shp 0x77e10000 USER32.DLL
6.0.2800.1106 shp 0x70bd0000 SHLWAPI.DLL
6.1.9359.0 shp 0x78000000 msvcrt.dll
5.81.4916.400 shp 0x71710000 COMCTL32.DLL
5.0.2195.5308 shp 0x732e0000 shim.dll
0x23000000 AcLayers.DLL
5.0.3502.5436 shp 0x782f0000 SHELL32.dll
5.0.2195.5400 shp 0x77a50000 OLE32.DLL
2000.2.3497.0 shp 0x775a0000 CLBCATQ.DLL
2.40.4518.0 shp 0x779b0000 OLEAUT32.dll
5.0.2195.4104 shp 0x77840000 cscui.dll
5.0.2195.5434 shp 0x770c0000 CSCDLL.DLL
6.0.2800.1106 shp 0x71000000 SHDOCVW.DLL
6.0.2800.1106 shp 0x71160000 browseui.dll
5.0.2153.1 shp 0x76700000 mmcshext.dll
6.0.8665.0 shp 0x76fb0000 MFC42u.DLL
5.0.0.7051 shp 0x780c0000 MSVCP50.dll
5.2.3644.0 shp 0x76720000 hhsetup.dll
5.0.2195.3649 shp 0x76620000 MPR.DLL
5.0.2195.5425 shp 0x77c10000 USERENV.DLL
6.0.2800.1106 shp 0x702b0000 URLMON.DLL
5.0.2134.1 shp 0x77820000 VERSION.dll
5.0.2134.1 shp 0x759b0000 LZ32.DLL
6.0.2800.1106 shp 0x70440000 mlang.dll
6.0.2800.1106 shp 0x70c50000 mshtml.dll
6.0.2800.1106 shp 0x70200000 WININET.DLL
5.131.2195.4558 sh 0x77440000 CRYPT32.dll
5.0.2195.4067 shp 0x77430000 MSASN1.DLL
5.0.2195.5438 shp 0x774e0000 RASAPI32.DLL
5.0.2195.5292 shp 0x774c0000 RASMAN.DLL
5.0.2195.4874 shp 0x75030000 WS2_32.DLL
5.0.2134.1 shp 0x75020000 WS2HELP.DLL
5.0.2182.1 shp 0x77530000 TAPI32.DLL
5.0.2168.1 shp 0x77830000 RTUTILS.DLL
5.0.2195.5427 shp 0x75170000 netapi32.dll
5.0.2195.4587 shp 0x77be0000 SECUR32.DLL
5.0.2134.1 shp 0x751c0000 NETRAP.DLL
5.0.2195.4827 shp 0x75150000 SAMLIB.DLL
5.0.2195.5400 shp 0x77950000 WLDAP32.DLL
5.0.2195.5354 shp 0x77980000 DNSAPI.DLL
5.0.2195.4874 shp 0x75050000 WSOCK32.DLL
5.0.2195.3839 shp 0x7ca00000 rsabase.dll
5.0.3315.4065 shp 0x76df0000 mydocs.dll
5.0.2134.1 shp 0x76fa0000 ntshrui.dll
3.0.9435.0 shp 0x773e0000 ATL.DLL
6.0.2800.1106 shp 0x718c0000 shdoclc.dll
5.0.3502.5436 shp 0x02120000 shell32.dll
3.10.337.0 shp 0x75ac0000 MSLS31.DLL
5.0.2195.4314 shp 0x75e60000 IMM32.DLL
5.0.2195.5428 shp 0x75160000 ntlanman.dll
5.0.2195.4874 shp 0x75210000 NETUI0.DLL
5.0.2134.1 shp 0x751d0000 NETUI1.DLL
5.0.2195.5431 shp 0x76f20000 NETSHELL.dll
6.0.2800.1106 shp 0x70340000 webcheck.dll
5.0.2195.4455 shp 0x766d0000 stobject.dll
5.0.3502.5305 shp 0x76740000 BATMETER.DLL
5.0.2195.5400 shp 0x77880000 SETUPAPI.DLL
5.0.3502.5305 shp 0x766f0000 POWRPROF.DLL
5.0.2161.1 shp 0x77570000 WINMM.DLL
2.0.2600.1 shp 0x770f0000 MSI.DLL
5.0.2195.3649 shp 0x77560000 wdmaud.drv
5.0.2134.1 shp 0x77400000 msacm32.drv
5.0.2134.1 shp 0x77410000 MSACM32.dll
2000.2.3497.0 shp 0x76290000 es.dll
2000.2.3497.0 shp 0x6de80000 TxfAux.Dll
5.0.2134.1 shp 0x76710000 LINKINFO.DLL
5.0.2920.0 shp 0x6e420000 INDICDLL.dll
0x67f00000 idleproc.dll
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.