c# - Check if a DLL is changed after memory load -
i'm try find fast , effective way allow dll check if code it's changed on memory.
i'd inserted thislib.dll class function tht use like:
var assembly = assembly.getexecutingassembly(); module[] thismodule = assembly.getloadedmodules(); foreach (module in thismodule) { if (i.name == "thislib.dll") { modulehandle m= i.modulehandle; byte[] dllmemory = new byte[??? how thislib.dll memory size ???]; dllmemory = ??? how thislib.dll memory data ??? } }
i need check if hash(memory thislib.dll) equal hash(filesystem thislib.dll)!
Comments
Post a Comment