jeg tror du kan bruge noget af denne artikkel
http://www.codeproject.com/csharp/dll_profiler.aspisær dette ser interessant ud
//Get all modules inside the process
Process[] ObjModulesList = Process.GetProcessesByName("devenv");
// Populate the module collection.
ProcessModuleCollection ObjModules = ObjModulesList[0].Modules;
// Iterate through the module collection.
foreach (ProcessModule objModule in ObjModules)
{
//Get valid module path
strModulePath =GetValidString(objModule.FileName.ToString());
//If the module exists
if (File.Exists(objModule.FileName.ToString()))
{
//Get version
string strFileVersion = GetValidString(objModule.
FileVersionInfo.FileVersion.ToString());
//Get File size
string strFileSize = GetValidString
(objModule.ModuleMemorySize.ToString());
//Get Modification date
FileInfo objFileInfo = new
FileInfo(objModule.FileName.ToString());
string strFileModificationDate = GetValidString
(objFileInfo.LastWriteTime.ToShortDateString());
//Get File description
string strFileDescription = GetValidString
(objModule.FileVersionInfo.
FileDescription.ToString());
//Get Product Name
string strProductName = GetValidString
(objModule.FileVersionInfo.ProductName.ToString());
//Get Product Version
string strProductVersion = GetValidString
(objModule.FileVersionInfo.ProductVersion.ToString());
}
}