c# - Get module info of 64-bit process from app with x86 as Platform Target -
i have app written in c# needs access other modules determine version of particular app running. in order 64-bit modules, have target either x64, or think cpu work. have third-party dll targets x86, app throws badimageformatexception when tries load dll if set app's platform target "any cpu" or "x64".
so thought is, maybe there's way module's information other i'm doing, throws "a 32 bit processes cannot access modules of 64 bit process":
if (process.mainmodule.fileversioninfo.filemajorpart == 16) { installdir = system.io.path.getdirectoryname(getprocessfilename(process.id)); } there couple questions found on similar, none of them had useful answers unfortunately...
thanks assistance!
Comments
Post a Comment